2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libjava version-unused.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 case \`(set -o) 2>/dev/null\` in #(
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 test -z "$as_dir" && as_dir=.
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
257 # Portably unset VAR.
260 { eval $1=; unset $1;}
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
284 # Create "$as_dir" as a directory, including parents if necessary.
289 -*) as_dir=./$as_dir;;
291 test -d "$as_dir" || eval $as_mkdir_p || {
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322 test -d "$as_dir" && break
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
360 as_val=`expr "$@" || test $? -eq 1`
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
372 as_status=$?; test $as_status -eq 0 && as_status=1
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
454 # Exit status is that of the last command.
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
487 elif ln conf$$.file conf$$ 2>/dev/null; then
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
501 test -d ./-p && rmdir ./-p
505 if test -x / >/dev/null 2>&1; then
508 if ls -dL / >/dev/null 2>&1; then
515 if test -d "$1"; then
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 ac_default_prefix=/usr/local
549 ac_config_libobj_dir=.
556 # Identity of this package.
557 PACKAGE_NAME='libjava'
558 PACKAGE_TARNAME='libjava'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='libjava version-unused'
564 ac_unique_file="java/lang/System.java"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
578 # ifdef HAVE_STDLIB_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
601 enable_option_checking=no
602 ac_subst_vars='am__EXEEXT_FALSE
624 CREATE_JAVA_HOME_FALSE
625 CREATE_JAVA_HOME_TRUE
626 INSTALL_AOT_RPM_FALSE
629 python_mod_dir_expanded
632 LD_FINISH_STATIC_SPEC
647 INSTALL_BINARIES_FALSE
648 INSTALL_BINARIES_TRUE
649 NEEDS_DATA_START_FALSE
650 NEEDS_DATA_START_TRUE
681 USING_NO_THREADS_FALSE
682 USING_NO_THREADS_TRUE
683 USING_WIN32_THREADS_FALSE
684 USING_WIN32_THREADS_TRUE
685 USING_POSIX_THREADS_FALSE
686 USING_POSIX_THREADS_TRUE
707 extra_ldflags_libjava
716 USING_DARWIN_CRT_FALSE
717 USING_DARWIN_CRT_TRUE
718 USING_POSIX_PLATFORM_FALSE
719 USING_POSIX_PLATFORM_TRUE
720 USING_WIN32_PLATFORM_FALSE
721 USING_WIN32_PLATFORM_TRUE
728 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
729 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
730 SUPPRESS_LIBGCJ_BC_FALSE
731 SUPPRESS_LIBGCJ_BC_TRUE
735 INSTALL_ECJ_JAR_FALSE
780 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
782 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
783 LIBGCJ_SUBLIB_LTFLAGS
788 MAINTAINER_MODE_FALSE
818 INSTALL_STRIP_PROGRAM
843 JAVA_MAINTAINER_MODE_FALSE
844 JAVA_MAINTAINER_MODE_TRUE
895 program_transform_name
908 enable_option_checking
914 enable_version_specific_runtime_libs
915 enable_browser_plugin
919 enable_java_maintainer_mode
920 enable_dependency_tracking
921 enable_maintainer_mode
922 enable_libgcj_sublibs
932 enable_getenv_properties
933 enable_hash_synchronization
937 enable_reduced_reflection
941 enable_sjlj_exceptions
952 with_system_libunwind
954 enable_aot_compile_rpm
964 ac_precious_vars='build_alias
978 ac_subdirs_all='classpath libltdl'
980 # Initialize some variables set by options.
982 ac_init_version=false
983 ac_unrecognized_opts=
985 # The variables have the same names as the options, with
986 # dashes changed to underlines.
994 program_transform_name=s,x,x,
1002 # Installation directory options.
1003 # These are left unexpanded so users can "make install exec_prefix=/foo"
1004 # and all the variables that are supposed to be based on exec_prefix
1005 # by default will actually change.
1006 # Use braces instead of parens because sh, perl, etc. also accept them.
1007 # (The list follows the same order as the GNU Coding Standards.)
1008 bindir='${exec_prefix}/bin'
1009 sbindir='${exec_prefix}/sbin'
1010 libexecdir='${exec_prefix}/libexec'
1011 datarootdir='${prefix}/share'
1012 datadir='${datarootdir}'
1013 sysconfdir='${prefix}/etc'
1014 sharedstatedir='${prefix}/com'
1015 localstatedir='${prefix}/var'
1016 includedir='${prefix}/include'
1017 oldincludedir='/usr/include'
1018 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1019 infodir='${datarootdir}/info'
1024 libdir='${exec_prefix}/lib'
1025 localedir='${datarootdir}/locale'
1026 mandir='${datarootdir}/man'
1032 # If the previous option needs an argument, assign it.
1033 if test -n "$ac_prev"; then
1034 eval $ac_prev=\$ac_option
1040 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1044 # Accept the important Cygnus configure options, so we can diagnose typos.
1046 case $ac_dashdash$ac_option in
1050 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1052 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1053 bindir=$ac_optarg ;;
1055 -build | --build | --buil | --bui | --bu)
1056 ac_prev=build_alias ;;
1057 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1058 build_alias=$ac_optarg ;;
1060 -cache-file | --cache-file | --cache-fil | --cache-fi \
1061 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1062 ac_prev=cache_file ;;
1063 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1064 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1065 cache_file=$ac_optarg ;;
1067 --config-cache | -C)
1068 cache_file=config.cache ;;
1070 -datadir | --datadir | --datadi | --datad)
1072 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1073 datadir=$ac_optarg ;;
1075 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1076 | --dataroo | --dataro | --datar)
1077 ac_prev=datarootdir ;;
1078 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1079 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1080 datarootdir=$ac_optarg ;;
1082 -disable-* | --disable-*)
1083 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1086 as_fn_error "invalid feature name: $ac_useropt"
1087 ac_useropt_orig=$ac_useropt
1088 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1089 case $ac_user_opts in
1091 "enable_$ac_useropt"
1093 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1094 ac_unrecognized_sep=', ';;
1096 eval enable_$ac_useropt=no ;;
1098 -docdir | --docdir | --docdi | --doc | --do)
1100 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1101 docdir=$ac_optarg ;;
1103 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1105 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1106 dvidir=$ac_optarg ;;
1108 -enable-* | --enable-*)
1109 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error "invalid feature name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1117 "enable_$ac_useropt"
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1122 eval enable_$ac_useropt=\$ac_optarg ;;
1124 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1125 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1126 | --exec | --exe | --ex)
1127 ac_prev=exec_prefix ;;
1128 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1129 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1130 | --exec=* | --exe=* | --ex=*)
1131 exec_prefix=$ac_optarg ;;
1133 -gas | --gas | --ga | --g)
1134 # Obsolete; use --with-gas.
1137 -help | --help | --hel | --he | -h)
1138 ac_init_help=long ;;
1139 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1140 ac_init_help=recursive ;;
1141 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1142 ac_init_help=short ;;
1144 -host | --host | --hos | --ho)
1145 ac_prev=host_alias ;;
1146 -host=* | --host=* | --hos=* | --ho=*)
1147 host_alias=$ac_optarg ;;
1149 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1151 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1153 htmldir=$ac_optarg ;;
1155 -includedir | --includedir | --includedi | --included | --include \
1156 | --includ | --inclu | --incl | --inc)
1157 ac_prev=includedir ;;
1158 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1159 | --includ=* | --inclu=* | --incl=* | --inc=*)
1160 includedir=$ac_optarg ;;
1162 -infodir | --infodir | --infodi | --infod | --info | --inf)
1164 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1165 infodir=$ac_optarg ;;
1167 -libdir | --libdir | --libdi | --libd)
1169 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1170 libdir=$ac_optarg ;;
1172 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1173 | --libexe | --libex | --libe)
1174 ac_prev=libexecdir ;;
1175 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1176 | --libexe=* | --libex=* | --libe=*)
1177 libexecdir=$ac_optarg ;;
1179 -localedir | --localedir | --localedi | --localed | --locale)
1180 ac_prev=localedir ;;
1181 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1182 localedir=$ac_optarg ;;
1184 -localstatedir | --localstatedir | --localstatedi | --localstated \
1185 | --localstate | --localstat | --localsta | --localst | --locals)
1186 ac_prev=localstatedir ;;
1187 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1188 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1189 localstatedir=$ac_optarg ;;
1191 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1193 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1194 mandir=$ac_optarg ;;
1196 -nfp | --nfp | --nf)
1197 # Obsolete; use --without-fp.
1200 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1201 | --no-cr | --no-c | -n)
1204 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1205 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1208 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1209 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1210 | --oldin | --oldi | --old | --ol | --o)
1211 ac_prev=oldincludedir ;;
1212 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1213 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1214 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1215 oldincludedir=$ac_optarg ;;
1217 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1219 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1220 prefix=$ac_optarg ;;
1222 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1223 | --program-pre | --program-pr | --program-p)
1224 ac_prev=program_prefix ;;
1225 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1226 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1227 program_prefix=$ac_optarg ;;
1229 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1230 | --program-suf | --program-su | --program-s)
1231 ac_prev=program_suffix ;;
1232 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1233 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1234 program_suffix=$ac_optarg ;;
1236 -program-transform-name | --program-transform-name \
1237 | --program-transform-nam | --program-transform-na \
1238 | --program-transform-n | --program-transform- \
1239 | --program-transform | --program-transfor \
1240 | --program-transfo | --program-transf \
1241 | --program-trans | --program-tran \
1242 | --progr-tra | --program-tr | --program-t)
1243 ac_prev=program_transform_name ;;
1244 -program-transform-name=* | --program-transform-name=* \
1245 | --program-transform-nam=* | --program-transform-na=* \
1246 | --program-transform-n=* | --program-transform-=* \
1247 | --program-transform=* | --program-transfor=* \
1248 | --program-transfo=* | --program-transf=* \
1249 | --program-trans=* | --program-tran=* \
1250 | --progr-tra=* | --program-tr=* | --program-t=*)
1251 program_transform_name=$ac_optarg ;;
1253 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1255 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1256 pdfdir=$ac_optarg ;;
1258 -psdir | --psdir | --psdi | --psd | --ps)
1260 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1264 | -silent | --silent | --silen | --sile | --sil)
1267 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1269 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1271 sbindir=$ac_optarg ;;
1273 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1274 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1275 | --sharedst | --shareds | --shared | --share | --shar \
1277 ac_prev=sharedstatedir ;;
1278 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1279 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1280 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1282 sharedstatedir=$ac_optarg ;;
1284 -site | --site | --sit)
1286 -site=* | --site=* | --sit=*)
1289 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1291 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1292 srcdir=$ac_optarg ;;
1294 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1295 | --syscon | --sysco | --sysc | --sys | --sy)
1296 ac_prev=sysconfdir ;;
1297 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1298 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1299 sysconfdir=$ac_optarg ;;
1301 -target | --target | --targe | --targ | --tar | --ta | --t)
1302 ac_prev=target_alias ;;
1303 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1304 target_alias=$ac_optarg ;;
1306 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1309 -version | --version | --versio | --versi | --vers | -V)
1310 ac_init_version=: ;;
1313 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316 as_fn_error "invalid package name: $ac_useropt"
1317 ac_useropt_orig=$ac_useropt
1318 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319 case $ac_user_opts in
1323 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1324 ac_unrecognized_sep=', ';;
1326 eval with_$ac_useropt=\$ac_optarg ;;
1328 -without-* | --without-*)
1329 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1330 # Reject names that are not valid shell variable names.
1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1332 as_fn_error "invalid package name: $ac_useropt"
1333 ac_useropt_orig=$ac_useropt
1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1335 case $ac_user_opts in
1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1340 ac_unrecognized_sep=', ';;
1342 eval with_$ac_useropt=no ;;
1345 # Obsolete; use --with-x.
1348 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1349 | --x-incl | --x-inc | --x-in | --x-i)
1350 ac_prev=x_includes ;;
1351 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1352 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1353 x_includes=$ac_optarg ;;
1355 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1356 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1357 ac_prev=x_libraries ;;
1358 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1359 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1360 x_libraries=$ac_optarg ;;
1362 -*) as_fn_error "unrecognized option: \`$ac_option'
1363 Try \`$0 --help' for more information."
1367 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1368 # Reject names that are not valid shell variable names.
1369 case $ac_envvar in #(
1370 '' | [0-9]* | *[!_$as_cr_alnum]* )
1371 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1373 eval $ac_envvar=\$ac_optarg
1374 export $ac_envvar ;;
1377 # FIXME: should be removed in autoconf 3.0.
1378 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1379 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1380 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1381 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1387 if test -n "$ac_prev"; then
1388 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1389 as_fn_error "missing argument to $ac_option"
1392 if test -n "$ac_unrecognized_opts"; then
1393 case $enable_option_checking in
1395 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1396 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1400 # Check all directory arguments for consistency.
1401 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1402 datadir sysconfdir sharedstatedir localstatedir includedir \
1403 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1404 libdir localedir mandir
1406 eval ac_val=\$$ac_var
1407 # Remove trailing slashes.
1410 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1411 eval $ac_var=\$ac_val;;
1413 # Be sure to have absolute directory names.
1415 [\\/$]* | ?:[\\/]* ) continue;;
1416 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1418 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1421 # There might be people who depend on the old broken behavior: `$host'
1422 # used to hold the argument of --host etc.
1423 # FIXME: To remove some day.
1426 target=$target_alias
1428 # FIXME: To remove some day.
1429 if test "x$host_alias" != x; then
1430 if test "x$build_alias" = x; then
1431 cross_compiling=maybe
1432 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1433 If a cross compiler is detected then cross compile mode will be used." >&2
1434 elif test "x$build_alias" != "x$host_alias"; then
1440 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1442 test "$silent" = yes && exec 6>/dev/null
1445 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1446 ac_ls_di=`ls -di .` &&
1447 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1448 as_fn_error "working directory cannot be determined"
1449 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1450 as_fn_error "pwd does not report name of working directory"
1453 # Find the source files, if location was not specified.
1454 if test -z "$srcdir"; then
1455 ac_srcdir_defaulted=yes
1456 # Try the directory containing this script, then the parent directory.
1457 ac_confdir=`$as_dirname -- "$as_myself" ||
1458 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1459 X"$as_myself" : 'X\(//\)[^/]' \| \
1460 X"$as_myself" : 'X\(//\)$' \| \
1461 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1462 $as_echo X"$as_myself" |
1463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1481 if test ! -r "$srcdir/$ac_unique_file"; then
1485 ac_srcdir_defaulted=no
1487 if test ! -r "$srcdir/$ac_unique_file"; then
1488 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1489 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1491 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1493 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1495 # When building in place, set srcdir=.
1496 if test "$ac_abs_confdir" = "$ac_pwd"; then
1499 # Remove unnecessary trailing slashes from srcdir.
1500 # Double slashes in file names in object file debugging info
1501 # mess up M-x gdb in Emacs.
1503 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1505 for ac_var in $ac_precious_vars; do
1506 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1507 eval ac_env_${ac_var}_value=\$${ac_var}
1508 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1509 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1513 # Report the --help message.
1515 if test "$ac_init_help" = "long"; then
1516 # Omit some internal or obsolete options to make the list less imposing.
1517 # This message is too long to be a string in the A/UX 3.1 sh.
1519 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1521 Usage: $0 [OPTION]... [VAR=VALUE]...
1523 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1524 VAR=VALUE. See below for descriptions of some of the useful variables.
1526 Defaults for the options are specified in brackets.
1529 -h, --help display this help and exit
1530 --help=short display options specific to this package
1531 --help=recursive display the short help of all the included packages
1532 -V, --version display version information and exit
1533 -q, --quiet, --silent do not print \`checking...' messages
1534 --cache-file=FILE cache test results in FILE [disabled]
1535 -C, --config-cache alias for \`--cache-file=config.cache'
1536 -n, --no-create do not create output files
1537 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1539 Installation directories:
1540 --prefix=PREFIX install architecture-independent files in PREFIX
1541 [$ac_default_prefix]
1542 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1545 By default, \`make install' will install all the files in
1546 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1547 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1548 for instance \`--prefix=\$HOME'.
1550 For better control, use the options below.
1552 Fine tuning of the installation directories:
1553 --bindir=DIR user executables [EPREFIX/bin]
1554 --sbindir=DIR system admin executables [EPREFIX/sbin]
1555 --libexecdir=DIR program executables [EPREFIX/libexec]
1556 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1557 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1558 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1559 --libdir=DIR object code libraries [EPREFIX/lib]
1560 --includedir=DIR C header files [PREFIX/include]
1561 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1562 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1563 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1564 --infodir=DIR info documentation [DATAROOTDIR/info]
1565 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1566 --mandir=DIR man documentation [DATAROOTDIR/man]
1567 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1568 --htmldir=DIR html documentation [DOCDIR]
1569 --dvidir=DIR dvi documentation [DOCDIR]
1570 --pdfdir=DIR pdf documentation [DOCDIR]
1571 --psdir=DIR ps documentation [DOCDIR]
1577 --program-prefix=PREFIX prepend PREFIX to installed program names
1578 --program-suffix=SUFFIX append SUFFIX to installed program names
1579 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1582 --x-includes=DIR X include files are in DIR
1583 --x-libraries=DIR X library files are in DIR
1586 --build=BUILD configure for building on BUILD [guessed]
1587 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1588 --target=TARGET configure for building compilers for TARGET [HOST]
1592 if test -n "$ac_init_help"; then
1593 case $ac_init_help in
1594 short | recursive ) echo "Configuration of libjava version-unused:";;
1599 --disable-option-checking ignore unrecognized --enable/--with options
1600 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1601 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1602 --enable-multilib build many library versions (default)
1603 --enable-version-specific-runtime-libs
1604 specify that runtime libraries should be installed
1605 in a compiler-specific directory
1606 --enable-browser-plugin build gcjwebplugin web browser plugin
1607 --enable-gconf-peer compile GConf native peers for util.preferences
1608 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1610 --enable-java-maintainer-mode
1611 allow rebuilding of .class and .h files
1612 --disable-dependency-tracking speeds up one-time build
1613 --enable-dependency-tracking do not reject slow dependency extractors
1614 --enable-maintainer-mode enable make rules and dependencies not useful
1615 (and sometimes confusing) to the casual installer
1616 --enable-libgcj-sublibs build libgcj as many sub-libraries
1617 --enable-libgcj-debug enable runtime debugging code
1618 --enable-java-awt list of AWT peer implementations to be built
1619 --enable-shared[=PKGS] build shared libraries [default=yes]
1620 --enable-static[=PKGS] build static libraries [default=yes]
1621 --enable-fast-install[=PKGS]
1622 optimize for fast installation [default=yes]
1623 --disable-libtool-lock avoid locking (might break parallel builds)
1624 --disable-getenv-properties
1625 don't set system properties from GCJ_PROPERTIES
1626 --enable-hash-synchronization
1627 use global hash table for monitor locks
1628 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1630 --enable-reduced-reflection
1631 enable or disable(default) -freduced-reflection when
1632 building portions of libgcj
1633 --enable-gc-debug include full support for pointer backtracing etc.
1634 --enable-interpreter enable interpreter
1635 --enable-sjlj-exceptions
1636 force use of builtin_setjmp for exceptions
1637 --disable-java-net disable java.net
1638 --disable-jvmpi disable JVMPI support
1639 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1640 --disable-rpath do not hardcode runtime library paths
1641 --enable-tls Use thread-local storage [default=yes]
1642 --enable-aot-compile-rpm
1643 enable installation of aot-compile-rpm [default=no]
1644 --enable-java-home create a standard JDK-style directory layout in the
1645 install tree [default=no]
1648 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1649 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1650 --with-build-libsubdir=DIR Directory where to find libraries for build system
1651 --with-target-subdir=SUBDIR
1652 configure in a subdirectory
1653 --with-cross-host=HOST configure with a cross compiler from HOST
1654 --with-newlib configure with newlib
1655 --with-antlr-jar=file Use ANTLR from the specified jar file
1656 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1657 --with-pic try to use only PIC/non-PIC objects [default=use
1659 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1660 --with-ecj-jar=FILE use preinstalled ecj jar
1661 --with-java-home=DIRECTORY
1662 value of java.home system property
1663 --with-win32-nlsapi=ansi or unicows or unicode
1664 native MinGW libgcj Win32 OS API (default is ansi)
1665 --without-libffi don't use libffi
1666 --with-ecos enable runtime eCos target support
1667 --with-system-zlib use installed libz
1668 --with-x use the X Window System
1669 --with-gnu-ld assume the C compiler uses GNU ld default=no
1670 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1671 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1672 --with-system-libunwind use installed libunwind
1673 --with-python-dir the location to install Python modules. This path
1674 should NOT include the prefix.
1675 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1676 --with-arch-directory the arch directory under jre/lib (defaults to
1678 --with-os-directory the os directory under include (defaults to
1680 --with-origin-name the JPackage origin name of this package (default is
1682 --with-arch-suffix the arch directory suffix (default is the empty
1684 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1685 --with-jvm-jar-dir where to install jars (default is
1686 ${prefix}/lib/jvm-exports)
1688 Some influential environment variables:
1689 CC C compiler command
1690 CFLAGS C compiler flags
1691 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1692 nonstandard directory <lib dir>
1693 LIBS libraries to pass to the linker, e.g. -l<library>
1694 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1695 you have headers in a nonstandard directory <include dir>
1696 CXX C++ compiler command
1697 CXXFLAGS C++ compiler flags
1699 CXXCPP C++ preprocessor
1700 XMKMF Path to xmkmf, Makefile generator for X Window System
1702 Use these variables to override the choices made by `configure' or to help
1703 it to find libraries and programs with nonstandard names/locations.
1705 Report bugs to the package provider.
1710 if test "$ac_init_help" = "recursive"; then
1711 # If there are subdirs, report their specific --help.
1712 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1713 test -d "$ac_dir" ||
1714 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1719 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1721 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1722 # A ".." for each directory in $ac_dir_suffix.
1723 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1724 case $ac_top_builddir_sub in
1725 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1726 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1729 ac_abs_top_builddir=$ac_pwd
1730 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1731 # for backward compatibility:
1732 ac_top_builddir=$ac_top_build_prefix
1735 .) # We are building in place.
1737 ac_top_srcdir=$ac_top_builddir_sub
1738 ac_abs_top_srcdir=$ac_pwd ;;
1739 [\\/]* | ?:[\\/]* ) # Absolute name.
1740 ac_srcdir=$srcdir$ac_dir_suffix;
1741 ac_top_srcdir=$srcdir
1742 ac_abs_top_srcdir=$srcdir ;;
1744 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1745 ac_top_srcdir=$ac_top_build_prefix$srcdir
1746 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1748 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1750 cd "$ac_dir" || { ac_status=$?; continue; }
1751 # Check for guested configure.
1752 if test -f "$ac_srcdir/configure.gnu"; then
1754 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1755 elif test -f "$ac_srcdir/configure"; then
1757 $SHELL "$ac_srcdir/configure" --help=recursive
1759 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1761 cd "$ac_pwd" || { ac_status=$?; break; }
1765 test -n "$ac_init_help" && exit $ac_status
1766 if $ac_init_version; then
1768 libjava configure version-unused
1769 generated by GNU Autoconf 2.64
1771 Copyright (C) 2009 Free Software Foundation, Inc.
1772 This configure script is free software; the Free Software Foundation
1773 gives unlimited permission to copy, distribute and modify it.
1778 ## ------------------------ ##
1779 ## Autoconf initialization. ##
1780 ## ------------------------ ##
1782 # ac_fn_c_try_compile LINENO
1783 # --------------------------
1784 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1785 ac_fn_c_try_compile ()
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 rm -f conftest.$ac_objext
1789 if { { ac_try="$ac_compile"
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_compile") 2>conftest.err
1798 if test -s conftest.err; then
1799 grep -v '^ *+' conftest.err >conftest.er1
1800 cat conftest.er1 >&5
1801 mv -f conftest.er1 conftest.err
1803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1804 test $ac_status = 0; } && {
1805 test -z "$ac_c_werror_flag" ||
1806 test ! -s conftest.err
1807 } && test -s conftest.$ac_objext; then :
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1815 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1818 } # ac_fn_c_try_compile
1820 # ac_fn_cxx_try_compile LINENO
1821 # ----------------------------
1822 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1823 ac_fn_cxx_try_compile ()
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 rm -f conftest.$ac_objext
1827 if { { ac_try="$ac_compile"
1829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1830 *) ac_try_echo=$ac_try;;
1832 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1833 $as_echo "$ac_try_echo"; } >&5
1834 (eval "$ac_compile") 2>conftest.err
1836 if test -s conftest.err; then
1837 grep -v '^ *+' conftest.err >conftest.er1
1838 cat conftest.er1 >&5
1839 mv -f conftest.er1 conftest.err
1841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1842 test $ac_status = 0; } && {
1843 test -z "$ac_cxx_werror_flag" ||
1844 test ! -s conftest.err
1845 } && test -s conftest.$ac_objext; then :
1848 $as_echo "$as_me: failed program was:" >&5
1849 sed 's/^/| /' conftest.$ac_ext >&5
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856 } # ac_fn_cxx_try_compile
1858 # ac_fn_c_try_link LINENO
1859 # -----------------------
1860 # Try to link conftest.$ac_ext, and return whether this succeeded.
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 rm -f conftest.$ac_objext conftest$ac_exeext
1865 if { { ac_try="$ac_link"
1867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1868 *) ac_try_echo=$ac_try;;
1870 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1871 $as_echo "$ac_try_echo"; } >&5
1872 (eval "$ac_link") 2>conftest.err
1874 if test -s conftest.err; then
1875 grep -v '^ *+' conftest.err >conftest.er1
1876 cat conftest.er1 >&5
1877 mv -f conftest.er1 conftest.err
1879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1880 test $ac_status = 0; } && {
1881 test -z "$ac_c_werror_flag" ||
1882 test ! -s conftest.err
1883 } && test -s conftest$ac_exeext && {
1884 test "$cross_compiling" = yes ||
1885 $as_test_x conftest$ac_exeext
1889 $as_echo "$as_me: failed program was:" >&5
1890 sed 's/^/| /' conftest.$ac_ext >&5
1894 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1895 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1896 # interfere with the next link command; also delete a directory that is
1897 # left behind by Apple's compiler. We do this before executing the actions.
1898 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 } # ac_fn_c_try_link
1904 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1905 # -------------------------------------------------------
1906 # Tests whether HEADER exists and can be compiled using the include files in
1907 # INCLUDES, setting the cache variable VAR accordingly.
1908 ac_fn_c_check_header_compile ()
1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1912 $as_echo_n "checking for $2... " >&6; }
1913 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1914 $as_echo_n "(cached) " >&6
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1921 if ac_fn_c_try_compile "$LINENO"; then :
1926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1930 $as_echo "$ac_res" >&6; }
1931 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1933 } # ac_fn_c_check_header_compile
1935 # ac_fn_c_try_cpp LINENO
1936 # ----------------------
1937 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 if { { ac_try="$ac_cpp conftest.$ac_ext"
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1950 if test -s conftest.err; then
1951 grep -v '^ *+' conftest.err >conftest.er1
1952 cat conftest.er1 >&5
1953 mv -f conftest.er1 conftest.err
1955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956 test $ac_status = 0; } >/dev/null && {
1957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1958 test ! -s conftest.err
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1967 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1972 # ac_fn_c_try_run LINENO
1973 # ----------------------
1974 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1975 # that executables *can* be run.
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if { { ac_try="$ac_link"
1981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1982 *) ac_try_echo=$ac_try;;
1984 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1985 $as_echo "$ac_try_echo"; } >&5
1986 (eval "$ac_link") 2>&5
1988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1989 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1990 { { case "(($ac_try" in
1991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992 *) ac_try_echo=$ac_try;;
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996 (eval "$ac_try") 2>&5
1998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1999 test $ac_status = 0; }; }; then :
2002 $as_echo "$as_me: program exited with status $ac_status" >&5
2003 $as_echo "$as_me: failed program was:" >&5
2004 sed 's/^/| /' conftest.$ac_ext >&5
2006 ac_retval=$ac_status
2008 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2009 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2014 # ac_fn_c_check_func LINENO FUNC VAR
2015 # ----------------------------------
2016 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2017 ac_fn_c_check_func ()
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2023 $as_echo_n "(cached) " >&6
2025 if test x$gcc_no_link = xyes; then
2026 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029 /* end confdefs.h. */
2030 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2032 #define $2 innocuous_$2
2034 /* System header to define __stub macros and hopefully few prototypes,
2035 which can conflict with char $2 (); below.
2036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2037 <limits.h> exists even on freestanding compilers. */
2040 # include <limits.h>
2042 # include <assert.h>
2047 /* Override any GCC internal prototype to avoid an error.
2048 Use char because int might match the return type of a GCC
2049 builtin and then its argument prototype would still apply. */
2054 /* The GNU C library defines this for functions which it implements
2055 to always fail with ENOSYS. Some functions are actually named
2056 something starting with __ and the normal name is an alias. */
2057 #if defined __stub_$2 || defined __stub___$2
2069 if ac_fn_c_try_link "$LINENO"; then :
2074 rm -f core conftest.err conftest.$ac_objext \
2075 conftest$ac_exeext conftest.$ac_ext
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079 $as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2082 } # ac_fn_c_check_func
2084 # ac_fn_cxx_try_cpp LINENO
2085 # ------------------------
2086 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2087 ac_fn_cxx_try_cpp ()
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 if { { ac_try="$ac_cpp conftest.$ac_ext"
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2096 $as_echo "$ac_try_echo"; } >&5
2097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2099 if test -s conftest.err; then
2100 grep -v '^ *+' conftest.err >conftest.er1
2101 cat conftest.er1 >&5
2102 mv -f conftest.er1 conftest.err
2104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105 test $ac_status = 0; } >/dev/null && {
2106 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2107 test ! -s conftest.err
2111 $as_echo "$as_me: failed program was:" >&5
2112 sed 's/^/| /' conftest.$ac_ext >&5
2116 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2119 } # ac_fn_cxx_try_cpp
2121 # ac_fn_cxx_try_link LINENO
2122 # -------------------------
2123 # Try to link conftest.$ac_ext, and return whether this succeeded.
2124 ac_fn_cxx_try_link ()
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 rm -f conftest.$ac_objext conftest$ac_exeext
2128 if { { ac_try="$ac_link"
2130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2131 *) ac_try_echo=$ac_try;;
2133 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2134 $as_echo "$ac_try_echo"; } >&5
2135 (eval "$ac_link") 2>conftest.err
2137 if test -s conftest.err; then
2138 grep -v '^ *+' conftest.err >conftest.er1
2139 cat conftest.er1 >&5
2140 mv -f conftest.er1 conftest.err
2142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2143 test $ac_status = 0; } && {
2144 test -z "$ac_cxx_werror_flag" ||
2145 test ! -s conftest.err
2146 } && test -s conftest$ac_exeext && {
2147 test "$cross_compiling" = yes ||
2148 $as_test_x conftest$ac_exeext
2152 $as_echo "$as_me: failed program was:" >&5
2153 sed 's/^/| /' conftest.$ac_ext >&5
2157 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2158 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2159 # interfere with the next link command; also delete a directory that is
2160 # left behind by Apple's compiler. We do this before executing the actions.
2161 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2162 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2165 } # ac_fn_cxx_try_link
2167 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2168 # -------------------------------------------------------
2169 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2170 # the include files in INCLUDES and setting the cache variable VAR
2172 ac_fn_c_check_header_mongrel ()
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2175 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2177 $as_echo_n "checking for $2... " >&6; }
2178 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2179 $as_echo_n "(cached) " >&6
2182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2183 $as_echo "$ac_res" >&6; }
2185 # Is the header compilable?
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2187 $as_echo_n "checking $2 usability... " >&6; }
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2193 if ac_fn_c_try_compile "$LINENO"; then :
2194 ac_header_compiler=yes
2196 ac_header_compiler=no
2198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2200 $as_echo "$ac_header_compiler" >&6; }
2202 # Is the header present?
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2204 $as_echo_n "checking $2 presence... " >&6; }
2205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2206 /* end confdefs.h. */
2209 if ac_fn_c_try_cpp "$LINENO"; then :
2210 ac_header_preproc=yes
2212 ac_header_preproc=no
2214 rm -f conftest.err conftest.$ac_ext
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2216 $as_echo "$ac_header_preproc" >&6; }
2218 # So? What about this header?
2219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2222 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2224 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2228 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2230 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2232 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2234 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2236 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2240 $as_echo_n "checking for $2... " >&6; }
2241 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2242 $as_echo_n "(cached) " >&6
2244 eval "$3=\$ac_header_compiler"
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2248 $as_echo "$ac_res" >&6; }
2250 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2252 } # ac_fn_c_check_header_mongrel
2254 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2255 # ----------------------------------------------------
2256 # Tries to find if the field MEMBER exists in type AGGR, after including
2257 # INCLUDES, setting cache variable VAR accordingly.
2258 ac_fn_c_check_member ()
2260 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2262 $as_echo_n "checking for $2.$3... " >&6; }
2263 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2264 $as_echo_n "(cached) " >&6
2266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2267 /* end confdefs.h. */
2279 if ac_fn_c_try_compile "$LINENO"; then :
2282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2283 /* end confdefs.h. */
2289 if (sizeof ac_aggr.$3)
2295 if ac_fn_c_try_compile "$LINENO"; then :
2300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2306 $as_echo "$ac_res" >&6; }
2307 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2309 } # ac_fn_c_check_member
2311 # ac_fn_c_check_decl LINENO SYMBOL VAR
2312 # ------------------------------------
2313 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2314 ac_fn_c_check_decl ()
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2318 $as_echo_n "checking whether $2 is declared... " >&6; }
2319 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2320 $as_echo_n "(cached) " >&6
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323 /* end confdefs.h. */
2336 if ac_fn_c_try_compile "$LINENO"; then :
2341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2345 $as_echo "$ac_res" >&6; }
2346 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2348 } # ac_fn_c_check_decl
2350 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2351 # --------------------------------------------
2352 # Tries to find the compile-time value of EXPR in a program that includes
2353 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2355 ac_fn_c_compute_int ()
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 if test "$cross_compiling" = yes; then
2359 # Depending upon the size, compute the lo and hi bounds.
2360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2361 /* end confdefs.h. */
2366 static int test_array [1 - 2 * !(($2) >= 0)];
2373 if ac_fn_c_try_compile "$LINENO"; then :
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2377 /* end confdefs.h. */
2382 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2389 if ac_fn_c_try_compile "$LINENO"; then :
2390 ac_hi=$ac_mid; break
2392 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2393 if test $ac_lo -le $ac_mid; then
2397 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2408 static int test_array [1 - 2 * !(($2) < 0)];
2415 if ac_fn_c_try_compile "$LINENO"; then :
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2424 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2431 if ac_fn_c_try_compile "$LINENO"; then :
2432 ac_lo=$ac_mid; break
2434 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2435 if test $ac_mid -le $ac_hi; then
2439 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2449 # Binary search between lo and hi bounds.
2450 while test "x$ac_lo" != "x$ac_hi"; do
2451 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2453 /* end confdefs.h. */
2458 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2465 if ac_fn_c_try_compile "$LINENO"; then :
2468 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2473 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h. */
2480 static long int longval () { return $2; }
2481 static unsigned long int ulongval () { return $2; }
2488 FILE *f = fopen ("conftest.val", "w");
2493 long int i = longval ();
2496 fprintf (f, "%ld", i);
2500 unsigned long int i = ulongval ();
2503 fprintf (f, "%lu", i);
2505 /* Do not output a trailing newline, as this causes \r\n confusion
2506 on some platforms. */
2507 return ferror (f) || fclose (f) != 0;
2513 if ac_fn_c_try_run "$LINENO"; then :
2514 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2518 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2519 conftest.$ac_objext conftest.beam conftest.$ac_ext
2523 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2526 } # ac_fn_c_compute_int
2528 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2529 # -------------------------------------------
2530 # Tests whether TYPE exists after having included INCLUDES, setting cache
2531 # variable VAR accordingly.
2532 ac_fn_c_check_type ()
2534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2536 $as_echo_n "checking for $2... " >&6; }
2537 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2538 $as_echo_n "(cached) " >&6
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2553 if ac_fn_c_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2566 if ac_fn_c_try_compile "$LINENO"; then :
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2577 $as_echo "$ac_res" >&6; }
2578 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2580 } # ac_fn_c_check_type
2581 cat >config.log <<_ACEOF
2582 This file contains any messages produced by compilers while
2583 running configure, to aid debugging if configure makes a mistake.
2585 It was created by libjava $as_me version-unused, which was
2586 generated by GNU Autoconf 2.64. Invocation command line was
2598 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2599 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2600 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2601 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2602 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2604 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2605 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2607 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2608 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2609 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2610 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2611 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2612 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2613 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2621 test -z "$as_dir" && as_dir=.
2622 $as_echo "PATH: $as_dir"
2638 # Keep a trace of the command line.
2639 # Strip out --no-create and --no-recursion so they do not pile up.
2640 # Strip out --silent because we don't want to record it for future runs.
2641 # Also quote any args containing shell meta-characters.
2642 # Make two passes to allow for proper duplicate-argument suppression.
2646 ac_must_keep_next=false
2652 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2653 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2654 | -silent | --silent | --silen | --sile | --sil)
2657 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2660 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2662 as_fn_append ac_configure_args1 " '$ac_arg'"
2663 if test $ac_must_keep_next = true; then
2664 ac_must_keep_next=false # Got value, back to normal.
2667 *=* | --config-cache | -C | -disable-* | --disable-* \
2668 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2669 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2670 | -with-* | --with-* | -without-* | --without-* | --x)
2671 case "$ac_configure_args0 " in
2672 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2675 -* ) ac_must_keep_next=true ;;
2678 as_fn_append ac_configure_args " '$ac_arg'"
2683 { ac_configure_args0=; unset ac_configure_args0;}
2684 { ac_configure_args1=; unset ac_configure_args1;}
2686 # When interrupted or exit'd, cleanup temporary files, and complete
2687 # config.log. We remove comments because anyway the quotes in there
2688 # would cause problems or look ugly.
2689 # WARNING: Use '\'' to represent an apostrophe within the trap.
2690 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2691 trap 'exit_status=$?
2692 # Save into config.log some information that might help in debugging.
2697 ## ---------------- ##
2698 ## Cache variables. ##
2699 ## ---------------- ##
2702 # The following way of writing the cache mishandles newlines in values,
2704 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2705 eval ac_val=\$$ac_var
2709 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2710 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2713 _ | IFS | as_nl) ;; #(
2714 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2715 *) { eval $ac_var=; unset $ac_var;} ;;
2720 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2721 *${as_nl}ac_space=\ *)
2723 "s/'\''/'\''\\\\'\'''\''/g;
2724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2735 ## ----------------- ##
2736 ## Output variables. ##
2737 ## ----------------- ##
2740 for ac_var in $ac_subst_vars
2742 eval ac_val=\$$ac_var
2744 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2746 $as_echo "$ac_var='\''$ac_val'\''"
2750 if test -n "$ac_subst_files"; then
2752 ## ------------------- ##
2753 ## File substitutions. ##
2754 ## ------------------- ##
2757 for ac_var in $ac_subst_files
2759 eval ac_val=\$$ac_var
2761 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2763 $as_echo "$ac_var='\''$ac_val'\''"
2768 if test -s confdefs.h; then
2778 test "$ac_signal" != 0 &&
2779 $as_echo "$as_me: caught signal $ac_signal"
2780 $as_echo "$as_me: exit $exit_status"
2782 rm -f core *.core core.conftest.* &&
2783 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2786 for ac_signal in 1 2 13 15; do
2787 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2791 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2792 rm -f -r conftest* confdefs.h
2794 $as_echo "/* confdefs.h */" > confdefs.h
2796 # Predefined preprocessor variables.
2798 cat >>confdefs.h <<_ACEOF
2799 #define PACKAGE_NAME "$PACKAGE_NAME"
2802 cat >>confdefs.h <<_ACEOF
2803 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2806 cat >>confdefs.h <<_ACEOF
2807 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2810 cat >>confdefs.h <<_ACEOF
2811 #define PACKAGE_STRING "$PACKAGE_STRING"
2814 cat >>confdefs.h <<_ACEOF
2815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2818 cat >>confdefs.h <<_ACEOF
2819 #define PACKAGE_URL "$PACKAGE_URL"
2823 # Let the site file select an alternate cache file if it wants to.
2824 # Prefer an explicitly selected file to automatically selected ones.
2827 if test -n "$CONFIG_SITE"; then
2828 ac_site_file1=$CONFIG_SITE
2829 elif test "x$prefix" != xNONE; then
2830 ac_site_file1=$prefix/share/config.site
2831 ac_site_file2=$prefix/etc/config.site
2833 ac_site_file1=$ac_default_prefix/share/config.site
2834 ac_site_file2=$ac_default_prefix/etc/config.site
2836 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2838 test "x$ac_site_file" = xNONE && continue
2839 if test -r "$ac_site_file"; then
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2841 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2842 sed 's/^/| /' "$ac_site_file" >&5
2847 if test -r "$cache_file"; then
2848 # Some versions of bash will fail to source /dev/null (special
2849 # files actually), so we avoid doing that.
2850 if test -f "$cache_file"; then
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2852 $as_echo "$as_me: loading cache $cache_file" >&6;}
2854 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2855 *) . "./$cache_file";;
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2860 $as_echo "$as_me: creating cache $cache_file" >&6;}
2864 # Check that the precious variables saved in the cache have kept the same
2866 ac_cache_corrupted=false
2867 for ac_var in $ac_precious_vars; do
2868 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2869 eval ac_new_set=\$ac_env_${ac_var}_set
2870 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2871 eval ac_new_val=\$ac_env_${ac_var}_value
2872 case $ac_old_set,$ac_new_set in
2874 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2875 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2876 ac_cache_corrupted=: ;;
2878 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2879 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2880 ac_cache_corrupted=: ;;
2883 if test "x$ac_old_val" != "x$ac_new_val"; then
2884 # differences in whitespace do not lead to failure.
2885 ac_old_val_w=`echo x $ac_old_val`
2886 ac_new_val_w=`echo x $ac_new_val`
2887 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2889 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2890 ac_cache_corrupted=:
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2893 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2894 eval $ac_var=\$ac_old_val
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2897 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2899 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2902 # Pass precious variables to config.status.
2903 if test "$ac_new_set" = set; then
2905 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2906 *) ac_arg=$ac_var=$ac_new_val ;;
2908 case " $ac_configure_args " in
2909 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2910 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2914 if $ac_cache_corrupted; then
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2916 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2918 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2919 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2921 ## -------------------- ##
2922 ## Main body of script. ##
2923 ## -------------------- ##
2926 ac_cpp='$CPP $CPPFLAGS'
2927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2940 for ac_t in install-sh install.sh shtool; do
2941 if test -f "$ac_dir/$ac_t"; then
2943 ac_install_sh="$ac_aux_dir/$ac_t -c"
2948 if test -z "$ac_aux_dir"; then
2949 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2952 # These three variables are undocumented and unsupported,
2953 # and are intended to be withdrawn in a future Autoconf release.
2954 # They can cause serious problems if a builder's source tree is in a directory
2955 # whose full name contains unusual characters.
2956 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2957 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2958 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2961 # Make sure we can run config.sub.
2962 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2963 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2966 $as_echo_n "checking build system type... " >&6; }
2967 if test "${ac_cv_build+set}" = set; then :
2968 $as_echo_n "(cached) " >&6
2970 ac_build_alias=$build_alias
2971 test "x$ac_build_alias" = x &&
2972 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2973 test "x$ac_build_alias" = x &&
2974 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2975 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2976 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2980 $as_echo "$ac_cv_build" >&6; }
2981 case $ac_cv_build in
2983 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2986 ac_save_IFS=$IFS; IFS='-'
2992 # Remember, the first character of IFS is used to create $*,
2993 # except with old shells:
2996 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2999 case ${build_alias} in
3000 "") build_noncanonical=${build} ;;
3001 *) build_noncanonical=${build_alias} ;;
3004 case ${host_alias} in
3005 "") host_noncanonical=${build_noncanonical} ;;
3006 *) host_noncanonical=${host_alias} ;;
3009 case ${target_alias} in
3010 "") target_noncanonical=${host_noncanonical} ;;
3011 *) target_noncanonical=${target_alias} ;;
3015 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3016 # have matching libraries, they should use host libraries: Makefile.tpl
3017 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3018 # However, they still use the build modules, because the corresponding
3019 # host modules (e.g. bison) are only built for the host when bootstrap
3021 # - build_subdir is where we find build modules, and never changes.
3022 # - build_libsubdir is where we find build libraries, and can be overridden.
3024 # Prefix 'build-' so this never conflicts with target_subdir.
3025 build_subdir="build-${build_noncanonical}"
3027 # Check whether --with-build-libsubdir was given.
3028 if test "${with_build_libsubdir+set}" = set; then :
3029 withval=$with_build_libsubdir; build_libsubdir="$withval"
3031 build_libsubdir="$build_subdir"
3034 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3035 if ( test $srcdir = . && test -d gcc ) \
3036 || test -d $srcdir/../host-${host_noncanonical}; then
3037 host_subdir="host-${host_noncanonical}"
3042 target_subdir=${target_noncanonical}
3045 # We use these options to decide which functions to include.
3047 # Check whether --with-target-subdir was given.
3048 if test "${with_target_subdir+set}" = set; then :
3049 withval=$with_target_subdir;
3053 # We may get other options which we don't document:
3054 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3056 # Find the rest of the source tree framework.
3057 # Default to --enable-multilib
3058 # Check whether --enable-multilib was given.
3059 if test "${enable_multilib+set}" = set; then :
3060 enableval=$enable_multilib; case "$enableval" in
3061 yes) multilib=yes ;;
3063 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3070 # We may get other options which we leave undocumented:
3071 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3072 # See config-ml.in if you want the gory details.
3074 if test "$srcdir" = "."; then
3075 if test "$with_target_subdir" != "."; then
3076 multi_basedir="$srcdir/$with_multisrctop../.."
3078 multi_basedir="$srcdir/$with_multisrctop.."
3081 multi_basedir="$srcdir/.."
3085 # Even if the default multilib is not a cross compilation,
3086 # it may be that some of the other multilibs are.
3087 if test $cross_compiling = no && test $multilib = yes \
3088 && test "x${with_multisubdir}" != x ; then
3089 cross_compiling=maybe
3092 ac_config_commands="$ac_config_commands default-1"
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3096 $as_echo_n "checking host system type... " >&6; }
3097 if test "${ac_cv_host+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3100 if test "x$host_alias" = x; then
3101 ac_cv_host=$ac_cv_build
3103 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3104 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3109 $as_echo "$ac_cv_host" >&6; }
3112 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3115 ac_save_IFS=$IFS; IFS='-'
3121 # Remember, the first character of IFS is used to create $*,
3122 # except with old shells:
3125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3129 $as_echo_n "checking target system type... " >&6; }
3130 if test "${ac_cv_target+set}" = set; then :
3131 $as_echo_n "(cached) " >&6
3133 if test "x$target_alias" = x; then
3134 ac_cv_target=$ac_cv_host
3136 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3137 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3142 $as_echo "$ac_cv_target" >&6; }
3143 case $ac_cv_target in
3145 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3147 target=$ac_cv_target
3148 ac_save_IFS=$IFS; IFS='-'
3154 # Remember, the first character of IFS is used to create $*,
3155 # except with old shells:
3158 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3161 # The aliases save the names the user supplied, while $host etc.
3162 # will get canonicalized.
3163 test -n "$target_alias" &&
3164 test "$program_prefix$program_suffix$program_transform_name" = \
3166 program_prefix=${target_alias}-
3168 case ${build_alias} in
3169 "") build_noncanonical=${build} ;;
3170 *) build_noncanonical=${build_alias} ;;
3173 case ${target_alias} in
3174 "") target_noncanonical=${host_noncanonical} ;;
3175 *) target_noncanonical=${target_alias} ;;
3181 # This works around the fact that libtool configuration may change LD
3182 # for this particular configuration, but some shells, instead of
3183 # keeping the changes in LD private, export them just because LD is
3185 ORIGINAL_LD_FOR_MULTILIBS=$LD
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3188 $as_echo_n "checking whether ln -s works... " >&6; }
3190 if test "$LN_S" = "ln -s"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3192 $as_echo "yes" >&6; }
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3195 $as_echo "no, using $LN_S" >&6; }
3199 # This works around an automake problem.
3200 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3204 # Check whether --with-cross-host was given.
3205 if test "${with_cross_host+set}" = set; then :
3206 withval=$with_cross_host;
3211 # Check whether --with-newlib was given.
3212 if test "${with_newlib+set}" = set; then :
3213 withval=$with_newlib;
3217 # Check whether --enable-version-specific-runtime-libs was given.
3218 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3219 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3220 yes) version_specific_libs=yes ;;
3221 no) version_specific_libs=no ;;
3222 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3225 version_specific_libs=no
3230 # Check whether --enable-browser-plugin was given.
3231 if test "${enable_browser_plugin+set}" = set; then :
3232 enableval=$enable_browser_plugin; case "$enableval" in
3233 yes) browser_plugin_enabled=yes ;;
3234 no) browser_plugin_enabled=no ;;
3235 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3238 browser_plugin_enabled=no
3243 # Check whether --enable-gconf-peer was given.
3244 if test "${enable_gconf_peer+set}" = set; then :
3245 enableval=$enable_gconf_peer; case "$enableval" in
3246 yes) gconf_enabled=yes ;;
3247 no) gconf_enabled=no ;;
3248 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3257 # Check whether --with-antlr-jar was given.
3258 if test "${with_antlr_jar+set}" = set; then :
3259 withval=$with_antlr_jar;
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3270 $as_echo_n "checking for antlr.jar... " >&6; }
3271 if test "x$ANTLR_JAR" = x; then
3272 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3273 /usr/share/antlr/lib /usr/share/java /usr/lib;
3275 if test -f "$antlr_lib_home/antlr.jar"; then
3276 # FIXME: version check for antlr needed without using a VM
3277 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3281 if test "x$ANTLR_JAR" = x; then
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3283 $as_echo "not found" >&6; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3286 $as_echo "$ANTLR_JAR" >&6; }
3289 if test -f "${ANTLR_JAR}"; then
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3291 $as_echo "$ANTLR_JAR" >&6; }
3293 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3298 # Check whether --enable-gjdoc was given.
3299 if test "${enable_gjdoc+set}" = set; then :
3300 enableval=$enable_gjdoc; case "${enableval}" in
3301 yes) BUILD_GJDOC=yes ;;
3302 no) BUILD_GJDOC=no ;;
3303 *) BUILD_GJDOC=yes ;;
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3311 $as_echo_n "checking whether to build gjdoc... " >&6; }
3312 if test "x$BUILD_GJDOC" = xmaybe; then
3313 if test -f "${ANTLR_JAR}"; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3316 $as_echo "yes" >&6; }
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3320 $as_echo "no, antlr.jar not found" >&6; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3324 $as_echo "$BUILD_GJDOC" >&6; }
3326 if test "x${BUILD_GJDOC}" = xyes; then
3328 CREATE_GJDOC_FALSE='#'
3330 CREATE_GJDOC_TRUE='#'
3335 # Check whether --enable-java-maintainer-mode was given.
3336 if test "${enable_java_maintainer_mode+set}" = set; then :
3337 enableval=$enable_java_maintainer_mode;
3340 if test "$enable_java_maintainer_mode" = yes; then
3341 JAVA_MAINTAINER_MODE_TRUE=
3342 JAVA_MAINTAINER_MODE_FALSE='#'
3344 JAVA_MAINTAINER_MODE_TRUE='#'
3345 JAVA_MAINTAINER_MODE_FALSE=
3349 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3352 # For libstdc++-v3, -fno-builtin must be present here so that a
3353 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3354 # used in later tests. This may not be necessary in libjava; I don't know.
3355 save_CXXFLAGS="$CXXFLAGS"
3356 CXXFLAGS="$CXXFLAGS -fno-builtin"
3358 ac_cpp='$CPP $CPPFLAGS'
3359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3362 if test -n "$ac_tool_prefix"; then
3363 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3364 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if test "${ac_cv_prog_CC+set}" = set; then :
3368 $as_echo_n "(cached) " >&6
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3380 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 if test -n "$CC"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 $as_echo "$CC" >&6; }
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3401 if test -z "$ac_cv_prog_CC"; then
3403 # Extract the first word of "gcc", so it can be a program name with args.
3404 set dummy gcc; ac_word=$2
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3408 $as_echo_n "(cached) " >&6
3410 if test -n "$ac_ct_CC"; then
3411 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417 test -z "$as_dir" && as_dir=.
3418 for ac_exec_ext in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_prog_ac_ct_CC="gcc"
3421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3431 if test -n "$ac_ct_CC"; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3433 $as_echo "$ac_ct_CC" >&6; }
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3439 if test "x$ac_ct_CC" = x; then
3442 case $cross_compiling:$ac_tool_warned in
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3446 ac_tool_warned=yes ;;
3454 if test -z "$CC"; then
3455 if test -n "$ac_tool_prefix"; then
3456 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3457 set dummy ${ac_tool_prefix}cc; ac_word=$2
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3459 $as_echo_n "checking for $ac_word... " >&6; }
3460 if test "${ac_cv_prog_CC+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3463 if test -n "$CC"; then
3464 ac_cv_prog_CC="$CC" # Let the user override the test.
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3470 test -z "$as_dir" && as_dir=.
3471 for ac_exec_ext in '' $ac_executable_extensions; do
3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3473 ac_cv_prog_CC="${ac_tool_prefix}cc"
3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3484 if test -n "$CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3495 if test -z "$CC"; then
3496 # Extract the first word of "cc", so it can be a program name with args.
3497 set dummy cc; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if test "${ac_cv_prog_CC+set}" = set; then :
3501 $as_echo_n "(cached) " >&6
3503 if test -n "$CC"; then
3504 ac_cv_prog_CC="$CC" # Let the user override the test.
3507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3511 test -z "$as_dir" && as_dir=.
3512 for ac_exec_ext in '' $ac_executable_extensions; do
3513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3514 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3515 ac_prog_rejected=yes
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 if test $ac_prog_rejected = yes; then
3527 # We found a bogon in the path, so make sure we never use it.
3528 set dummy $ac_cv_prog_CC
3530 if test $# != 0; then
3531 # We chose a different compiler from the bogus one.
3532 # However, it has the same basename, so the bogon will be chosen
3533 # first if we set CC to just the basename; use the full file name.
3535 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3541 if test -n "$CC"; then
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3543 $as_echo "$CC" >&6; }
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3546 $as_echo "no" >&6; }
3551 if test -z "$CC"; then
3552 if test -n "$ac_tool_prefix"; then
3553 for ac_prog in cl.exe
3555 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3556 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3558 $as_echo_n "checking for $ac_word... " >&6; }
3559 if test "${ac_cv_prog_CC+set}" = set; then :
3560 $as_echo_n "(cached) " >&6
3562 if test -n "$CC"; then
3563 ac_cv_prog_CC="$CC" # Let the user override the test.
3565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3569 test -z "$as_dir" && as_dir=.
3570 for ac_exec_ext in '' $ac_executable_extensions; do
3571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3572 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 if test -n "$CC"; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3585 $as_echo "$CC" >&6; }
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3588 $as_echo "no" >&6; }
3592 test -n "$CC" && break
3595 if test -z "$CC"; then
3597 for ac_prog in cl.exe
3599 # Extract the first word of "$ac_prog", so it can be a program name with args.
3600 set dummy $ac_prog; ac_word=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3604 $as_echo_n "(cached) " >&6
3606 if test -n "$ac_ct_CC"; then
3607 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3613 test -z "$as_dir" && as_dir=.
3614 for ac_exec_ext in '' $ac_executable_extensions; do
3615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3616 ac_cv_prog_ac_ct_CC="$ac_prog"
3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3626 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3627 if test -n "$ac_ct_CC"; then
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3629 $as_echo "$ac_ct_CC" >&6; }
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3632 $as_echo "no" >&6; }
3636 test -n "$ac_ct_CC" && break
3639 if test "x$ac_ct_CC" = x; then
3642 case $cross_compiling:$ac_tool_warned in
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3646 ac_tool_warned=yes ;;
3655 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 as_fn_error "no acceptable C compiler found in \$PATH
3658 See \`config.log' for more details." "$LINENO" 5; }
3660 # Provide some information about the compiler.
3661 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3664 for ac_option in --version -v -V -qversion; do
3665 { { ac_try="$ac_compiler $ac_option >&5"
3667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3668 *) ac_try_echo=$ac_try;;
3670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3671 $as_echo "$ac_try_echo"; } >&5
3672 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3674 if test -s conftest.err; then
3676 ... rest of stderr output deleted ...
3677 10q' conftest.err >conftest.er1
3678 cat conftest.er1 >&5
3679 rm -f conftest.er1 conftest.err
3681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3682 test $ac_status = 0; }
3685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3686 /* end confdefs.h. */
3697 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3698 (eval $ac_link) 2>&5
3700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3701 test $ac_status = 0; }; then :
3706 if test x$gcc_no_link = xyes; then
3707 # Setting cross_compile will disable run tests; it will
3708 # also disable AC_CHECK_FILE but that's generally
3709 # correct if we can't link.
3713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3714 /* end confdefs.h. */
3724 ac_clean_files_save=$ac_clean_files
3725 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3726 # Try to create an executable without -o first, disregard a.out.
3727 # It will help us diagnose broken compilers, and finding out an intuition
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3730 $as_echo_n "checking for C compiler default output file name... " >&6; }
3731 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3733 # The possible output files:
3734 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3737 for ac_file in $ac_files
3740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3741 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3746 if { { ac_try="$ac_link_default"
3748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3749 *) ac_try_echo=$ac_try;;
3751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753 (eval "$ac_link_default") 2>&5
3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756 test $ac_status = 0; }; then :
3757 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3758 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3759 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3760 # so that the user can short-circuit this test for compilers unknown to
3762 for ac_file in $ac_files ''
3764 test -f "$ac_file" || continue
3766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3769 # We found the default executable, but exeext='' is most
3773 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3775 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3777 # We set ac_cv_exeext here because the later test for it is not
3778 # safe: cross compilers may not add the suffix if given an `-o'
3779 # argument, so we may need to know it at that point already.
3780 # Even if this section looks crufty: it has the advantage of
3787 test "$ac_cv_exeext" = no && ac_cv_exeext=
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3793 $as_echo "$ac_file" >&6; }
3794 if test -z "$ac_file"; then :
3795 $as_echo "$as_me: failed program was:" >&5
3796 sed 's/^/| /' conftest.$ac_ext >&5
3798 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3799 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3800 { as_fn_set_status 77
3801 as_fn_error "C compiler cannot create executables
3802 See \`config.log' for more details." "$LINENO" 5; }; }
3804 ac_exeext=$ac_cv_exeext
3806 # Check that the compiler produces executables we can run. If not, either
3807 # the compiler is broken, or we cross compile.
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3809 $as_echo_n "checking whether the C compiler works... " >&6; }
3810 # If not cross compiling, check that we can run a simple program.
3811 if test "$cross_compiling" != yes; then
3812 if { ac_try='./$ac_file'
3813 { { case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818 $as_echo "$ac_try_echo"; } >&5
3819 (eval "$ac_try") 2>&5
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }; }; then
3825 if test "$cross_compiling" = maybe; then
3828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error "cannot run C compiled programs.
3831 If you meant to cross compile, use \`--host'.
3832 See \`config.log' for more details." "$LINENO" 5; }
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3837 $as_echo "yes" >&6; }
3839 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3840 ac_clean_files=$ac_clean_files_save
3841 # Check that the compiler produces executables we can run. If not, either
3842 # the compiler is broken, or we cross compile.
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3844 $as_echo_n "checking whether we are cross compiling... " >&6; }
3845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3846 $as_echo "$cross_compiling" >&6; }
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3849 $as_echo_n "checking for suffix of executables... " >&6; }
3850 if { { ac_try="$ac_link"
3852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3853 *) ac_try_echo=$ac_try;;
3855 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3856 $as_echo "$ac_try_echo"; } >&5
3857 (eval "$ac_link") 2>&5
3859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3860 test $ac_status = 0; }; then :
3861 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3862 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3863 # work properly (i.e., refer to `conftest.exe'), while it won't with
3865 for ac_file in conftest.exe conftest conftest.*; do
3866 test -f "$ac_file" || continue
3868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3869 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3877 as_fn_error "cannot compute suffix of executables: cannot compile and link
3878 See \`config.log' for more details." "$LINENO" 5; }
3880 rm -f conftest$ac_cv_exeext
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3882 $as_echo "$ac_cv_exeext" >&6; }
3884 rm -f conftest.$ac_ext
3885 EXEEXT=$ac_cv_exeext
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3889 $as_echo_n "checking for suffix of object files... " >&6; }
3890 if test "${ac_cv_objext+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 /* end confdefs.h. */
3904 rm -f conftest.o conftest.obj
3905 if { { ac_try="$ac_compile"
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3911 $as_echo "$ac_try_echo"; } >&5
3912 (eval "$ac_compile") 2>&5
3914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3915 test $ac_status = 0; }; then :
3916 for ac_file in conftest.o conftest.obj conftest.*; do
3917 test -f "$ac_file" || continue;
3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3920 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3925 $as_echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3929 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3930 as_fn_error "cannot compute suffix of object files: cannot compile
3931 See \`config.log' for more details." "$LINENO" 5; }
3933 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3936 $as_echo "$ac_cv_objext" >&6; }
3937 OBJEXT=$ac_cv_objext
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3940 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3941 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3942 $as_echo_n "(cached) " >&6
3944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h. */
3958 if ac_fn_c_try_compile "$LINENO"; then :
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3968 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3969 if test $ac_compiler_gnu = yes; then
3974 ac_test_CFLAGS=${CFLAGS+set}
3975 ac_save_CFLAGS=$CFLAGS
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3977 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3978 if test "${ac_cv_prog_cc_g+set}" = set; then :
3979 $as_echo_n "(cached) " >&6
3981 ac_save_c_werror_flag=$ac_c_werror_flag
3982 ac_c_werror_flag=yes
3985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3986 /* end confdefs.h. */
3996 if ac_fn_c_try_compile "$LINENO"; then :
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4011 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_c_werror_flag=$ac_save_c_werror_flag
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4027 if ac_fn_c_try_compile "$LINENO"; then :
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4035 ac_c_werror_flag=$ac_save_c_werror_flag
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4038 $as_echo "$ac_cv_prog_cc_g" >&6; }
4039 if test "$ac_test_CFLAGS" = set; then
4040 CFLAGS=$ac_save_CFLAGS
4041 elif test $ac_cv_prog_cc_g = yes; then
4042 if test "$GCC" = yes; then
4048 if test "$GCC" = yes; then
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4055 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4056 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
4059 ac_cv_prog_cc_c89=no
4061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4062 /* end confdefs.h. */
4065 #include <sys/types.h>
4066 #include <sys/stat.h>
4067 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4068 struct buf { int x; };
4069 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4070 static char *e (p, i)
4076 static char *f (char * (*g) (char **, int), char **p, ...)
4081 s = g (p, va_arg (v,int));
4086 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4087 function prototypes and stuff, but not '\xHH' hex character constants.
4088 These don't provoke an error unfortunately, instead are silently treated
4089 as 'x'. The following induces an error, until -std is added to get
4090 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4091 array size at least. It's necessary to write '\x00'==0 to get something
4092 that's true only with -std. */
4093 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4095 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4096 inside strings and character constants. */
4098 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4100 int test (int i, double x);
4101 struct s1 {int (*f) (int a);};
4102 struct s2 {int (*f) (double a);};
4103 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4109 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4114 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4115 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4117 CC="$ac_save_CC $ac_arg"
4118 if ac_fn_c_try_compile "$LINENO"; then :
4119 ac_cv_prog_cc_c89=$ac_arg
4121 rm -f core conftest.err conftest.$ac_objext
4122 test "x$ac_cv_prog_cc_c89" != "xno" && break
4124 rm -f conftest.$ac_ext
4129 case "x$ac_cv_prog_cc_c89" in
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4132 $as_echo "none needed" >&6; } ;;
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4135 $as_echo "unsupported" >&6; } ;;
4137 CC="$CC $ac_cv_prog_cc_c89"
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4139 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4141 if test "x$ac_cv_prog_cc_c89" != xno; then :
4146 ac_cpp='$CPP $CPPFLAGS'
4147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152 ac_cpp='$CXXCPP $CPPFLAGS'
4153 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4156 if test -z "$CXX"; then
4157 if test -n "$CCC"; then
4160 if test -n "$ac_tool_prefix"; then
4161 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4166 $as_echo_n "checking for $ac_word... " >&6; }
4167 if test "${ac_cv_prog_CXX+set}" = set; then :
4168 $as_echo_n "(cached) " >&6
4170 if test -n "$CXX"; then
4171 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177 test -z "$as_dir" && as_dir=.
4178 for ac_exec_ext in '' $ac_executable_extensions; do
4179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4180 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191 if test -n "$CXX"; then
4192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4193 $as_echo "$CXX" >&6; }
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4196 $as_echo "no" >&6; }
4200 test -n "$CXX" && break
4203 if test -z "$CXX"; then
4205 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4207 # Extract the first word of "$ac_prog", so it can be a program name with args.
4208 set dummy $ac_prog; ac_word=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4212 $as_echo_n "(cached) " >&6
4214 if test -n "$ac_ct_CXX"; then
4215 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4221 test -z "$as_dir" && as_dir=.
4222 for ac_exec_ext in '' $ac_executable_extensions; do
4223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4224 ac_cv_prog_ac_ct_CXX="$ac_prog"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4235 if test -n "$ac_ct_CXX"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4237 $as_echo "$ac_ct_CXX" >&6; }
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4244 test -n "$ac_ct_CXX" && break
4247 if test "x$ac_ct_CXX" = x; then
4250 case $cross_compiling:$ac_tool_warned in
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4254 ac_tool_warned=yes ;;
4262 # Provide some information about the compiler.
4263 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4266 for ac_option in --version -v -V -qversion; do
4267 { { ac_try="$ac_compiler $ac_option >&5"
4269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4270 *) ac_try_echo=$ac_try;;
4272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4273 $as_echo "$ac_try_echo"; } >&5
4274 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4276 if test -s conftest.err; then
4278 ... rest of stderr output deleted ...
4279 10q' conftest.err >conftest.er1
4280 cat conftest.er1 >&5
4281 rm -f conftest.er1 conftest.err
4283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284 test $ac_status = 0; }
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4288 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4289 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4290 $as_echo_n "(cached) " >&6
4292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4293 /* end confdefs.h. */
4306 if ac_fn_cxx_try_compile "$LINENO"; then :
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4316 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4317 if test $ac_compiler_gnu = yes; then
4322 ac_test_CXXFLAGS=${CXXFLAGS+set}
4323 ac_save_CXXFLAGS=$CXXFLAGS
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4325 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4326 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4327 $as_echo_n "(cached) " >&6
4329 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4330 ac_cxx_werror_flag=yes
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4344 if ac_fn_cxx_try_compile "$LINENO"; then :
4345 ac_cv_prog_cxx_g=yes
4348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4349 /* end confdefs.h. */
4359 if ac_fn_cxx_try_compile "$LINENO"; then :
4362 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4375 if ac_fn_cxx_try_compile "$LINENO"; then :
4376 ac_cv_prog_cxx_g=yes
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4383 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4386 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4387 if test "$ac_test_CXXFLAGS" = set; then
4388 CXXFLAGS=$ac_save_CXXFLAGS
4389 elif test $ac_cv_prog_cxx_g = yes; then
4390 if test "$GXX" = yes; then
4396 if test "$GXX" = yes; then
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4408 CXXFLAGS="$save_CXXFLAGS"
4410 am__api_version='1.11'
4412 # Find a good install program. We prefer a C program (faster),
4413 # so one script is as good as another. But avoid the broken or
4414 # incompatible versions:
4415 # SysV /etc/install, /usr/sbin/install
4416 # SunOS /usr/etc/install
4417 # IRIX /sbin/install
4419 # AmigaOS /C/install, which installs bootblocks on floppy discs
4420 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4421 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4422 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4423 # OS/2's system install, which has a completely different semantic
4424 # ./install, which can be erroneously created by make from ./install.sh.
4425 # Reject install programs that cannot install multiple files.
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4427 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4428 if test -z "$INSTALL"; then
4429 if test "${ac_cv_path_install+set}" = set; then :
4430 $as_echo_n "(cached) " >&6
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 # Account for people who put trailing slashes in PATH elements.
4438 case $as_dir/ in #((
4439 ./ | .// | /[cC]/* | \
4440 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4441 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4444 # OSF1 and SCO ODT 3.0 have their own names for install.
4445 # Don't use installbsd from OSF since it installs stuff as root
4447 for ac_prog in ginstall scoinst install; do
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4450 if test $ac_prog = install &&
4451 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4452 # AIX install. It has an incompatible calling convention.
4454 elif test $ac_prog = install &&
4455 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4456 # program-specific install script used by HP pwplus--don't use.
4459 rm -rf conftest.one conftest.two conftest.dir
4460 echo one > conftest.one
4461 echo two > conftest.two
4463 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4464 test -s conftest.one && test -s conftest.two &&
4465 test -s conftest.dir/conftest.one &&
4466 test -s conftest.dir/conftest.two
4468 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4481 rm -rf conftest.one conftest.two conftest.dir
4484 if test "${ac_cv_path_install+set}" = set; then
4485 INSTALL=$ac_cv_path_install
4487 # As a last resort, use the slow shell script. Don't cache a
4488 # value for INSTALL within a source directory, because that will
4489 # break other packages using the cache if that directory is
4490 # removed, or if the value is a relative name.
4491 INSTALL=$ac_install_sh
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4495 $as_echo "$INSTALL" >&6; }
4497 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4498 # It thinks the first close brace ends the variable substitution.
4499 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4501 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4503 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4506 $as_echo_n "checking whether build environment is sane... " >&6; }
4509 echo timestamp > conftest.file
4510 # Reject unsafe characters in $srcdir or the absolute working directory
4511 # name. Accept space and tab only in the latter.
4515 *[\\\"\#\$\&\'\`$am_lf]*)
4516 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4519 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4520 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4523 # Do `set' in a subshell so we don't clobber the current shell's
4524 # arguments. Must try -L first in case configure is actually a
4525 # symlink; some systems play weird games with the mod time of symlinks
4526 # (eg FreeBSD returns the mod time of the symlink's containing
4529 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4530 if test "$*" = "X"; then
4532 set X `ls -t "$srcdir/configure" conftest.file`
4535 if test "$*" != "X $srcdir/configure conftest.file" \
4536 && test "$*" != "X conftest.file $srcdir/configure"; then
4538 # If neither matched, then we have a broken ls. This can happen
4539 # if, for instance, CONFIG_SHELL is bash and it inherits a
4540 # broken ls alias from the environment. This has actually
4541 # happened. Such a system could not be considered "sane".
4542 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4543 alias in your environment" "$LINENO" 5
4546 test "$2" = conftest.file
4552 as_fn_error "newly created file is older than distributed files!
4553 Check your system clock" "$LINENO" 5
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4556 $as_echo "yes" >&6; }
4557 test "$program_prefix" != NONE &&
4558 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4559 # Use a double $ so make ignores it.
4560 test "$program_suffix" != NONE &&
4561 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4562 # Double any \ or $.
4563 # By default was `s,x,x', remove it if useless.
4564 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4565 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4567 # expand $ac_aux_dir to an absolute path
4568 am_aux_dir=`cd $ac_aux_dir && pwd`
4570 if test x"${MISSING+set}" != xset; then
4573 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4575 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4578 # Use eval to expand $SHELL
4579 if eval "$MISSING --run true"; then
4580 am_missing_run="$MISSING --run "
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4584 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4587 if test x"${install_sh}" != xset; then
4590 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4592 install_sh="\${SHELL} $am_aux_dir/install-sh"
4596 # Installed binaries are usually stripped using `strip' when the user
4597 # run `make install-strip'. However `strip' might not be the right
4598 # tool to use in cross-compilation environments, therefore Automake
4599 # will honor the `STRIP' environment variable to overrule this program.
4600 if test "$cross_compiling" != no; then
4601 if test -n "$ac_tool_prefix"; then
4602 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4603 set dummy ${ac_tool_prefix}strip; ac_word=$2
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4605 $as_echo_n "checking for $ac_word... " >&6; }
4606 if test "${ac_cv_prog_STRIP+set}" = set; then :
4607 $as_echo_n "(cached) " >&6
4609 if test -n "$STRIP"; then
4610 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4619 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 STRIP=$ac_cv_prog_STRIP
4630 if test -n "$STRIP"; then
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4632 $as_echo "$STRIP" >&6; }
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4635 $as_echo "no" >&6; }
4640 if test -z "$ac_cv_prog_STRIP"; then
4642 # Extract the first word of "strip", so it can be a program name with args.
4643 set dummy strip; ac_word=$2
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4645 $as_echo_n "checking for $ac_word... " >&6; }
4646 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4649 if test -n "$ac_ct_STRIP"; then
4650 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 test -z "$as_dir" && as_dir=.
4657 for ac_exec_ext in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4659 ac_cv_prog_ac_ct_STRIP="strip"
4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4669 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4670 if test -n "$ac_ct_STRIP"; then
4671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4672 $as_echo "$ac_ct_STRIP" >&6; }
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4675 $as_echo "no" >&6; }
4678 if test "x$ac_ct_STRIP" = x; then
4681 case $cross_compiling:$ac_tool_warned in
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4684 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4685 ac_tool_warned=yes ;;
4690 STRIP="$ac_cv_prog_STRIP"
4694 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4697 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4698 if test -z "$MKDIR_P"; then
4699 if test "${ac_cv_path_mkdir+set}" = set; then :
4700 $as_echo_n "(cached) " >&6
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4706 test -z "$as_dir" && as_dir=.
4707 for ac_prog in mkdir gmkdir; do
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4710 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4711 'mkdir (GNU coreutils) '* | \
4712 'mkdir (coreutils) '* | \
4713 'mkdir (fileutils) '4.1*)
4714 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4724 if test "${ac_cv_path_mkdir+set}" = set; then
4725 MKDIR_P="$ac_cv_path_mkdir -p"
4727 # As a last resort, use the slow shell script. Don't cache a
4728 # value for MKDIR_P within a source directory, because that will
4729 # break other packages using the cache if that directory is
4730 # removed, or if the value is a relative name.
4731 test -d ./--version && rmdir ./--version
4732 MKDIR_P="$ac_install_sh -d"
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4736 $as_echo "$MKDIR_P" >&6; }
4740 [\\/$]* | ?:[\\/]*) ;;
4741 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4744 for ac_prog in gawk mawk nawk awk
4746 # Extract the first word of "$ac_prog", so it can be a program name with args.
4747 set dummy $ac_prog; ac_word=$2
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4749 $as_echo_n "checking for $ac_word... " >&6; }
4750 if test "${ac_cv_prog_AWK+set}" = set; then :
4751 $as_echo_n "(cached) " >&6
4753 if test -n "$AWK"; then
4754 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4760 test -z "$as_dir" && as_dir=.
4761 for ac_exec_ext in '' $ac_executable_extensions; do
4762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4763 ac_cv_prog_AWK="$ac_prog"
4764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4774 if test -n "$AWK"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4776 $as_echo "$AWK" >&6; }
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4779 $as_echo "no" >&6; }
4783 test -n "$AWK" && break
4786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4787 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4789 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4790 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4791 $as_echo_n "(cached) " >&6
4793 cat >conftest.make <<\_ACEOF
4796 @echo '@@@%%%=$(MAKE)=@@@%%%'
4798 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4799 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4801 eval ac_cv_prog_make_${ac_make}_set=yes;;
4803 eval ac_cv_prog_make_${ac_make}_set=no;;
4807 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4809 $as_echo "yes" >&6; }
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813 $as_echo "no" >&6; }
4814 SET_MAKE="MAKE=${MAKE-make}"
4817 rm -rf .tst 2>/dev/null
4818 mkdir .tst 2>/dev/null
4819 if test -d .tst; then
4824 rmdir .tst 2>/dev/null
4826 DEPDIR="${am__leading_dot}deps"
4828 ac_config_commands="$ac_config_commands depfiles"
4831 am_make=${MAKE-make}
4832 cat > confinc << 'END'
4834 @echo this is the am__doit target
4837 # If we don't find an include directive, just comment out the code.
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4839 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4843 # First try GNU make style include.
4844 echo "include confinc" > confmf
4845 # Ignore all kinds of additional output from `make'.
4846 case `$am_make -s -f confmf 2> /dev/null` in #(
4847 *the\ am__doit\ target*)
4853 # Now try BSD make style include.
4854 if test "$am__include" = "#"; then
4855 echo '.include "confinc"' > confmf
4856 case `$am_make -s -f confmf 2> /dev/null` in #(
4857 *the\ am__doit\ target*)
4858 am__include=.include
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4867 $as_echo "$_am_result" >&6; }
4868 rm -f confinc confmf
4870 # Check whether --enable-dependency-tracking was given.
4871 if test "${enable_dependency_tracking+set}" = set; then :
4872 enableval=$enable_dependency_tracking;
4875 if test "x$enable_dependency_tracking" != xno; then
4876 am_depcomp="$ac_aux_dir/depcomp"
4879 if test "x$enable_dependency_tracking" != xno; then
4888 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4889 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4890 # is not polluted with repeated "-I."
4891 am__isrc=' -I$(srcdir)'
4892 # test to see if srcdir already configured
4893 if test -f $srcdir/config.status; then
4894 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4898 # test whether we have cygpath
4899 if test -z "$CYGPATH_W"; then
4900 if (cygpath --version) >/dev/null 2>/dev/null; then
4901 CYGPATH_W='cygpath -w'
4908 # Define the identity of the package.
4910 VERSION='version-unused'
4913 cat >>confdefs.h <<_ACEOF
4914 #define PACKAGE "$PACKAGE"
4918 cat >>confdefs.h <<_ACEOF
4919 #define VERSION "$VERSION"
4922 # Some tools Automake needs.
4924 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4927 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4930 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4933 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4936 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4938 # We need awk for the "check" target. The system "awk" is bad on
4940 # Always define AMTAR for backward compatibility.
4942 AMTAR=${AMTAR-"${am_missing_run}tar"}
4944 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4949 depcc="$CC" am_compiler_list=
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4952 $as_echo_n "checking dependency style of $depcc... " >&6; }
4953 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4954 $as_echo_n "(cached) " >&6
4956 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4957 # We make a subdir and do the tests there. Otherwise we can end up
4958 # making bogus files that we don't know about and never remove. For
4959 # instance it was reported that on HP-UX the gcc test will end up
4960 # making a dummy file named `D' -- because `-MD' means `put the output
4963 # Copy depcomp to subdir because otherwise we won't find it if we're
4964 # using a relative directory.
4965 cp "$am_depcomp" conftest.dir
4967 # We will build objects and dependencies in a subdirectory because
4968 # it helps to detect inapplicable dependency modes. For instance
4969 # both Tru64's cc and ICC support -MD to output dependencies as a
4970 # side effect of compilation, but ICC will put the dependencies in
4971 # the current directory while Tru64 will put them in the object
4975 am_cv_CC_dependencies_compiler_type=none
4976 if test "$am_compiler_list" = ""; then
4977 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4980 case " $depcc " in #(
4981 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4984 for depmode in $am_compiler_list; do
4985 # Setup a source with many dependencies, because some compilers
4986 # like to wrap large dependency lists on column 80 (with \), and
4987 # we should not choose a depcomp mode which is confused by this.
4989 # We need to recreate these files for each test, as the compiler may
4990 # overwrite some of them when testing with obscure command lines.
4991 # This happens at least with the AIX C compiler.
4993 for i in 1 2 3 4 5 6; do
4994 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4995 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4996 # Solaris 8's {/usr,}/bin/sh.
4997 touch sub/conftst$i.h
4999 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5001 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5002 # mode. It turns out that the SunPro C++ compiler does not properly
5003 # handle `-M -o', and we need to detect this. Also, some Intel
5004 # versions had trouble with output in subdirs
5005 am__obj=sub/conftest.${OBJEXT-o}
5006 am__minus_obj="-o $am__obj"
5009 # This depmode causes a compiler race in universal mode.
5010 test "$am__universal" = false || continue
5013 # after this tag, mechanisms are not by side-effect, so they'll
5014 # only be used when explicitly requested
5015 if test "x$enable_dependency_tracking" = xyes; then
5021 msvisualcpp | msvcmsys)
5022 # This compiler won't grok `-c -o', but also, the minuso test has
5023 # not run yet. These depmodes are late enough in the game, and
5024 # so weak that their functioning should not be impacted.
5025 am__obj=conftest.${OBJEXT-o}
5030 if depmode=$depmode \
5031 source=sub/conftest.c object=$am__obj \
5032 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5033 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5034 >/dev/null 2>conftest.err &&
5035 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5036 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5037 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5038 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5039 # icc doesn't choke on unknown options, it will just issue warnings
5040 # or remarks (even with -Werror). So we grep stderr for any message
5041 # that says an option was ignored or not supported.
5042 # When given -MP, icc 7.0 and 7.1 complain thusly:
5043 # icc: Command line warning: ignoring option '-M'; no argument required
5044 # The diagnosis changed in icc 8.0:
5045 # icc: Command line remark: option '-MP' not supported
5046 if (grep 'ignoring option' conftest.err ||
5047 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5048 am_cv_CC_dependencies_compiler_type=$depmode
5057 am_cv_CC_dependencies_compiler_type=none
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5062 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5063 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5066 test "x$enable_dependency_tracking" != xno \
5067 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5069 am__fastdepCC_FALSE='#'
5071 am__fastdepCC_TRUE='#'
5072 am__fastdepCC_FALSE=
5076 depcc="$CXX" am_compiler_list=
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5079 $as_echo_n "checking dependency style of $depcc... " >&6; }
5080 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5081 $as_echo_n "(cached) " >&6
5083 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5084 # We make a subdir and do the tests there. Otherwise we can end up
5085 # making bogus files that we don't know about and never remove. For
5086 # instance it was reported that on HP-UX the gcc test will end up
5087 # making a dummy file named `D' -- because `-MD' means `put the output
5090 # Copy depcomp to subdir because otherwise we won't find it if we're
5091 # using a relative directory.
5092 cp "$am_depcomp" conftest.dir
5094 # We will build objects and dependencies in a subdirectory because
5095 # it helps to detect inapplicable dependency modes. For instance
5096 # both Tru64's cc and ICC support -MD to output dependencies as a
5097 # side effect of compilation, but ICC will put the dependencies in
5098 # the current directory while Tru64 will put them in the object
5102 am_cv_CXX_dependencies_compiler_type=none
5103 if test "$am_compiler_list" = ""; then
5104 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5107 case " $depcc " in #(
5108 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5111 for depmode in $am_compiler_list; do
5112 # Setup a source with many dependencies, because some compilers
5113 # like to wrap large dependency lists on column 80 (with \), and
5114 # we should not choose a depcomp mode which is confused by this.
5116 # We need to recreate these files for each test, as the compiler may
5117 # overwrite some of them when testing with obscure command lines.
5118 # This happens at least with the AIX C compiler.
5120 for i in 1 2 3 4 5 6; do
5121 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5122 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5123 # Solaris 8's {/usr,}/bin/sh.
5124 touch sub/conftst$i.h
5126 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5128 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5129 # mode. It turns out that the SunPro C++ compiler does not properly
5130 # handle `-M -o', and we need to detect this. Also, some Intel
5131 # versions had trouble with output in subdirs
5132 am__obj=sub/conftest.${OBJEXT-o}
5133 am__minus_obj="-o $am__obj"
5136 # This depmode causes a compiler race in universal mode.
5137 test "$am__universal" = false || continue
5140 # after this tag, mechanisms are not by side-effect, so they'll
5141 # only be used when explicitly requested
5142 if test "x$enable_dependency_tracking" = xyes; then
5148 msvisualcpp | msvcmsys)
5149 # This compiler won't grok `-c -o', but also, the minuso test has
5150 # not run yet. These depmodes are late enough in the game, and
5151 # so weak that their functioning should not be impacted.
5152 am__obj=conftest.${OBJEXT-o}
5157 if depmode=$depmode \
5158 source=sub/conftest.c object=$am__obj \
5159 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5160 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5161 >/dev/null 2>conftest.err &&
5162 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5163 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5164 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5165 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5166 # icc doesn't choke on unknown options, it will just issue warnings
5167 # or remarks (even with -Werror). So we grep stderr for any message
5168 # that says an option was ignored or not supported.
5169 # When given -MP, icc 7.0 and 7.1 complain thusly:
5170 # icc: Command line warning: ignoring option '-M'; no argument required
5171 # The diagnosis changed in icc 8.0:
5172 # icc: Command line remark: option '-MP' not supported
5173 if (grep 'ignoring option' conftest.err ||
5174 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5175 am_cv_CXX_dependencies_compiler_type=$depmode
5184 am_cv_CXX_dependencies_compiler_type=none
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5189 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5190 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5193 test "x$enable_dependency_tracking" != xno \
5194 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5195 am__fastdepCXX_TRUE=
5196 am__fastdepCXX_FALSE='#'
5198 am__fastdepCXX_TRUE='#'
5199 am__fastdepCXX_FALSE=
5205 if test -n "$ac_tool_prefix"; then
5206 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5207 set dummy ${ac_tool_prefix}as; ac_word=$2
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5209 $as_echo_n "checking for $ac_word... " >&6; }
5210 if test "${ac_cv_prog_AS+set}" = set; then :
5211 $as_echo_n "(cached) " >&6
5213 if test -n "$AS"; then
5214 ac_cv_prog_AS="$AS" # Let the user override the test.
5216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir=.
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_prog_AS="${ac_tool_prefix}as"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 if test -n "$AS"; then
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5236 $as_echo "$AS" >&6; }
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5239 $as_echo "no" >&6; }
5244 if test -z "$ac_cv_prog_AS"; then
5246 # Extract the first word of "as", so it can be a program name with args.
5247 set dummy as; ac_word=$2
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5249 $as_echo_n "checking for $ac_word... " >&6; }
5250 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5253 if test -n "$ac_ct_AS"; then
5254 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_prog_ac_ct_AS="as"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5274 if test -n "$ac_ct_AS"; then
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5276 $as_echo "$ac_ct_AS" >&6; }
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5279 $as_echo "no" >&6; }
5282 if test "x$ac_ct_AS" = x; then
5285 case $cross_compiling:$ac_tool_warned in
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5289 ac_tool_warned=yes ;;
5297 if test -n "$ac_tool_prefix"; then
5298 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5299 set dummy ${ac_tool_prefix}ld; ac_word=$2
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5301 $as_echo_n "checking for $ac_word... " >&6; }
5302 if test "${ac_cv_prog_LD+set}" = set; then :
5303 $as_echo_n "(cached) " >&6
5305 if test -n "$LD"; then
5306 ac_cv_prog_LD="$LD" # Let the user override the test.
5308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5312 test -z "$as_dir" && as_dir=.
5313 for ac_exec_ext in '' $ac_executable_extensions; do
5314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5315 ac_cv_prog_LD="${ac_tool_prefix}ld"
5316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 if test -n "$LD"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5328 $as_echo "$LD" >&6; }
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5336 if test -z "$ac_cv_prog_LD"; then
5338 # Extract the first word of "ld", so it can be a program name with args.
5339 set dummy ld; ac_word=$2
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5341 $as_echo_n "checking for $ac_word... " >&6; }
5342 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5343 $as_echo_n "(cached) " >&6
5345 if test -n "$ac_ct_LD"; then
5346 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5352 test -z "$as_dir" && as_dir=.
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5355 ac_cv_prog_ac_ct_LD="ld"
5356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5365 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5366 if test -n "$ac_ct_LD"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5368 $as_echo "$ac_ct_LD" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5374 if test "x$ac_ct_LD" = x; then
5377 case $cross_compiling:$ac_tool_warned in
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381 ac_tool_warned=yes ;;
5389 if test -n "$ac_tool_prefix"; then
5390 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5391 set dummy ${ac_tool_prefix}ar; ac_word=$2
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5393 $as_echo_n "checking for $ac_word... " >&6; }
5394 if test "${ac_cv_prog_AR+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5397 if test -n "$AR"; then
5398 ac_cv_prog_AR="$AR" # Let the user override the test.
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 test -z "$as_dir" && as_dir=.
5405 for ac_exec_ext in '' $ac_executable_extensions; do
5406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5407 ac_cv_prog_AR="${ac_tool_prefix}ar"
5408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418 if test -n "$AR"; then
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5420 $as_echo "$AR" >&6; }
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5423 $as_echo "no" >&6; }
5428 if test -z "$ac_cv_prog_AR"; then
5430 # Extract the first word of "ar", so it can be a program name with args.
5431 set dummy ar; ac_word=$2
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5433 $as_echo_n "checking for $ac_word... " >&6; }
5434 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5435 $as_echo_n "(cached) " >&6
5437 if test -n "$ac_ct_AR"; then
5438 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444 test -z "$as_dir" && as_dir=.
5445 for ac_exec_ext in '' $ac_executable_extensions; do
5446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5447 ac_cv_prog_ac_ct_AR="ar"
5448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5457 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5458 if test -n "$ac_ct_AR"; then
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5460 $as_echo "$ac_ct_AR" >&6; }
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5463 $as_echo "no" >&6; }
5466 if test "x$ac_ct_AR" = x; then
5469 case $cross_compiling:$ac_tool_warned in
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5472 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5473 ac_tool_warned=yes ;;
5481 if test -n "$ac_tool_prefix"; then
5482 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5483 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5485 $as_echo_n "checking for $ac_word... " >&6; }
5486 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5487 $as_echo_n "(cached) " >&6
5489 if test -n "$RANLIB"; then
5490 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496 test -z "$as_dir" && as_dir=.
5497 for ac_exec_ext in '' $ac_executable_extensions; do
5498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5499 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 RANLIB=$ac_cv_prog_RANLIB
5510 if test -n "$RANLIB"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5512 $as_echo "$RANLIB" >&6; }
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5515 $as_echo "no" >&6; }
5520 if test -z "$ac_cv_prog_RANLIB"; then
5521 ac_ct_RANLIB=$RANLIB
5522 # Extract the first word of "ranlib", so it can be a program name with args.
5523 set dummy ranlib; ac_word=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5527 $as_echo_n "(cached) " >&6
5529 if test -n "$ac_ct_RANLIB"; then
5530 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5536 test -z "$as_dir" && as_dir=.
5537 for ac_exec_ext in '' $ac_executable_extensions; do
5538 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5539 ac_cv_prog_ac_ct_RANLIB="ranlib"
5540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5550 if test -n "$ac_ct_RANLIB"; then
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5552 $as_echo "$ac_ct_RANLIB" >&6; }
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5555 $as_echo "no" >&6; }
5558 if test "x$ac_ct_RANLIB" = x; then
5561 case $cross_compiling:$ac_tool_warned in
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5565 ac_tool_warned=yes ;;
5567 RANLIB=$ac_ct_RANLIB
5570 RANLIB="$ac_cv_prog_RANLIB"
5573 if test -n "$ac_tool_prefix"; then
5574 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5575 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5581 if test -n "$DLLTOOL"; then
5582 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5591 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5601 DLLTOOL=$ac_cv_prog_DLLTOOL
5602 if test -n "$DLLTOOL"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5604 $as_echo "$DLLTOOL" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5612 if test -z "$ac_cv_prog_DLLTOOL"; then
5613 ac_ct_DLLTOOL=$DLLTOOL
5614 # Extract the first word of "dlltool", so it can be a program name with args.
5615 set dummy dlltool; ac_word=$2
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5617 $as_echo_n "checking for $ac_word... " >&6; }
5618 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5619 $as_echo_n "(cached) " >&6
5621 if test -n "$ac_ct_DLLTOOL"; then
5622 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5628 test -z "$as_dir" && as_dir=.
5629 for ac_exec_ext in '' $ac_executable_extensions; do
5630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5631 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5642 if test -n "$ac_ct_DLLTOOL"; then
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5644 $as_echo "$ac_ct_DLLTOOL" >&6; }
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5647 $as_echo "no" >&6; }
5650 if test "x$ac_ct_DLLTOOL" = x; then
5653 case $cross_compiling:$ac_tool_warned in
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5657 ac_tool_warned=yes ;;
5659 DLLTOOL=$ac_ct_DLLTOOL
5662 DLLTOOL="$ac_cv_prog_DLLTOOL"
5665 for ac_prog in gawk mawk nawk awk
5667 # Extract the first word of "$ac_prog", so it can be a program name with args.
5668 set dummy $ac_prog; ac_word=$2
5669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5670 $as_echo_n "checking for $ac_word... " >&6; }
5671 if test "${ac_cv_prog_AWK+set}" = set; then :
5672 $as_echo_n "(cached) " >&6
5674 if test -n "$AWK"; then
5675 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5681 test -z "$as_dir" && as_dir=.
5682 for ac_exec_ext in '' $ac_executable_extensions; do
5683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5684 ac_cv_prog_AWK="$ac_prog"
5685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5695 if test -n "$AWK"; then
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5697 $as_echo "$AWK" >&6; }
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5700 $as_echo "no" >&6; }
5704 test -n "$AWK" && break
5707 for ac_prog in jar fastjar gjar
5709 # Extract the first word of "$ac_prog", so it can be a program name with args.
5710 set dummy $ac_prog; ac_word=$2
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5712 $as_echo_n "checking for $ac_word... " >&6; }
5713 if test "${ac_cv_prog_JAR+set}" = set; then :
5714 $as_echo_n "(cached) " >&6
5716 if test -n "$JAR"; then
5717 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 test -z "$as_dir" && as_dir=.
5724 for ac_exec_ext in '' $ac_executable_extensions; do
5725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5726 ac_cv_prog_JAR="$ac_prog"
5727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5737 if test -n "$JAR"; then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5739 $as_echo "$JAR" >&6; }
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5742 $as_echo "no" >&6; }
5746 test -n "$JAR" && break
5748 test -n "$JAR" || JAR="no"
5750 # Extract the first word of "zip", so it can be a program name with args.
5751 set dummy zip; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if test "${ac_cv_path_ZIP+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5759 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5777 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5782 if test -n "$ZIP"; then
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5784 $as_echo "$ZIP" >&6; }
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5787 $as_echo "no" >&6; }
5791 # Extract the first word of "unzip", so it can be a program name with args.
5792 set dummy unzip; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if test "${ac_cv_path_UNZIP+set}" = set; then :
5796 $as_echo_n "(cached) " >&6
5800 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 test -z "$as_dir" && as_dir=.
5808 for ac_exec_ext in '' $ac_executable_extensions; do
5809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5810 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5822 UNZIP=$ac_cv_path_UNZIP
5823 if test -n "$UNZIP"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5825 $as_echo "$UNZIP" >&6; }
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5833 # We need a jar that supports -@. This is a GNU extension.
5834 if test "$JAR" != no; then
5835 rm -f config-test.jar
5836 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5837 if test -f config-test.jar; then
5838 rm -f config-test.jar
5844 # Prefer the jar we found, but fall back to our jar script.
5845 if test "$JAR" = no; then
5846 if test "$ZIP" = no; then
5847 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5849 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5850 JAR=`pwd`/scripts/jar
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5858 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5859 # Check whether --enable-maintainer-mode was given.
5860 if test "${enable_maintainer_mode+set}" = set; then :
5861 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5863 USE_MAINTAINER_MODE=no
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5867 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5868 if test $USE_MAINTAINER_MODE = yes; then
5869 MAINTAINER_MODE_TRUE=
5870 MAINTAINER_MODE_FALSE='#'
5872 MAINTAINER_MODE_TRUE='#'
5873 MAINTAINER_MODE_FALSE=
5876 MAINT=$MAINTAINER_MODE_TRUE
5882 # configure.host sets the following important variables
5883 # libgcj_cflags - host specific C compiler flags
5884 # libgcj_cxxflags - host specific C++ compiler flags
5885 # libgcj_javaflags - host specific Java compiler flags
5886 # libgcj_sublib_ltflags - host specific Libtool flags
5887 # libgcj_sublib_core_extra_deps - host specific extra
5888 # dependencies for core sublib
5889 # (these last two only used when building sublibs)
5890 # and a number of others; see the list at the start of the file.
5895 libgcj_sublib_ltflags=
5896 libgcj_sublib_core_extra_deps=
5898 . ${srcdir}/configure.host
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5901 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5902 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5903 $as_echo_n "(cached) " >&6
5905 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5906 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5907 acl_cv_prog_gnu_ld=yes
5909 acl_cv_prog_gnu_ld=no
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5913 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5914 with_gnu_ld=$acl_cv_prog_gnu_ld
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5917 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5918 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5919 $as_echo_n "(cached) " >&6
5922 acl_cv_prog_gnu_ld_symbolic=no
5924 if test x"$with_gnu_ld" = x"yes"; then
5925 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5926 acl_cv_prog_gnu_ld_symbolic=yes
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5931 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5932 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5933 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5938 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5939 if test -z "$libgcj_ld_symbolic"; then
5940 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5943 LIBGCJ_CFLAGS="${libgcj_cflags}"
5944 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5945 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5946 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5947 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5948 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5949 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5958 # Only use libltdl for non-newlib builds.
5959 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5961 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5963 libname_spec='lib$name'
5971 shlibpath_overrides_runpath=unknown
5973 dynamic_linker="$host_os ld.so"
5974 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5975 if test "$GCC" = yes; then
5976 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5977 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5978 # if the path contains ";" then we assume it to be the separator
5979 # otherwise default to the standard path separator (i.e. ":") - it is
5980 # assumed that no part of a normal pathname contains ";" but that should
5981 # okay in the real world where ";" in dirpaths is itself problematic.
5982 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5984 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5987 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5989 need_lib_prefix=unknown
5990 hardcode_into_libs=no
5992 # when you set need_version to no, make sure it does not cause -set_version
5993 # flags to be left without arguments
5994 need_version=unknown
5999 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6000 shlibpath_var=LIBPATH
6002 # AIX 3 has no versioning support, so we append a major version to the name.
6003 soname_spec='${libname}${release}${shared_ext}$major'
6010 hardcode_into_libs=yes
6011 if test "$host_cpu" = ia64; then
6012 # AIX 5 supports IA64
6013 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6014 shlibpath_var=LD_LIBRARY_PATH
6016 # With GCC up to 2.95.x, collect2 would create an import file
6017 # for dependence libraries. The import file would start with
6018 # the line `#! .'. This would cause the generated library to
6019 # depend on `.', always an invalid library. This was fixed in
6020 # development snapshots of GCC prior to 3.0.
6022 aix4 | aix4.[01] | aix4.[01].*)
6023 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6025 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6032 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6033 # soname into executable. Probably we can add versioning support to
6034 # collect2, so additional links can be useful in future.
6035 if test "$aix_use_runtimelinking" = yes; then
6036 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6037 # instead of lib<name>.a to let people know that these are not
6038 # typical AIX shared libraries.
6039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6041 # We preserve .a as extension for shared libraries through AIX4.2
6042 # and later when we are not doing run time linking.
6043 library_names_spec='${libname}${release}.a $libname.a'
6044 soname_spec='${libname}${release}${shared_ext}$major'
6046 shlibpath_var=LIBPATH
6051 library_names_spec='$libname.ixlibrary $libname.a'
6052 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6053 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'
6057 library_names_spec='${libname}${shared_ext}'
6058 dynamic_linker="$host_os ld.so"
6059 shlibpath_var=LIBRARY_PATH
6065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6066 soname_spec='${libname}${release}${shared_ext}$major'
6067 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6068 shlibpath_var=LD_LIBRARY_PATH
6069 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6070 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6071 # the default ld.so.conf also contains /usr/contrib/lib and
6072 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6073 # libtool to hard-code these into programs
6076 cygwin* | mingw* | pw32*)
6077 version_type=windows
6082 case $GCC,$host_os in
6083 yes,cygwin* | yes,mingw* | yes,pw32*)
6084 library_names_spec='$libname.dll.a'
6085 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6086 postinstall_cmds='base_file=`basename \${file}`~
6087 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6088 dldir=$destdir/`dirname \$dlpath`~
6089 test -d \$dldir || mkdir -p \$dldir~
6090 $install_prog $dir/$dlname \$dldir/$dlname'
6091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6092 dlpath=$dir/\$dldll~
6094 shlibpath_overrides_runpath=yes
6098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6099 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6100 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6103 # MinGW DLLs use traditional 'lib' prefix
6104 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6105 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6106 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6107 # It is most probably a Windows format PATH printed by
6108 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6109 # path with ; separators, and with drive letters. We can handle the
6110 # drive letters (cygwin fileutils understands them), so leave them,
6111 # especially as we might pass files found there to a mingw objdump,
6112 # which wouldn't understand a cygwinified path. Ahh.
6113 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6115 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6119 # pw32 DLLs use 'pw' prefix rather than 'lib'
6120 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6126 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6129 dynamic_linker='Win32 ld.exe'
6130 # FIXME: first we should search . and the directory the executable is in
6134 darwin* | rhapsody*)
6135 dynamic_linker="$host_os dyld"
6139 # FIXME: Relying on posixy $() will cause problems for
6140 # cross-compilation, but unfortunately the echo tests do not
6141 # yet detect zsh echo's removal of \ escapes.
6142 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6143 soname_spec='${libname}${release}${major}$shared_ext'
6144 shlibpath_overrides_runpath=yes
6145 shlibpath_var=DYLD_LIBRARY_PATH
6146 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6147 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6148 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6149 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
6151 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6159 soname_spec='${libname}${release}${shared_ext}$major'
6160 shlibpath_var=LD_LIBRARY_PATH
6168 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6169 version_type=freebsd-$objformat
6170 case $version_type in
6172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6177 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6181 shlibpath_var=LD_LIBRARY_PATH
6184 shlibpath_overrides_runpath=yes
6186 freebsd3.01* | freebsdelf3.01*)
6187 shlibpath_overrides_runpath=yes
6188 hardcode_into_libs=yes
6191 shlibpath_overrides_runpath=no
6192 hardcode_into_libs=yes
6201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6202 soname_spec='${libname}${release}${shared_ext}$major'
6203 shlibpath_var=LD_LIBRARY_PATH
6204 hardcode_into_libs=yes
6207 hpux9* | hpux10* | hpux11*)
6208 # Give a soname corresponding to the major version so that dld.sl refuses to
6209 # link against other versions.
6216 hardcode_into_libs=yes
6217 dynamic_linker="$host_os dld.so"
6218 shlibpath_var=LD_LIBRARY_PATH
6219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6221 soname_spec='${libname}${release}${shared_ext}$major'
6222 if test "X$HPUX_IA64_MODE" = X32; then
6223 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6225 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6227 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6231 hardcode_into_libs=yes
6232 dynamic_linker="$host_os dld.sl"
6233 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6234 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6236 soname_spec='${libname}${release}${shared_ext}$major'
6237 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6242 dynamic_linker="$host_os dld.sl"
6243 shlibpath_var=SHLIB_PATH
6244 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6246 soname_spec='${libname}${release}${shared_ext}$major'
6249 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6250 postinstall_cmds='chmod 555 $lib'
6253 irix5* | irix6* | nonstopux*)
6255 nonstopux*) version_type=nonstopux ;;
6257 if test "$lt_cv_prog_gnu_ld" = yes; then
6265 soname_spec='${libname}${release}${shared_ext}$major'
6266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6268 irix5* | nonstopux*)
6272 case $LD in # libtool.m4 will add one of these switches to LD
6273 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6274 libsuff= shlibsuff= libmagic=32-bit;;
6275 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6276 libsuff=32 shlibsuff=N32 libmagic=N32;;
6277 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6278 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6279 *) libsuff= shlibsuff= libmagic=never-match;;
6283 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6284 shlibpath_overrides_runpath=no
6285 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6286 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6287 hardcode_into_libs=yes
6290 # No shared lib support for Linux oldld, aout, or coff.
6291 linux*oldld* | linux*aout* | linux*coff*)
6295 # This must be Linux ELF.
6300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6301 soname_spec='${libname}${release}${shared_ext}$major'
6302 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6303 shlibpath_var=LD_LIBRARY_PATH
6304 shlibpath_overrides_runpath=no
6305 # This implies no fast_install, which is unacceptable.
6306 # Some rework will be needed to allow for fast_install
6307 # before this can be enabled.
6308 hardcode_into_libs=yes
6310 # We used to test for /lib/ld.so.1 and disable shared libraries on
6311 # powerpc, because MkLinux only supported shared libraries with the
6312 # GNU dynamic linker. Since this was broken with cross compilers,
6313 # most powerpc-linux boxes support dynamic linking these days and
6314 # people can always --disable-shared, the test was removed, and we
6315 # assume the GNU/Linux dynamic linker is in use.
6316 dynamic_linker='GNU/Linux ld.so'
6323 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6325 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6326 dynamic_linker='NetBSD (a.out) ld.so'
6328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6329 soname_spec='${libname}${release}${shared_ext}$major'
6330 dynamic_linker='NetBSD ld.elf_so'
6332 shlibpath_var=LD_LIBRARY_PATH
6333 shlibpath_overrides_runpath=yes
6334 hardcode_into_libs=yes
6339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6340 shlibpath_var=LD_LIBRARY_PATH
6341 shlibpath_overrides_runpath=yes
6348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6349 soname_spec='${libname}${release}${shared_ext}$major'
6350 shlibpath_var=LD_LIBRARY_PATH
6351 shlibpath_overrides_runpath=yes
6358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6359 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6360 shlibpath_var=LD_LIBRARY_PATH
6361 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6363 openbsd2.[89] | openbsd2.[89].*)
6364 shlibpath_overrides_runpath=no
6367 shlibpath_overrides_runpath=yes
6371 shlibpath_overrides_runpath=yes
6376 libname_spec='$name'
6379 library_names_spec='$libname${shared_ext} $libname.a'
6380 dynamic_linker='OS/2 ld.exe'
6381 shlibpath_var=LIBPATH
6384 osf3* | osf4* | osf5*)
6388 soname_spec='${libname}${release}${shared_ext}$major'
6389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6390 shlibpath_var=LD_LIBRARY_PATH
6391 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6392 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6397 soname_spec='${libname}${release}${shared_ext}$major'
6398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6399 shlibpath_var=LD_LIBRARY_PATH
6406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6407 soname_spec='${libname}${release}${shared_ext}$major'
6408 shlibpath_var=LD_LIBRARY_PATH
6409 shlibpath_overrides_runpath=yes
6410 hardcode_into_libs=yes
6411 # ldd complains unless libraries are executable
6412 postinstall_cmds='chmod +x $lib'
6417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6418 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6419 shlibpath_var=LD_LIBRARY_PATH
6420 shlibpath_overrides_runpath=yes
6421 if test "$with_gnu_ld" = yes; then
6427 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6430 soname_spec='${libname}${release}${shared_ext}$major'
6431 shlibpath_var=LD_LIBRARY_PATH
6432 case $host_vendor in
6434 shlibpath_overrides_runpath=no
6436 export_dynamic_flag_spec='${wl}-Blargedynsym'
6437 runpath_var=LD_RUN_PATH
6445 shlibpath_overrides_runpath=no
6446 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6452 if test -d /usr/nec ;then
6454 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6455 soname_spec='$libname${shared_ext}.$major'
6456 shlibpath_var=LD_LIBRARY_PATH
6462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6463 soname_spec='${libname}${release}${shared_ext}$major'
6464 shlibpath_var=LD_LIBRARY_PATH
6471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6472 $as_echo "$dynamic_linker" >&6; }
6473 test "$dynamic_linker" = no && can_build_shared=no
6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6477 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6478 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6479 $as_echo_n "(cached) " >&6
6481 libltdl_cv_shlibpath_var="$shlibpath_var"
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6484 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6485 if test -n "$libltdl_cv_shlibpath_var"; then
6487 cat >>confdefs.h <<_ACEOF
6488 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6495 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6498 # Possibly build libgcj as many sub-libraries.
6499 # Check whether --enable-libgcj-sublibs was given.
6500 if test "${enable_libgcj_sublibs+set}" = set; then :
6501 enableval=$enable_libgcj_sublibs;
6505 if test -z "$enable_libgcj_sublibs"; then
6506 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6508 if test "$enable_libgcj_sublibs" = yes; then
6510 BUILD_SUBLIBS_FALSE='#'
6512 BUILD_SUBLIBS_TRUE='#'
6513 BUILD_SUBLIBS_FALSE=
6516 if test "$enable_libgcj_sublibs" = yes ; then
6517 # In theory we could make do with only one override and simply
6518 # tag "_bc" onto the end of it when we use it to generate the
6519 # spec, but that's an ugly thing to do when there are multiple
6520 # words in the string and you're relying on the ordering to
6521 # append the correct one.
6522 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6523 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6527 # See if the user has requested runtime debugging.
6528 LIBGCJDEBUG="disable"
6530 # Check whether --enable-libgcj-debug was given.
6531 if test "${enable_libgcj_debug+set}" = set; then :
6532 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6534 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6536 LIBGCJDEBUG="enable"
6542 # Check whether --with-escher was given.
6543 if test "${with_escher+set}" = set; then :
6544 withval=$with_escher;
6547 case "$with_escher" in
6555 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6562 # Determine which AWT peer libraries to build
6563 # Check whether --enable-java-awt was given.
6564 if test "${enable_java_awt+set}" = set; then :
6565 enableval=$enable_java_awt;
6569 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6574 # The default toolkit to use is the first one specified.
6578 for peer in $peerlibs ; do
6581 if test "$no_x" = yes; then
6582 echo "*** xlib peers requested but no X library available" 1>&2
6586 if test -z "$TOOLKIT"; then
6587 TOOLKIT=gnu.awt.xlib.XToolkit
6592 if test "$no_x" = yes; then
6593 echo "*** gtk peers requested but no X library available" 1>&2
6597 if test -z "$TOOLKIT"; then
6598 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6603 if test "$no_x" = yes; then
6604 # Perhaps we should admit the possibility of embedded Qt.
6605 echo "*** Qt peers requested but no X library available" 1>&2
6609 if test -z "$TOOLKIT"; then
6610 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6616 if test -z "$TOOLKIT"; then
6617 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6628 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6633 if test "$use_xlib_awt" = yes; then
6641 if test "$use_x_awt" = yes; then
6651 cat >>confdefs.h <<_ACEOF
6652 #define AWT_TOOLKIT "$TOOLKIT"
6656 expanded_prefix=$prefix
6657 if test "X$prefix" = XNONE; then
6658 expanded_prefix=${ac_default_prefix}
6662 cat >>confdefs.h <<_ACEOF
6663 #define LIBGCJ_PREFIX "$expanded_prefix"
6667 # Create standard.omit based on decisions we just made.
6668 cp $srcdir/standard.omit.in standard.omit
6669 if test "$use_xlib_awt" != yes; then
6670 echo gnu/awt/xlib >> standard.omit
6671 echo gnu/gcj/xlib >> standard.omit
6673 if test "$use_x_awt" != yes; then
6674 echo gnu/java/awt/peer/x >> standard.omit
6677 # Tools that need to be compiled against classpath's tools classes
6678 : > vm-tools-packages
6679 for package in gnu/gcj/tools/gc_analyze ; do
6680 echo $package >> standard.omit
6681 echo $package >> vm-tools-packages
6684 if test -z "${with_multisubdir}"; then
6687 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6692 # Which gcj and host gcj (for ecjx) do we use?
6694 host_exeext=${ac_exeext}
6696 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6697 if test -n "${with_cross_host}"; then
6698 # We are being configured with a cross compiler. We can't
6699 # use ac_exeext, because that is for the target platform.
6702 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6703 case "${with_cross_host}" in
6705 cross_host_exeext=.exe
6708 host_exeext=${cross_host_exeext}
6709 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6710 if test x"$build_noncanonical" = x"$with_cross_host"; then
6711 # Ordinary cross (host!=target and host=build)
6714 # Canadian cross (host!=target and host!=build)
6721 # We are being configured with a native or crossed-native compiler
6722 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6723 if test x"$build" = x"$host"; then
6724 # True native build (host=target and host=build)
6727 # Crossed-native build (host=target and host!=build)
6734 libgcjdir=`${PWDCMD-pwd}`
6737 # Just in case there is a comma in the build dir, quote it for the
6738 # sed command below.
6740 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6741 *) qlibgcjdir=$libgcjdir;;
6743 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6746 GCJ=$GCJ" -B$libgcjdir/"
6749 case "${which_gcj}" in
6751 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6754 if test "x${with_newlib}" = "xyes"; then
6755 # FIXME (comment): Why is this needed?
6758 GCJH='$(target_noncanonical)-gcjh'
6771 # Create it, so that compile/link tests don't fail
6772 test -f libgcj.spec || touch libgcj.spec
6776 # Set up to configure Classpath.
6777 # FIXME: no supported way to pass args in autoconf.
6778 # Disable tool wrappers to avoid ltdl.h configure check.
6779 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6780 ac_configure_args="$ac_configure_args --disable-load-library"
6781 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6782 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6783 dir1=`cd $srcdir && pwd`
6785 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6786 ac_configure_args="$ac_configure_args --disable-core-jni"
6787 ac_configure_args="$ac_configure_args --disable-examples"
6788 ac_configure_args="$ac_configure_args --with-glibj=build"
6789 if test "$browser_plugin_enabled" != yes; then
6790 ac_configure_args="$ac_configure_args --disable-plugin"
6792 ac_configure_args="$ac_configure_args --enable-plugin"
6794 if test "$gconf_enabled" != yes; then
6795 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6796 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6798 if test "$use_gtk_awt" != yes; then
6799 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6801 if test "$use_qt_awt" != yes; then
6802 ac_configure_args="$ac_configure_args --disable-qt-peer"
6804 # We need this as qt is disabled by default in classpath.
6805 ac_configure_args="$ac_configure_args --enable-qt-peer"
6807 if test "$use_x_awt" != yes; then
6808 ac_configure_args="$ac_configure_args --without-escher"
6810 # We need this as escher is disabled by default in classpath.
6811 if test "$use_escher" != true; then
6812 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6814 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6817 if test "x$BUILD_GJDOC" = xno; then
6818 ac_configure_args="$ac_configure_args --disable-gjdoc"
6820 # -Werror causes unavoidable problems in code using alsa.
6821 ac_configure_args="$ac_configure_args --disable-regen-headers"
6822 ac_configure_args="$ac_configure_args --disable-Werror"
6824 # Only use libltdl for non-newlib builds.
6825 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6826 case $enable_ltdl_convenience in
6827 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6828 "") enable_ltdl_convenience=yes
6829 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6831 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6832 LTDLINCL='-I${top_srcdir}/''libltdl'
6833 # For backwards non-gettext consistent compatibility...
6842 $as_echo "#define USE_LTDL 1" >>confdefs.h
6844 # Sigh. Libtool's macro doesn't do the right thing.
6845 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6846 # FIXME: this is a hack.
6847 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6848 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6856 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6861 macro_version='2.2.7a'
6862 macro_revision='1.3134'
6876 ltmain="$ac_aux_dir/ltmain.sh"
6878 # Backslashify metacharacters that are still active within
6879 # double-quoted strings.
6880 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6882 # Same as above, but do not quote variable references.
6883 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6885 # Sed substitution to delay expansion of an escaped shell variable in a
6886 # double_quote_subst'ed string.
6887 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6889 # Sed substitution to delay expansion of an escaped single quote.
6890 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6892 # Sed substitution to avoid accidental globbing in evaled expressions
6893 no_glob_subst='s/\*/\\\*/g'
6895 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6896 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6897 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6900 $as_echo_n "checking how to print strings... " >&6; }
6901 # Test print first, because it will be a builtin if present.
6902 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6903 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6905 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6908 # Use this function as a fallback that always works.
6909 func_fallback_echo ()
6911 eval 'cat <<_LTECHO_EOF
6915 ECHO='func_fallback_echo'
6918 # func_echo_all arg...
6919 # Invoke $ECHO with all args, space-separated.
6926 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6927 $as_echo "printf" >&6; } ;;
6928 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6929 $as_echo "print -r" >&6; } ;;
6930 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6931 $as_echo "cat" >&6; } ;;
6947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6948 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6949 if test "${ac_cv_path_SED+set}" = set; then :
6950 $as_echo_n "(cached) " >&6
6952 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6953 for ac_i in 1 2 3 4 5 6 7; do
6954 ac_script="$ac_script$as_nl$ac_script"
6956 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6957 { ac_script=; unset ac_script;}
6958 if test -z "$SED"; then
6959 ac_path_SED_found=false
6960 # Loop through the user's path and test for each of PROGNAME-LIST
6961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6965 test -z "$as_dir" && as_dir=.
6966 for ac_prog in sed gsed; do
6967 for ac_exec_ext in '' $ac_executable_extensions; do
6968 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6969 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6970 # Check for GNU ac_path_SED and select it if it is found.
6971 # Check for GNU $ac_path_SED
6972 case `"$ac_path_SED" --version 2>&1` in
6974 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6977 $as_echo_n 0123456789 >"conftest.in"
6980 cat "conftest.in" "conftest.in" >"conftest.tmp"
6981 mv "conftest.tmp" "conftest.in"
6982 cp "conftest.in" "conftest.nl"
6983 $as_echo '' >> "conftest.nl"
6984 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6985 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6986 as_fn_arith $ac_count + 1 && ac_count=$as_val
6987 if test $ac_count -gt ${ac_path_SED_max-0}; then
6988 # Best one so far, save it but keep looking for a better one
6989 ac_cv_path_SED="$ac_path_SED"
6990 ac_path_SED_max=$ac_count
6992 # 10*(2^10) chars as input seems more than enough
6993 test $ac_count -gt 10 && break
6995 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6998 $ac_path_SED_found && break 3
7003 if test -z "$ac_cv_path_SED"; then
7004 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7012 $as_echo "$ac_cv_path_SED" >&6; }
7013 SED="$ac_cv_path_SED"
7016 test -z "$SED" && SED=sed
7017 Xsed="$SED -e 1s/^X//"
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7030 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7031 if test "${ac_cv_path_GREP+set}" = set; then :
7032 $as_echo_n "(cached) " >&6
7034 if test -z "$GREP"; then
7035 ac_path_GREP_found=false
7036 # Loop through the user's path and test for each of PROGNAME-LIST
7037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7038 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7041 test -z "$as_dir" && as_dir=.
7042 for ac_prog in grep ggrep; do
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7045 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7046 # Check for GNU ac_path_GREP and select it if it is found.
7047 # Check for GNU $ac_path_GREP
7048 case `"$ac_path_GREP" --version 2>&1` in
7050 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7053 $as_echo_n 0123456789 >"conftest.in"
7056 cat "conftest.in" "conftest.in" >"conftest.tmp"
7057 mv "conftest.tmp" "conftest.in"
7058 cp "conftest.in" "conftest.nl"
7059 $as_echo 'GREP' >> "conftest.nl"
7060 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7061 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7062 as_fn_arith $ac_count + 1 && ac_count=$as_val
7063 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7064 # Best one so far, save it but keep looking for a better one
7065 ac_cv_path_GREP="$ac_path_GREP"
7066 ac_path_GREP_max=$ac_count
7068 # 10*(2^10) chars as input seems more than enough
7069 test $ac_count -gt 10 && break
7071 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7074 $ac_path_GREP_found && break 3
7079 if test -z "$ac_cv_path_GREP"; then
7080 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7083 ac_cv_path_GREP=$GREP
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7088 $as_echo "$ac_cv_path_GREP" >&6; }
7089 GREP="$ac_cv_path_GREP"
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7093 $as_echo_n "checking for egrep... " >&6; }
7094 if test "${ac_cv_path_EGREP+set}" = set; then :
7095 $as_echo_n "(cached) " >&6
7097 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7098 then ac_cv_path_EGREP="$GREP -E"
7100 if test -z "$EGREP"; then
7101 ac_path_EGREP_found=false
7102 # Loop through the user's path and test for each of PROGNAME-LIST
7103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7107 test -z "$as_dir" && as_dir=.
7108 for ac_prog in egrep; do
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7111 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7112 # Check for GNU ac_path_EGREP and select it if it is found.
7113 # Check for GNU $ac_path_EGREP
7114 case `"$ac_path_EGREP" --version 2>&1` in
7116 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7119 $as_echo_n 0123456789 >"conftest.in"
7122 cat "conftest.in" "conftest.in" >"conftest.tmp"
7123 mv "conftest.tmp" "conftest.in"
7124 cp "conftest.in" "conftest.nl"
7125 $as_echo 'EGREP' >> "conftest.nl"
7126 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7128 as_fn_arith $ac_count + 1 && ac_count=$as_val
7129 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7130 # Best one so far, save it but keep looking for a better one
7131 ac_cv_path_EGREP="$ac_path_EGREP"
7132 ac_path_EGREP_max=$ac_count
7134 # 10*(2^10) chars as input seems more than enough
7135 test $ac_count -gt 10 && break
7137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7140 $ac_path_EGREP_found && break 3
7145 if test -z "$ac_cv_path_EGREP"; then
7146 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7149 ac_cv_path_EGREP=$EGREP
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7155 $as_echo "$ac_cv_path_EGREP" >&6; }
7156 EGREP="$ac_cv_path_EGREP"
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7160 $as_echo_n "checking for fgrep... " >&6; }
7161 if test "${ac_cv_path_FGREP+set}" = set; then :
7162 $as_echo_n "(cached) " >&6
7164 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7165 then ac_cv_path_FGREP="$GREP -F"
7167 if test -z "$FGREP"; then
7168 ac_path_FGREP_found=false
7169 # Loop through the user's path and test for each of PROGNAME-LIST
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7174 test -z "$as_dir" && as_dir=.
7175 for ac_prog in fgrep; do
7176 for ac_exec_ext in '' $ac_executable_extensions; do
7177 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7178 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7179 # Check for GNU ac_path_FGREP and select it if it is found.
7180 # Check for GNU $ac_path_FGREP
7181 case `"$ac_path_FGREP" --version 2>&1` in
7183 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7186 $as_echo_n 0123456789 >"conftest.in"
7189 cat "conftest.in" "conftest.in" >"conftest.tmp"
7190 mv "conftest.tmp" "conftest.in"
7191 cp "conftest.in" "conftest.nl"
7192 $as_echo 'FGREP' >> "conftest.nl"
7193 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7194 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7195 as_fn_arith $ac_count + 1 && ac_count=$as_val
7196 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7197 # Best one so far, save it but keep looking for a better one
7198 ac_cv_path_FGREP="$ac_path_FGREP"
7199 ac_path_FGREP_max=$ac_count
7201 # 10*(2^10) chars as input seems more than enough
7202 test $ac_count -gt 10 && break
7204 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7207 $ac_path_FGREP_found && break 3
7212 if test -z "$ac_cv_path_FGREP"; then
7213 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7216 ac_cv_path_FGREP=$FGREP
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7222 $as_echo "$ac_cv_path_FGREP" >&6; }
7223 FGREP="$ac_cv_path_FGREP"
7226 test -z "$GREP" && GREP=grep
7246 # Check whether --with-gnu-ld was given.
7247 if test "${with_gnu_ld+set}" = set; then :
7248 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7254 if test "$GCC" = yes; then
7255 # Check if gcc -print-prog-name=ld gives a path.
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7257 $as_echo_n "checking for ld used by $CC... " >&6; }
7260 # gcc leaves a trailing carriage return which upsets mingw
7261 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7263 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7266 # Accept absolute paths.
7268 re_direlt='/[^/][^/]*/\.\./'
7269 # Canonicalize the pathname of ld
7270 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7271 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7272 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7274 test -z "$LD" && LD="$ac_prog"
7277 # If it fails, then pretend we aren't using GCC.
7281 # If it is relative, then search for the first ld in PATH.
7285 elif test "$with_gnu_ld" = yes; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7287 $as_echo_n "checking for GNU ld... " >&6; }
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7290 $as_echo_n "checking for non-GNU ld... " >&6; }
7292 if test "${lt_cv_path_LD+set}" = set; then :
7293 $as_echo_n "(cached) " >&6
7295 if test -z "$LD"; then
7296 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7297 for ac_dir in $PATH; do
7299 test -z "$ac_dir" && ac_dir=.
7300 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7301 lt_cv_path_LD="$ac_dir/$ac_prog"
7302 # Check to see if the program is GNU ld. I'd rather use --version,
7303 # but apparently some variants of GNU ld only accept -v.
7304 # Break only if it was the GNU/non-GNU ld that we prefer.
7305 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7306 *GNU* | *'with BFD'*)
7307 test "$with_gnu_ld" != no && break
7310 test "$with_gnu_ld" != yes && break
7317 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7322 if test -n "$LD"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7324 $as_echo "$LD" >&6; }
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327 $as_echo "no" >&6; }
7329 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7331 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7332 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7333 $as_echo_n "(cached) " >&6
7335 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7336 case `$LD -v 2>&1 </dev/null` in
7337 *GNU* | *'with BFD'*)
7338 lt_cv_prog_gnu_ld=yes
7341 lt_cv_prog_gnu_ld=no
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7346 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7347 with_gnu_ld=$lt_cv_prog_gnu_ld
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7358 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7359 if test "${lt_cv_path_NM+set}" = set; then :
7360 $as_echo_n "(cached) " >&6
7362 if test -n "$NM"; then
7363 # Let the user override the test.
7366 lt_nm_to_check="${ac_tool_prefix}nm"
7367 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7368 lt_nm_to_check="$lt_nm_to_check nm"
7370 for lt_tmp_nm in $lt_nm_to_check; do
7371 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7372 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7374 test -z "$ac_dir" && ac_dir=.
7375 tmp_nm="$ac_dir/$lt_tmp_nm"
7376 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7377 # Check to see if the nm accepts a BSD-compat flag.
7378 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7379 # nm: unknown option "B" ignored
7380 # Tru64's nm complains that /dev/null is an invalid object file
7381 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7382 */dev/null* | *'Invalid file or object type'*)
7383 lt_cv_path_NM="$tmp_nm -B"
7387 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7389 lt_cv_path_NM="$tmp_nm -p"
7393 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7394 continue # so that we can try to find one that supports BSD flags
7403 : ${lt_cv_path_NM=no}
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7407 $as_echo "$lt_cv_path_NM" >&6; }
7408 if test "$lt_cv_path_NM" != "no"; then
7411 # Didn't find any BSD compatible name lister, look for dumpbin.
7412 if test -n "$DUMPBIN"; then :
7413 # Let the user override the test.
7415 if test -n "$ac_tool_prefix"; then
7416 for ac_prog in dumpbin "link -dump"
7418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7419 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7421 $as_echo_n "checking for $ac_word... " >&6; }
7422 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7423 $as_echo_n "(cached) " >&6
7425 if test -n "$DUMPBIN"; then
7426 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7435 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 DUMPBIN=$ac_cv_prog_DUMPBIN
7446 if test -n "$DUMPBIN"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7448 $as_echo "$DUMPBIN" >&6; }
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7451 $as_echo "no" >&6; }
7455 test -n "$DUMPBIN" && break
7458 if test -z "$DUMPBIN"; then
7459 ac_ct_DUMPBIN=$DUMPBIN
7460 for ac_prog in dumpbin "link -dump"
7462 # Extract the first word of "$ac_prog", so it can be a program name with args.
7463 set dummy $ac_prog; ac_word=$2
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7465 $as_echo_n "checking for $ac_word... " >&6; }
7466 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7467 $as_echo_n "(cached) " >&6
7469 if test -n "$ac_ct_DUMPBIN"; then
7470 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 test -z "$as_dir" && as_dir=.
7477 for ac_exec_ext in '' $ac_executable_extensions; do
7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7479 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7490 if test -n "$ac_ct_DUMPBIN"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7492 $as_echo "$ac_ct_DUMPBIN" >&6; }
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7499 test -n "$ac_ct_DUMPBIN" && break
7502 if test "x$ac_ct_DUMPBIN" = x; then
7505 case $cross_compiling:$ac_tool_warned in
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7508 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7509 ac_tool_warned=yes ;;
7511 DUMPBIN=$ac_ct_DUMPBIN
7515 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7517 DUMPBIN="$DUMPBIN -symbols"
7525 if test "$DUMPBIN" != ":"; then
7529 test -z "$NM" && NM=nm
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7537 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7538 if test "${lt_cv_nm_interface+set}" = set; then :
7539 $as_echo_n "(cached) " >&6
7541 lt_cv_nm_interface="BSD nm"
7542 echo "int some_variable = 0;" > conftest.$ac_ext
7543 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7544 (eval "$ac_compile" 2>conftest.err)
7545 cat conftest.err >&5
7546 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7547 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7548 cat conftest.err >&5
7549 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7550 cat conftest.out >&5
7551 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7552 lt_cv_nm_interface="MS dumpbin"
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7557 $as_echo "$lt_cv_nm_interface" >&6; }
7559 # find the maximum length of command line arguments
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7561 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7562 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7563 $as_echo_n "(cached) " >&6
7570 # On DJGPP, this test can blow up pretty badly due to problems in libc
7571 # (any single argument exceeding 2000 bytes causes a buffer overrun
7572 # during glob expansion). Even if it were fixed, the result of this
7573 # check would be larger than it should be.
7574 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7578 # Under GNU Hurd, this test is not required because there is
7579 # no limit to the length of command line arguments.
7580 # Libtool will interpret -1 as no limit whatsoever
7581 lt_cv_sys_max_cmd_len=-1;
7584 cygwin* | mingw* | cegcc*)
7585 # On Win9x/ME, this test blows up -- it succeeds, but takes
7586 # about 5 minutes as the teststring grows exponentially.
7587 # Worse, since 9x/ME are not pre-emptively multitasking,
7588 # you end up with a "frozen" computer, even though with patience
7589 # the test eventually succeeds (with a max line length of 256k).
7590 # Instead, let's just punt: use the minimum linelength reported by
7591 # all of the supported platforms: 8192 (on NT/2K/XP).
7592 lt_cv_sys_max_cmd_len=8192;
7596 # On MiNT this can take a long time and run out of memory.
7597 lt_cv_sys_max_cmd_len=8192;
7601 # On AmigaOS with pdksh, this test takes hours, literally.
7602 # So we just punt and use a minimum line length of 8192.
7603 lt_cv_sys_max_cmd_len=8192;
7606 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7607 # This has been around since 386BSD, at least. Likely further.
7608 if test -x /sbin/sysctl; then
7609 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7610 elif test -x /usr/sbin/sysctl; then
7611 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7613 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7615 # And add a safety zone
7616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7621 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7622 lt_cv_sys_max_cmd_len=196608
7626 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7627 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7628 # nice to cause kernel panics so lets avoid the loop below.
7629 # First set a reasonable default.
7630 lt_cv_sys_max_cmd_len=16384
7632 if test -x /sbin/sysconfig; then
7633 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7634 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7639 lt_cv_sys_max_cmd_len=102400
7641 sysv5* | sco5v6* | sysv4.2uw2*)
7642 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7643 if test -n "$kargmax"; then
7644 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7646 lt_cv_sys_max_cmd_len=32768
7650 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7651 if test -n "$lt_cv_sys_max_cmd_len"; then
7652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7653 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7655 # Make teststring a little bigger before we do anything with it.
7656 # a 1K string should be a reasonable start.
7657 for i in 1 2 3 4 5 6 7 8 ; do
7658 teststring=$teststring$teststring
7660 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7661 # If test is not a shell built-in, we'll probably end up computing a
7662 # maximum length that is only half of the actual maximum length, but
7664 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7665 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7666 test $i != 17 # 1/2 MB should be enough
7669 teststring=$teststring$teststring
7671 # Only check the string length outside the loop.
7672 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7674 # Add a significant safety factor because C++ compilers can tack on
7675 # massive amounts of additional arguments before passing them to the
7676 # linker. It appears as though 1/2 is a usable value.
7677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7684 if test -n $lt_cv_sys_max_cmd_len ; then
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7686 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7689 $as_echo "none" >&6; }
7691 max_cmd_len=$lt_cv_sys_max_cmd_len
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7703 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7704 # Try some XSI features
7707 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7709 && eval 'test $(( 1 + 1 )) -eq 2 \
7710 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7713 $as_echo "$xsi_shell" >&6; }
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7717 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7719 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7721 && lt_shell_append=yes
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7723 $as_echo "$lt_shell_append" >&6; }
7726 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7736 # test EBCDIC or ASCII
7737 case `echo X|tr X '\101'` in
7738 A) # ASCII based system
7739 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7740 lt_SP2NL='tr \040 \012'
7741 lt_NL2SP='tr \015\012 \040\040'
7743 *) # EBCDIC based system
7744 lt_SP2NL='tr \100 \n'
7745 lt_NL2SP='tr \r\n \100\100'
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7758 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7759 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7760 $as_echo_n "(cached) " >&6
7762 lt_cv_ld_reload_flag='-r'
7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7765 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7766 reload_flag=$lt_cv_ld_reload_flag
7767 case $reload_flag in
7769 *) reload_flag=" $reload_flag" ;;
7771 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7774 if test "$GCC" = yes; then
7775 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7777 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7790 if test -n "$ac_tool_prefix"; then
7791 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7792 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7794 $as_echo_n "checking for $ac_word... " >&6; }
7795 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7796 $as_echo_n "(cached) " >&6
7798 if test -n "$OBJDUMP"; then
7799 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 test -z "$as_dir" && as_dir=.
7806 for ac_exec_ext in '' $ac_executable_extensions; do
7807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7808 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7818 OBJDUMP=$ac_cv_prog_OBJDUMP
7819 if test -n "$OBJDUMP"; then
7820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7821 $as_echo "$OBJDUMP" >&6; }
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7829 if test -z "$ac_cv_prog_OBJDUMP"; then
7830 ac_ct_OBJDUMP=$OBJDUMP
7831 # Extract the first word of "objdump", so it can be a program name with args.
7832 set dummy objdump; ac_word=$2
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7834 $as_echo_n "checking for $ac_word... " >&6; }
7835 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7836 $as_echo_n "(cached) " >&6
7838 if test -n "$ac_ct_OBJDUMP"; then
7839 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7845 test -z "$as_dir" && as_dir=.
7846 for ac_exec_ext in '' $ac_executable_extensions; do
7847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7848 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7858 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7859 if test -n "$ac_ct_OBJDUMP"; then
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7861 $as_echo "$ac_ct_OBJDUMP" >&6; }
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7864 $as_echo "no" >&6; }
7867 if test "x$ac_ct_OBJDUMP" = x; then
7870 case $cross_compiling:$ac_tool_warned in
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7873 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7874 ac_tool_warned=yes ;;
7876 OBJDUMP=$ac_ct_OBJDUMP
7879 OBJDUMP="$ac_cv_prog_OBJDUMP"
7882 test -z "$OBJDUMP" && OBJDUMP=objdump
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7893 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7894 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7895 $as_echo_n "(cached) " >&6
7897 lt_cv_file_magic_cmd='$MAGIC_CMD'
7898 lt_cv_file_magic_test_file=
7899 lt_cv_deplibs_check_method='unknown'
7900 # Need to set the preceding variable on all platforms that support
7901 # interlibrary dependencies.
7902 # 'none' -- dependencies not supported.
7903 # `unknown' -- same as none, but documents that we really don't know.
7904 # 'pass_all' -- all dependencies passed with no checks.
7905 # 'test_compile' -- check by making test program.
7906 # 'file_magic [[regex]]' -- check by looking for files in library path
7907 # which responds to the $file_magic_cmd with a given extended regex.
7908 # If you have `file' or equivalent on your system and you're not sure
7909 # whether `pass_all' will *always* work, you probably want this one.
7913 lt_cv_deplibs_check_method=pass_all
7917 lt_cv_deplibs_check_method=pass_all
7921 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7922 lt_cv_file_magic_cmd='/usr/bin/file -L'
7923 lt_cv_file_magic_test_file=/shlib/libc.so
7927 # func_win32_libid is a shell function defined in ltmain.sh
7928 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7929 lt_cv_file_magic_cmd='func_win32_libid'
7933 # Base MSYS/MinGW do not provide the 'file' command needed by
7934 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7935 # unless we find 'file', for example because we are cross-compiling.
7936 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7937 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7938 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7939 lt_cv_file_magic_cmd='func_win32_libid'
7941 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7942 lt_cv_file_magic_cmd='$OBJDUMP -f'
7947 # use the weaker test based on 'objdump'. See mingw*.
7948 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7949 lt_cv_file_magic_cmd='$OBJDUMP -f'
7952 darwin* | rhapsody*)
7953 lt_cv_deplibs_check_method=pass_all
7956 freebsd* | dragonfly*)
7957 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7960 # Not sure whether the presence of OpenBSD here was a mistake.
7961 # Let's accept both of them until this is cleared up.
7962 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7963 lt_cv_file_magic_cmd=/usr/bin/file
7964 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7968 lt_cv_deplibs_check_method=pass_all
7973 lt_cv_deplibs_check_method=pass_all
7977 lt_cv_deplibs_check_method=pass_all
7980 hpux10.20* | hpux11*)
7981 lt_cv_file_magic_cmd=/usr/bin/file
7984 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7985 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7988 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7989 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7992 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7993 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7999 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8000 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8003 irix5* | irix6* | nonstopux*)
8005 *-32|*"-32 ") libmagic=32-bit;;
8006 *-n32|*"-n32 ") libmagic=N32;;
8007 *-64|*"-64 ") libmagic=64-bit;;
8008 *) libmagic=never-match;;
8010 lt_cv_deplibs_check_method=pass_all
8013 # This must be Linux ELF.
8014 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8015 lt_cv_deplibs_check_method=pass_all
8019 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8020 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8022 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8027 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8028 lt_cv_file_magic_cmd=/usr/bin/file
8029 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8033 lt_cv_deplibs_check_method=pass_all
8037 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8040 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8044 osf3* | osf4* | osf5*)
8045 lt_cv_deplibs_check_method=pass_all
8049 lt_cv_deplibs_check_method=pass_all
8053 lt_cv_deplibs_check_method=pass_all
8056 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8057 lt_cv_deplibs_check_method=pass_all
8061 case $host_vendor in
8063 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]'
8064 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8067 lt_cv_deplibs_check_method=pass_all
8070 lt_cv_file_magic_cmd='/bin/file'
8071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8074 lt_cv_file_magic_cmd='/bin/file'
8075 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8076 lt_cv_file_magic_test_file=/lib/libc.so
8079 lt_cv_deplibs_check_method=pass_all
8082 lt_cv_deplibs_check_method=pass_all
8088 lt_cv_deplibs_check_method=pass_all
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8094 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8095 file_magic_cmd=$lt_cv_file_magic_cmd
8096 deplibs_check_method=$lt_cv_deplibs_check_method
8097 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8110 if test -n "$ac_tool_prefix"; then
8111 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8112 set dummy ${ac_tool_prefix}ar; ac_word=$2
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 $as_echo_n "checking for $ac_word... " >&6; }
8115 if test "${ac_cv_prog_AR+set}" = set; then :
8116 $as_echo_n "(cached) " >&6
8118 if test -n "$AR"; then
8119 ac_cv_prog_AR="$AR" # Let the user override the test.
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8125 test -z "$as_dir" && as_dir=.
8126 for ac_exec_ext in '' $ac_executable_extensions; do
8127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8128 ac_cv_prog_AR="${ac_tool_prefix}ar"
8129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 if test -n "$AR"; then
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8141 $as_echo "$AR" >&6; }
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144 $as_echo "no" >&6; }
8149 if test -z "$ac_cv_prog_AR"; then
8151 # Extract the first word of "ar", so it can be a program name with args.
8152 set dummy ar; ac_word=$2
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8154 $as_echo_n "checking for $ac_word... " >&6; }
8155 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8156 $as_echo_n "(cached) " >&6
8158 if test -n "$ac_ct_AR"; then
8159 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 test -z "$as_dir" && as_dir=.
8166 for ac_exec_ext in '' $ac_executable_extensions; do
8167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8168 ac_cv_prog_ac_ct_AR="ar"
8169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8178 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8179 if test -n "$ac_ct_AR"; then
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8181 $as_echo "$ac_ct_AR" >&6; }
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }
8187 if test "x$ac_ct_AR" = x; then
8190 case $cross_compiling:$ac_tool_warned in
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8193 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8194 ac_tool_warned=yes ;;
8202 test -z "$AR" && AR=ar
8203 test -z "$AR_FLAGS" && AR_FLAGS=cru
8215 if test -n "$ac_tool_prefix"; then
8216 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8217 set dummy ${ac_tool_prefix}strip; ac_word=$2
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8219 $as_echo_n "checking for $ac_word... " >&6; }
8220 if test "${ac_cv_prog_STRIP+set}" = set; then :
8221 $as_echo_n "(cached) " >&6
8223 if test -n "$STRIP"; then
8224 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243 STRIP=$ac_cv_prog_STRIP
8244 if test -n "$STRIP"; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8246 $as_echo "$STRIP" >&6; }
8248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8249 $as_echo "no" >&6; }
8254 if test -z "$ac_cv_prog_STRIP"; then
8256 # Extract the first word of "strip", so it can be a program name with args.
8257 set dummy strip; ac_word=$2
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8259 $as_echo_n "checking for $ac_word... " >&6; }
8260 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8261 $as_echo_n "(cached) " >&6
8263 if test -n "$ac_ct_STRIP"; then
8264 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_prog_ac_ct_STRIP="strip"
8274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8283 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8284 if test -n "$ac_ct_STRIP"; then
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8286 $as_echo "$ac_ct_STRIP" >&6; }
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8289 $as_echo "no" >&6; }
8292 if test "x$ac_ct_STRIP" = x; then
8295 case $cross_compiling:$ac_tool_warned in
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8299 ac_tool_warned=yes ;;
8304 STRIP="$ac_cv_prog_STRIP"
8307 test -z "$STRIP" && STRIP=:
8314 if test -n "$ac_tool_prefix"; then
8315 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8316 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8320 $as_echo_n "(cached) " >&6
8322 if test -n "$RANLIB"; then
8323 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8329 test -z "$as_dir" && as_dir=.
8330 for ac_exec_ext in '' $ac_executable_extensions; do
8331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8332 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8342 RANLIB=$ac_cv_prog_RANLIB
8343 if test -n "$RANLIB"; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8345 $as_echo "$RANLIB" >&6; }
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8353 if test -z "$ac_cv_prog_RANLIB"; then
8354 ac_ct_RANLIB=$RANLIB
8355 # Extract the first word of "ranlib", so it can be a program name with args.
8356 set dummy ranlib; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8360 $as_echo_n "(cached) " >&6
8362 if test -n "$ac_ct_RANLIB"; then
8363 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8369 test -z "$as_dir" && as_dir=.
8370 for ac_exec_ext in '' $ac_executable_extensions; do
8371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8372 ac_cv_prog_ac_ct_RANLIB="ranlib"
8373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8382 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8383 if test -n "$ac_ct_RANLIB"; then
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8385 $as_echo "$ac_ct_RANLIB" >&6; }
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8391 if test "x$ac_ct_RANLIB" = x; then
8394 case $cross_compiling:$ac_tool_warned in
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8398 ac_tool_warned=yes ;;
8400 RANLIB=$ac_ct_RANLIB
8403 RANLIB="$ac_cv_prog_RANLIB"
8406 test -z "$RANLIB" && RANLIB=:
8413 # Determine commands to create old-style static archives.
8414 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8415 old_postinstall_cmds='chmod 644 $oldlib'
8416 old_postuninstall_cmds=
8418 if test -n "$RANLIB"; then
8421 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8424 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8427 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8432 lock_old_archive_extraction=yes ;;
8434 lock_old_archive_extraction=no ;;
8475 # If no C compiler was specified, use CC.
8478 # If no C compiler flags were specified, use CFLAGS.
8479 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8481 # Allow CC to be a program name with arguments.
8485 # Check for command to grab the raw symbol name followed by C symbol from nm.
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8487 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8488 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8489 $as_echo_n "(cached) " >&6
8492 # These are sane defaults that work on at least a few old systems.
8493 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8495 # Character class describing NM global symbol codes.
8496 symcode='[BCDEGRST]'
8498 # Regexp to match symbols that can be accessed directly from C.
8499 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8501 # Define system-specific variables.
8506 cygwin* | mingw* | pw32* | cegcc*)
8507 symcode='[ABCDGISTW]'
8510 if test "$host_cpu" = ia64; then
8511 symcode='[ABCDEGRST]'
8515 symcode='[BCDEGRST]'
8518 symcode='[BCDEGQRST]'
8529 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8537 # If we're using GNU nm, then use its standard symbol codes.
8538 case `$NM -V 2>&1` in
8539 *GNU* | *'with BFD'*)
8540 symcode='[ABCDGIRSTW]' ;;
8543 # Transform an extracted symbol line into a proper C declaration.
8544 # Some systems (esp. on ia64) link data and code symbols differently,
8545 # so use this general approach.
8546 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8548 # Transform an extracted symbol line into symbol name and symbol address
8549 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8550 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'"
8552 # Handle CRLF in mingw tool chain
8556 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8560 # Try without a prefix underscore, then with it.
8561 for ac_symprfx in "" "_"; do
8563 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8564 symxfrm="\\1 $ac_symprfx\\2 \\2"
8566 # Write the raw and C identifiers.
8567 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8568 # Fake it for dumpbin and say T for any non-static function
8569 # and D for any global variable.
8570 # Also find C++ and __fastcall symbols from MSVC++,
8571 # which start with @ or ?.
8572 lt_cv_sys_global_symbol_pipe="$AWK '"\
8573 " {last_section=section; section=\$ 3};"\
8574 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8575 " \$ 0!~/External *\|/{next};"\
8576 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8577 " {if(hide[section]) next};"\
8578 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8579 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8580 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8581 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8582 " ' prfx=^$ac_symprfx"
8584 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8587 # Check to see that the pipe works correctly.
8591 cat > conftest.$ac_ext <<_LT_EOF
8596 void nm_test_func(void);
8597 void nm_test_func(void){}
8601 int main(){nm_test_var='a';nm_test_func();return(0);}
8604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8605 (eval $ac_compile) 2>&5
8607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8608 test $ac_status = 0; }; then
8609 # Now try to grab the symbols.
8611 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8612 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8615 test $ac_status = 0; } && test -s "$nlist"; then
8616 # Try sorting and uniquifying the output.
8617 if sort "$nlist" | uniq > "$nlist"T; then
8618 mv -f "$nlist"T "$nlist"
8623 # Make sure that we snagged all the symbols we need.
8624 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8625 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8626 cat <<_LT_EOF > conftest.$ac_ext
8632 # Now generate the symbol file.
8633 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8635 cat <<_LT_EOF >> conftest.$ac_ext
8637 /* The mapping between symbol names and symbols. */
8642 lt__PROGRAM__LTX_preloaded_symbols[] =
8644 { "@PROGRAM@", (void *) 0 },
8646 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8647 cat <<\_LT_EOF >> conftest.$ac_ext
8651 /* This works around a problem in FreeBSD linker */
8652 #ifdef FREEBSD_WORKAROUND
8653 static const void *lt_preloaded_setup() {
8654 return lt__PROGRAM__LTX_preloaded_symbols;
8662 # Now try linking the two files.
8663 mv conftest.$ac_objext conftstm.$ac_objext
8664 lt_save_LIBS="$LIBS"
8665 lt_save_CFLAGS="$CFLAGS"
8666 LIBS="conftstm.$ac_objext"
8667 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8668 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8669 (eval $ac_link) 2>&5
8671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8672 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8675 LIBS="$lt_save_LIBS"
8676 CFLAGS="$lt_save_CFLAGS"
8678 echo "cannot find nm_test_func in $nlist" >&5
8681 echo "cannot find nm_test_var in $nlist" >&5
8684 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8687 echo "$progname: failed program was:" >&5
8688 cat conftest.$ac_ext >&5
8690 rm -rf conftest* conftst*
8692 # Do not use the global_symbol_pipe unless it works.
8693 if test "$pipe_works" = yes; then
8696 lt_cv_sys_global_symbol_pipe=
8702 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8703 lt_cv_sys_global_symbol_to_cdecl=
8705 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8707 $as_echo "failed" >&6; }
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8710 $as_echo "ok" >&6; }
8735 # Check whether --enable-libtool-lock was given.
8736 if test "${enable_libtool_lock+set}" = set; then :
8737 enableval=$enable_libtool_lock;
8740 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8742 # Some flags need to be propagated to the compiler or linker for good
8746 # Find out which ABI we are using.
8747 echo 'int i;' > conftest.$ac_ext
8748 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8749 (eval $ac_compile) 2>&5
8751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8752 test $ac_status = 0; }; then
8753 case `/usr/bin/file conftest.$ac_objext` in
8765 # Find out which ABI we are using.
8766 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8768 (eval $ac_compile) 2>&5
8770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8771 test $ac_status = 0; }; then
8772 if test "$lt_cv_prog_gnu_ld" = yes; then
8773 case `/usr/bin/file conftest.$ac_objext` in
8775 LD="${LD-ld} -melf32bsmip"
8778 LD="${LD-ld} -melf32bmipn32"
8781 LD="${LD-ld} -melf64bmip"
8785 case `/usr/bin/file conftest.$ac_objext` in
8801 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8802 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8803 # Find out which ABI we are using.
8804 echo 'int i;' > conftest.$ac_ext
8805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8806 (eval $ac_compile) 2>&5
8808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8809 test $ac_status = 0; }; then
8810 case `/usr/bin/file conftest.o` in
8813 x86_64-*kfreebsd*-gnu)
8814 LD="${LD-ld} -m elf_i386_fbsd"
8817 LD="${LD-ld} -m elf_i386"
8819 ppc64-*linux*|powerpc64-*linux*)
8820 LD="${LD-ld} -m elf32ppclinux"
8823 LD="${LD-ld} -m elf_s390"
8826 LD="${LD-ld} -m elf32_sparc"
8832 x86_64-*kfreebsd*-gnu)
8833 LD="${LD-ld} -m elf_x86_64_fbsd"
8836 LD="${LD-ld} -m elf_x86_64"
8838 ppc*-*linux*|powerpc*-*linux*)
8839 LD="${LD-ld} -m elf64ppc"
8841 s390*-*linux*|s390*-*tpf*)
8842 LD="${LD-ld} -m elf64_s390"
8845 LD="${LD-ld} -m elf64_sparc"
8855 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8856 SAVE_CFLAGS="$CFLAGS"
8857 CFLAGS="$CFLAGS -belf"
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8859 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8860 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8861 $as_echo_n "(cached) " >&6
8864 ac_cpp='$CPP $CPPFLAGS'
8865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8869 if test x$gcc_no_link = xyes; then
8870 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8873 /* end confdefs.h. */
8883 if ac_fn_c_try_link "$LINENO"; then :
8884 lt_cv_cc_needs_belf=yes
8886 lt_cv_cc_needs_belf=no
8888 rm -f core conftest.err conftest.$ac_objext \
8889 conftest$ac_exeext conftest.$ac_ext
8891 ac_cpp='$CPP $CPPFLAGS'
8892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8898 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8899 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8900 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8901 CFLAGS="$SAVE_CFLAGS"
8905 # Find out which ABI we are using.
8906 echo 'int i;' > conftest.$ac_ext
8907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8908 (eval $ac_compile) 2>&5
8910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8911 test $ac_status = 0; }; then
8912 case `/usr/bin/file conftest.o` in
8914 case $lt_cv_prog_gnu_ld in
8915 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8917 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8929 need_locks="$enable_libtool_lock"
8933 rhapsody* | darwin*)
8934 if test -n "$ac_tool_prefix"; then
8935 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8936 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938 $as_echo_n "checking for $ac_word... " >&6; }
8939 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8940 $as_echo_n "(cached) " >&6
8942 if test -n "$DSYMUTIL"; then
8943 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8949 test -z "$as_dir" && as_dir=.
8950 for ac_exec_ext in '' $ac_executable_extensions; do
8951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8952 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8962 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8963 if test -n "$DSYMUTIL"; then
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8965 $as_echo "$DSYMUTIL" >&6; }
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8968 $as_echo "no" >&6; }
8973 if test -z "$ac_cv_prog_DSYMUTIL"; then
8974 ac_ct_DSYMUTIL=$DSYMUTIL
8975 # Extract the first word of "dsymutil", so it can be a program name with args.
8976 set dummy dsymutil; ac_word=$2
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8978 $as_echo_n "checking for $ac_word... " >&6; }
8979 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8980 $as_echo_n "(cached) " >&6
8982 if test -n "$ac_ct_DSYMUTIL"; then
8983 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8989 test -z "$as_dir" && as_dir=.
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8992 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9002 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9003 if test -n "$ac_ct_DSYMUTIL"; then
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9005 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9008 $as_echo "no" >&6; }
9011 if test "x$ac_ct_DSYMUTIL" = x; then
9014 case $cross_compiling:$ac_tool_warned in
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9018 ac_tool_warned=yes ;;
9020 DSYMUTIL=$ac_ct_DSYMUTIL
9023 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9026 if test -n "$ac_tool_prefix"; then
9027 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9028 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9030 $as_echo_n "checking for $ac_word... " >&6; }
9031 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9032 $as_echo_n "(cached) " >&6
9034 if test -n "$NMEDIT"; then
9035 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9041 test -z "$as_dir" && as_dir=.
9042 for ac_exec_ext in '' $ac_executable_extensions; do
9043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9044 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9054 NMEDIT=$ac_cv_prog_NMEDIT
9055 if test -n "$NMEDIT"; then
9056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9057 $as_echo "$NMEDIT" >&6; }
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9060 $as_echo "no" >&6; }
9065 if test -z "$ac_cv_prog_NMEDIT"; then
9066 ac_ct_NMEDIT=$NMEDIT
9067 # Extract the first word of "nmedit", so it can be a program name with args.
9068 set dummy nmedit; ac_word=$2
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9070 $as_echo_n "checking for $ac_word... " >&6; }
9071 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9072 $as_echo_n "(cached) " >&6
9074 if test -n "$ac_ct_NMEDIT"; then
9075 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9081 test -z "$as_dir" && as_dir=.
9082 for ac_exec_ext in '' $ac_executable_extensions; do
9083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9084 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9094 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9095 if test -n "$ac_ct_NMEDIT"; then
9096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9097 $as_echo "$ac_ct_NMEDIT" >&6; }
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9100 $as_echo "no" >&6; }
9103 if test "x$ac_ct_NMEDIT" = x; then
9106 case $cross_compiling:$ac_tool_warned in
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9110 ac_tool_warned=yes ;;
9112 NMEDIT=$ac_ct_NMEDIT
9115 NMEDIT="$ac_cv_prog_NMEDIT"
9118 if test -n "$ac_tool_prefix"; then
9119 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9120 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9122 $as_echo_n "checking for $ac_word... " >&6; }
9123 if test "${ac_cv_prog_LIPO+set}" = set; then :
9124 $as_echo_n "(cached) " >&6
9126 if test -n "$LIPO"; then
9127 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9133 test -z "$as_dir" && as_dir=.
9134 for ac_exec_ext in '' $ac_executable_extensions; do
9135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9136 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9146 LIPO=$ac_cv_prog_LIPO
9147 if test -n "$LIPO"; then
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9149 $as_echo "$LIPO" >&6; }
9151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9152 $as_echo "no" >&6; }
9157 if test -z "$ac_cv_prog_LIPO"; then
9159 # Extract the first word of "lipo", so it can be a program name with args.
9160 set dummy lipo; ac_word=$2
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9162 $as_echo_n "checking for $ac_word... " >&6; }
9163 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9164 $as_echo_n "(cached) " >&6
9166 if test -n "$ac_ct_LIPO"; then
9167 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9173 test -z "$as_dir" && as_dir=.
9174 for ac_exec_ext in '' $ac_executable_extensions; do
9175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9176 ac_cv_prog_ac_ct_LIPO="lipo"
9177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9186 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9187 if test -n "$ac_ct_LIPO"; then
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9189 $as_echo "$ac_ct_LIPO" >&6; }
9191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9192 $as_echo "no" >&6; }
9195 if test "x$ac_ct_LIPO" = x; then
9198 case $cross_compiling:$ac_tool_warned in
9200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9202 ac_tool_warned=yes ;;
9207 LIPO="$ac_cv_prog_LIPO"
9210 if test -n "$ac_tool_prefix"; then
9211 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9212 set dummy ${ac_tool_prefix}otool; ac_word=$2
9213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9214 $as_echo_n "checking for $ac_word... " >&6; }
9215 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9216 $as_echo_n "(cached) " >&6
9218 if test -n "$OTOOL"; then
9219 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9225 test -z "$as_dir" && as_dir=.
9226 for ac_exec_ext in '' $ac_executable_extensions; do
9227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9228 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9238 OTOOL=$ac_cv_prog_OTOOL
9239 if test -n "$OTOOL"; then
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9241 $as_echo "$OTOOL" >&6; }
9243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9244 $as_echo "no" >&6; }
9249 if test -z "$ac_cv_prog_OTOOL"; then
9251 # Extract the first word of "otool", so it can be a program name with args.
9252 set dummy otool; ac_word=$2
9253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9254 $as_echo_n "checking for $ac_word... " >&6; }
9255 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9256 $as_echo_n "(cached) " >&6
9258 if test -n "$ac_ct_OTOOL"; then
9259 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9265 test -z "$as_dir" && as_dir=.
9266 for ac_exec_ext in '' $ac_executable_extensions; do
9267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9268 ac_cv_prog_ac_ct_OTOOL="otool"
9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9278 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9279 if test -n "$ac_ct_OTOOL"; then
9280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9281 $as_echo "$ac_ct_OTOOL" >&6; }
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9284 $as_echo "no" >&6; }
9287 if test "x$ac_ct_OTOOL" = x; then
9290 case $cross_compiling:$ac_tool_warned in
9292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9294 ac_tool_warned=yes ;;
9299 OTOOL="$ac_cv_prog_OTOOL"
9302 if test -n "$ac_tool_prefix"; then
9303 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9304 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9306 $as_echo_n "checking for $ac_word... " >&6; }
9307 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9308 $as_echo_n "(cached) " >&6
9310 if test -n "$OTOOL64"; then
9311 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9317 test -z "$as_dir" && as_dir=.
9318 for ac_exec_ext in '' $ac_executable_extensions; do
9319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9320 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9330 OTOOL64=$ac_cv_prog_OTOOL64
9331 if test -n "$OTOOL64"; then
9332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9333 $as_echo "$OTOOL64" >&6; }
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9336 $as_echo "no" >&6; }
9341 if test -z "$ac_cv_prog_OTOOL64"; then
9342 ac_ct_OTOOL64=$OTOOL64
9343 # Extract the first word of "otool64", so it can be a program name with args.
9344 set dummy otool64; ac_word=$2
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9346 $as_echo_n "checking for $ac_word... " >&6; }
9347 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9348 $as_echo_n "(cached) " >&6
9350 if test -n "$ac_ct_OTOOL64"; then
9351 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9357 test -z "$as_dir" && as_dir=.
9358 for ac_exec_ext in '' $ac_executable_extensions; do
9359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9360 ac_cv_prog_ac_ct_OTOOL64="otool64"
9361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9370 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9371 if test -n "$ac_ct_OTOOL64"; then
9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9373 $as_echo "$ac_ct_OTOOL64" >&6; }
9375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9376 $as_echo "no" >&6; }
9379 if test "x$ac_ct_OTOOL64" = x; then
9382 case $cross_compiling:$ac_tool_warned in
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9385 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9386 ac_tool_warned=yes ;;
9388 OTOOL64=$ac_ct_OTOOL64
9391 OTOOL64="$ac_cv_prog_OTOOL64"
9420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9421 $as_echo_n "checking for -single_module linker flag... " >&6; }
9422 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9423 $as_echo_n "(cached) " >&6
9425 lt_cv_apple_cc_single_mod=no
9426 if test -z "${LT_MULTI_MODULE}"; then
9427 # By default we will add the -single_module flag. You can override
9428 # by either setting the environment variable LT_MULTI_MODULE
9429 # non-empty at configure time, or by adding -multi_module to the
9431 rm -rf libconftest.dylib*
9432 echo "int foo(void){return 1;}" > conftest.c
9433 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9434 -dynamiclib -Wl,-single_module conftest.c" >&5
9435 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9436 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9438 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9439 lt_cv_apple_cc_single_mod=yes
9441 cat conftest.err >&5
9443 rm -rf libconftest.dylib*
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9448 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9450 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9451 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9452 $as_echo_n "(cached) " >&6
9454 lt_cv_ld_exported_symbols_list=no
9455 save_LDFLAGS=$LDFLAGS
9456 echo "_main" > conftest.sym
9457 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9458 if test x$gcc_no_link = xyes; then
9459 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9472 if ac_fn_c_try_link "$LINENO"; then :
9473 lt_cv_ld_exported_symbols_list=yes
9475 lt_cv_ld_exported_symbols_list=no
9477 rm -f core conftest.err conftest.$ac_objext \
9478 conftest$ac_exeext conftest.$ac_ext
9479 LDFLAGS="$save_LDFLAGS"
9482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9483 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9485 $as_echo_n "checking for -force_load linker flag... " >&6; }
9486 if test "${lt_cv_ld_force_load+set}" = set; then :
9487 $as_echo_n "(cached) " >&6
9489 lt_cv_ld_force_load=no
9490 cat > conftest.c << _LT_EOF
9491 int forced_loaded() { return 2;}
9493 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9494 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9495 echo "$AR cru libconftest.a conftest.o" >&5
9496 $AR cru libconftest.a conftest.o 2>&5
9497 cat > conftest.c << _LT_EOF
9498 int main() { return 0;}
9500 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9501 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9503 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9504 lt_cv_ld_force_load=yes
9506 cat conftest.err >&5
9508 rm -f conftest.err libconftest.a conftest conftest.c
9509 rm -rf conftest.dSYM
9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9513 $as_echo "$lt_cv_ld_force_load" >&6; }
9515 rhapsody* | darwin1.[012])
9516 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9518 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9519 darwin*) # darwin 5.x on
9520 # if running on 10.5 or later, the deployment target defaults
9521 # to the OS version, if on x86, and 10.4, the deployment
9522 # target defaults to 10.4. Don't you love it?
9523 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9524 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9525 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9527 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9529 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9533 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9534 _lt_dar_single_mod='$single_module'
9536 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9537 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9539 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9541 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9542 _lt_dsymutil='~$DSYMUTIL $lib || :'
9550 ac_cpp='$CPP $CPPFLAGS'
9551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9555 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9556 # On Suns, sometimes $CPP names a directory.
9557 if test -n "$CPP" && test -d "$CPP"; then
9560 if test -z "$CPP"; then
9561 if test "${ac_cv_prog_CPP+set}" = set; then :
9562 $as_echo_n "(cached) " >&6
9564 # Double quotes because CPP needs to be expanded
9565 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9568 for ac_c_preproc_warn_flag in '' yes
9570 # Use a header file that comes with gcc, so configuring glibc
9571 # with a fresh cross-compiler works.
9572 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9573 # <limits.h> exists even on freestanding compilers.
9574 # On the NeXT, cc -E runs the code through the compiler's parser,
9575 # not just through cpp. "Syntax error" is here to catch this case.
9576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9577 /* end confdefs.h. */
9579 # include <limits.h>
9581 # include <assert.h>
9585 if ac_fn_c_try_cpp "$LINENO"; then :
9588 # Broken: fails on valid input.
9591 rm -f conftest.err conftest.$ac_ext
9593 # OK, works on sane cases. Now check whether nonexistent headers
9594 # can be detected and how.
9595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h. */
9597 #include <ac_nonexistent.h>
9599 if ac_fn_c_try_cpp "$LINENO"; then :
9600 # Broken: success on invalid input.
9603 # Passes both tests.
9607 rm -f conftest.err conftest.$ac_ext
9610 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9611 rm -f conftest.err conftest.$ac_ext
9612 if $ac_preproc_ok; then :
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9625 $as_echo "$CPP" >&6; }
9627 for ac_c_preproc_warn_flag in '' yes
9629 # Use a header file that comes with gcc, so configuring glibc
9630 # with a fresh cross-compiler works.
9631 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9632 # <limits.h> exists even on freestanding compilers.
9633 # On the NeXT, cc -E runs the code through the compiler's parser,
9634 # not just through cpp. "Syntax error" is here to catch this case.
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9638 # include <limits.h>
9640 # include <assert.h>
9644 if ac_fn_c_try_cpp "$LINENO"; then :
9647 # Broken: fails on valid input.
9650 rm -f conftest.err conftest.$ac_ext
9652 # OK, works on sane cases. Now check whether nonexistent headers
9653 # can be detected and how.
9654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9655 /* end confdefs.h. */
9656 #include <ac_nonexistent.h>
9658 if ac_fn_c_try_cpp "$LINENO"; then :
9659 # Broken: success on invalid input.
9662 # Passes both tests.
9666 rm -f conftest.err conftest.$ac_ext
9669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9670 rm -f conftest.err conftest.$ac_ext
9671 if $ac_preproc_ok; then :
9674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9676 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9677 See \`config.log' for more details." "$LINENO" 5; }
9681 ac_cpp='$CPP $CPPFLAGS'
9682 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9683 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9684 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9688 $as_echo_n "checking for ANSI C header files... " >&6; }
9689 if test "${ac_cv_header_stdc+set}" = set; then :
9690 $as_echo_n "(cached) " >&6
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693 /* end confdefs.h. */
9707 if ac_fn_c_try_compile "$LINENO"; then :
9708 ac_cv_header_stdc=yes
9710 ac_cv_header_stdc=no
9712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714 if test $ac_cv_header_stdc = yes; then
9715 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9717 /* end confdefs.h. */
9721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9722 $EGREP "memchr" >/dev/null 2>&1; then :
9725 ac_cv_header_stdc=no
9731 if test $ac_cv_header_stdc = yes; then
9732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9739 $EGREP "free" >/dev/null 2>&1; then :
9742 ac_cv_header_stdc=no
9748 if test $ac_cv_header_stdc = yes; then
9749 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9750 if test "$cross_compiling" = yes; then :
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9757 #if ((' ' & 0x0FF) == 0x020)
9758 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9759 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9761 # define ISLOWER(c) \
9762 (('a' <= (c) && (c) <= 'i') \
9763 || ('j' <= (c) && (c) <= 'r') \
9764 || ('s' <= (c) && (c) <= 'z'))
9765 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9768 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9773 for (i = 0; i < 256; i++)
9774 if (XOR (islower (i), ISLOWER (i))
9775 || toupper (i) != TOUPPER (i))
9780 if ac_fn_c_try_run "$LINENO"; then :
9783 ac_cv_header_stdc=no
9785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9786 conftest.$ac_objext conftest.beam conftest.$ac_ext
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9792 $as_echo "$ac_cv_header_stdc" >&6; }
9793 if test $ac_cv_header_stdc = yes; then
9795 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9799 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9800 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9801 inttypes.h stdint.h unistd.h
9803 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9804 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9806 eval as_val=\$$as_ac_Header
9807 if test "x$as_val" = x""yes; then :
9808 cat >>confdefs.h <<_ACEOF
9809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9817 for ac_header in dlfcn.h
9819 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9821 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9822 cat >>confdefs.h <<_ACEOF
9823 #define HAVE_DLFCN_H 1
9843 # Check whether --enable-shared was given.
9844 if test "${enable_shared+set}" = set; then :
9845 enableval=$enable_shared; p=${PACKAGE-default}
9847 yes) enable_shared=yes ;;
9848 no) enable_shared=no ;;
9851 # Look at the argument we got. We use all the common list separators.
9852 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9853 for pkg in $enableval; do
9855 if test "X$pkg" = "X$p"; then
9874 # Check whether --enable-static was given.
9875 if test "${enable_static+set}" = set; then :
9876 enableval=$enable_static; p=${PACKAGE-default}
9878 yes) enable_static=yes ;;
9879 no) enable_static=no ;;
9882 # Look at the argument we got. We use all the common list separators.
9883 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9884 for pkg in $enableval; do
9886 if test "X$pkg" = "X$p"; then
9906 # Check whether --with-pic was given.
9907 if test "${with_pic+set}" = set; then :
9908 withval=$with_pic; pic_mode="$withval"
9914 test -z "$pic_mode" && pic_mode=default
9922 # Check whether --enable-fast-install was given.
9923 if test "${enable_fast_install+set}" = set; then :
9924 enableval=$enable_fast_install; p=${PACKAGE-default}
9926 yes) enable_fast_install=yes ;;
9927 no) enable_fast_install=no ;;
9929 enable_fast_install=no
9930 # Look at the argument we got. We use all the common list separators.
9931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9932 for pkg in $enableval; do
9934 if test "X$pkg" = "X$p"; then
9935 enable_fast_install=yes
9942 enable_fast_install=yes
9955 # This can be used to rebuild libtool when needed
9956 LIBTOOL_DEPS="$ltmain"
9958 # Always use our own libtool.
9959 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9986 test -z "$LN_S" && LN_S="ln -s"
10001 if test -n "${ZSH_VERSION+set}" ; then
10002 setopt NO_GLOB_SUBST
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10006 $as_echo_n "checking for objdir... " >&6; }
10007 if test "${lt_cv_objdir+set}" = set; then :
10008 $as_echo_n "(cached) " >&6
10010 rm -f .libs 2>/dev/null
10011 mkdir .libs 2>/dev/null
10012 if test -d .libs; then
10015 # MS-DOS does not allow filenames that begin with a dot.
10018 rmdir .libs 2>/dev/null
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10021 $as_echo "$lt_cv_objdir" >&6; }
10022 objdir=$lt_cv_objdir
10028 cat >>confdefs.h <<_ACEOF
10029 #define LT_OBJDIR "$lt_cv_objdir/"
10037 # AIX sometimes has problems with the GCC collect2 program. For some
10038 # reason, if we set the COLLECT_NAMES environment variable, the problems
10039 # vanish in a puff of smoke.
10040 if test "X${COLLECT_NAMES+set}" != Xset; then
10042 export COLLECT_NAMES
10047 # Global variables:
10049 can_build_shared=yes
10051 # All known linkers require a `.a' archive for static linking (except MSVC,
10052 # which needs '.lib').
10055 with_gnu_ld="$lt_cv_prog_gnu_ld"
10058 old_CFLAGS="$CFLAGS"
10060 # Set sane defaults for various variables
10061 test -z "$CC" && CC=cc
10062 test -z "$LTCC" && LTCC=$CC
10063 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10064 test -z "$LD" && LD=ld
10065 test -z "$ac_objext" && ac_objext=o
10067 for cc_temp in $compiler""; do
10069 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10070 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10075 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10078 # Only perform the check for file, if the check method requires it
10079 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10080 case $deplibs_check_method in
10082 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10084 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10085 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10086 $as_echo_n "(cached) " >&6
10090 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10093 lt_save_MAGIC_CMD="$MAGIC_CMD"
10094 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10095 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10096 for ac_dir in $ac_dummy; do
10098 test -z "$ac_dir" && ac_dir=.
10099 if test -f $ac_dir/${ac_tool_prefix}file; then
10100 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10101 if test -n "$file_magic_test_file"; then
10102 case $deplibs_check_method in
10104 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10106 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10107 $EGREP "$file_magic_regex" > /dev/null; then
10112 *** Warning: the command libtool uses to detect shared libraries,
10113 *** $file_magic_cmd, produces output that libtool cannot recognize.
10114 *** The result is that libtool may fail to recognize shared libraries
10115 *** as such. This will affect the creation of libtool libraries that
10116 *** depend on shared libraries, but programs linked with such libtool
10117 *** libraries will work regardless of this problem. Nevertheless, you
10118 *** may want to report the problem to your system manager and/or to
10119 *** bug-libtool@gnu.org
10129 MAGIC_CMD="$lt_save_MAGIC_CMD"
10134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10135 if test -n "$MAGIC_CMD"; then
10136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10137 $as_echo "$MAGIC_CMD" >&6; }
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10140 $as_echo "no" >&6; }
10147 if test -z "$lt_cv_path_MAGIC_CMD"; then
10148 if test -n "$ac_tool_prefix"; then
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10150 $as_echo_n "checking for file... " >&6; }
10151 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10152 $as_echo_n "(cached) " >&6
10156 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10159 lt_save_MAGIC_CMD="$MAGIC_CMD"
10160 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10161 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10162 for ac_dir in $ac_dummy; do
10164 test -z "$ac_dir" && ac_dir=.
10165 if test -f $ac_dir/file; then
10166 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10167 if test -n "$file_magic_test_file"; then
10168 case $deplibs_check_method in
10170 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10172 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10173 $EGREP "$file_magic_regex" > /dev/null; then
10178 *** Warning: the command libtool uses to detect shared libraries,
10179 *** $file_magic_cmd, produces output that libtool cannot recognize.
10180 *** The result is that libtool may fail to recognize shared libraries
10181 *** as such. This will affect the creation of libtool libraries that
10182 *** depend on shared libraries, but programs linked with such libtool
10183 *** libraries will work regardless of this problem. Nevertheless, you
10184 *** may want to report the problem to your system manager and/or to
10185 *** bug-libtool@gnu.org
10195 MAGIC_CMD="$lt_save_MAGIC_CMD"
10200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10201 if test -n "$MAGIC_CMD"; then
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10203 $as_echo "$MAGIC_CMD" >&6; }
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10206 $as_echo "no" >&6; }
10219 # Use C for the default configuration in the libtool script
10223 ac_cpp='$CPP $CPPFLAGS'
10224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10229 # Source file extension for C test sources.
10232 # Object file extension for compiled C test sources.
10236 # Code to be used in simple compile tests
10237 lt_simple_compile_test_code="int some_variable = 0;"
10239 # Code to be used in simple link tests
10240 lt_simple_link_test_code='int main(){return(0);}'
10248 # If no C compiler was specified, use CC.
10251 # If no C compiler flags were specified, use CFLAGS.
10252 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10254 # Allow CC to be a program name with arguments.
10257 # Save the default compiler, since it gets overwritten when the other
10258 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10259 compiler_DEFAULT=$CC
10261 # save warnings/boilerplate of simple test code
10262 ac_outfile=conftest.$ac_objext
10263 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10264 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10265 _lt_compiler_boilerplate=`cat conftest.err`
10268 ac_outfile=conftest.$ac_objext
10269 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10270 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10271 _lt_linker_boilerplate=`cat conftest.err`
10276 ## There is no encapsulation within the following macros, do not change
10277 ## the running order or otherwise move them around unless you know exactly
10278 ## what you are doing...
10279 if test -n "$compiler"; then
10281 lt_prog_compiler_no_builtin_flag=
10283 if test "$GCC" = yes; then
10284 case $cc_basename in
10286 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10288 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10292 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10293 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10294 $as_echo_n "(cached) " >&6
10296 lt_cv_prog_compiler_rtti_exceptions=no
10297 ac_outfile=conftest.$ac_objext
10298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10299 lt_compiler_flag="-fno-rtti -fno-exceptions"
10300 # Insert the option either (1) after the last *FLAGS variable, or
10301 # (2) before a word containing "conftest.", or (3) at the end.
10302 # Note that $ac_compile itself does not contain backslashes and begins
10303 # with a dollar sign (not a hyphen), so the echo should work correctly.
10304 # The option is referenced via a variable to avoid confusing sed.
10305 lt_compile=`echo "$ac_compile" | $SED \
10306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10308 -e 's:$: $lt_compiler_flag:'`
10309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10310 (eval "$lt_compile" 2>conftest.err)
10312 cat conftest.err >&5
10313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10314 if (exit $ac_status) && test -s "$ac_outfile"; then
10315 # The compiler can only warn and ignore the option if not recognized
10316 # So say no if there are warnings other than the usual output.
10317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10319 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10320 lt_cv_prog_compiler_rtti_exceptions=yes
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10327 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10329 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10330 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10342 lt_prog_compiler_wl=
10343 lt_prog_compiler_pic=
10344 lt_prog_compiler_static=
10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10347 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10349 if test "$GCC" = yes; then
10350 lt_prog_compiler_wl='-Wl,'
10351 lt_prog_compiler_static='-static'
10355 # All AIX code is PIC.
10356 if test "$host_cpu" = ia64; then
10357 # AIX 5 now supports IA64 processor
10358 lt_prog_compiler_static='-Bstatic'
10365 # see comment about AmigaOS4 .so support
10366 lt_prog_compiler_pic='-fPIC'
10369 # FIXME: we need at least 68020 code to build shared libraries, but
10370 # adding the `-m68020' flag to GCC prevents building anything better,
10372 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10377 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10378 # PIC is the default for these OSes.
10381 mingw* | cygwin* | pw32* | os2* | cegcc*)
10382 # This hack is so that the source file can tell whether it is being
10383 # built for inclusion in a dll (and should export symbols for example).
10384 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10385 # (--disable-auto-import) libraries
10386 lt_prog_compiler_pic='-DDLL_EXPORT'
10389 darwin* | rhapsody*)
10390 # PIC is the default on this platform
10391 # Common symbols not allowed in MH_DYLIB files
10392 lt_prog_compiler_pic='-fno-common'
10396 # PIC is the default for Haiku.
10397 # The "-static" flag exists, but is broken.
10398 lt_prog_compiler_static=
10402 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10403 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10404 # sets the default TLS model and affects inlining.
10410 lt_prog_compiler_pic='-fPIC'
10416 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10417 # Instead, we relocate shared libraries at runtime.
10421 # Just because we use GCC doesn't mean we suddenly get shared libraries
10422 # on systems that don't support them.
10423 lt_prog_compiler_can_build_shared=no
10428 # QNX uses GNU C++, but need to define -shared option too, otherwise
10429 # it will coredump.
10430 lt_prog_compiler_pic='-fPIC -shared'
10434 if test -d /usr/nec; then
10435 lt_prog_compiler_pic=-Kconform_pic
10440 lt_prog_compiler_pic='-fPIC'
10444 case $cc_basename in
10445 nvcc*) # Cuda Compiler Driver 2.2
10446 lt_prog_compiler_wl='-Xlinker '
10447 lt_prog_compiler_pic='-Xcompiler -fPIC'
10451 # PORTME Check for flag to pass linker flags through the system compiler.
10454 lt_prog_compiler_wl='-Wl,'
10455 if test "$host_cpu" = ia64; then
10456 # AIX 5 now supports IA64 processor
10457 lt_prog_compiler_static='-Bstatic'
10459 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10463 mingw* | cygwin* | pw32* | os2* | cegcc*)
10464 # This hack is so that the source file can tell whether it is being
10465 # built for inclusion in a dll (and should export symbols for example).
10466 lt_prog_compiler_pic='-DDLL_EXPORT'
10469 hpux9* | hpux10* | hpux11*)
10470 lt_prog_compiler_wl='-Wl,'
10471 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10472 # not for PA HP-UX.
10478 lt_prog_compiler_pic='+Z'
10481 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10482 lt_prog_compiler_static='${wl}-a ${wl}archive'
10485 irix5* | irix6* | nonstopux*)
10486 lt_prog_compiler_wl='-Wl,'
10487 # PIC (with -KPIC) is the default.
10488 lt_prog_compiler_static='-non_shared'
10491 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10492 case $cc_basename in
10493 # old Intel for x86_64 which still supported -KPIC.
10495 lt_prog_compiler_wl='-Wl,'
10496 lt_prog_compiler_pic='-KPIC'
10497 lt_prog_compiler_static='-static'
10499 # icc used to be incompatible with GCC.
10500 # ICC 10 doesn't accept -KPIC any more.
10502 lt_prog_compiler_wl='-Wl,'
10503 lt_prog_compiler_pic='-fPIC'
10504 lt_prog_compiler_static='-static'
10506 # Lahey Fortran 8.1.
10508 lt_prog_compiler_wl='-Wl,'
10509 lt_prog_compiler_pic='--shared'
10510 lt_prog_compiler_static='--static'
10512 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10513 # Portland Group compilers (*not* the Pentium gcc compiler,
10514 # which looks to be a dead project)
10515 lt_prog_compiler_wl='-Wl,'
10516 lt_prog_compiler_pic='-fpic'
10517 lt_prog_compiler_static='-Bstatic'
10520 lt_prog_compiler_wl='-Wl,'
10521 # All Alpha code is PIC.
10522 lt_prog_compiler_static='-non_shared'
10524 xl* | bgxl* | bgf* | mpixl*)
10525 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10526 lt_prog_compiler_wl='-Wl,'
10527 lt_prog_compiler_pic='-qpic'
10528 lt_prog_compiler_static='-qstaticlink'
10531 case `$CC -V 2>&1 | sed 5q` in
10532 *Sun\ F* | *Sun*Fortran*)
10533 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10534 lt_prog_compiler_pic='-KPIC'
10535 lt_prog_compiler_static='-Bstatic'
10536 lt_prog_compiler_wl=''
10540 lt_prog_compiler_pic='-KPIC'
10541 lt_prog_compiler_static='-Bstatic'
10542 lt_prog_compiler_wl='-Wl,'
10550 lt_prog_compiler_pic='-KPIC'
10551 lt_prog_compiler_static='-Bstatic'
10555 # QNX uses GNU C++, but need to define -shared option too, otherwise
10556 # it will coredump.
10557 lt_prog_compiler_pic='-fPIC -shared'
10560 osf3* | osf4* | osf5*)
10561 lt_prog_compiler_wl='-Wl,'
10562 # All OSF/1 code is PIC.
10563 lt_prog_compiler_static='-non_shared'
10567 lt_prog_compiler_static='-non_shared'
10571 lt_prog_compiler_pic='-KPIC'
10572 lt_prog_compiler_static='-Bstatic'
10573 case $cc_basename in
10574 f77* | f90* | f95*)
10575 lt_prog_compiler_wl='-Qoption ld ';;
10577 lt_prog_compiler_wl='-Wl,';;
10582 lt_prog_compiler_wl='-Qoption ld '
10583 lt_prog_compiler_pic='-PIC'
10584 lt_prog_compiler_static='-Bstatic'
10587 sysv4 | sysv4.2uw2* | sysv4.3*)
10588 lt_prog_compiler_wl='-Wl,'
10589 lt_prog_compiler_pic='-KPIC'
10590 lt_prog_compiler_static='-Bstatic'
10594 if test -d /usr/nec ;then
10595 lt_prog_compiler_pic='-Kconform_pic'
10596 lt_prog_compiler_static='-Bstatic'
10600 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10601 lt_prog_compiler_wl='-Wl,'
10602 lt_prog_compiler_pic='-KPIC'
10603 lt_prog_compiler_static='-Bstatic'
10607 lt_prog_compiler_wl='-Wl,'
10608 lt_prog_compiler_can_build_shared=no
10612 lt_prog_compiler_pic='-pic'
10613 lt_prog_compiler_static='-Bstatic'
10617 lt_prog_compiler_can_build_shared=no
10623 # For platforms which do not support PIC, -DPIC is meaningless:
10625 lt_prog_compiler_pic=
10628 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10632 $as_echo "$lt_prog_compiler_pic" >&6; }
10640 # Check to make sure the PIC flag actually works.
10642 if test -n "$lt_prog_compiler_pic"; then
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10644 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10645 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10646 $as_echo_n "(cached) " >&6
10648 lt_cv_prog_compiler_pic_works=no
10649 ac_outfile=conftest.$ac_objext
10650 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10651 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10652 # Insert the option either (1) after the last *FLAGS variable, or
10653 # (2) before a word containing "conftest.", or (3) at the end.
10654 # Note that $ac_compile itself does not contain backslashes and begins
10655 # with a dollar sign (not a hyphen), so the echo should work correctly.
10656 # The option is referenced via a variable to avoid confusing sed.
10657 lt_compile=`echo "$ac_compile" | $SED \
10658 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10659 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10660 -e 's:$: $lt_compiler_flag:'`
10661 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10662 (eval "$lt_compile" 2>conftest.err)
10664 cat conftest.err >&5
10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10666 if (exit $ac_status) && test -s "$ac_outfile"; then
10667 # The compiler can only warn and ignore the option if not recognized
10668 # So say no if there are warnings other than the usual output.
10669 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10670 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10671 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10672 lt_cv_prog_compiler_pic_works=yes
10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10679 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10681 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10682 case $lt_prog_compiler_pic in
10684 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10687 lt_prog_compiler_pic=
10688 lt_prog_compiler_can_build_shared=no
10699 # Check to make sure the static flag actually works.
10701 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10703 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10704 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10705 $as_echo_n "(cached) " >&6
10707 lt_cv_prog_compiler_static_works=no
10708 save_LDFLAGS="$LDFLAGS"
10709 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10710 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10712 # The linker can only warn and ignore the option if not recognized
10713 # So say no if there are warnings
10714 if test -s conftest.err; then
10715 # Append any errors to the config.log.
10716 cat conftest.err 1>&5
10717 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10719 if diff conftest.exp conftest.er2 >/dev/null; then
10720 lt_cv_prog_compiler_static_works=yes
10723 lt_cv_prog_compiler_static_works=yes
10727 LDFLAGS="$save_LDFLAGS"
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10731 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10733 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10736 lt_prog_compiler_static=
10745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10747 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10748 $as_echo_n "(cached) " >&6
10750 lt_cv_prog_compiler_c_o=no
10751 $RM -r conftest 2>/dev/null
10755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10757 lt_compiler_flag="-o out/conftest2.$ac_objext"
10758 # Insert the option either (1) after the last *FLAGS variable, or
10759 # (2) before a word containing "conftest.", or (3) at the end.
10760 # Note that $ac_compile itself does not contain backslashes and begins
10761 # with a dollar sign (not a hyphen), so the echo should work correctly.
10762 lt_compile=`echo "$ac_compile" | $SED \
10763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10765 -e 's:$: $lt_compiler_flag:'`
10766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10767 (eval "$lt_compile" 2>out/conftest.err)
10769 cat out/conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10773 # The compiler can only warn and ignore the option if not recognized
10774 # So say no if there are warnings
10775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10778 lt_cv_prog_compiler_c_o=yes
10783 # SGI C++ compiler will create directory out/ii_files/ for
10784 # template instantiation
10785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10786 $RM out/* && rmdir out
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10793 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10801 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10802 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10803 $as_echo_n "(cached) " >&6
10805 lt_cv_prog_compiler_c_o=no
10806 $RM -r conftest 2>/dev/null
10810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10812 lt_compiler_flag="-o out/conftest2.$ac_objext"
10813 # Insert the option either (1) after the last *FLAGS variable, or
10814 # (2) before a word containing "conftest.", or (3) at the end.
10815 # Note that $ac_compile itself does not contain backslashes and begins
10816 # with a dollar sign (not a hyphen), so the echo should work correctly.
10817 lt_compile=`echo "$ac_compile" | $SED \
10818 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10819 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10820 -e 's:$: $lt_compiler_flag:'`
10821 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10822 (eval "$lt_compile" 2>out/conftest.err)
10824 cat out/conftest.err >&5
10825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10828 # The compiler can only warn and ignore the option if not recognized
10829 # So say no if there are warnings
10830 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10831 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10832 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10833 lt_cv_prog_compiler_c_o=yes
10838 # SGI C++ compiler will create directory out/ii_files/ for
10839 # template instantiation
10840 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10841 $RM out/* && rmdir out
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10848 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10853 hard_links="nottested"
10854 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10855 # do not overwrite the value of need_locks provided by the user
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10857 $as_echo_n "checking if we can lock with hard links... " >&6; }
10860 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10862 ln conftest.a conftest.b 2>&5 || hard_links=no
10863 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10865 $as_echo "$hard_links" >&6; }
10866 if test "$hard_links" = no; then
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10868 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10881 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10884 allow_undefined_flag=
10885 always_export_symbols=no
10887 archive_expsym_cmds=
10888 compiler_needs_object=no
10889 enable_shared_with_static_runtimes=no
10890 export_dynamic_flag_spec=
10891 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10892 hardcode_automatic=no
10894 hardcode_direct_absolute=no
10895 hardcode_libdir_flag_spec=
10896 hardcode_libdir_flag_spec_ld=
10897 hardcode_libdir_separator=
10898 hardcode_minus_L=no
10899 hardcode_shlibpath_var=unsupported
10901 link_all_deplibs=unknown
10903 module_expsym_cmds=
10904 old_archive_from_new_cmds=
10905 old_archive_from_expsyms_cmds=
10906 thread_safe_flag_spec=
10907 whole_archive_flag_spec=
10908 # include_expsyms should be a list of space-separated symbols to be *always*
10909 # included in the symbol list
10911 # exclude_expsyms can be an extended regexp of symbols to exclude
10912 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10913 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10914 # as well as any symbol that contains `d'.
10915 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10916 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10917 # platforms (ab)use it in PIC code, but their linkers get confused if
10918 # the symbol is explicitly referenced. Since portable code cannot
10919 # rely on this symbol name, it's probably fine to never include it in
10920 # preloaded symbol tables.
10921 # Exclude shared library initialization/finalization symbols.
10922 extract_expsyms_cmds=
10925 cygwin* | mingw* | pw32* | cegcc*)
10926 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10927 # When not using gcc, we currently assume that we are using
10928 # Microsoft Visual C++.
10929 if test "$GCC" != yes; then
10934 # we just hope/assume this is gcc and not c89 (= MSVC++)
10944 # On some targets, GNU ld is compatible enough with the native linker
10945 # that we're better off using the native interface for both.
10946 lt_use_gnu_ld_interface=no
10947 if test "$with_gnu_ld" = yes; then
10950 # The AIX port of GNU ld has always aspired to compatibility
10951 # with the native linker. However, as the warning in the GNU ld
10952 # block says, versions before 2.19.5* couldn't really create working
10953 # shared libraries, regardless of the interface used.
10954 case `$LD -v 2>&1` in
10955 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10956 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10957 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10959 lt_use_gnu_ld_interface=yes
10964 lt_use_gnu_ld_interface=yes
10969 if test "$lt_use_gnu_ld_interface" = yes; then
10970 # If archive_cmds runs LD, not CC, wlarc should be empty
10973 # Set some defaults for GNU ld with shared library support. These
10974 # are reset later if shared libraries are not supported. Putting them
10975 # here allows them to be overridden if necessary.
10976 runpath_var=LD_RUN_PATH
10977 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10978 export_dynamic_flag_spec='${wl}--export-dynamic'
10979 # ancient GNU ld didn't support --whole-archive et. al.
10980 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10981 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10983 whole_archive_flag_spec=
10985 supports_anon_versioning=no
10986 case `$LD -v 2>&1` in
10987 *GNU\ gold*) supports_anon_versioning=yes ;;
10988 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10989 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10990 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10991 *\ 2.11.*) ;; # other 2.11 versions
10992 *) supports_anon_versioning=yes ;;
10995 # See if GNU ld supports shared libraries.
10998 # On AIX/PPC, the GNU linker is very broken
10999 if test "$host_cpu" != ia64; then
11003 *** Warning: the GNU linker, at least up to release 2.19, is reported
11004 *** to be unable to reliably create shared libraries on AIX.
11005 *** Therefore, libtool is disabling shared libraries support. If you
11006 *** really care for shared libraries, you may want to install binutils
11007 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11008 *** You will then need to restart the configuration process.
11017 # see comment about AmigaOS4 .so support
11018 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11019 archive_expsym_cmds=''
11022 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)'
11023 hardcode_libdir_flag_spec='-L$libdir'
11024 hardcode_minus_L=yes
11030 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11031 allow_undefined_flag=unsupported
11032 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11033 # support --undefined. This deserves some investigation. FIXME
11034 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11040 cygwin* | mingw* | pw32* | cegcc*)
11041 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11042 # as there is no search path for DLLs.
11043 hardcode_libdir_flag_spec='-L$libdir'
11044 export_dynamic_flag_spec='${wl}--export-all-symbols'
11045 allow_undefined_flag=unsupported
11046 always_export_symbols=no
11047 enable_shared_with_static_runtimes=yes
11048 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11050 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11052 # If the export-symbols file already is a .def file (1st line
11053 # is EXPORTS), use it as is; otherwise, prepend...
11054 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11055 cp $export_symbols $output_objdir/$soname.def;
11057 echo EXPORTS > $output_objdir/$soname.def;
11058 cat $export_symbols >> $output_objdir/$soname.def;
11060 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11067 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11068 link_all_deplibs=yes
11073 hardcode_shlibpath_var=no
11074 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11075 export_dynamic_flag_spec='${wl}-E'
11076 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11077 # Instead, shared libraries are loaded at an image base (0x10000000 by
11078 # default) and relocated if they conflict, which is a slow very memory
11079 # consuming and fragmenting process. To avoid this, we pick a random,
11080 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11081 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11082 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11083 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'
11086 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11088 if test "$host_os" = linux-dietlibc; then
11089 case $cc_basename in
11090 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11093 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11094 && test "$tmp_diet" = no
11097 tmp_sharedflag='-shared'
11098 case $cc_basename,$host_cpu in
11099 pgcc*) # Portland Group C compiler
11100 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11101 tmp_addflag=' $pic_flag'
11103 pgf77* | pgf90* | pgf95* | pgfortran*)
11104 # Portland Group f77 and f90 compilers
11105 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11106 tmp_addflag=' $pic_flag -Mnomain' ;;
11107 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11108 tmp_addflag=' -i_dynamic' ;;
11109 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11110 tmp_addflag=' -i_dynamic -nofor_main' ;;
11111 ifc* | ifort*) # Intel Fortran compiler
11112 tmp_addflag=' -nofor_main' ;;
11113 lf95*) # Lahey Fortran 8.1
11114 whole_archive_flag_spec=
11115 tmp_sharedflag='--shared' ;;
11116 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11117 tmp_sharedflag='-qmkshrobj'
11119 nvcc*) # Cuda Compiler Driver 2.2
11120 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11121 compiler_needs_object=yes
11124 case `$CC -V 2>&1 | sed 5q` in
11125 *Sun\ C*) # Sun C 5.9
11126 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11127 compiler_needs_object=yes
11128 tmp_sharedflag='-G' ;;
11129 *Sun\ F*) # Sun Fortran 8.3
11130 tmp_sharedflag='-G' ;;
11132 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11134 if test "x$supports_anon_versioning" = xyes; then
11135 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11136 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11137 echo "local: *; };" >> $output_objdir/$libname.ver~
11138 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11141 case $cc_basename in
11142 xlf* | bgf* | bgxlf* | mpixlf*)
11143 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11144 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11145 hardcode_libdir_flag_spec=
11146 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11147 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11148 if test "x$supports_anon_versioning" = xyes; then
11149 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11150 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11151 echo "local: *; };" >> $output_objdir/$libname.ver~
11152 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11163 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11167 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11172 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11176 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11177 *** create shared libraries on Solaris systems. Therefore, libtool
11178 *** is disabling shared libraries support. We urge you to upgrade GNU
11179 *** binutils to release 2.9.1 or newer. Another option is to modify
11180 *** your PATH or compiler configuration so that the native linker is
11181 *** used, and then restart.
11184 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11192 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11193 case `$LD -v 2>&1` in
11194 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11198 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11199 *** reliably create shared libraries on SCO systems. Therefore, libtool
11200 *** is disabling shared libraries support. We urge you to upgrade GNU
11201 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11202 *** your PATH or compiler configuration so that the native linker is
11203 *** used, and then restart.
11208 # For security reasons, it is highly recommended that you always
11209 # use absolute paths for naming shared libraries, and exclude the
11210 # DT_RUNPATH tag from executables and libraries. But doing so
11211 # requires that you compile everything twice, which is a pain.
11212 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11214 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11215 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11224 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11226 hardcode_direct=yes
11227 hardcode_shlibpath_var=no
11231 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11232 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11233 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11240 if test "$ld_shlibs" = no; then
11242 hardcode_libdir_flag_spec=
11243 export_dynamic_flag_spec=
11244 whole_archive_flag_spec=
11247 # PORTME fill in a description of your system's linker (not GNU ld)
11250 allow_undefined_flag=unsupported
11251 always_export_symbols=yes
11252 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'
11253 # Note: this linker hardcodes the directories in LIBPATH if there
11254 # are no directories specified by -L.
11255 hardcode_minus_L=yes
11256 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11257 # Neither direct hardcoding nor static linking is supported with a
11259 hardcode_direct=unsupported
11264 if test "$host_cpu" = ia64; then
11265 # On IA64, the linker does run time linking by default, so we don't
11266 # have to do anything special.
11267 aix_use_runtimelinking=no
11268 exp_sym_flag='-Bexport'
11271 # If we're using GNU nm, then we don't want the "-C" option.
11272 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11273 # Also, AIX nm treats weak defined symbols like other global
11274 # defined symbols, whereas GNU nm marks them as "W".
11275 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11276 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11278 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'
11280 aix_use_runtimelinking=no
11282 # Test if we are trying to use run time linking or normal
11283 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11284 # need to do runtime linking.
11285 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11286 for ld_flag in $LDFLAGS; do
11287 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11288 aix_use_runtimelinking=yes
11295 exp_sym_flag='-bexport'
11296 no_entry_flag='-bnoentry'
11299 # When large executables or shared objects are built, AIX ld can
11300 # have problems creating the table of contents. If linking a library
11301 # or program results in "error TOC overflow" add -mminimal-toc to
11302 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11303 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11306 hardcode_direct=yes
11307 hardcode_direct_absolute=yes
11308 hardcode_libdir_separator=':'
11309 link_all_deplibs=yes
11310 file_list_spec='${wl}-f,'
11312 if test "$GCC" = yes; then
11313 case $host_os in aix4.[012]|aix4.[012].*)
11314 # We only want to do this on AIX 4.2 and lower, the check
11315 # below for broken collect2 doesn't work under 4.3+
11316 collect2name=`${CC} -print-prog-name=collect2`
11317 if test -f "$collect2name" &&
11318 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11320 # We have reworked collect2
11323 # We have old collect2
11324 hardcode_direct=unsupported
11325 # It fails to find uninstalled libraries when the uninstalled
11326 # path is not listed in the libpath. Setting hardcode_minus_L
11327 # to unsupported forces relinking
11328 hardcode_minus_L=yes
11329 hardcode_libdir_flag_spec='-L$libdir'
11330 hardcode_libdir_separator=
11334 shared_flag='-shared'
11335 if test "$aix_use_runtimelinking" = yes; then
11336 shared_flag="$shared_flag "'${wl}-G'
11340 if test "$host_cpu" = ia64; then
11341 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11342 # chokes on -Wl,-G. The following line is correct:
11345 if test "$aix_use_runtimelinking" = yes; then
11346 shared_flag='${wl}-G'
11348 shared_flag='${wl}-bM:SRE'
11353 export_dynamic_flag_spec='${wl}-bexpall'
11354 # It seems that -bexpall does not export symbols beginning with
11355 # underscore (_), so it is better to generate a list of symbols to export.
11356 always_export_symbols=yes
11357 if test "$aix_use_runtimelinking" = yes; then
11358 # Warning - without using the other runtime loading flags (-brtl),
11359 # -berok will link without error, but may produce a broken library.
11360 allow_undefined_flag='-berok'
11361 # Determine the default libpath from the value encoded in an
11362 # empty executable.
11363 if test x$gcc_no_link = xyes; then
11364 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11367 /* end confdefs.h. */
11377 if ac_fn_c_try_link "$LINENO"; then :
11379 lt_aix_libpath_sed='
11380 /Import File Strings/,/^$/ {
11386 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11387 # Check for a 64-bit object if we didn't find anything.
11388 if test -z "$aix_libpath"; then
11389 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11392 rm -f core conftest.err conftest.$ac_objext \
11393 conftest$ac_exeext conftest.$ac_ext
11394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11396 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11397 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11399 if test "$host_cpu" = ia64; then
11400 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11401 allow_undefined_flag="-z nodefs"
11402 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"
11404 # Determine the default libpath from the value encoded in an
11405 # empty executable.
11406 if test x$gcc_no_link = xyes; then
11407 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11420 if ac_fn_c_try_link "$LINENO"; then :
11422 lt_aix_libpath_sed='
11423 /Import File Strings/,/^$/ {
11429 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11430 # Check for a 64-bit object if we didn't find anything.
11431 if test -z "$aix_libpath"; then
11432 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11435 rm -f core conftest.err conftest.$ac_objext \
11436 conftest$ac_exeext conftest.$ac_ext
11437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11439 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11440 # Warning - without using the other run time loading flags,
11441 # -berok will link without error, but may produce a broken library.
11442 no_undefined_flag=' ${wl}-bernotok'
11443 allow_undefined_flag=' ${wl}-berok'
11444 if test "$with_gnu_ld" = yes; then
11445 # We only use this code for GNU lds that support --whole-archive.
11446 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11448 # Exported symbols can be pulled into shared objects from archives
11449 whole_archive_flag_spec='$convenience'
11451 archive_cmds_need_lc=yes
11452 # This is similar to how AIX traditionally builds its shared libraries.
11453 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'
11461 # see comment about AmigaOS4 .so support
11462 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11463 archive_expsym_cmds=''
11466 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)'
11467 hardcode_libdir_flag_spec='-L$libdir'
11468 hardcode_minus_L=yes
11474 export_dynamic_flag_spec=-rdynamic
11477 cygwin* | mingw* | pw32* | cegcc*)
11478 # When not using gcc, we currently assume that we are using
11479 # Microsoft Visual C++.
11480 # hardcode_libdir_flag_spec is actually meaningless, as there is
11481 # no search path for DLLs.
11482 hardcode_libdir_flag_spec=' '
11483 allow_undefined_flag=unsupported
11484 # Tell ltmain to make .lib files, not .a files.
11486 # Tell ltmain to make .dll files, not .so files.
11488 # FIXME: Setting linknames here is a bad hack.
11489 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11490 # The linker will automatically build a .lib file if we build a DLL.
11491 old_archive_from_new_cmds='true'
11492 # FIXME: Should let the user specify the lib program.
11493 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11494 fix_srcfile_path='`cygpath -w "$srcfile"`'
11495 enable_shared_with_static_runtimes=yes
11498 darwin* | rhapsody*)
11501 archive_cmds_need_lc=no
11503 hardcode_automatic=yes
11504 hardcode_shlibpath_var=unsupported
11505 if test "$lt_cv_ld_force_load" = "yes"; then
11506 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11508 whole_archive_flag_spec=''
11510 link_all_deplibs=yes
11511 allow_undefined_flag="$_lt_dar_allow_undefined"
11512 case $cc_basename in
11513 ifort*) _lt_dar_can_shared=yes ;;
11514 *) _lt_dar_can_shared=$GCC ;;
11516 if test "$_lt_dar_can_shared" = "yes"; then
11517 output_verbose_link_cmd=func_echo_all
11518 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11519 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11520 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}"
11521 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}"
11530 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11531 hardcode_libdir_flag_spec='-L$libdir'
11532 hardcode_shlibpath_var=no
11539 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11540 # support. Future versions do this automatically, but an explicit c++rt0.o
11541 # does not break anything, and helps significantly (at the cost of a little
11544 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11545 hardcode_libdir_flag_spec='-R$libdir'
11546 hardcode_direct=yes
11547 hardcode_shlibpath_var=no
11550 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11552 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11553 hardcode_direct=yes
11554 hardcode_minus_L=yes
11555 hardcode_shlibpath_var=no
11558 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11559 freebsd* | dragonfly*)
11560 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11561 hardcode_libdir_flag_spec='-R$libdir'
11562 hardcode_direct=yes
11563 hardcode_shlibpath_var=no
11567 if test "$GCC" = yes; then
11568 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'
11570 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'
11572 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11573 hardcode_libdir_separator=:
11574 hardcode_direct=yes
11576 # hardcode_minus_L: Not really in the search PATH,
11577 # but as the default location of the library.
11578 hardcode_minus_L=yes
11579 export_dynamic_flag_spec='${wl}-E'
11583 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11584 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11586 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11588 if test "$with_gnu_ld" = no; then
11589 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11590 hardcode_libdir_flag_spec_ld='+b $libdir'
11591 hardcode_libdir_separator=:
11592 hardcode_direct=yes
11593 hardcode_direct_absolute=yes
11594 export_dynamic_flag_spec='${wl}-E'
11595 # hardcode_minus_L: Not really in the search PATH,
11596 # but as the default location of the library.
11597 hardcode_minus_L=yes
11602 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11605 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11608 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11611 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11617 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11620 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11624 # Older versions of the 11.00 compiler do not understand -b yet
11625 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11627 $as_echo_n "checking if $CC understands -b... " >&6; }
11628 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11629 $as_echo_n "(cached) " >&6
11631 lt_cv_prog_compiler__b=no
11632 save_LDFLAGS="$LDFLAGS"
11633 LDFLAGS="$LDFLAGS -b"
11634 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11635 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11636 # The linker can only warn and ignore the option if not recognized
11637 # So say no if there are warnings
11638 if test -s conftest.err; then
11639 # Append any errors to the config.log.
11640 cat conftest.err 1>&5
11641 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11642 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11643 if diff conftest.exp conftest.er2 >/dev/null; then
11644 lt_cv_prog_compiler__b=yes
11647 lt_cv_prog_compiler__b=yes
11651 LDFLAGS="$save_LDFLAGS"
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11655 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11657 if test x"$lt_cv_prog_compiler__b" = xyes; then
11658 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11666 if test "$with_gnu_ld" = no; then
11667 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11668 hardcode_libdir_separator=:
11673 hardcode_shlibpath_var=no
11676 hardcode_direct=yes
11677 hardcode_direct_absolute=yes
11678 export_dynamic_flag_spec='${wl}-E'
11680 # hardcode_minus_L: Not really in the search PATH,
11681 # but as the default location of the library.
11682 hardcode_minus_L=yes
11688 irix5* | irix6* | nonstopux*)
11689 if test "$GCC" = yes; then
11690 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11691 # Try to use the -exported_symbol ld option, if it does not
11692 # work, assume that -exports_file does not work either and
11693 # implicitly export all symbols.
11694 save_LDFLAGS="$LDFLAGS"
11695 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11696 if test x$gcc_no_link = xyes; then
11697 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11703 if ac_fn_c_try_link "$LINENO"; then :
11704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11707 rm -f core conftest.err conftest.$ac_objext \
11708 conftest$ac_exeext conftest.$ac_ext
11709 LDFLAGS="$save_LDFLAGS"
11711 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11712 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11714 archive_cmds_need_lc='no'
11715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11716 hardcode_libdir_separator=:
11718 link_all_deplibs=yes
11722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11723 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11725 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11727 hardcode_libdir_flag_spec='-R$libdir'
11728 hardcode_direct=yes
11729 hardcode_shlibpath_var=no
11733 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11734 hardcode_direct=yes
11735 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11736 hardcode_libdir_separator=:
11737 hardcode_shlibpath_var=no
11744 if test -f /usr/libexec/ld.so; then
11745 hardcode_direct=yes
11746 hardcode_shlibpath_var=no
11747 hardcode_direct_absolute=yes
11748 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11749 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11750 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11751 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11752 export_dynamic_flag_spec='${wl}-E'
11755 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11756 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11757 hardcode_libdir_flag_spec='-R$libdir'
11760 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11761 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11771 hardcode_libdir_flag_spec='-L$libdir'
11772 hardcode_minus_L=yes
11773 allow_undefined_flag=unsupported
11774 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'
11775 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11779 if test "$GCC" = yes; then
11780 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11781 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11783 allow_undefined_flag=' -expect_unresolved \*'
11784 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11786 archive_cmds_need_lc='no'
11787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11788 hardcode_libdir_separator=:
11791 osf4* | osf5*) # as osf3* with the addition of -msym flag
11792 if test "$GCC" = yes; then
11793 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11794 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11795 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11797 allow_undefined_flag=' -expect_unresolved \*'
11798 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11799 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~
11800 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11802 # Both c and cxx compiler support -rpath directly
11803 hardcode_libdir_flag_spec='-rpath $libdir'
11805 archive_cmds_need_lc='no'
11806 hardcode_libdir_separator=:
11810 no_undefined_flag=' -z defs'
11811 if test "$GCC" = yes; then
11813 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11814 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11815 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11817 case `$CC -V 2>&1` in
11820 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11821 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11822 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11826 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11827 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11828 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11832 hardcode_libdir_flag_spec='-R$libdir'
11833 hardcode_shlibpath_var=no
11835 solaris2.[0-5] | solaris2.[0-5].*) ;;
11837 # The compiler driver will combine and reorder linker options,
11838 # but understands `-z linker_flag'. GCC discards it without `$wl',
11839 # but is careful enough not to reorder.
11840 # Supported since Solaris 2.6 (maybe 2.5.1?)
11841 if test "$GCC" = yes; then
11842 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11844 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11848 link_all_deplibs=yes
11852 if test "x$host_vendor" = xsequent; then
11853 # Use $CC to link under sequent, because it throws in some extra .o
11854 # files that make .init and .fini sections work.
11855 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11857 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11859 hardcode_libdir_flag_spec='-L$libdir'
11860 hardcode_direct=yes
11861 hardcode_minus_L=yes
11862 hardcode_shlibpath_var=no
11866 case $host_vendor in
11868 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11869 hardcode_direct=yes # is this really true???
11872 ## LD is ld it makes a PLAMLIB
11873 ## CC just makes a GrossModule.
11874 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11875 reload_cmds='$CC -r -o $output$reload_objs'
11879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11880 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11883 runpath_var='LD_RUN_PATH'
11884 hardcode_shlibpath_var=no
11888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11889 hardcode_shlibpath_var=no
11890 export_dynamic_flag_spec='-Bexport'
11894 if test -d /usr/nec; then
11895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11896 hardcode_shlibpath_var=no
11897 runpath_var=LD_RUN_PATH
11898 hardcode_runpath_var=yes
11903 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11904 no_undefined_flag='${wl}-z,text'
11905 archive_cmds_need_lc=no
11906 hardcode_shlibpath_var=no
11907 runpath_var='LD_RUN_PATH'
11909 if test "$GCC" = yes; then
11910 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11911 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11913 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11914 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11918 sysv5* | sco3.2v5* | sco5v6*)
11919 # Note: We can NOT use -z defs as we might desire, because we do not
11920 # link with -lc, and that would cause any symbols used from libc to
11921 # always be unresolved, which means just about no library would
11922 # ever link correctly. If we're not using GNU ld we use -z text
11923 # though, which does catch some bad symbols but isn't as heavy-handed
11925 no_undefined_flag='${wl}-z,text'
11926 allow_undefined_flag='${wl}-z,nodefs'
11927 archive_cmds_need_lc=no
11928 hardcode_shlibpath_var=no
11929 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11930 hardcode_libdir_separator=':'
11931 link_all_deplibs=yes
11932 export_dynamic_flag_spec='${wl}-Bexport'
11933 runpath_var='LD_RUN_PATH'
11935 if test "$GCC" = yes; then
11936 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11937 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11939 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11940 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11946 hardcode_libdir_flag_spec='-L$libdir'
11947 hardcode_shlibpath_var=no
11955 if test x$host_vendor = xsni; then
11957 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11958 export_dynamic_flag_spec='${wl}-Blargedynsym'
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11965 $as_echo "$ld_shlibs" >&6; }
11966 test "$ld_shlibs" = no && can_build_shared=no
11968 with_gnu_ld=$with_gnu_ld
11985 # Do we need to explicitly link libc?
11987 case "x$archive_cmds_need_lc" in
11989 # Assume -lc should be added
11990 archive_cmds_need_lc=yes
11992 if test "$enable_shared" = yes && test "$GCC" = yes; then
11993 case $archive_cmds in
11995 # FIXME: we may have to deal with multi-command sequences.
11998 # Test whether the compiler implicitly links with -lc since on some
11999 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12000 # to ld, don't add -lc before -lgcc.
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12002 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12003 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12004 $as_echo_n "(cached) " >&6
12007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12010 (eval $ac_compile) 2>&5
12012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12013 test $ac_status = 0; } 2>conftest.err; then
12016 libobjs=conftest.$ac_objext
12018 wl=$lt_prog_compiler_wl
12019 pic_flag=$lt_prog_compiler_pic
12025 lt_save_allow_undefined_flag=$allow_undefined_flag
12026 allow_undefined_flag=
12027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12028 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12031 test $ac_status = 0; }
12033 lt_cv_archive_cmds_need_lc=no
12035 lt_cv_archive_cmds_need_lc=yes
12037 allow_undefined_flag=$lt_save_allow_undefined_flag
12039 cat conftest.err 1>&5
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12045 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12046 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12210 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12212 if test "$GCC" = yes; then
12214 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12215 *) lt_awk_arg="/^libraries:/" ;;
12218 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12219 *) lt_sed_strip_eq="s,=/,/,g" ;;
12221 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12222 case $lt_search_path_spec in
12224 # if the path contains ";" then we assume it to be the separator
12225 # otherwise default to the standard path separator (i.e. ":") - it is
12226 # assumed that no part of a normal pathname contains ";" but that should
12227 # okay in the real world where ";" in dirpaths is itself problematic.
12228 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12231 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12234 # Ok, now we have the path, separated by spaces, we can step through it
12235 # and add multilib dir if necessary.
12236 lt_tmp_lt_search_path_spec=
12237 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12238 for lt_sys_path in $lt_search_path_spec; do
12239 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12240 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12242 test -d "$lt_sys_path" && \
12243 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12246 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12247 BEGIN {RS=" "; FS="/|\n";} {
12250 for (lt_i = NF; lt_i > 0; lt_i--) {
12251 if ($lt_i != "" && $lt_i != ".") {
12252 if ($lt_i == "..") {
12255 if (lt_count == 0) {
12256 lt_foo="/" $lt_i lt_foo;
12263 if (lt_foo != "") { lt_freq[lt_foo]++; }
12264 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12266 # AWK program above erroneously prepends '/' to C:/dos/paths
12269 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12270 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12272 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12274 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12276 library_names_spec=
12277 libname_spec='lib$name'
12281 postuninstall_cmds=
12285 shlibpath_overrides_runpath=unknown
12287 dynamic_linker="$host_os ld.so"
12288 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12289 need_lib_prefix=unknown
12290 hardcode_into_libs=no
12292 # when you set need_version to no, make sure it does not cause -set_version
12293 # flags to be left without arguments
12294 need_version=unknown
12299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12300 shlibpath_var=LIBPATH
12302 # AIX 3 has no versioning support, so we append a major version to the name.
12303 soname_spec='${libname}${release}${shared_ext}$major'
12310 hardcode_into_libs=yes
12311 if test "$host_cpu" = ia64; then
12312 # AIX 5 supports IA64
12313 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12314 shlibpath_var=LD_LIBRARY_PATH
12316 # With GCC up to 2.95.x, collect2 would create an import file
12317 # for dependence libraries. The import file would start with
12318 # the line `#! .'. This would cause the generated library to
12319 # depend on `.', always an invalid library. This was fixed in
12320 # development snapshots of GCC prior to 3.0.
12322 aix4 | aix4.[01] | aix4.[01].*)
12323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12325 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12328 can_build_shared=no
12332 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12333 # soname into executable. Probably we can add versioning support to
12334 # collect2, so additional links can be useful in future.
12335 if test "$aix_use_runtimelinking" = yes; then
12336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12337 # instead of lib<name>.a to let people know that these are not
12338 # typical AIX shared libraries.
12339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12341 # We preserve .a as extension for shared libraries through AIX4.2
12342 # and later when we are not doing run time linking.
12343 library_names_spec='${libname}${release}.a $libname.a'
12344 soname_spec='${libname}${release}${shared_ext}$major'
12346 shlibpath_var=LIBPATH
12353 # Since July 2007 AmigaOS4 officially supports .so libraries.
12354 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12358 library_names_spec='$libname.ixlibrary $libname.a'
12359 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12360 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12366 library_names_spec='${libname}${shared_ext}'
12367 dynamic_linker="$host_os ld.so"
12368 shlibpath_var=LIBRARY_PATH
12374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12375 soname_spec='${libname}${release}${shared_ext}$major'
12376 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12377 shlibpath_var=LD_LIBRARY_PATH
12378 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12379 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12380 # the default ld.so.conf also contains /usr/contrib/lib and
12381 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12382 # libtool to hard-code these into programs
12385 cygwin* | mingw* | pw32* | cegcc*)
12386 version_type=windows
12391 case $GCC,$host_os in
12392 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12393 library_names_spec='$libname.dll.a'
12394 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12395 postinstall_cmds='base_file=`basename \${file}`~
12396 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12397 dldir=$destdir/`dirname \$dlpath`~
12398 test -d \$dldir || mkdir -p \$dldir~
12399 $install_prog $dir/$dlname \$dldir/$dlname~
12400 chmod a+x \$dldir/$dlname~
12401 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12402 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12405 dlpath=$dir/\$dldll~
12407 shlibpath_overrides_runpath=yes
12411 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12412 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12414 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12417 # MinGW DLLs use traditional 'lib' prefix
12418 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12421 # pw32 DLLs use 'pw' prefix rather than 'lib'
12422 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12428 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12431 dynamic_linker='Win32 ld.exe'
12432 # FIXME: first we should search . and the directory the executable is in
12436 darwin* | rhapsody*)
12437 dynamic_linker="$host_os dyld"
12438 version_type=darwin
12441 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12442 soname_spec='${libname}${release}${major}$shared_ext'
12443 shlibpath_overrides_runpath=yes
12444 shlibpath_var=DYLD_LIBRARY_PATH
12445 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12447 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12448 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12456 soname_spec='${libname}${release}${shared_ext}$major'
12457 shlibpath_var=LD_LIBRARY_PATH
12464 freebsd* | dragonfly*)
12465 # DragonFly does not have aout. When/if they implement a new
12466 # versioning mechanism, adjust this.
12467 if test -x /usr/bin/objformat; then
12468 objformat=`/usr/bin/objformat`
12471 freebsd[123]*) objformat=aout ;;
12472 *) objformat=elf ;;
12475 version_type=freebsd-$objformat
12476 case $version_type in
12478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12487 shlibpath_var=LD_LIBRARY_PATH
12490 shlibpath_overrides_runpath=yes
12492 freebsd3.[01]* | freebsdelf3.[01]*)
12493 shlibpath_overrides_runpath=yes
12494 hardcode_into_libs=yes
12496 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12497 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12498 shlibpath_overrides_runpath=no
12499 hardcode_into_libs=yes
12501 *) # from 4.6 on, and DragonFly
12502 shlibpath_overrides_runpath=yes
12503 hardcode_into_libs=yes
12512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12513 soname_spec='${libname}${release}${shared_ext}$major'
12514 shlibpath_var=LD_LIBRARY_PATH
12515 hardcode_into_libs=yes
12522 dynamic_linker="$host_os runtime_loader"
12523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12524 soname_spec='${libname}${release}${shared_ext}$major'
12525 shlibpath_var=LIBRARY_PATH
12526 shlibpath_overrides_runpath=yes
12527 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12528 hardcode_into_libs=yes
12531 hpux9* | hpux10* | hpux11*)
12532 # Give a soname corresponding to the major version so that dld.sl refuses to
12533 # link against other versions.
12540 hardcode_into_libs=yes
12541 dynamic_linker="$host_os dld.so"
12542 shlibpath_var=LD_LIBRARY_PATH
12543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12545 soname_spec='${libname}${release}${shared_ext}$major'
12546 if test "X$HPUX_IA64_MODE" = X32; then
12547 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12549 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12555 hardcode_into_libs=yes
12556 dynamic_linker="$host_os dld.sl"
12557 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12560 soname_spec='${libname}${release}${shared_ext}$major'
12561 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12566 dynamic_linker="$host_os dld.sl"
12567 shlibpath_var=SHLIB_PATH
12568 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12570 soname_spec='${libname}${release}${shared_ext}$major'
12573 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12574 postinstall_cmds='chmod 555 $lib'
12575 # or fails outright, so override atomically:
12576 install_override_mode=555
12583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12584 soname_spec='${libname}${release}${shared_ext}$major'
12585 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12586 shlibpath_var=LD_LIBRARY_PATH
12587 shlibpath_overrides_runpath=no
12588 hardcode_into_libs=yes
12591 irix5* | irix6* | nonstopux*)
12593 nonstopux*) version_type=nonstopux ;;
12595 if test "$lt_cv_prog_gnu_ld" = yes; then
12603 soname_spec='${libname}${release}${shared_ext}$major'
12604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12606 irix5* | nonstopux*)
12607 libsuff= shlibsuff=
12610 case $LD in # libtool.m4 will add one of these switches to LD
12611 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12612 libsuff= shlibsuff= libmagic=32-bit;;
12613 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12614 libsuff=32 shlibsuff=N32 libmagic=N32;;
12615 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12616 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12617 *) libsuff= shlibsuff= libmagic=never-match;;
12621 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12622 shlibpath_overrides_runpath=no
12623 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12624 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12625 hardcode_into_libs=yes
12628 # No shared lib support for Linux oldld, aout, or coff.
12629 linux*oldld* | linux*aout* | linux*coff*)
12633 # This must be Linux ELF.
12634 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12639 soname_spec='${libname}${release}${shared_ext}$major'
12640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12641 shlibpath_var=LD_LIBRARY_PATH
12642 shlibpath_overrides_runpath=no
12644 # Some binutils ld are patched to set DT_RUNPATH
12645 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12646 $as_echo_n "(cached) " >&6
12648 lt_cv_shlibpath_overrides_runpath=no
12649 save_LDFLAGS=$LDFLAGS
12650 save_libdir=$libdir
12651 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12652 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12653 if test x$gcc_no_link = xyes; then
12654 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12657 /* end confdefs.h. */
12667 if ac_fn_c_try_link "$LINENO"; then :
12668 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12669 lt_cv_shlibpath_overrides_runpath=yes
12672 rm -f core conftest.err conftest.$ac_objext \
12673 conftest$ac_exeext conftest.$ac_ext
12674 LDFLAGS=$save_LDFLAGS
12675 libdir=$save_libdir
12679 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12681 # This implies no fast_install, which is unacceptable.
12682 # Some rework will be needed to allow for fast_install
12683 # before this can be enabled.
12684 hardcode_into_libs=yes
12686 # Append ld.so.conf contents to the search path
12687 if test -f /etc/ld.so.conf; then
12688 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12689 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12692 # We used to test for /lib/ld.so.1 and disable shared libraries on
12693 # powerpc, because MkLinux only supported shared libraries with the
12694 # GNU dynamic linker. Since this was broken with cross compilers,
12695 # most powerpc-linux boxes support dynamic linking these days and
12696 # people can always --disable-shared, the test was removed, and we
12697 # assume the GNU/Linux dynamic linker is in use.
12698 dynamic_linker='GNU/Linux ld.so'
12705 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12707 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12708 dynamic_linker='NetBSD (a.out) ld.so'
12710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12711 soname_spec='${libname}${release}${shared_ext}$major'
12712 dynamic_linker='NetBSD ld.elf_so'
12714 shlibpath_var=LD_LIBRARY_PATH
12715 shlibpath_overrides_runpath=yes
12716 hardcode_into_libs=yes
12721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12722 shlibpath_var=LD_LIBRARY_PATH
12723 shlibpath_overrides_runpath=yes
12730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12731 soname_spec='${libname}${release}${shared_ext}$major'
12732 shlibpath_var=LD_LIBRARY_PATH
12733 shlibpath_overrides_runpath=no
12734 hardcode_into_libs=yes
12735 dynamic_linker='ldqnx.so'
12740 sys_lib_dlsearch_path_spec="/usr/lib"
12742 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12744 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12745 *) need_version=no ;;
12747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12748 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12749 shlibpath_var=LD_LIBRARY_PATH
12750 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12752 openbsd2.[89] | openbsd2.[89].*)
12753 shlibpath_overrides_runpath=no
12756 shlibpath_overrides_runpath=yes
12760 shlibpath_overrides_runpath=yes
12765 libname_spec='$name'
12768 library_names_spec='$libname${shared_ext} $libname.a'
12769 dynamic_linker='OS/2 ld.exe'
12770 shlibpath_var=LIBPATH
12773 osf3* | osf4* | osf5*)
12777 soname_spec='${libname}${release}${shared_ext}$major'
12778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12779 shlibpath_var=LD_LIBRARY_PATH
12780 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12781 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12793 soname_spec='${libname}${release}${shared_ext}$major'
12794 shlibpath_var=LD_LIBRARY_PATH
12795 shlibpath_overrides_runpath=yes
12796 hardcode_into_libs=yes
12797 # ldd complains unless libraries are executable
12798 postinstall_cmds='chmod +x $lib'
12803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12804 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12805 shlibpath_var=LD_LIBRARY_PATH
12806 shlibpath_overrides_runpath=yes
12807 if test "$with_gnu_ld" = yes; then
12815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12816 soname_spec='${libname}${release}${shared_ext}$major'
12817 shlibpath_var=LD_LIBRARY_PATH
12818 case $host_vendor in
12820 shlibpath_overrides_runpath=no
12822 runpath_var=LD_RUN_PATH
12830 shlibpath_overrides_runpath=no
12831 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12837 if test -d /usr/nec ;then
12839 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12840 soname_spec='$libname${shared_ext}.$major'
12841 shlibpath_var=LD_LIBRARY_PATH
12845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12846 version_type=freebsd-elf
12849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12850 soname_spec='${libname}${release}${shared_ext}$major'
12851 shlibpath_var=LD_LIBRARY_PATH
12852 shlibpath_overrides_runpath=yes
12853 hardcode_into_libs=yes
12854 if test "$with_gnu_ld" = yes; then
12855 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12857 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12860 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12864 sys_lib_dlsearch_path_spec='/usr/lib'
12868 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12873 shlibpath_var=LD_LIBRARY_PATH
12874 shlibpath_overrides_runpath=no
12875 hardcode_into_libs=yes
12880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12881 soname_spec='${libname}${release}${shared_ext}$major'
12882 shlibpath_var=LD_LIBRARY_PATH
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12890 $as_echo "$dynamic_linker" >&6; }
12891 test "$dynamic_linker" = no && can_build_shared=no
12893 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12894 if test "$GCC" = yes; then
12895 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12898 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12899 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12901 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12902 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12997 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12999 if test -n "$hardcode_libdir_flag_spec" ||
13000 test -n "$runpath_var" ||
13001 test "X$hardcode_automatic" = "Xyes" ; then
13003 # We can hardcode non-existent directories.
13004 if test "$hardcode_direct" != no &&
13005 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13006 # have to relink, otherwise we might link with an installed library
13007 # when we should be linking with a yet-to-be-installed one
13008 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13009 test "$hardcode_minus_L" != no; then
13010 # Linking always hardcodes the temporary library directory.
13011 hardcode_action=relink
13013 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13014 hardcode_action=immediate
13017 # We cannot hardcode anything, or else we can only hardcode existing
13019 hardcode_action=unsupported
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13022 $as_echo "$hardcode_action" >&6; }
13024 if test "$hardcode_action" = relink ||
13025 test "$inherit_rpath" = yes; then
13026 # Fast installation is not supported
13027 enable_fast_install=no
13028 elif test "$shlibpath_overrides_runpath" = yes ||
13029 test "$enable_shared" = no; then
13030 # Fast installation is not necessary
13031 enable_fast_install=needless
13039 if test "x$enable_dlopen" != xyes; then
13040 enable_dlopen=unknown
13041 enable_dlopen_self=unknown
13042 enable_dlopen_self_static=unknown
13049 lt_cv_dlopen="load_add_on"
13051 lt_cv_dlopen_self=yes
13054 mingw* | pw32* | cegcc*)
13055 lt_cv_dlopen="LoadLibrary"
13060 lt_cv_dlopen="dlopen"
13065 # if libdl is installed we need to link against it
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13067 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13068 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13069 $as_echo_n "(cached) " >&6
13071 ac_check_lib_save_LIBS=$LIBS
13073 if test x$gcc_no_link = xyes; then
13074 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h. */
13079 /* Override any GCC internal prototype to avoid an error.
13080 Use char because int might match the return type of a GCC
13081 builtin and then its argument prototype would still apply. */
13094 if ac_fn_c_try_link "$LINENO"; then :
13095 ac_cv_lib_dl_dlopen=yes
13097 ac_cv_lib_dl_dlopen=no
13099 rm -f core conftest.err conftest.$ac_objext \
13100 conftest$ac_exeext conftest.$ac_ext
13101 LIBS=$ac_check_lib_save_LIBS
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13104 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13105 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13106 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13109 lt_cv_dlopen="dyld"
13111 lt_cv_dlopen_self=yes
13118 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13119 if test "x$ac_cv_func_shl_load" = x""yes; then :
13120 lt_cv_dlopen="shl_load"
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13123 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13124 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13125 $as_echo_n "(cached) " >&6
13127 ac_check_lib_save_LIBS=$LIBS
13129 if test x$gcc_no_link = xyes; then
13130 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13135 /* Override any GCC internal prototype to avoid an error.
13136 Use char because int might match the return type of a GCC
13137 builtin and then its argument prototype would still apply. */
13145 return shl_load ();
13150 if ac_fn_c_try_link "$LINENO"; then :
13151 ac_cv_lib_dld_shl_load=yes
13153 ac_cv_lib_dld_shl_load=no
13155 rm -f core conftest.err conftest.$ac_objext \
13156 conftest$ac_exeext conftest.$ac_ext
13157 LIBS=$ac_check_lib_save_LIBS
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13160 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13161 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13162 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13164 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13165 if test "x$ac_cv_func_dlopen" = x""yes; then :
13166 lt_cv_dlopen="dlopen"
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13169 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13170 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13171 $as_echo_n "(cached) " >&6
13173 ac_check_lib_save_LIBS=$LIBS
13175 if test x$gcc_no_link = xyes; then
13176 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179 /* end confdefs.h. */
13181 /* Override any GCC internal prototype to avoid an error.
13182 Use char because int might match the return type of a GCC
13183 builtin and then its argument prototype would still apply. */
13196 if ac_fn_c_try_link "$LINENO"; then :
13197 ac_cv_lib_dl_dlopen=yes
13199 ac_cv_lib_dl_dlopen=no
13201 rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203 LIBS=$ac_check_lib_save_LIBS
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13206 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13207 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13208 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13211 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13212 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13213 $as_echo_n "(cached) " >&6
13215 ac_check_lib_save_LIBS=$LIBS
13216 LIBS="-lsvld $LIBS"
13217 if test x$gcc_no_link = xyes; then
13218 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13223 /* Override any GCC internal prototype to avoid an error.
13224 Use char because int might match the return type of a GCC
13225 builtin and then its argument prototype would still apply. */
13238 if ac_fn_c_try_link "$LINENO"; then :
13239 ac_cv_lib_svld_dlopen=yes
13241 ac_cv_lib_svld_dlopen=no
13243 rm -f core conftest.err conftest.$ac_objext \
13244 conftest$ac_exeext conftest.$ac_ext
13245 LIBS=$ac_check_lib_save_LIBS
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13248 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13249 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13250 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13253 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13254 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13255 $as_echo_n "(cached) " >&6
13257 ac_check_lib_save_LIBS=$LIBS
13259 if test x$gcc_no_link = xyes; then
13260 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13263 /* end confdefs.h. */
13265 /* Override any GCC internal prototype to avoid an error.
13266 Use char because int might match the return type of a GCC
13267 builtin and then its argument prototype would still apply. */
13275 return dld_link ();
13280 if ac_fn_c_try_link "$LINENO"; then :
13281 ac_cv_lib_dld_dld_link=yes
13283 ac_cv_lib_dld_dld_link=no
13285 rm -f core conftest.err conftest.$ac_objext \
13286 conftest$ac_exeext conftest.$ac_ext
13287 LIBS=$ac_check_lib_save_LIBS
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13290 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13291 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13292 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13313 if test "x$lt_cv_dlopen" != xno; then
13319 case $lt_cv_dlopen in
13321 save_CPPFLAGS="$CPPFLAGS"
13322 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13324 save_LDFLAGS="$LDFLAGS"
13325 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13328 LIBS="$lt_cv_dlopen_libs $LIBS"
13330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13331 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13332 if test "${lt_cv_dlopen_self+set}" = set; then :
13333 $as_echo_n "(cached) " >&6
13335 if test "$cross_compiling" = yes; then :
13336 lt_cv_dlopen_self=cross
13338 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13339 lt_status=$lt_dlunknown
13340 cat > conftest.$ac_ext <<_LT_EOF
13341 #line 13341 "configure"
13342 #include "confdefs.h"
13351 # define LT_DLGLOBAL RTLD_GLOBAL
13354 # define LT_DLGLOBAL DL_GLOBAL
13356 # define LT_DLGLOBAL 0
13360 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13361 find out it does not work in some platform. */
13362 #ifndef LT_DLLAZY_OR_NOW
13364 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13367 # define LT_DLLAZY_OR_NOW DL_LAZY
13370 # define LT_DLLAZY_OR_NOW RTLD_NOW
13373 # define LT_DLLAZY_OR_NOW DL_NOW
13375 # define LT_DLLAZY_OR_NOW 0
13382 /* When -fvisbility=hidden is used, assume the code has been annotated
13383 correspondingly for the symbols needed. */
13384 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13385 void fnord () __attribute__((visibility("default")));
13388 void fnord () { int i=42; }
13391 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13392 int status = $lt_dlunknown;
13396 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13399 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13400 else puts (dlerror ());
13402 /* dlclose (self); */
13410 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13411 (eval $ac_link) 2>&5
13413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13414 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13415 (./conftest; exit; ) >&5 2>/dev/null
13417 case x$lt_status in
13418 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13419 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13420 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13423 # compilation failed
13424 lt_cv_dlopen_self=no
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13432 $as_echo "$lt_cv_dlopen_self" >&6; }
13434 if test "x$lt_cv_dlopen_self" = xyes; then
13435 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13437 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13438 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13439 $as_echo_n "(cached) " >&6
13441 if test "$cross_compiling" = yes; then :
13442 lt_cv_dlopen_self_static=cross
13444 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13445 lt_status=$lt_dlunknown
13446 cat > conftest.$ac_ext <<_LT_EOF
13447 #line 13447 "configure"
13448 #include "confdefs.h"
13457 # define LT_DLGLOBAL RTLD_GLOBAL
13460 # define LT_DLGLOBAL DL_GLOBAL
13462 # define LT_DLGLOBAL 0
13466 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13467 find out it does not work in some platform. */
13468 #ifndef LT_DLLAZY_OR_NOW
13470 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13473 # define LT_DLLAZY_OR_NOW DL_LAZY
13476 # define LT_DLLAZY_OR_NOW RTLD_NOW
13479 # define LT_DLLAZY_OR_NOW DL_NOW
13481 # define LT_DLLAZY_OR_NOW 0
13488 /* When -fvisbility=hidden is used, assume the code has been annotated
13489 correspondingly for the symbols needed. */
13490 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13491 void fnord () __attribute__((visibility("default")));
13494 void fnord () { int i=42; }
13497 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13498 int status = $lt_dlunknown;
13502 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13505 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13506 else puts (dlerror ());
13508 /* dlclose (self); */
13516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13517 (eval $ac_link) 2>&5
13519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13520 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13521 (./conftest; exit; ) >&5 2>/dev/null
13523 case x$lt_status in
13524 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13525 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13526 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13529 # compilation failed
13530 lt_cv_dlopen_self_static=no
13537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13538 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13541 CPPFLAGS="$save_CPPFLAGS"
13542 LDFLAGS="$save_LDFLAGS"
13547 case $lt_cv_dlopen_self in
13548 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13549 *) enable_dlopen_self=unknown ;;
13552 case $lt_cv_dlopen_self_static in
13553 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13554 *) enable_dlopen_self_static=unknown ;;
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13577 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13578 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13579 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13580 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13582 $as_echo "yes" >&6; }
13584 # FIXME - insert some real tests, host_os isn't really good enough
13587 if test -n "$STRIP" ; then
13588 striplib="$STRIP -x"
13589 old_striplib="$STRIP -S"
13590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13591 $as_echo "yes" >&6; }
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13594 $as_echo "no" >&6; }
13598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13599 $as_echo "no" >&6; }
13615 # Report which library types will actually be built
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13617 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13619 $as_echo "$can_build_shared" >&6; }
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13622 $as_echo_n "checking whether to build shared libraries... " >&6; }
13623 test "$can_build_shared" = "no" && enable_shared=no
13625 # On AIX, shared libraries and static libraries use the same namespace, and
13626 # are all built from PIC.
13629 test "$enable_shared" = yes && enable_static=no
13630 if test -n "$RANLIB"; then
13631 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13632 postinstall_cmds='$RANLIB $lib'
13637 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13638 test "$enable_shared" = yes && enable_static=no
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13643 $as_echo "$enable_shared" >&6; }
13645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13646 $as_echo_n "checking whether to build static libraries... " >&6; }
13647 # Make sure either enable_shared or enable_static is yes.
13648 test "$enable_shared" = yes || enable_static=yes
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13650 $as_echo "$enable_static" >&6; }
13657 ac_cpp='$CPP $CPPFLAGS'
13658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13660 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13664 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13665 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13666 (test "X$CXX" != "Xg++"))) ; then
13668 ac_cpp='$CXXCPP $CPPFLAGS'
13669 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13670 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13671 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13673 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13674 if test -z "$CXXCPP"; then
13675 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13676 $as_echo_n "(cached) " >&6
13678 # Double quotes because CXXCPP needs to be expanded
13679 for CXXCPP in "$CXX -E" "/lib/cpp"
13681 ac_preproc_ok=false
13682 for ac_cxx_preproc_warn_flag in '' yes
13684 # Use a header file that comes with gcc, so configuring glibc
13685 # with a fresh cross-compiler works.
13686 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13687 # <limits.h> exists even on freestanding compilers.
13688 # On the NeXT, cc -E runs the code through the compiler's parser,
13689 # not just through cpp. "Syntax error" is here to catch this case.
13690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13691 /* end confdefs.h. */
13693 # include <limits.h>
13695 # include <assert.h>
13699 if ac_fn_cxx_try_cpp "$LINENO"; then :
13702 # Broken: fails on valid input.
13705 rm -f conftest.err conftest.$ac_ext
13707 # OK, works on sane cases. Now check whether nonexistent headers
13708 # can be detected and how.
13709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13710 /* end confdefs.h. */
13711 #include <ac_nonexistent.h>
13713 if ac_fn_cxx_try_cpp "$LINENO"; then :
13714 # Broken: success on invalid input.
13717 # Passes both tests.
13721 rm -f conftest.err conftest.$ac_ext
13724 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13725 rm -f conftest.err conftest.$ac_ext
13726 if $ac_preproc_ok; then :
13731 ac_cv_prog_CXXCPP=$CXXCPP
13734 CXXCPP=$ac_cv_prog_CXXCPP
13736 ac_cv_prog_CXXCPP=$CXXCPP
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13739 $as_echo "$CXXCPP" >&6; }
13740 ac_preproc_ok=false
13741 for ac_cxx_preproc_warn_flag in '' yes
13743 # Use a header file that comes with gcc, so configuring glibc
13744 # with a fresh cross-compiler works.
13745 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13746 # <limits.h> exists even on freestanding compilers.
13747 # On the NeXT, cc -E runs the code through the compiler's parser,
13748 # not just through cpp. "Syntax error" is here to catch this case.
13749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13750 /* end confdefs.h. */
13752 # include <limits.h>
13754 # include <assert.h>
13758 if ac_fn_cxx_try_cpp "$LINENO"; then :
13761 # Broken: fails on valid input.
13764 rm -f conftest.err conftest.$ac_ext
13766 # OK, works on sane cases. Now check whether nonexistent headers
13767 # can be detected and how.
13768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769 /* end confdefs.h. */
13770 #include <ac_nonexistent.h>
13772 if ac_fn_cxx_try_cpp "$LINENO"; then :
13773 # Broken: success on invalid input.
13776 # Passes both tests.
13780 rm -f conftest.err conftest.$ac_ext
13783 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13784 rm -f conftest.err conftest.$ac_ext
13785 if $ac_preproc_ok; then :
13788 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13789 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13790 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13791 See \`config.log' for more details." "$LINENO" 5; }
13795 ac_cpp='$CPP $CPPFLAGS'
13796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13801 _lt_caught_CXX_error=yes
13805 ac_cpp='$CXXCPP $CPPFLAGS'
13806 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13807 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13808 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13810 archive_cmds_need_lc_CXX=no
13811 allow_undefined_flag_CXX=
13812 always_export_symbols_CXX=no
13813 archive_expsym_cmds_CXX=
13814 compiler_needs_object_CXX=no
13815 export_dynamic_flag_spec_CXX=
13816 hardcode_direct_CXX=no
13817 hardcode_direct_absolute_CXX=no
13818 hardcode_libdir_flag_spec_CXX=
13819 hardcode_libdir_flag_spec_ld_CXX=
13820 hardcode_libdir_separator_CXX=
13821 hardcode_minus_L_CXX=no
13822 hardcode_shlibpath_var_CXX=unsupported
13823 hardcode_automatic_CXX=no
13824 inherit_rpath_CXX=no
13826 module_expsym_cmds_CXX=
13827 link_all_deplibs_CXX=unknown
13828 old_archive_cmds_CXX=$old_archive_cmds
13829 reload_flag_CXX=$reload_flag
13830 reload_cmds_CXX=$reload_cmds
13831 no_undefined_flag_CXX=
13832 whole_archive_flag_spec_CXX=
13833 enable_shared_with_static_runtimes_CXX=no
13835 # Source file extension for C++ test sources.
13838 # Object file extension for compiled C++ test sources.
13842 # No sense in running all these tests if we already determined that
13843 # the CXX compiler isn't working. Some variables (like enable_shared)
13844 # are currently assumed to apply to all compilers on this platform,
13845 # and will be corrupted by setting them based on a non-working compiler.
13846 if test "$_lt_caught_CXX_error" != yes; then
13847 # Code to be used in simple compile tests
13848 lt_simple_compile_test_code="int some_variable = 0;"
13850 # Code to be used in simple link tests
13851 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13853 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13860 # If no C compiler was specified, use CC.
13863 # If no C compiler flags were specified, use CFLAGS.
13864 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13866 # Allow CC to be a program name with arguments.
13870 # save warnings/boilerplate of simple test code
13871 ac_outfile=conftest.$ac_objext
13872 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13873 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13874 _lt_compiler_boilerplate=`cat conftest.err`
13877 ac_outfile=conftest.$ac_objext
13878 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13879 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13880 _lt_linker_boilerplate=`cat conftest.err`
13884 # Allow CC to be a program name with arguments.
13889 lt_save_with_gnu_ld=$with_gnu_ld
13890 lt_save_path_LD=$lt_cv_path_LD
13891 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13892 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13894 $as_unset lt_cv_prog_gnu_ld
13896 if test -n "${lt_cv_path_LDCXX+set}"; then
13897 lt_cv_path_LD=$lt_cv_path_LDCXX
13899 $as_unset lt_cv_path_LD
13901 test -z "${LDCXX+set}" || LD=$LDCXX
13905 for cc_temp in $compiler""; do
13907 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13908 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13913 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13916 if test -n "$compiler"; then
13917 # We don't want -fno-exception when compiling C++ code, so set the
13918 # no_builtin_flag separately
13919 if test "$GXX" = yes; then
13920 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13922 lt_prog_compiler_no_builtin_flag_CXX=
13925 if test "$GXX" = yes; then
13926 # Set up default GNU C++ configuration
13930 # Check whether --with-gnu-ld was given.
13931 if test "${with_gnu_ld+set}" = set; then :
13932 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13938 if test "$GCC" = yes; then
13939 # Check if gcc -print-prog-name=ld gives a path.
13940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13941 $as_echo_n "checking for ld used by $CC... " >&6; }
13944 # gcc leaves a trailing carriage return which upsets mingw
13945 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13947 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13950 # Accept absolute paths.
13952 re_direlt='/[^/][^/]*/\.\./'
13953 # Canonicalize the pathname of ld
13954 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13955 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13956 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13958 test -z "$LD" && LD="$ac_prog"
13961 # If it fails, then pretend we aren't using GCC.
13965 # If it is relative, then search for the first ld in PATH.
13966 with_gnu_ld=unknown
13969 elif test "$with_gnu_ld" = yes; then
13970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13971 $as_echo_n "checking for GNU ld... " >&6; }
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13974 $as_echo_n "checking for non-GNU ld... " >&6; }
13976 if test "${lt_cv_path_LD+set}" = set; then :
13977 $as_echo_n "(cached) " >&6
13979 if test -z "$LD"; then
13980 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13981 for ac_dir in $PATH; do
13983 test -z "$ac_dir" && ac_dir=.
13984 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13985 lt_cv_path_LD="$ac_dir/$ac_prog"
13986 # Check to see if the program is GNU ld. I'd rather use --version,
13987 # but apparently some variants of GNU ld only accept -v.
13988 # Break only if it was the GNU/non-GNU ld that we prefer.
13989 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13990 *GNU* | *'with BFD'*)
13991 test "$with_gnu_ld" != no && break
13994 test "$with_gnu_ld" != yes && break
14001 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14005 LD="$lt_cv_path_LD"
14006 if test -n "$LD"; then
14007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14008 $as_echo "$LD" >&6; }
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14011 $as_echo "no" >&6; }
14013 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14015 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14016 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14017 $as_echo_n "(cached) " >&6
14019 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14020 case `$LD -v 2>&1 </dev/null` in
14021 *GNU* | *'with BFD'*)
14022 lt_cv_prog_gnu_ld=yes
14025 lt_cv_prog_gnu_ld=no
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14030 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14031 with_gnu_ld=$lt_cv_prog_gnu_ld
14039 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14040 # archiving commands below assume that GNU ld is being used.
14041 if test "$with_gnu_ld" = yes; then
14042 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14043 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14045 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14046 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14048 # If archive_cmds runs LD, not CC, wlarc should be empty
14049 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14050 # investigate it a little bit more. (MM)
14053 # ancient GNU ld didn't support --whole-archive et. al.
14054 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14055 $GREP 'no-whole-archive' > /dev/null; then
14056 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14058 whole_archive_flag_spec_CXX=
14064 # A generic and very simple default shared library creation
14065 # command for GNU C++ for the case where it uses the native
14066 # linker, instead of GNU ld. If possible, this setting should
14067 # overridden to take advantage of the native linker features on
14068 # the platform it is being used on.
14069 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14072 # Commands to make compiler produce verbose output that lists
14073 # what "hidden" libraries, object files and flags are used when
14074 # linking a shared library.
14075 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14083 # PORTME: fill in a description of your system's C++ link characteristics
14084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14085 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14089 # FIXME: insert proper C++ library support
14093 if test "$host_cpu" = ia64; then
14094 # On IA64, the linker does run time linking by default, so we don't
14095 # have to do anything special.
14096 aix_use_runtimelinking=no
14097 exp_sym_flag='-Bexport'
14100 aix_use_runtimelinking=no
14102 # Test if we are trying to use run time linking or normal
14103 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14104 # need to do runtime linking.
14105 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14106 for ld_flag in $LDFLAGS; do
14109 aix_use_runtimelinking=yes
14117 exp_sym_flag='-bexport'
14118 no_entry_flag='-bnoentry'
14121 # When large executables or shared objects are built, AIX ld can
14122 # have problems creating the table of contents. If linking a library
14123 # or program results in "error TOC overflow" add -mminimal-toc to
14124 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14125 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14127 archive_cmds_CXX=''
14128 hardcode_direct_CXX=yes
14129 hardcode_direct_absolute_CXX=yes
14130 hardcode_libdir_separator_CXX=':'
14131 link_all_deplibs_CXX=yes
14132 file_list_spec_CXX='${wl}-f,'
14134 if test "$GXX" = yes; then
14135 case $host_os in aix4.[012]|aix4.[012].*)
14136 # We only want to do this on AIX 4.2 and lower, the check
14137 # below for broken collect2 doesn't work under 4.3+
14138 collect2name=`${CC} -print-prog-name=collect2`
14139 if test -f "$collect2name" &&
14140 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14142 # We have reworked collect2
14145 # We have old collect2
14146 hardcode_direct_CXX=unsupported
14147 # It fails to find uninstalled libraries when the uninstalled
14148 # path is not listed in the libpath. Setting hardcode_minus_L
14149 # to unsupported forces relinking
14150 hardcode_minus_L_CXX=yes
14151 hardcode_libdir_flag_spec_CXX='-L$libdir'
14152 hardcode_libdir_separator_CXX=
14155 shared_flag='-shared'
14156 if test "$aix_use_runtimelinking" = yes; then
14157 shared_flag="$shared_flag "'${wl}-G'
14161 if test "$host_cpu" = ia64; then
14162 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14163 # chokes on -Wl,-G. The following line is correct:
14166 if test "$aix_use_runtimelinking" = yes; then
14167 shared_flag='${wl}-G'
14169 shared_flag='${wl}-bM:SRE'
14174 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14175 # It seems that -bexpall does not export symbols beginning with
14176 # underscore (_), so it is better to generate a list of symbols to
14178 always_export_symbols_CXX=yes
14179 if test "$aix_use_runtimelinking" = yes; then
14180 # Warning - without using the other runtime loading flags (-brtl),
14181 # -berok will link without error, but may produce a broken library.
14182 allow_undefined_flag_CXX='-berok'
14183 # Determine the default libpath from the value encoded in an empty
14185 if test x$gcc_no_link = xyes; then
14186 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14189 /* end confdefs.h. */
14199 if ac_fn_cxx_try_link "$LINENO"; then :
14201 lt_aix_libpath_sed='
14202 /Import File Strings/,/^$/ {
14208 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14209 # Check for a 64-bit object if we didn't find anything.
14210 if test -z "$aix_libpath"; then
14211 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14214 rm -f core conftest.err conftest.$ac_objext \
14215 conftest$ac_exeext conftest.$ac_ext
14216 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14218 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14220 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14222 if test "$host_cpu" = ia64; then
14223 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14224 allow_undefined_flag_CXX="-z nodefs"
14225 archive_expsym_cmds_CXX="\$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"
14227 # Determine the default libpath from the value encoded in an
14228 # empty executable.
14229 if test x$gcc_no_link = xyes; then
14230 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14233 /* end confdefs.h. */
14243 if ac_fn_cxx_try_link "$LINENO"; then :
14245 lt_aix_libpath_sed='
14246 /Import File Strings/,/^$/ {
14252 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14253 # Check for a 64-bit object if we didn't find anything.
14254 if test -z "$aix_libpath"; then
14255 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14258 rm -f core conftest.err conftest.$ac_objext \
14259 conftest$ac_exeext conftest.$ac_ext
14260 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14262 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14263 # Warning - without using the other run time loading flags,
14264 # -berok will link without error, but may produce a broken library.
14265 no_undefined_flag_CXX=' ${wl}-bernotok'
14266 allow_undefined_flag_CXX=' ${wl}-berok'
14267 if test "$with_gnu_ld" = yes; then
14268 # We only use this code for GNU lds that support --whole-archive.
14269 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14271 # Exported symbols can be pulled into shared objects from archives
14272 whole_archive_flag_spec_CXX='$convenience'
14274 archive_cmds_need_lc_CXX=yes
14275 # This is similar to how AIX traditionally builds its shared
14277 archive_expsym_cmds_CXX="\$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'
14283 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14284 allow_undefined_flag_CXX=unsupported
14285 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14286 # support --undefined. This deserves some investigation. FIXME
14287 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14294 case $cc_basename in
14296 # FIXME: insert proper C++ library support
14302 cygwin* | mingw* | pw32* | cegcc*)
14303 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14304 # as there is no search path for DLLs.
14305 hardcode_libdir_flag_spec_CXX='-L$libdir'
14306 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14307 allow_undefined_flag_CXX=unsupported
14308 always_export_symbols_CXX=no
14309 enable_shared_with_static_runtimes_CXX=yes
14311 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14312 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14313 # If the export-symbols file already is a .def file (1st line
14314 # is EXPORTS), use it as is; otherwise, prepend...
14315 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14316 cp $export_symbols $output_objdir/$soname.def;
14318 echo EXPORTS > $output_objdir/$soname.def;
14319 cat $export_symbols >> $output_objdir/$soname.def;
14321 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14326 darwin* | rhapsody*)
14329 archive_cmds_need_lc_CXX=no
14330 hardcode_direct_CXX=no
14331 hardcode_automatic_CXX=yes
14332 hardcode_shlibpath_var_CXX=unsupported
14333 if test "$lt_cv_ld_force_load" = "yes"; then
14334 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14336 whole_archive_flag_spec_CXX=''
14338 link_all_deplibs_CXX=yes
14339 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14340 case $cc_basename in
14341 ifort*) _lt_dar_can_shared=yes ;;
14342 *) _lt_dar_can_shared=$GCC ;;
14344 if test "$_lt_dar_can_shared" = "yes"; then
14345 output_verbose_link_cmd=func_echo_all
14346 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14347 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14348 archive_expsym_cmds_CXX="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}"
14349 module_expsym_cmds_CXX="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}"
14350 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14351 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14352 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14362 case $cc_basename in
14364 # FIXME: insert proper C++ library support
14368 # Green Hills C++ Compiler
14369 # FIXME: insert proper C++ library support
14373 # FIXME: insert proper C++ library support
14380 # C++ shared libraries reported to be fairly broken before
14386 archive_cmds_need_lc_CXX=no
14389 freebsd* | dragonfly*)
14390 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14399 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14400 link_all_deplibs_CXX=yes
14404 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14405 hardcode_libdir_separator_CXX=:
14406 export_dynamic_flag_spec_CXX='${wl}-E'
14407 hardcode_direct_CXX=yes
14408 hardcode_minus_L_CXX=yes # Not in the search PATH,
14409 # but as the default
14410 # location of the library.
14412 case $cc_basename in
14414 # FIXME: insert proper C++ library support
14418 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14419 # Commands to make compiler produce verbose output that lists
14420 # what "hidden" libraries, object files and flags are used when
14421 # linking a shared library.
14423 # There doesn't appear to be a way to prevent this compiler from
14424 # explicitly linking system object files so we need to strip them
14425 # from the output so that they don't get included in the library
14427 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14430 if test "$GXX" = yes; then
14431 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14433 # FIXME: insert proper C++ library support
14441 if test $with_gnu_ld = no; then
14442 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14443 hardcode_libdir_separator_CXX=:
14449 export_dynamic_flag_spec_CXX='${wl}-E'
14455 hardcode_direct_CXX=no
14456 hardcode_shlibpath_var_CXX=no
14459 hardcode_direct_CXX=yes
14460 hardcode_direct_absolute_CXX=yes
14461 hardcode_minus_L_CXX=yes # Not in the search PATH,
14462 # but as the default
14463 # location of the library.
14467 case $cc_basename in
14469 # FIXME: insert proper C++ library support
14475 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14478 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14481 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14484 # Commands to make compiler produce verbose output that lists
14485 # what "hidden" libraries, object files and flags are used when
14486 # linking a shared library.
14488 # There doesn't appear to be a way to prevent this compiler from
14489 # explicitly linking system object files so we need to strip them
14490 # from the output so that they don't get included in the library
14492 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14495 if test "$GXX" = yes; then
14496 if test $with_gnu_ld = no; then
14499 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14502 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14505 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14510 # FIXME: insert proper C++ library support
14518 hardcode_direct_CXX=no
14519 hardcode_shlibpath_var_CXX=no
14520 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14521 export_dynamic_flag_spec_CXX='${wl}-E'
14522 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14523 # Instead, shared libraries are loaded at an image base (0x10000000 by
14524 # default) and relocated if they conflict, which is a slow very memory
14525 # consuming and fragmenting process. To avoid this, we pick a random,
14526 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14527 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14528 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14529 archive_expsym_cmds_CXX='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'
14532 case $cc_basename in
14535 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14537 # Archives containing C++ object files must be created using
14538 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14539 # necessary to make sure instantiated templates are included
14541 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14544 if test "$GXX" = yes; then
14545 if test "$with_gnu_ld" = no; then
14546 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14548 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14551 link_all_deplibs_CXX=yes
14554 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14555 hardcode_libdir_separator_CXX=:
14556 inherit_rpath_CXX=yes
14559 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14560 case $cc_basename in
14562 # Kuck and Associates, Inc. (KAI) C++ Compiler
14564 # KCC will only create a shared library if the output file
14565 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14566 # to its proper name (with version) after linking.
14567 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14568 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14569 # Commands to make compiler produce verbose output that lists
14570 # what "hidden" libraries, object files and flags are used when
14571 # linking a shared library.
14573 # There doesn't appear to be a way to prevent this compiler from
14574 # explicitly linking system object files so we need to strip them
14575 # from the output so that they don't get included in the library
14577 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14579 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14580 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14582 # Archives containing C++ object files must be created using
14583 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14584 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14589 # version 8.0 and above of icpc choke on multiply defined symbols
14590 # if we add $predep_objects and $postdep_objects, however 7.1 and
14591 # earlier do not add the objects themselves.
14592 case `$CC -V 2>&1` in
14594 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14595 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14597 *) # Version 8.0 or newer
14600 ia64*) tmp_idyn=' -i_dynamic';;
14602 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14603 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14606 archive_cmds_need_lc_CXX=no
14607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14608 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14609 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14612 # Portland Group C++ compiler
14614 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14615 prelink_cmds_CXX='tpldir=Template.dir~
14617 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14618 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14619 old_archive_cmds_CXX='tpldir=Template.dir~
14621 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14622 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14624 archive_cmds_CXX='tpldir=Template.dir~
14626 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14627 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14628 archive_expsym_cmds_CXX='tpldir=Template.dir~
14630 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14631 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14633 *) # Version 6 and above use weak symbols
14634 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14635 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14639 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14640 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14641 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14645 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14646 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14648 runpath_var=LD_RUN_PATH
14649 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14650 hardcode_libdir_separator_CXX=:
14652 # Commands to make compiler produce verbose output that lists
14653 # what "hidden" libraries, object files and flags are used when
14654 # linking a shared library.
14656 # There doesn't appear to be a way to prevent this compiler from
14657 # explicitly linking system object files so we need to strip them
14658 # from the output so that they don't get included in the library
14660 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14662 xl* | mpixl* | bgxl*)
14663 # IBM XL 8.0 on PPC, with GNU ld
14664 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14665 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14666 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14667 if test "x$supports_anon_versioning" = xyes; then
14668 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14669 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14670 echo "local: *; };" >> $output_objdir/$libname.ver~
14671 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14675 case `$CC -V 2>&1 | sed 5q` in
14678 no_undefined_flag_CXX=' -zdefs'
14679 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14680 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14681 hardcode_libdir_flag_spec_CXX='-R$libdir'
14682 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14683 compiler_needs_object_CXX=yes
14685 # Not sure whether something based on
14686 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14688 output_verbose_link_cmd='func_echo_all'
14690 # Archives containing C++ object files must be created using
14691 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14692 # necessary to make sure instantiated templates are included
14694 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14702 # FIXME: insert proper C++ library support
14707 # FIXME: insert proper C++ library support
14712 case $cc_basename in
14714 # FIXME: insert proper C++ library support
14718 # FIXME: insert proper C++ library support
14725 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14726 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14728 hardcode_libdir_flag_spec_CXX='-R$libdir'
14729 hardcode_direct_CXX=yes
14730 hardcode_shlibpath_var_CXX=no
14732 # Workaround some broken pre-1.5 toolchains
14733 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14741 # C++ shared libraries are fairly broken
14746 if test -f /usr/libexec/ld.so; then
14747 hardcode_direct_CXX=yes
14748 hardcode_shlibpath_var_CXX=no
14749 hardcode_direct_absolute_CXX=yes
14750 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14751 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14753 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14754 export_dynamic_flag_spec_CXX='${wl}-E'
14755 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14757 output_verbose_link_cmd=func_echo_all
14763 osf3* | osf4* | osf5*)
14764 case $cc_basename in
14766 # Kuck and Associates, Inc. (KAI) C++ Compiler
14768 # KCC will only create a shared library if the output file
14769 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14770 # to its proper name (with version) after linking.
14771 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14773 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14774 hardcode_libdir_separator_CXX=:
14776 # Archives containing C++ object files must be created using
14777 # the KAI C++ compiler.
14779 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14780 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14784 # Rational C++ 2.4.1
14785 # FIXME: insert proper C++ library support
14791 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14792 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14793 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14796 allow_undefined_flag_CXX=' -expect_unresolved \*'
14797 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14798 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14799 echo "-hidden">> $lib.exp~
14800 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14802 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14806 hardcode_libdir_separator_CXX=:
14808 # Commands to make compiler produce verbose output that lists
14809 # what "hidden" libraries, object files and flags are used when
14810 # linking a shared library.
14812 # There doesn't appear to be a way to prevent this compiler from
14813 # explicitly linking system object files so we need to strip them
14814 # from the output so that they don't get included in the library
14816 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14819 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14820 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14823 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14826 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14830 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14831 hardcode_libdir_separator_CXX=:
14833 # Commands to make compiler produce verbose output that lists
14834 # what "hidden" libraries, object files and flags are used when
14835 # linking a shared library.
14836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14839 # FIXME: insert proper C++ library support
14847 # FIXME: insert proper C++ library support
14852 case $cc_basename in
14855 # FIXME: insert proper C++ library support
14860 # FIXME: insert proper C++ library support
14864 # FIXME: insert proper C++ library support
14871 case $cc_basename in
14873 # Sun C++ 4.2, 5.x and Centerline C++
14874 archive_cmds_need_lc_CXX=yes
14875 no_undefined_flag_CXX=' -zdefs'
14876 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14877 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14878 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14880 hardcode_libdir_flag_spec_CXX='-R$libdir'
14881 hardcode_shlibpath_var_CXX=no
14883 solaris2.[0-5] | solaris2.[0-5].*) ;;
14885 # The compiler driver will combine and reorder linker options,
14886 # but understands `-z linker_flag'.
14887 # Supported since Solaris 2.6 (maybe 2.5.1?)
14888 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14891 link_all_deplibs_CXX=yes
14893 output_verbose_link_cmd='func_echo_all'
14895 # Archives containing C++ object files must be created using
14896 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14897 # necessary to make sure instantiated templates are included
14899 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14902 # Green Hills C++ Compiler
14903 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14905 # The C++ compiler must be used to create the archive.
14906 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14909 # GNU C++ compiler with Solaris linker
14910 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14911 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14912 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14913 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14914 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14915 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14917 # Commands to make compiler produce verbose output that lists
14918 # what "hidden" libraries, object files and flags are used when
14919 # linking a shared library.
14920 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14922 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14924 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14925 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14926 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14928 # Commands to make compiler produce verbose output that lists
14929 # what "hidden" libraries, object files and flags are used when
14930 # linking a shared library.
14931 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14934 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14936 solaris2.[0-5] | solaris2.[0-5].*) ;;
14938 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14946 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14947 no_undefined_flag_CXX='${wl}-z,text'
14948 archive_cmds_need_lc_CXX=no
14949 hardcode_shlibpath_var_CXX=no
14950 runpath_var='LD_RUN_PATH'
14952 case $cc_basename in
14954 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14955 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14958 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14959 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14964 sysv5* | sco3.2v5* | sco5v6*)
14965 # Note: We can NOT use -z defs as we might desire, because we do not
14966 # link with -lc, and that would cause any symbols used from libc to
14967 # always be unresolved, which means just about no library would
14968 # ever link correctly. If we're not using GNU ld we use -z text
14969 # though, which does catch some bad symbols but isn't as heavy-handed
14971 no_undefined_flag_CXX='${wl}-z,text'
14972 allow_undefined_flag_CXX='${wl}-z,nodefs'
14973 archive_cmds_need_lc_CXX=no
14974 hardcode_shlibpath_var_CXX=no
14975 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14976 hardcode_libdir_separator_CXX=':'
14977 link_all_deplibs_CXX=yes
14978 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14979 runpath_var='LD_RUN_PATH'
14981 case $cc_basename in
14983 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14984 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14985 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14986 '"$old_archive_cmds_CXX"
14987 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14988 '"$reload_cmds_CXX"
14991 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14998 case $cc_basename in
15000 # NonStop-UX NCC 3.20
15001 # FIXME: insert proper C++ library support
15005 # FIXME: insert proper C++ library support
15012 # FIXME: insert proper C++ library support
15017 # FIXME: insert proper C++ library support
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15023 $as_echo "$ld_shlibs_CXX" >&6; }
15024 test "$ld_shlibs_CXX" = no && can_build_shared=no
15030 ## There is no encapsulation within the following macros, do not change
15031 ## the running order or otherwise move them around unless you know exactly
15032 ## what you are doing...
15033 # Dependencies to place before and after the object being linked:
15034 predep_objects_CXX=
15035 postdep_objects_CXX=
15038 compiler_lib_search_path_CXX=
15040 cat > conftest.$ac_ext <<_LT_EOF
15044 Foo (void) { a = 0; }
15050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15051 (eval $ac_compile) 2>&5
15053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15054 test $ac_status = 0; }; then
15055 # Parse the compiler output and extract the necessary
15056 # objects, libraries and library flags.
15058 # Sentinel used to keep track of whether or not we are before
15059 # the conftest object file.
15060 pre_test_object_deps_done=no
15062 for p in `eval "$output_verbose_link_cmd"`; do
15066 # Some compilers place space between "-{L,R}" and the path.
15067 # Remove the space.
15068 if test $p = "-L" ||
15069 test $p = "-R"; then
15076 if test "$pre_test_object_deps_done" = no; then
15079 # Internal compiler library paths should come after those
15080 # provided the user. The postdeps already come after the
15081 # user supplied libs so there is no need to process them.
15082 if test -z "$compiler_lib_search_path_CXX"; then
15083 compiler_lib_search_path_CXX="${prev}${p}"
15085 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15088 # The "-l" case would never come before the object being
15089 # linked, so don't bother handling this case.
15092 if test -z "$postdeps_CXX"; then
15093 postdeps_CXX="${prev}${p}"
15095 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15101 # This assumes that the test object file only shows up
15102 # once in the compiler output.
15103 if test "$p" = "conftest.$objext"; then
15104 pre_test_object_deps_done=yes
15108 if test "$pre_test_object_deps_done" = no; then
15109 if test -z "$predep_objects_CXX"; then
15110 predep_objects_CXX="$p"
15112 predep_objects_CXX="$predep_objects_CXX $p"
15115 if test -z "$postdep_objects_CXX"; then
15116 postdep_objects_CXX="$p"
15118 postdep_objects_CXX="$postdep_objects_CXX $p"
15123 *) ;; # Ignore the rest.
15131 echo "libtool.m4: error: problem compiling CXX test program"
15134 $RM -f confest.$objext
15136 # PORTME: override above test on systems where it is broken
15139 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15140 # hack all around it, let's just trust "g++" to DTRT.
15141 predep_objects_CXX=
15142 postdep_objects_CXX=
15147 case `$CC -V 2>&1 | sed 5q` in
15151 # The more standards-conforming stlport4 library is
15152 # incompatible with the Cstd library. Avoid specifying
15153 # it if it's in CXXFLAGS. Ignore libCrun as
15154 # -library=stlport4 depends on it.
15155 case " $CXX $CXXFLAGS " in
15156 *" -library=stlport4 "*)
15157 solaris_use_stlport4=yes
15161 if test "$solaris_use_stlport4" != yes; then
15162 postdeps_CXX='-library=Cstd -library=Crun'
15169 case $cc_basename in
15171 # The more standards-conforming stlport4 library is
15172 # incompatible with the Cstd library. Avoid specifying
15173 # it if it's in CXXFLAGS. Ignore libCrun as
15174 # -library=stlport4 depends on it.
15175 case " $CXX $CXXFLAGS " in
15176 *" -library=stlport4 "*)
15177 solaris_use_stlport4=yes
15181 # Adding this requires a known-good setup of shared libraries for
15182 # Sun compiler versions before 5.6, else PIC objects from an old
15183 # archive will be linked into the output, leading to subtle bugs.
15184 if test "$solaris_use_stlport4" != yes; then
15185 postdeps_CXX='-library=Cstd -library=Crun'
15193 case " $postdeps_CXX " in
15194 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15196 compiler_lib_search_dirs_CXX=
15197 if test -n "${compiler_lib_search_path_CXX}"; then
15198 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15231 lt_prog_compiler_wl_CXX=
15232 lt_prog_compiler_pic_CXX=
15233 lt_prog_compiler_static_CXX=
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15236 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15238 # C++ specific cases for pic, static, wl, etc.
15239 if test "$GXX" = yes; then
15240 lt_prog_compiler_wl_CXX='-Wl,'
15241 lt_prog_compiler_static_CXX='-static'
15245 # All AIX code is PIC.
15246 if test "$host_cpu" = ia64; then
15247 # AIX 5 now supports IA64 processor
15248 lt_prog_compiler_static_CXX='-Bstatic'
15255 # see comment about AmigaOS4 .so support
15256 lt_prog_compiler_pic_CXX='-fPIC'
15259 # FIXME: we need at least 68020 code to build shared libraries, but
15260 # adding the `-m68020' flag to GCC prevents building anything better,
15262 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15267 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15268 # PIC is the default for these OSes.
15270 mingw* | cygwin* | os2* | pw32* | cegcc*)
15271 # This hack is so that the source file can tell whether it is being
15272 # built for inclusion in a dll (and should export symbols for example).
15273 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15274 # (--disable-auto-import) libraries
15275 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15277 darwin* | rhapsody*)
15278 # PIC is the default on this platform
15279 # Common symbols not allowed in MH_DYLIB files
15280 lt_prog_compiler_pic_CXX='-fno-common'
15283 # DJGPP does not support shared libraries at all
15284 lt_prog_compiler_pic_CXX=
15287 # PIC is the default for Haiku.
15288 # The "-static" flag exists, but is broken.
15289 lt_prog_compiler_static_CXX=
15292 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15293 # Instead, we relocate shared libraries at runtime.
15296 if test -d /usr/nec; then
15297 lt_prog_compiler_pic_CXX=-Kconform_pic
15301 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15302 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15303 # sets the default TLS model and affects inlining.
15308 lt_prog_compiler_pic_CXX='-fPIC'
15313 # QNX uses GNU C++, but need to define -shared option too, otherwise
15314 # it will coredump.
15315 lt_prog_compiler_pic_CXX='-fPIC -shared'
15318 lt_prog_compiler_pic_CXX='-fPIC'
15324 # All AIX code is PIC.
15325 if test "$host_cpu" = ia64; then
15326 # AIX 5 now supports IA64 processor
15327 lt_prog_compiler_static_CXX='-Bstatic'
15329 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15333 case $cc_basename in
15335 # Green Hills C++ Compiler
15336 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15341 case $cc_basename in
15343 lt_prog_compiler_pic_CXX='-KPIC'
15346 # Green Hills C++ Compiler
15347 lt_prog_compiler_pic_CXX='-pic'
15353 freebsd* | dragonfly*)
15354 # FreeBSD uses GNU C++
15356 hpux9* | hpux10* | hpux11*)
15357 case $cc_basename in
15359 lt_prog_compiler_wl_CXX='-Wl,'
15360 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15361 if test "$host_cpu" != ia64; then
15362 lt_prog_compiler_pic_CXX='+Z'
15366 lt_prog_compiler_wl_CXX='-Wl,'
15367 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15373 lt_prog_compiler_pic_CXX='+Z'
15382 # This is c89, which is MS Visual C++ (no shared libs)
15383 # Anyone wants to do a port?
15385 irix5* | irix6* | nonstopux*)
15386 case $cc_basename in
15388 lt_prog_compiler_wl_CXX='-Wl,'
15389 lt_prog_compiler_static_CXX='-non_shared'
15390 # CC pic flag -KPIC is the default.
15396 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15397 case $cc_basename in
15400 lt_prog_compiler_wl_CXX='--backend -Wl,'
15401 lt_prog_compiler_pic_CXX='-fPIC'
15404 # old Intel C++ for x86_64 which still supported -KPIC.
15405 lt_prog_compiler_wl_CXX='-Wl,'
15406 lt_prog_compiler_pic_CXX='-KPIC'
15407 lt_prog_compiler_static_CXX='-static'
15410 # Intel C++, used to be incompatible with GCC.
15411 # ICC 10 doesn't accept -KPIC any more.
15412 lt_prog_compiler_wl_CXX='-Wl,'
15413 lt_prog_compiler_pic_CXX='-fPIC'
15414 lt_prog_compiler_static_CXX='-static'
15417 # Portland Group C++ compiler
15418 lt_prog_compiler_wl_CXX='-Wl,'
15419 lt_prog_compiler_pic_CXX='-fpic'
15420 lt_prog_compiler_static_CXX='-Bstatic'
15424 # Make sure the PIC flag is empty. It appears that all Alpha
15425 # Linux and Compaq Tru64 Unix objects are PIC.
15426 lt_prog_compiler_pic_CXX=
15427 lt_prog_compiler_static_CXX='-non_shared'
15429 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15430 # IBM XL 8.0, 9.0 on PPC and BlueGene
15431 lt_prog_compiler_wl_CXX='-Wl,'
15432 lt_prog_compiler_pic_CXX='-qpic'
15433 lt_prog_compiler_static_CXX='-qstaticlink'
15436 case `$CC -V 2>&1 | sed 5q` in
15439 lt_prog_compiler_pic_CXX='-KPIC'
15440 lt_prog_compiler_static_CXX='-Bstatic'
15441 lt_prog_compiler_wl_CXX='-Qoption ld '
15452 case $cc_basename in
15454 lt_prog_compiler_pic_CXX='-W c,exportall'
15463 # QNX uses GNU C++, but need to define -shared option too, otherwise
15464 # it will coredump.
15465 lt_prog_compiler_pic_CXX='-fPIC -shared'
15467 osf3* | osf4* | osf5*)
15468 case $cc_basename in
15470 lt_prog_compiler_wl_CXX='--backend -Wl,'
15473 # Rational C++ 2.4.1
15474 lt_prog_compiler_pic_CXX='-pic'
15477 # Digital/Compaq C++
15478 lt_prog_compiler_wl_CXX='-Wl,'
15479 # Make sure the PIC flag is empty. It appears that all Alpha
15480 # Linux and Compaq Tru64 Unix objects are PIC.
15481 lt_prog_compiler_pic_CXX=
15482 lt_prog_compiler_static_CXX='-non_shared'
15491 case $cc_basename in
15493 # Sun C++ 4.2, 5.x and Centerline C++
15494 lt_prog_compiler_pic_CXX='-KPIC'
15495 lt_prog_compiler_static_CXX='-Bstatic'
15496 lt_prog_compiler_wl_CXX='-Qoption ld '
15499 # Green Hills C++ Compiler
15500 lt_prog_compiler_pic_CXX='-PIC'
15507 case $cc_basename in
15510 lt_prog_compiler_pic_CXX='-pic'
15511 lt_prog_compiler_static_CXX='-Bstatic'
15515 lt_prog_compiler_pic_CXX='-pic'
15521 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15522 case $cc_basename in
15524 lt_prog_compiler_wl_CXX='-Wl,'
15525 lt_prog_compiler_pic_CXX='-KPIC'
15526 lt_prog_compiler_static_CXX='-Bstatic'
15531 case $cc_basename in
15533 # NonStop-UX NCC 3.20
15534 lt_prog_compiler_pic_CXX='-KPIC'
15543 lt_prog_compiler_can_build_shared_CXX=no
15549 # For platforms which do not support PIC, -DPIC is meaningless:
15551 lt_prog_compiler_pic_CXX=
15554 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15558 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15563 # Check to make sure the PIC flag actually works.
15565 if test -n "$lt_prog_compiler_pic_CXX"; then
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15567 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15568 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15569 $as_echo_n "(cached) " >&6
15571 lt_cv_prog_compiler_pic_works_CXX=no
15572 ac_outfile=conftest.$ac_objext
15573 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15574 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15575 # Insert the option either (1) after the last *FLAGS variable, or
15576 # (2) before a word containing "conftest.", or (3) at the end.
15577 # Note that $ac_compile itself does not contain backslashes and begins
15578 # with a dollar sign (not a hyphen), so the echo should work correctly.
15579 # The option is referenced via a variable to avoid confusing sed.
15580 lt_compile=`echo "$ac_compile" | $SED \
15581 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15582 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15583 -e 's:$: $lt_compiler_flag:'`
15584 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15585 (eval "$lt_compile" 2>conftest.err)
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 if (exit $ac_status) && test -s "$ac_outfile"; then
15590 # The compiler can only warn and ignore the option if not recognized
15591 # So say no if there are warnings other than the usual output.
15592 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15593 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15594 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15595 lt_cv_prog_compiler_pic_works_CXX=yes
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15602 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15604 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15605 case $lt_prog_compiler_pic_CXX in
15607 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15610 lt_prog_compiler_pic_CXX=
15611 lt_prog_compiler_can_build_shared_CXX=no
15619 # Check to make sure the static flag actually works.
15621 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15623 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15624 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15625 $as_echo_n "(cached) " >&6
15627 lt_cv_prog_compiler_static_works_CXX=no
15628 save_LDFLAGS="$LDFLAGS"
15629 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15630 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15631 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15632 # The linker can only warn and ignore the option if not recognized
15633 # So say no if there are warnings
15634 if test -s conftest.err; then
15635 # Append any errors to the config.log.
15636 cat conftest.err 1>&5
15637 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15638 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15639 if diff conftest.exp conftest.er2 >/dev/null; then
15640 lt_cv_prog_compiler_static_works_CXX=yes
15643 lt_cv_prog_compiler_static_works_CXX=yes
15647 LDFLAGS="$save_LDFLAGS"
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15651 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15653 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15656 lt_prog_compiler_static_CXX=
15662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15663 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15664 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15665 $as_echo_n "(cached) " >&6
15667 lt_cv_prog_compiler_c_o_CXX=no
15668 $RM -r conftest 2>/dev/null
15672 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15674 lt_compiler_flag="-o out/conftest2.$ac_objext"
15675 # Insert the option either (1) after the last *FLAGS variable, or
15676 # (2) before a word containing "conftest.", or (3) at the end.
15677 # Note that $ac_compile itself does not contain backslashes and begins
15678 # with a dollar sign (not a hyphen), so the echo should work correctly.
15679 lt_compile=`echo "$ac_compile" | $SED \
15680 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15681 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15682 -e 's:$: $lt_compiler_flag:'`
15683 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15684 (eval "$lt_compile" 2>out/conftest.err)
15686 cat out/conftest.err >&5
15687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15688 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15690 # The compiler can only warn and ignore the option if not recognized
15691 # So say no if there are warnings
15692 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15693 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15694 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15695 lt_cv_prog_compiler_c_o_CXX=yes
15700 # SGI C++ compiler will create directory out/ii_files/ for
15701 # template instantiation
15702 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15703 $RM out/* && rmdir out
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15710 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15715 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15716 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15717 $as_echo_n "(cached) " >&6
15719 lt_cv_prog_compiler_c_o_CXX=no
15720 $RM -r conftest 2>/dev/null
15724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15726 lt_compiler_flag="-o out/conftest2.$ac_objext"
15727 # Insert the option either (1) after the last *FLAGS variable, or
15728 # (2) before a word containing "conftest.", or (3) at the end.
15729 # Note that $ac_compile itself does not contain backslashes and begins
15730 # with a dollar sign (not a hyphen), so the echo should work correctly.
15731 lt_compile=`echo "$ac_compile" | $SED \
15732 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15733 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15734 -e 's:$: $lt_compiler_flag:'`
15735 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15736 (eval "$lt_compile" 2>out/conftest.err)
15738 cat out/conftest.err >&5
15739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15740 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15742 # The compiler can only warn and ignore the option if not recognized
15743 # So say no if there are warnings
15744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15745 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15746 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15747 lt_cv_prog_compiler_c_o_CXX=yes
15752 # SGI C++ compiler will create directory out/ii_files/ for
15753 # template instantiation
15754 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15755 $RM out/* && rmdir out
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15762 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15767 hard_links="nottested"
15768 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15769 # do not overwrite the value of need_locks provided by the user
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15771 $as_echo_n "checking if we can lock with hard links... " >&6; }
15774 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15776 ln conftest.a conftest.b 2>&5 || hard_links=no
15777 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15779 $as_echo "$hard_links" >&6; }
15780 if test "$hard_links" = no; then
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15782 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15792 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15794 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15797 # If we're using GNU nm, then we don't want the "-C" option.
15798 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15799 # Also, AIX nm treats weak defined symbols like other global defined
15800 # symbols, whereas GNU nm marks them as "W".
15801 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15802 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15804 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15808 export_symbols_cmds_CXX="$ltdll_cmds"
15810 cygwin* | mingw* | cegcc*)
15811 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15814 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15817 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15820 $as_echo "$ld_shlibs_CXX" >&6; }
15821 test "$ld_shlibs_CXX" = no && can_build_shared=no
15823 with_gnu_ld_CXX=$with_gnu_ld
15831 # Do we need to explicitly link libc?
15833 case "x$archive_cmds_need_lc_CXX" in
15835 # Assume -lc should be added
15836 archive_cmds_need_lc_CXX=yes
15838 if test "$enable_shared" = yes && test "$GCC" = yes; then
15839 case $archive_cmds_CXX in
15841 # FIXME: we may have to deal with multi-command sequences.
15844 # Test whether the compiler implicitly links with -lc since on some
15845 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15846 # to ld, don't add -lc before -lgcc.
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15848 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15849 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15850 $as_echo_n "(cached) " >&6
15853 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15855 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15856 (eval $ac_compile) 2>&5
15858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15859 test $ac_status = 0; } 2>conftest.err; then
15862 libobjs=conftest.$ac_objext
15864 wl=$lt_prog_compiler_wl_CXX
15865 pic_flag=$lt_prog_compiler_pic_CXX
15871 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15872 allow_undefined_flag_CXX=
15873 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15874 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15877 test $ac_status = 0; }
15879 lt_cv_archive_cmds_need_lc_CXX=no
15881 lt_cv_archive_cmds_need_lc_CXX=yes
15883 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15885 cat conftest.err 1>&5
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15891 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15892 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15963 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15965 library_names_spec=
15966 libname_spec='lib$name'
15970 postuninstall_cmds=
15974 shlibpath_overrides_runpath=unknown
15976 dynamic_linker="$host_os ld.so"
15977 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15978 need_lib_prefix=unknown
15979 hardcode_into_libs=no
15981 # when you set need_version to no, make sure it does not cause -set_version
15982 # flags to be left without arguments
15983 need_version=unknown
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15989 shlibpath_var=LIBPATH
15991 # AIX 3 has no versioning support, so we append a major version to the name.
15992 soname_spec='${libname}${release}${shared_ext}$major'
15999 hardcode_into_libs=yes
16000 if test "$host_cpu" = ia64; then
16001 # AIX 5 supports IA64
16002 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16003 shlibpath_var=LD_LIBRARY_PATH
16005 # With GCC up to 2.95.x, collect2 would create an import file
16006 # for dependence libraries. The import file would start with
16007 # the line `#! .'. This would cause the generated library to
16008 # depend on `.', always an invalid library. This was fixed in
16009 # development snapshots of GCC prior to 3.0.
16011 aix4 | aix4.[01] | aix4.[01].*)
16012 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16014 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16017 can_build_shared=no
16021 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16022 # soname into executable. Probably we can add versioning support to
16023 # collect2, so additional links can be useful in future.
16024 if test "$aix_use_runtimelinking" = yes; then
16025 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16026 # instead of lib<name>.a to let people know that these are not
16027 # typical AIX shared libraries.
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16030 # We preserve .a as extension for shared libraries through AIX4.2
16031 # and later when we are not doing run time linking.
16032 library_names_spec='${libname}${release}.a $libname.a'
16033 soname_spec='${libname}${release}${shared_ext}$major'
16035 shlibpath_var=LIBPATH
16042 # Since July 2007 AmigaOS4 officially supports .so libraries.
16043 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16047 library_names_spec='$libname.ixlibrary $libname.a'
16048 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16049 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16055 library_names_spec='${libname}${shared_ext}'
16056 dynamic_linker="$host_os ld.so"
16057 shlibpath_var=LIBRARY_PATH
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064 soname_spec='${libname}${release}${shared_ext}$major'
16065 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16066 shlibpath_var=LD_LIBRARY_PATH
16067 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16068 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16069 # the default ld.so.conf also contains /usr/contrib/lib and
16070 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16071 # libtool to hard-code these into programs
16074 cygwin* | mingw* | pw32* | cegcc*)
16075 version_type=windows
16080 case $GCC,$host_os in
16081 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16082 library_names_spec='$libname.dll.a'
16083 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16084 postinstall_cmds='base_file=`basename \${file}`~
16085 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16086 dldir=$destdir/`dirname \$dlpath`~
16087 test -d \$dldir || mkdir -p \$dldir~
16088 $install_prog $dir/$dlname \$dldir/$dlname~
16089 chmod a+x \$dldir/$dlname~
16090 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16091 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16093 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16094 dlpath=$dir/\$dldll~
16096 shlibpath_overrides_runpath=yes
16100 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16101 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16105 # MinGW DLLs use traditional 'lib' prefix
16106 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16109 # pw32 DLLs use 'pw' prefix rather than 'lib'
16110 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16116 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16119 dynamic_linker='Win32 ld.exe'
16120 # FIXME: first we should search . and the directory the executable is in
16124 darwin* | rhapsody*)
16125 dynamic_linker="$host_os dyld"
16126 version_type=darwin
16129 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16130 soname_spec='${libname}${release}${major}$shared_ext'
16131 shlibpath_overrides_runpath=yes
16132 shlibpath_var=DYLD_LIBRARY_PATH
16133 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16135 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16143 soname_spec='${libname}${release}${shared_ext}$major'
16144 shlibpath_var=LD_LIBRARY_PATH
16151 freebsd* | dragonfly*)
16152 # DragonFly does not have aout. When/if they implement a new
16153 # versioning mechanism, adjust this.
16154 if test -x /usr/bin/objformat; then
16155 objformat=`/usr/bin/objformat`
16158 freebsd[123]*) objformat=aout ;;
16159 *) objformat=elf ;;
16162 version_type=freebsd-$objformat
16163 case $version_type in
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16174 shlibpath_var=LD_LIBRARY_PATH
16177 shlibpath_overrides_runpath=yes
16179 freebsd3.[01]* | freebsdelf3.[01]*)
16180 shlibpath_overrides_runpath=yes
16181 hardcode_into_libs=yes
16183 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16184 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16185 shlibpath_overrides_runpath=no
16186 hardcode_into_libs=yes
16188 *) # from 4.6 on, and DragonFly
16189 shlibpath_overrides_runpath=yes
16190 hardcode_into_libs=yes
16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16200 soname_spec='${libname}${release}${shared_ext}$major'
16201 shlibpath_var=LD_LIBRARY_PATH
16202 hardcode_into_libs=yes
16209 dynamic_linker="$host_os runtime_loader"
16210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16211 soname_spec='${libname}${release}${shared_ext}$major'
16212 shlibpath_var=LIBRARY_PATH
16213 shlibpath_overrides_runpath=yes
16214 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16215 hardcode_into_libs=yes
16218 hpux9* | hpux10* | hpux11*)
16219 # Give a soname corresponding to the major version so that dld.sl refuses to
16220 # link against other versions.
16227 hardcode_into_libs=yes
16228 dynamic_linker="$host_os dld.so"
16229 shlibpath_var=LD_LIBRARY_PATH
16230 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16232 soname_spec='${libname}${release}${shared_ext}$major'
16233 if test "X$HPUX_IA64_MODE" = X32; then
16234 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16236 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16238 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16242 hardcode_into_libs=yes
16243 dynamic_linker="$host_os dld.sl"
16244 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16247 soname_spec='${libname}${release}${shared_ext}$major'
16248 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16249 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16253 dynamic_linker="$host_os dld.sl"
16254 shlibpath_var=SHLIB_PATH
16255 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16257 soname_spec='${libname}${release}${shared_ext}$major'
16260 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16261 postinstall_cmds='chmod 555 $lib'
16262 # or fails outright, so override atomically:
16263 install_override_mode=555
16270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16271 soname_spec='${libname}${release}${shared_ext}$major'
16272 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16273 shlibpath_var=LD_LIBRARY_PATH
16274 shlibpath_overrides_runpath=no
16275 hardcode_into_libs=yes
16278 irix5* | irix6* | nonstopux*)
16280 nonstopux*) version_type=nonstopux ;;
16282 if test "$lt_cv_prog_gnu_ld" = yes; then
16290 soname_spec='${libname}${release}${shared_ext}$major'
16291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16293 irix5* | nonstopux*)
16294 libsuff= shlibsuff=
16297 case $LD in # libtool.m4 will add one of these switches to LD
16298 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16299 libsuff= shlibsuff= libmagic=32-bit;;
16300 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16301 libsuff=32 shlibsuff=N32 libmagic=N32;;
16302 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16303 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16304 *) libsuff= shlibsuff= libmagic=never-match;;
16308 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16309 shlibpath_overrides_runpath=no
16310 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16311 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16312 hardcode_into_libs=yes
16315 # No shared lib support for Linux oldld, aout, or coff.
16316 linux*oldld* | linux*aout* | linux*coff*)
16320 # This must be Linux ELF.
16321 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16326 soname_spec='${libname}${release}${shared_ext}$major'
16327 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16328 shlibpath_var=LD_LIBRARY_PATH
16329 shlibpath_overrides_runpath=no
16331 # Some binutils ld are patched to set DT_RUNPATH
16332 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16333 $as_echo_n "(cached) " >&6
16335 lt_cv_shlibpath_overrides_runpath=no
16336 save_LDFLAGS=$LDFLAGS
16337 save_libdir=$libdir
16338 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16339 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16340 if test x$gcc_no_link = xyes; then
16341 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16344 /* end confdefs.h. */
16354 if ac_fn_cxx_try_link "$LINENO"; then :
16355 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16356 lt_cv_shlibpath_overrides_runpath=yes
16359 rm -f core conftest.err conftest.$ac_objext \
16360 conftest$ac_exeext conftest.$ac_ext
16361 LDFLAGS=$save_LDFLAGS
16362 libdir=$save_libdir
16366 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16368 # This implies no fast_install, which is unacceptable.
16369 # Some rework will be needed to allow for fast_install
16370 # before this can be enabled.
16371 hardcode_into_libs=yes
16373 # Append ld.so.conf contents to the search path
16374 if test -f /etc/ld.so.conf; then
16375 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16376 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16379 # We used to test for /lib/ld.so.1 and disable shared libraries on
16380 # powerpc, because MkLinux only supported shared libraries with the
16381 # GNU dynamic linker. Since this was broken with cross compilers,
16382 # most powerpc-linux boxes support dynamic linking these days and
16383 # people can always --disable-shared, the test was removed, and we
16384 # assume the GNU/Linux dynamic linker is in use.
16385 dynamic_linker='GNU/Linux ld.so'
16392 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16395 dynamic_linker='NetBSD (a.out) ld.so'
16397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16398 soname_spec='${libname}${release}${shared_ext}$major'
16399 dynamic_linker='NetBSD ld.elf_so'
16401 shlibpath_var=LD_LIBRARY_PATH
16402 shlibpath_overrides_runpath=yes
16403 hardcode_into_libs=yes
16408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16409 shlibpath_var=LD_LIBRARY_PATH
16410 shlibpath_overrides_runpath=yes
16417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16418 soname_spec='${libname}${release}${shared_ext}$major'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=no
16421 hardcode_into_libs=yes
16422 dynamic_linker='ldqnx.so'
16427 sys_lib_dlsearch_path_spec="/usr/lib"
16429 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16431 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16432 *) need_version=no ;;
16434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16436 shlibpath_var=LD_LIBRARY_PATH
16437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16439 openbsd2.[89] | openbsd2.[89].*)
16440 shlibpath_overrides_runpath=no
16443 shlibpath_overrides_runpath=yes
16447 shlibpath_overrides_runpath=yes
16452 libname_spec='$name'
16455 library_names_spec='$libname${shared_ext} $libname.a'
16456 dynamic_linker='OS/2 ld.exe'
16457 shlibpath_var=LIBPATH
16460 osf3* | osf4* | osf5*)
16464 soname_spec='${libname}${release}${shared_ext}$major'
16465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466 shlibpath_var=LD_LIBRARY_PATH
16467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16480 soname_spec='${libname}${release}${shared_ext}$major'
16481 shlibpath_var=LD_LIBRARY_PATH
16482 shlibpath_overrides_runpath=yes
16483 hardcode_into_libs=yes
16484 # ldd complains unless libraries are executable
16485 postinstall_cmds='chmod +x $lib'
16490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16491 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16492 shlibpath_var=LD_LIBRARY_PATH
16493 shlibpath_overrides_runpath=yes
16494 if test "$with_gnu_ld" = yes; then
16502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16503 soname_spec='${libname}${release}${shared_ext}$major'
16504 shlibpath_var=LD_LIBRARY_PATH
16505 case $host_vendor in
16507 shlibpath_overrides_runpath=no
16509 runpath_var=LD_RUN_PATH
16517 shlibpath_overrides_runpath=no
16518 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16524 if test -d /usr/nec ;then
16526 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16527 soname_spec='$libname${shared_ext}.$major'
16528 shlibpath_var=LD_LIBRARY_PATH
16532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16533 version_type=freebsd-elf
16536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16537 soname_spec='${libname}${release}${shared_ext}$major'
16538 shlibpath_var=LD_LIBRARY_PATH
16539 shlibpath_overrides_runpath=yes
16540 hardcode_into_libs=yes
16541 if test "$with_gnu_ld" = yes; then
16542 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16544 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16547 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16551 sys_lib_dlsearch_path_spec='/usr/lib'
16555 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16560 shlibpath_var=LD_LIBRARY_PATH
16561 shlibpath_overrides_runpath=no
16562 hardcode_into_libs=yes
16567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16568 soname_spec='${libname}${release}${shared_ext}$major'
16569 shlibpath_var=LD_LIBRARY_PATH
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16577 $as_echo "$dynamic_linker" >&6; }
16578 test "$dynamic_linker" = no && can_build_shared=no
16580 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16581 if test "$GCC" = yes; then
16582 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16585 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16586 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16588 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16589 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16630 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16631 hardcode_action_CXX=
16632 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16633 test -n "$runpath_var_CXX" ||
16634 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16636 # We can hardcode non-existent directories.
16637 if test "$hardcode_direct_CXX" != no &&
16638 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16639 # have to relink, otherwise we might link with an installed library
16640 # when we should be linking with a yet-to-be-installed one
16641 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16642 test "$hardcode_minus_L_CXX" != no; then
16643 # Linking always hardcodes the temporary library directory.
16644 hardcode_action_CXX=relink
16646 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16647 hardcode_action_CXX=immediate
16650 # We cannot hardcode anything, or else we can only hardcode existing
16652 hardcode_action_CXX=unsupported
16654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16655 $as_echo "$hardcode_action_CXX" >&6; }
16657 if test "$hardcode_action_CXX" = relink ||
16658 test "$inherit_rpath_CXX" = yes; then
16659 # Fast installation is not supported
16660 enable_fast_install=no
16661 elif test "$shlibpath_overrides_runpath" = yes ||
16662 test "$enable_shared" = no; then
16663 # Fast installation is not necessary
16664 enable_fast_install=needless
16673 fi # test -n "$compiler"
16679 with_gnu_ld=$lt_save_with_gnu_ld
16680 lt_cv_path_LDCXX=$lt_cv_path_LD
16681 lt_cv_path_LD=$lt_save_path_LD
16682 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16683 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16684 fi # test "$_lt_caught_CXX_error" != yes
16687 ac_cpp='$CPP $CPPFLAGS'
16688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16704 ac_config_commands="$ac_config_commands libtool"
16709 # Only expand once:
16713 if test -n "$ac_tool_prefix"; then
16716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16717 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16719 $as_echo_n "checking for $ac_word... " >&6; }
16720 if test "${ac_cv_prog_GCJ+set}" = set; then :
16721 $as_echo_n "(cached) " >&6
16723 if test -n "$GCJ"; then
16724 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16727 for as_dir in $PATH
16730 test -z "$as_dir" && as_dir=.
16731 for ac_exec_ext in '' $ac_executable_extensions; do
16732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16733 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16743 GCJ=$ac_cv_prog_GCJ
16744 if test -n "$GCJ"; then
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16746 $as_echo "$GCJ" >&6; }
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16749 $as_echo "no" >&6; }
16753 test -n "$GCJ" && break
16756 if test -z "$GCJ"; then
16760 # Extract the first word of "$ac_prog", so it can be a program name with args.
16761 set dummy $ac_prog; ac_word=$2
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16763 $as_echo_n "checking for $ac_word... " >&6; }
16764 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16765 $as_echo_n "(cached) " >&6
16767 if test -n "$ac_ct_GCJ"; then
16768 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16771 for as_dir in $PATH
16774 test -z "$as_dir" && as_dir=.
16775 for ac_exec_ext in '' $ac_executable_extensions; do
16776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16777 ac_cv_prog_ac_ct_GCJ="$ac_prog"
16778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16787 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16788 if test -n "$ac_ct_GCJ"; then
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16790 $as_echo "$ac_ct_GCJ" >&6; }
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16793 $as_echo "no" >&6; }
16797 test -n "$ac_ct_GCJ" && break
16800 if test "x$ac_ct_GCJ" = x; then
16803 case $cross_compiling:$ac_tool_warned in
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16806 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16807 ac_tool_warned=yes ;;
16813 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16814 if test "x${GCJFLAGS-unset}" = xunset; then
16819 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16822 $as_echo_n "checking dependency style of $depcc... " >&6; }
16823 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16824 $as_echo_n "(cached) " >&6
16826 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16827 # We make a subdir and do the tests there. Otherwise we can end up
16828 # making bogus files that we don't know about and never remove. For
16829 # instance it was reported that on HP-UX the gcc test will end up
16830 # making a dummy file named `D' -- because `-MD' means `put the output
16833 # Copy depcomp to subdir because otherwise we won't find it if we're
16834 # using a relative directory.
16835 cp "$am_depcomp" conftest.dir
16837 # We will build objects and dependencies in a subdirectory because
16838 # it helps to detect inapplicable dependency modes. For instance
16839 # both Tru64's cc and ICC support -MD to output dependencies as a
16840 # side effect of compilation, but ICC will put the dependencies in
16841 # the current directory while Tru64 will put them in the object
16845 am_cv_GCJ_dependencies_compiler_type=none
16846 if test "$am_compiler_list" = ""; then
16847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16849 am__universal=false
16852 for depmode in $am_compiler_list; do
16853 # Setup a source with many dependencies, because some compilers
16854 # like to wrap large dependency lists on column 80 (with \), and
16855 # we should not choose a depcomp mode which is confused by this.
16857 # We need to recreate these files for each test, as the compiler may
16858 # overwrite some of them when testing with obscure command lines.
16859 # This happens at least with the AIX C compiler.
16861 for i in 1 2 3 4 5 6; do
16862 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16863 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16864 # Solaris 8's {/usr,}/bin/sh.
16865 touch sub/conftst$i.h
16867 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16869 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16870 # mode. It turns out that the SunPro C++ compiler does not properly
16871 # handle `-M -o', and we need to detect this. Also, some Intel
16872 # versions had trouble with output in subdirs
16873 am__obj=sub/conftest.${OBJEXT-o}
16874 am__minus_obj="-o $am__obj"
16877 # This depmode causes a compiler race in universal mode.
16878 test "$am__universal" = false || continue
16881 # after this tag, mechanisms are not by side-effect, so they'll
16882 # only be used when explicitly requested
16883 if test "x$enable_dependency_tracking" = xyes; then
16889 msvisualcpp | msvcmsys)
16890 # This compiler won't grok `-c -o', but also, the minuso test has
16891 # not run yet. These depmodes are late enough in the game, and
16892 # so weak that their functioning should not be impacted.
16893 am__obj=conftest.${OBJEXT-o}
16898 if depmode=$depmode \
16899 source=sub/conftest.c object=$am__obj \
16900 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16901 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16902 >/dev/null 2>conftest.err &&
16903 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16904 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16905 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16906 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16907 # icc doesn't choke on unknown options, it will just issue warnings
16908 # or remarks (even with -Werror). So we grep stderr for any message
16909 # that says an option was ignored or not supported.
16910 # When given -MP, icc 7.0 and 7.1 complain thusly:
16911 # icc: Command line warning: ignoring option '-M'; no argument required
16912 # The diagnosis changed in icc 8.0:
16913 # icc: Command line remark: option '-MP' not supported
16914 if (grep 'ignoring option' conftest.err ||
16915 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16916 am_cv_GCJ_dependencies_compiler_type=$depmode
16923 rm -rf conftest.dir
16925 am_cv_GCJ_dependencies_compiler_type=none
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16930 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16931 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16934 test "x$enable_dependency_tracking" != xno \
16935 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16936 am__fastdepGCJ_TRUE=
16937 am__fastdepGCJ_FALSE='#'
16939 am__fastdepGCJ_TRUE='#'
16940 am__fastdepGCJ_FALSE=
16945 if test -n "$ac_tool_prefix"; then
16948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16949 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16951 $as_echo_n "checking for $ac_word... " >&6; }
16952 if test "${ac_cv_prog_GCJ+set}" = set; then :
16953 $as_echo_n "(cached) " >&6
16955 if test -n "$GCJ"; then
16956 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16959 for as_dir in $PATH
16962 test -z "$as_dir" && as_dir=.
16963 for ac_exec_ext in '' $ac_executable_extensions; do
16964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16965 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16975 GCJ=$ac_cv_prog_GCJ
16976 if test -n "$GCJ"; then
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16978 $as_echo "$GCJ" >&6; }
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16981 $as_echo "no" >&6; }
16985 test -n "$GCJ" && break
16988 if test -z "$GCJ"; then
16992 # Extract the first word of "$ac_prog", so it can be a program name with args.
16993 set dummy $ac_prog; ac_word=$2
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16995 $as_echo_n "checking for $ac_word... " >&6; }
16996 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16997 $as_echo_n "(cached) " >&6
16999 if test -n "$ac_ct_GCJ"; then
17000 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17003 for as_dir in $PATH
17006 test -z "$as_dir" && as_dir=.
17007 for ac_exec_ext in '' $ac_executable_extensions; do
17008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17009 ac_cv_prog_ac_ct_GCJ="$ac_prog"
17010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17019 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17020 if test -n "$ac_ct_GCJ"; then
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17022 $as_echo "$ac_ct_GCJ" >&6; }
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17025 $as_echo "no" >&6; }
17029 test -n "$ac_ct_GCJ" && break
17032 if test "x$ac_ct_GCJ" = x; then
17035 case $cross_compiling:$ac_tool_warned in
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17038 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17039 ac_tool_warned=yes ;;
17045 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17046 if test "x${GCJFLAGS-unset}" = xunset; then
17051 depcc="$GCJ" am_compiler_list='gcc3 gcc'
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17054 $as_echo_n "checking dependency style of $depcc... " >&6; }
17055 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17056 $as_echo_n "(cached) " >&6
17058 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17059 # We make a subdir and do the tests there. Otherwise we can end up
17060 # making bogus files that we don't know about and never remove. For
17061 # instance it was reported that on HP-UX the gcc test will end up
17062 # making a dummy file named `D' -- because `-MD' means `put the output
17065 # Copy depcomp to subdir because otherwise we won't find it if we're
17066 # using a relative directory.
17067 cp "$am_depcomp" conftest.dir
17069 # We will build objects and dependencies in a subdirectory because
17070 # it helps to detect inapplicable dependency modes. For instance
17071 # both Tru64's cc and ICC support -MD to output dependencies as a
17072 # side effect of compilation, but ICC will put the dependencies in
17073 # the current directory while Tru64 will put them in the object
17077 am_cv_GCJ_dependencies_compiler_type=none
17078 if test "$am_compiler_list" = ""; then
17079 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17081 am__universal=false
17084 for depmode in $am_compiler_list; do
17085 # Setup a source with many dependencies, because some compilers
17086 # like to wrap large dependency lists on column 80 (with \), and
17087 # we should not choose a depcomp mode which is confused by this.
17089 # We need to recreate these files for each test, as the compiler may
17090 # overwrite some of them when testing with obscure command lines.
17091 # This happens at least with the AIX C compiler.
17093 for i in 1 2 3 4 5 6; do
17094 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17095 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17096 # Solaris 8's {/usr,}/bin/sh.
17097 touch sub/conftst$i.h
17099 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17101 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17102 # mode. It turns out that the SunPro C++ compiler does not properly
17103 # handle `-M -o', and we need to detect this. Also, some Intel
17104 # versions had trouble with output in subdirs
17105 am__obj=sub/conftest.${OBJEXT-o}
17106 am__minus_obj="-o $am__obj"
17109 # This depmode causes a compiler race in universal mode.
17110 test "$am__universal" = false || continue
17113 # after this tag, mechanisms are not by side-effect, so they'll
17114 # only be used when explicitly requested
17115 if test "x$enable_dependency_tracking" = xyes; then
17121 msvisualcpp | msvcmsys)
17122 # This compiler won't grok `-c -o', but also, the minuso test has
17123 # not run yet. These depmodes are late enough in the game, and
17124 # so weak that their functioning should not be impacted.
17125 am__obj=conftest.${OBJEXT-o}
17130 if depmode=$depmode \
17131 source=sub/conftest.c object=$am__obj \
17132 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17133 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17134 >/dev/null 2>conftest.err &&
17135 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17136 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17137 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17138 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17139 # icc doesn't choke on unknown options, it will just issue warnings
17140 # or remarks (even with -Werror). So we grep stderr for any message
17141 # that says an option was ignored or not supported.
17142 # When given -MP, icc 7.0 and 7.1 complain thusly:
17143 # icc: Command line warning: ignoring option '-M'; no argument required
17144 # The diagnosis changed in icc 8.0:
17145 # icc: Command line remark: option '-MP' not supported
17146 if (grep 'ignoring option' conftest.err ||
17147 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17148 am_cv_GCJ_dependencies_compiler_type=$depmode
17155 rm -rf conftest.dir
17157 am_cv_GCJ_dependencies_compiler_type=none
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17162 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17163 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17166 test "x$enable_dependency_tracking" != xno \
17167 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17168 am__fastdepGCJ_TRUE=
17169 am__fastdepGCJ_FALSE='#'
17171 am__fastdepGCJ_TRUE='#'
17172 am__fastdepGCJ_FALSE=
17179 # Source file extension for Java test sources.
17182 # Object file extension for compiled Java test sources.
17186 # Code to be used in simple compile tests
17187 lt_simple_compile_test_code="int some_variable = 0;"
17189 # Code to be used in simple link tests
17190 lt_simple_link_test_code='int main(){return(0);}'
17192 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17199 # If no C compiler was specified, use CC.
17202 # If no C compiler flags were specified, use CFLAGS.
17203 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17205 # Allow CC to be a program name with arguments.
17209 # save warnings/boilerplate of simple test code
17210 ac_outfile=conftest.$ac_objext
17211 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17212 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17213 _lt_compiler_boilerplate=`cat conftest.err`
17216 ac_outfile=conftest.$ac_objext
17217 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17218 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17219 _lt_linker_boilerplate=`cat conftest.err`
17223 # Allow CC to be a program name with arguments.
17227 for cc_temp in $compiler""; do
17229 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17230 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17235 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17238 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17239 archive_cmds_need_lc_GCJ=no
17241 old_archive_cmds_GCJ=$old_archive_cmds
17244 ## There is no encapsulation within the following macros, do not change
17245 ## the running order or otherwise move them around unless you know exactly
17246 ## what you are doing...
17247 if test -n "$compiler"; then
17249 lt_prog_compiler_no_builtin_flag_GCJ=
17251 if test "$GCC" = yes; then
17252 case $cc_basename in
17254 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17256 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17260 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17261 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17262 $as_echo_n "(cached) " >&6
17264 lt_cv_prog_compiler_rtti_exceptions=no
17265 ac_outfile=conftest.$ac_objext
17266 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17267 lt_compiler_flag="-fno-rtti -fno-exceptions"
17268 # Insert the option either (1) after the last *FLAGS variable, or
17269 # (2) before a word containing "conftest.", or (3) at the end.
17270 # Note that $ac_compile itself does not contain backslashes and begins
17271 # with a dollar sign (not a hyphen), so the echo should work correctly.
17272 # The option is referenced via a variable to avoid confusing sed.
17273 lt_compile=`echo "$ac_compile" | $SED \
17274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17276 -e 's:$: $lt_compiler_flag:'`
17277 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17278 (eval "$lt_compile" 2>conftest.err)
17280 cat conftest.err >&5
17281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17282 if (exit $ac_status) && test -s "$ac_outfile"; then
17283 # The compiler can only warn and ignore the option if not recognized
17284 # So say no if there are warnings other than the usual output.
17285 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17288 lt_cv_prog_compiler_rtti_exceptions=yes
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17295 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17297 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17298 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17307 lt_prog_compiler_wl_GCJ=
17308 lt_prog_compiler_pic_GCJ=
17309 lt_prog_compiler_static_GCJ=
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17312 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17314 if test "$GCC" = yes; then
17315 lt_prog_compiler_wl_GCJ='-Wl,'
17316 lt_prog_compiler_static_GCJ='-static'
17320 # All AIX code is PIC.
17321 if test "$host_cpu" = ia64; then
17322 # AIX 5 now supports IA64 processor
17323 lt_prog_compiler_static_GCJ='-Bstatic'
17330 # see comment about AmigaOS4 .so support
17331 lt_prog_compiler_pic_GCJ='-fPIC'
17334 # FIXME: we need at least 68020 code to build shared libraries, but
17335 # adding the `-m68020' flag to GCC prevents building anything better,
17337 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17342 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17343 # PIC is the default for these OSes.
17346 mingw* | cygwin* | pw32* | os2* | cegcc*)
17347 # This hack is so that the source file can tell whether it is being
17348 # built for inclusion in a dll (and should export symbols for example).
17349 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17350 # (--disable-auto-import) libraries
17354 darwin* | rhapsody*)
17355 # PIC is the default on this platform
17356 # Common symbols not allowed in MH_DYLIB files
17357 lt_prog_compiler_pic_GCJ='-fno-common'
17361 # PIC is the default for Haiku.
17362 # The "-static" flag exists, but is broken.
17363 lt_prog_compiler_static_GCJ=
17367 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17368 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17369 # sets the default TLS model and affects inlining.
17375 lt_prog_compiler_pic_GCJ='-fPIC'
17381 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17382 # Instead, we relocate shared libraries at runtime.
17386 # Just because we use GCC doesn't mean we suddenly get shared libraries
17387 # on systems that don't support them.
17388 lt_prog_compiler_can_build_shared_GCJ=no
17393 # QNX uses GNU C++, but need to define -shared option too, otherwise
17394 # it will coredump.
17395 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17399 if test -d /usr/nec; then
17400 lt_prog_compiler_pic_GCJ=-Kconform_pic
17405 lt_prog_compiler_pic_GCJ='-fPIC'
17409 case $cc_basename in
17410 nvcc*) # Cuda Compiler Driver 2.2
17411 lt_prog_compiler_wl_GCJ='-Xlinker '
17412 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17416 # PORTME Check for flag to pass linker flags through the system compiler.
17419 lt_prog_compiler_wl_GCJ='-Wl,'
17420 if test "$host_cpu" = ia64; then
17421 # AIX 5 now supports IA64 processor
17422 lt_prog_compiler_static_GCJ='-Bstatic'
17424 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17428 mingw* | cygwin* | pw32* | os2* | cegcc*)
17429 # This hack is so that the source file can tell whether it is being
17430 # built for inclusion in a dll (and should export symbols for example).
17434 hpux9* | hpux10* | hpux11*)
17435 lt_prog_compiler_wl_GCJ='-Wl,'
17436 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17437 # not for PA HP-UX.
17443 lt_prog_compiler_pic_GCJ='+Z'
17446 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17447 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17450 irix5* | irix6* | nonstopux*)
17451 lt_prog_compiler_wl_GCJ='-Wl,'
17452 # PIC (with -KPIC) is the default.
17453 lt_prog_compiler_static_GCJ='-non_shared'
17456 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17457 case $cc_basename in
17458 # old Intel for x86_64 which still supported -KPIC.
17460 lt_prog_compiler_wl_GCJ='-Wl,'
17461 lt_prog_compiler_pic_GCJ='-KPIC'
17462 lt_prog_compiler_static_GCJ='-static'
17464 # icc used to be incompatible with GCC.
17465 # ICC 10 doesn't accept -KPIC any more.
17467 lt_prog_compiler_wl_GCJ='-Wl,'
17468 lt_prog_compiler_pic_GCJ='-fPIC'
17469 lt_prog_compiler_static_GCJ='-static'
17471 # Lahey Fortran 8.1.
17473 lt_prog_compiler_wl_GCJ='-Wl,'
17474 lt_prog_compiler_pic_GCJ='--shared'
17475 lt_prog_compiler_static_GCJ='--static'
17477 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17478 # Portland Group compilers (*not* the Pentium gcc compiler,
17479 # which looks to be a dead project)
17480 lt_prog_compiler_wl_GCJ='-Wl,'
17481 lt_prog_compiler_pic_GCJ='-fpic'
17482 lt_prog_compiler_static_GCJ='-Bstatic'
17485 lt_prog_compiler_wl_GCJ='-Wl,'
17486 # All Alpha code is PIC.
17487 lt_prog_compiler_static_GCJ='-non_shared'
17489 xl* | bgxl* | bgf* | mpixl*)
17490 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17491 lt_prog_compiler_wl_GCJ='-Wl,'
17492 lt_prog_compiler_pic_GCJ='-qpic'
17493 lt_prog_compiler_static_GCJ='-qstaticlink'
17496 case `$CC -V 2>&1 | sed 5q` in
17497 *Sun\ F* | *Sun*Fortran*)
17498 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17499 lt_prog_compiler_pic_GCJ='-KPIC'
17500 lt_prog_compiler_static_GCJ='-Bstatic'
17501 lt_prog_compiler_wl_GCJ=''
17505 lt_prog_compiler_pic_GCJ='-KPIC'
17506 lt_prog_compiler_static_GCJ='-Bstatic'
17507 lt_prog_compiler_wl_GCJ='-Wl,'
17515 lt_prog_compiler_pic_GCJ='-KPIC'
17516 lt_prog_compiler_static_GCJ='-Bstatic'
17520 # QNX uses GNU C++, but need to define -shared option too, otherwise
17521 # it will coredump.
17522 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17525 osf3* | osf4* | osf5*)
17526 lt_prog_compiler_wl_GCJ='-Wl,'
17527 # All OSF/1 code is PIC.
17528 lt_prog_compiler_static_GCJ='-non_shared'
17532 lt_prog_compiler_static_GCJ='-non_shared'
17536 lt_prog_compiler_pic_GCJ='-KPIC'
17537 lt_prog_compiler_static_GCJ='-Bstatic'
17538 case $cc_basename in
17539 f77* | f90* | f95*)
17540 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17542 lt_prog_compiler_wl_GCJ='-Wl,';;
17547 lt_prog_compiler_wl_GCJ='-Qoption ld '
17548 lt_prog_compiler_pic_GCJ='-PIC'
17549 lt_prog_compiler_static_GCJ='-Bstatic'
17552 sysv4 | sysv4.2uw2* | sysv4.3*)
17553 lt_prog_compiler_wl_GCJ='-Wl,'
17554 lt_prog_compiler_pic_GCJ='-KPIC'
17555 lt_prog_compiler_static_GCJ='-Bstatic'
17559 if test -d /usr/nec ;then
17560 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17561 lt_prog_compiler_static_GCJ='-Bstatic'
17565 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17566 lt_prog_compiler_wl_GCJ='-Wl,'
17567 lt_prog_compiler_pic_GCJ='-KPIC'
17568 lt_prog_compiler_static_GCJ='-Bstatic'
17572 lt_prog_compiler_wl_GCJ='-Wl,'
17573 lt_prog_compiler_can_build_shared_GCJ=no
17577 lt_prog_compiler_pic_GCJ='-pic'
17578 lt_prog_compiler_static_GCJ='-Bstatic'
17582 lt_prog_compiler_can_build_shared_GCJ=no
17588 # For platforms which do not support PIC, -DPIC is meaningless:
17590 lt_prog_compiler_pic_GCJ=
17593 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17597 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17602 # Check to make sure the PIC flag actually works.
17604 if test -n "$lt_prog_compiler_pic_GCJ"; then
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17606 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17607 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17608 $as_echo_n "(cached) " >&6
17610 lt_cv_prog_compiler_pic_works_GCJ=no
17611 ac_outfile=conftest.$ac_objext
17612 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17613 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17614 # Insert the option either (1) after the last *FLAGS variable, or
17615 # (2) before a word containing "conftest.", or (3) at the end.
17616 # Note that $ac_compile itself does not contain backslashes and begins
17617 # with a dollar sign (not a hyphen), so the echo should work correctly.
17618 # The option is referenced via a variable to avoid confusing sed.
17619 lt_compile=`echo "$ac_compile" | $SED \
17620 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17621 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17622 -e 's:$: $lt_compiler_flag:'`
17623 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17624 (eval "$lt_compile" 2>conftest.err)
17626 cat conftest.err >&5
17627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628 if (exit $ac_status) && test -s "$ac_outfile"; then
17629 # The compiler can only warn and ignore the option if not recognized
17630 # So say no if there are warnings other than the usual output.
17631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17632 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17633 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17634 lt_cv_prog_compiler_pic_works_GCJ=yes
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17641 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17643 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17644 case $lt_prog_compiler_pic_GCJ in
17646 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17649 lt_prog_compiler_pic_GCJ=
17650 lt_prog_compiler_can_build_shared_GCJ=no
17658 # Check to make sure the static flag actually works.
17660 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17662 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17663 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17664 $as_echo_n "(cached) " >&6
17666 lt_cv_prog_compiler_static_works_GCJ=no
17667 save_LDFLAGS="$LDFLAGS"
17668 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17669 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17670 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17671 # The linker can only warn and ignore the option if not recognized
17672 # So say no if there are warnings
17673 if test -s conftest.err; then
17674 # Append any errors to the config.log.
17675 cat conftest.err 1>&5
17676 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17677 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17678 if diff conftest.exp conftest.er2 >/dev/null; then
17679 lt_cv_prog_compiler_static_works_GCJ=yes
17682 lt_cv_prog_compiler_static_works_GCJ=yes
17686 LDFLAGS="$save_LDFLAGS"
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17690 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17692 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17695 lt_prog_compiler_static_GCJ=
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17702 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17703 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17704 $as_echo_n "(cached) " >&6
17706 lt_cv_prog_compiler_c_o_GCJ=no
17707 $RM -r conftest 2>/dev/null
17711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17713 lt_compiler_flag="-o out/conftest2.$ac_objext"
17714 # Insert the option either (1) after the last *FLAGS variable, or
17715 # (2) before a word containing "conftest.", or (3) at the end.
17716 # Note that $ac_compile itself does not contain backslashes and begins
17717 # with a dollar sign (not a hyphen), so the echo should work correctly.
17718 lt_compile=`echo "$ac_compile" | $SED \
17719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17721 -e 's:$: $lt_compiler_flag:'`
17722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17723 (eval "$lt_compile" 2>out/conftest.err)
17725 cat out/conftest.err >&5
17726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17727 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17729 # The compiler can only warn and ignore the option if not recognized
17730 # So say no if there are warnings
17731 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17732 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17733 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17734 lt_cv_prog_compiler_c_o_GCJ=yes
17739 # SGI C++ compiler will create directory out/ii_files/ for
17740 # template instantiation
17741 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17742 $RM out/* && rmdir out
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17749 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17754 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17755 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17756 $as_echo_n "(cached) " >&6
17758 lt_cv_prog_compiler_c_o_GCJ=no
17759 $RM -r conftest 2>/dev/null
17763 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17765 lt_compiler_flag="-o out/conftest2.$ac_objext"
17766 # Insert the option either (1) after the last *FLAGS variable, or
17767 # (2) before a word containing "conftest.", or (3) at the end.
17768 # Note that $ac_compile itself does not contain backslashes and begins
17769 # with a dollar sign (not a hyphen), so the echo should work correctly.
17770 lt_compile=`echo "$ac_compile" | $SED \
17771 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17773 -e 's:$: $lt_compiler_flag:'`
17774 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17775 (eval "$lt_compile" 2>out/conftest.err)
17777 cat out/conftest.err >&5
17778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17779 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17781 # The compiler can only warn and ignore the option if not recognized
17782 # So say no if there are warnings
17783 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17784 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17785 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17786 lt_cv_prog_compiler_c_o_GCJ=yes
17791 # SGI C++ compiler will create directory out/ii_files/ for
17792 # template instantiation
17793 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17794 $RM out/* && rmdir out
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17801 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17806 hard_links="nottested"
17807 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17808 # do not overwrite the value of need_locks provided by the user
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17810 $as_echo_n "checking if we can lock with hard links... " >&6; }
17813 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17815 ln conftest.a conftest.b 2>&5 || hard_links=no
17816 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17818 $as_echo "$hard_links" >&6; }
17819 if test "$hard_links" = no; then
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17821 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17831 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17834 allow_undefined_flag_GCJ=
17835 always_export_symbols_GCJ=no
17837 archive_expsym_cmds_GCJ=
17838 compiler_needs_object_GCJ=no
17839 enable_shared_with_static_runtimes_GCJ=no
17840 export_dynamic_flag_spec_GCJ=
17841 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17842 hardcode_automatic_GCJ=no
17843 hardcode_direct_GCJ=no
17844 hardcode_direct_absolute_GCJ=no
17845 hardcode_libdir_flag_spec_GCJ=
17846 hardcode_libdir_flag_spec_ld_GCJ=
17847 hardcode_libdir_separator_GCJ=
17848 hardcode_minus_L_GCJ=no
17849 hardcode_shlibpath_var_GCJ=unsupported
17850 inherit_rpath_GCJ=no
17851 link_all_deplibs_GCJ=unknown
17853 module_expsym_cmds_GCJ=
17854 old_archive_from_new_cmds_GCJ=
17855 old_archive_from_expsyms_cmds_GCJ=
17856 thread_safe_flag_spec_GCJ=
17857 whole_archive_flag_spec_GCJ=
17858 # include_expsyms should be a list of space-separated symbols to be *always*
17859 # included in the symbol list
17860 include_expsyms_GCJ=
17861 # exclude_expsyms can be an extended regexp of symbols to exclude
17862 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17863 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17864 # as well as any symbol that contains `d'.
17865 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17866 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17867 # platforms (ab)use it in PIC code, but their linkers get confused if
17868 # the symbol is explicitly referenced. Since portable code cannot
17869 # rely on this symbol name, it's probably fine to never include it in
17870 # preloaded symbol tables.
17871 # Exclude shared library initialization/finalization symbols.
17872 extract_expsyms_cmds=
17875 cygwin* | mingw* | pw32* | cegcc*)
17876 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17877 # When not using gcc, we currently assume that we are using
17878 # Microsoft Visual C++.
17879 if test "$GCC" != yes; then
17884 # we just hope/assume this is gcc and not c89 (= MSVC++)
17894 # On some targets, GNU ld is compatible enough with the native linker
17895 # that we're better off using the native interface for both.
17896 lt_use_gnu_ld_interface=no
17897 if test "$with_gnu_ld" = yes; then
17900 # The AIX port of GNU ld has always aspired to compatibility
17901 # with the native linker. However, as the warning in the GNU ld
17902 # block says, versions before 2.19.5* couldn't really create working
17903 # shared libraries, regardless of the interface used.
17904 case `$LD -v 2>&1` in
17905 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17906 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17907 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17909 lt_use_gnu_ld_interface=yes
17914 lt_use_gnu_ld_interface=yes
17919 if test "$lt_use_gnu_ld_interface" = yes; then
17920 # If archive_cmds runs LD, not CC, wlarc should be empty
17923 # Set some defaults for GNU ld with shared library support. These
17924 # are reset later if shared libraries are not supported. Putting them
17925 # here allows them to be overridden if necessary.
17926 runpath_var=LD_RUN_PATH
17927 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17928 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17929 # ancient GNU ld didn't support --whole-archive et. al.
17930 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17931 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17933 whole_archive_flag_spec_GCJ=
17935 supports_anon_versioning=no
17936 case `$LD -v 2>&1` in
17937 *GNU\ gold*) supports_anon_versioning=yes ;;
17938 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17939 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17940 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17941 *\ 2.11.*) ;; # other 2.11 versions
17942 *) supports_anon_versioning=yes ;;
17945 # See if GNU ld supports shared libraries.
17948 # On AIX/PPC, the GNU linker is very broken
17949 if test "$host_cpu" != ia64; then
17953 *** Warning: the GNU linker, at least up to release 2.19, is reported
17954 *** to be unable to reliably create shared libraries on AIX.
17955 *** Therefore, libtool is disabling shared libraries support. If you
17956 *** really care for shared libraries, you may want to install binutils
17957 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17958 *** You will then need to restart the configuration process.
17967 # see comment about AmigaOS4 .so support
17968 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17969 archive_expsym_cmds_GCJ=''
17972 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)'
17973 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17974 hardcode_minus_L_GCJ=yes
17980 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17981 allow_undefined_flag_GCJ=unsupported
17982 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17983 # support --undefined. This deserves some investigation. FIXME
17984 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17990 cygwin* | mingw* | pw32* | cegcc*)
17991 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17992 # as there is no search path for DLLs.
17993 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17994 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
17995 allow_undefined_flag_GCJ=unsupported
17996 always_export_symbols_GCJ=no
17997 enable_shared_with_static_runtimes_GCJ=yes
17998 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18000 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18001 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18002 # If the export-symbols file already is a .def file (1st line
18003 # is EXPORTS), use it as is; otherwise, prepend...
18004 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18005 cp $export_symbols $output_objdir/$soname.def;
18007 echo EXPORTS > $output_objdir/$soname.def;
18008 cat $export_symbols >> $output_objdir/$soname.def;
18010 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18017 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18018 link_all_deplibs_GCJ=yes
18022 hardcode_direct_GCJ=no
18023 hardcode_shlibpath_var_GCJ=no
18024 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18025 export_dynamic_flag_spec_GCJ='${wl}-E'
18026 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18027 # Instead, shared libraries are loaded at an image base (0x10000000 by
18028 # default) and relocated if they conflict, which is a slow very memory
18029 # consuming and fragmenting process. To avoid this, we pick a random,
18030 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18031 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18032 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'
18033 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'
18036 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18038 if test "$host_os" = linux-dietlibc; then
18039 case $cc_basename in
18040 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18043 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18044 && test "$tmp_diet" = no
18047 tmp_sharedflag='-shared'
18048 case $cc_basename,$host_cpu in
18049 pgcc*) # Portland Group C compiler
18050 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18051 tmp_addflag=' $pic_flag'
18053 pgf77* | pgf90* | pgf95* | pgfortran*)
18054 # Portland Group f77 and f90 compilers
18055 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18056 tmp_addflag=' $pic_flag -Mnomain' ;;
18057 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18058 tmp_addflag=' -i_dynamic' ;;
18059 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18060 tmp_addflag=' -i_dynamic -nofor_main' ;;
18061 ifc* | ifort*) # Intel Fortran compiler
18062 tmp_addflag=' -nofor_main' ;;
18063 lf95*) # Lahey Fortran 8.1
18064 whole_archive_flag_spec_GCJ=
18065 tmp_sharedflag='--shared' ;;
18066 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18067 tmp_sharedflag='-qmkshrobj'
18069 nvcc*) # Cuda Compiler Driver 2.2
18070 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18071 compiler_needs_object_GCJ=yes
18074 case `$CC -V 2>&1 | sed 5q` in
18075 *Sun\ C*) # Sun C 5.9
18076 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
18077 compiler_needs_object_GCJ=yes
18078 tmp_sharedflag='-G' ;;
18079 *Sun\ F*) # Sun Fortran 8.3
18080 tmp_sharedflag='-G' ;;
18082 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18084 if test "x$supports_anon_versioning" = xyes; then
18085 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18086 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18087 echo "local: *; };" >> $output_objdir/$libname.ver~
18088 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18091 case $cc_basename in
18092 xlf* | bgf* | bgxlf* | mpixlf*)
18093 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18094 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18095 hardcode_libdir_flag_spec_GCJ=
18096 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18097 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18098 if test "x$supports_anon_versioning" = xyes; then
18099 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18100 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18101 echo "local: *; };" >> $output_objdir/$libname.ver~
18102 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18113 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18116 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18117 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18122 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18126 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18127 *** create shared libraries on Solaris systems. Therefore, libtool
18128 *** is disabling shared libraries support. We urge you to upgrade GNU
18129 *** binutils to release 2.9.1 or newer. Another option is to modify
18130 *** your PATH or compiler configuration so that the native linker is
18131 *** used, and then restart.
18134 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18135 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18136 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18142 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18143 case `$LD -v 2>&1` in
18144 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18148 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18149 *** reliably create shared libraries on SCO systems. Therefore, libtool
18150 *** is disabling shared libraries support. We urge you to upgrade GNU
18151 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18152 *** your PATH or compiler configuration so that the native linker is
18153 *** used, and then restart.
18158 # For security reasons, it is highly recommended that you always
18159 # use absolute paths for naming shared libraries, and exclude the
18160 # DT_RUNPATH tag from executables and libraries. But doing so
18161 # requires that you compile everything twice, which is a pain.
18162 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18163 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18164 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18165 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18174 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18176 hardcode_direct_GCJ=yes
18177 hardcode_shlibpath_var_GCJ=no
18181 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18182 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18183 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18190 if test "$ld_shlibs_GCJ" = no; then
18192 hardcode_libdir_flag_spec_GCJ=
18193 export_dynamic_flag_spec_GCJ=
18194 whole_archive_flag_spec_GCJ=
18197 # PORTME fill in a description of your system's linker (not GNU ld)
18200 allow_undefined_flag_GCJ=unsupported
18201 always_export_symbols_GCJ=yes
18202 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'
18203 # Note: this linker hardcodes the directories in LIBPATH if there
18204 # are no directories specified by -L.
18205 hardcode_minus_L_GCJ=yes
18206 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18207 # Neither direct hardcoding nor static linking is supported with a
18209 hardcode_direct_GCJ=unsupported
18214 if test "$host_cpu" = ia64; then
18215 # On IA64, the linker does run time linking by default, so we don't
18216 # have to do anything special.
18217 aix_use_runtimelinking=no
18218 exp_sym_flag='-Bexport'
18221 # If we're using GNU nm, then we don't want the "-C" option.
18222 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18223 # Also, AIX nm treats weak defined symbols like other global
18224 # defined symbols, whereas GNU nm marks them as "W".
18225 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18226 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18228 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'
18230 aix_use_runtimelinking=no
18232 # Test if we are trying to use run time linking or normal
18233 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18234 # need to do runtime linking.
18235 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18236 for ld_flag in $LDFLAGS; do
18237 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18238 aix_use_runtimelinking=yes
18245 exp_sym_flag='-bexport'
18246 no_entry_flag='-bnoentry'
18249 # When large executables or shared objects are built, AIX ld can
18250 # have problems creating the table of contents. If linking a library
18251 # or program results in "error TOC overflow" add -mminimal-toc to
18252 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18253 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18255 archive_cmds_GCJ=''
18256 hardcode_direct_GCJ=yes
18257 hardcode_direct_absolute_GCJ=yes
18258 hardcode_libdir_separator_GCJ=':'
18259 link_all_deplibs_GCJ=yes
18260 file_list_spec_GCJ='${wl}-f,'
18262 if test "$GCC" = yes; then
18263 case $host_os in aix4.[012]|aix4.[012].*)
18264 # We only want to do this on AIX 4.2 and lower, the check
18265 # below for broken collect2 doesn't work under 4.3+
18266 collect2name=`${CC} -print-prog-name=collect2`
18267 if test -f "$collect2name" &&
18268 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18270 # We have reworked collect2
18273 # We have old collect2
18274 hardcode_direct_GCJ=unsupported
18275 # It fails to find uninstalled libraries when the uninstalled
18276 # path is not listed in the libpath. Setting hardcode_minus_L
18277 # to unsupported forces relinking
18278 hardcode_minus_L_GCJ=yes
18279 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18280 hardcode_libdir_separator_GCJ=
18284 shared_flag='-shared'
18285 if test "$aix_use_runtimelinking" = yes; then
18286 shared_flag="$shared_flag "'${wl}-G'
18290 if test "$host_cpu" = ia64; then
18291 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18292 # chokes on -Wl,-G. The following line is correct:
18295 if test "$aix_use_runtimelinking" = yes; then
18296 shared_flag='${wl}-G'
18298 shared_flag='${wl}-bM:SRE'
18303 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18304 # It seems that -bexpall does not export symbols beginning with
18305 # underscore (_), so it is better to generate a list of symbols to export.
18306 always_export_symbols_GCJ=yes
18307 if test "$aix_use_runtimelinking" = yes; then
18308 # Warning - without using the other runtime loading flags (-brtl),
18309 # -berok will link without error, but may produce a broken library.
18310 allow_undefined_flag_GCJ='-berok'
18311 # Determine the default libpath from the value encoded in an
18312 # empty executable.
18313 if test x$gcc_no_link = xyes; then
18314 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18317 /* end confdefs.h. */
18327 if ac_fn_c_try_link "$LINENO"; then :
18329 lt_aix_libpath_sed='
18330 /Import File Strings/,/^$/ {
18336 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18337 # Check for a 64-bit object if we didn't find anything.
18338 if test -z "$aix_libpath"; then
18339 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18342 rm -f core conftest.err conftest.$ac_objext \
18343 conftest$ac_exeext conftest.$ac_ext
18344 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18346 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18347 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18349 if test "$host_cpu" = ia64; then
18350 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18351 allow_undefined_flag_GCJ="-z nodefs"
18352 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"
18354 # Determine the default libpath from the value encoded in an
18355 # empty executable.
18356 if test x$gcc_no_link = xyes; then
18357 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18360 /* end confdefs.h. */
18370 if ac_fn_c_try_link "$LINENO"; then :
18372 lt_aix_libpath_sed='
18373 /Import File Strings/,/^$/ {
18379 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18380 # Check for a 64-bit object if we didn't find anything.
18381 if test -z "$aix_libpath"; then
18382 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18385 rm -f core conftest.err conftest.$ac_objext \
18386 conftest$ac_exeext conftest.$ac_ext
18387 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18389 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18390 # Warning - without using the other run time loading flags,
18391 # -berok will link without error, but may produce a broken library.
18392 no_undefined_flag_GCJ=' ${wl}-bernotok'
18393 allow_undefined_flag_GCJ=' ${wl}-berok'
18394 if test "$with_gnu_ld" = yes; then
18395 # We only use this code for GNU lds that support --whole-archive.
18396 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18398 # Exported symbols can be pulled into shared objects from archives
18399 whole_archive_flag_spec_GCJ='$convenience'
18401 archive_cmds_need_lc_GCJ=yes
18402 # This is similar to how AIX traditionally builds its shared libraries.
18403 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'
18411 # see comment about AmigaOS4 .so support
18412 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18413 archive_expsym_cmds_GCJ=''
18416 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)'
18417 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18418 hardcode_minus_L_GCJ=yes
18424 export_dynamic_flag_spec_GCJ=-rdynamic
18427 cygwin* | mingw* | pw32* | cegcc*)
18428 # When not using gcc, we currently assume that we are using
18429 # Microsoft Visual C++.
18430 # hardcode_libdir_flag_spec is actually meaningless, as there is
18431 # no search path for DLLs.
18432 hardcode_libdir_flag_spec_GCJ=' '
18433 allow_undefined_flag_GCJ=unsupported
18434 # Tell ltmain to make .lib files, not .a files.
18436 # Tell ltmain to make .dll files, not .so files.
18438 # FIXME: Setting linknames here is a bad hack.
18439 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18440 # The linker will automatically build a .lib file if we build a DLL.
18441 old_archive_from_new_cmds_GCJ='true'
18442 # FIXME: Should let the user specify the lib program.
18443 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18444 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18445 enable_shared_with_static_runtimes_GCJ=yes
18448 darwin* | rhapsody*)
18451 archive_cmds_need_lc_GCJ=no
18452 hardcode_direct_GCJ=no
18453 hardcode_automatic_GCJ=yes
18454 hardcode_shlibpath_var_GCJ=unsupported
18455 if test "$lt_cv_ld_force_load" = "yes"; then
18456 whole_archive_flag_spec_GCJ='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
18458 whole_archive_flag_spec_GCJ=''
18460 link_all_deplibs_GCJ=yes
18461 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18462 case $cc_basename in
18463 ifort*) _lt_dar_can_shared=yes ;;
18464 *) _lt_dar_can_shared=$GCC ;;
18466 if test "$_lt_dar_can_shared" = "yes"; then
18467 output_verbose_link_cmd=func_echo_all
18468 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}"
18469 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18470 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}"
18471 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}"
18480 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18481 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18482 hardcode_shlibpath_var_GCJ=no
18489 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18490 # support. Future versions do this automatically, but an explicit c++rt0.o
18491 # does not break anything, and helps significantly (at the cost of a little
18494 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18495 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18496 hardcode_direct_GCJ=yes
18497 hardcode_shlibpath_var_GCJ=no
18500 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18502 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18503 hardcode_direct_GCJ=yes
18504 hardcode_minus_L_GCJ=yes
18505 hardcode_shlibpath_var_GCJ=no
18508 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18509 freebsd* | dragonfly*)
18510 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18511 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18512 hardcode_direct_GCJ=yes
18513 hardcode_shlibpath_var_GCJ=no
18517 if test "$GCC" = yes; then
18518 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'
18520 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'
18522 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18523 hardcode_libdir_separator_GCJ=:
18524 hardcode_direct_GCJ=yes
18526 # hardcode_minus_L: Not really in the search PATH,
18527 # but as the default location of the library.
18528 hardcode_minus_L_GCJ=yes
18529 export_dynamic_flag_spec_GCJ='${wl}-E'
18533 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18534 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18536 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18538 if test "$with_gnu_ld" = no; then
18539 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18540 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18541 hardcode_libdir_separator_GCJ=:
18542 hardcode_direct_GCJ=yes
18543 hardcode_direct_absolute_GCJ=yes
18544 export_dynamic_flag_spec_GCJ='${wl}-E'
18545 # hardcode_minus_L: Not really in the search PATH,
18546 # but as the default location of the library.
18547 hardcode_minus_L_GCJ=yes
18552 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18555 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18558 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18561 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18567 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18570 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18573 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18577 if test "$with_gnu_ld" = no; then
18578 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18579 hardcode_libdir_separator_GCJ=:
18583 hardcode_direct_GCJ=no
18584 hardcode_shlibpath_var_GCJ=no
18587 hardcode_direct_GCJ=yes
18588 hardcode_direct_absolute_GCJ=yes
18589 export_dynamic_flag_spec_GCJ='${wl}-E'
18591 # hardcode_minus_L: Not really in the search PATH,
18592 # but as the default location of the library.
18593 hardcode_minus_L_GCJ=yes
18599 irix5* | irix6* | nonstopux*)
18600 if test "$GCC" = yes; then
18601 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18602 # Try to use the -exported_symbol ld option, if it does not
18603 # work, assume that -exports_file does not work either and
18604 # implicitly export all symbols.
18605 save_LDFLAGS="$LDFLAGS"
18606 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18607 if test x$gcc_no_link = xyes; then
18608 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18614 if ac_fn_c_try_link "$LINENO"; then :
18615 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
18618 rm -f core conftest.err conftest.$ac_objext \
18619 conftest$ac_exeext conftest.$ac_ext
18620 LDFLAGS="$save_LDFLAGS"
18622 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18623 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
18625 archive_cmds_need_lc_GCJ='no'
18626 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18627 hardcode_libdir_separator_GCJ=:
18628 inherit_rpath_GCJ=yes
18629 link_all_deplibs_GCJ=yes
18633 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18634 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18636 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18638 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18639 hardcode_direct_GCJ=yes
18640 hardcode_shlibpath_var_GCJ=no
18644 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18645 hardcode_direct_GCJ=yes
18646 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18647 hardcode_libdir_separator_GCJ=:
18648 hardcode_shlibpath_var_GCJ=no
18655 if test -f /usr/libexec/ld.so; then
18656 hardcode_direct_GCJ=yes
18657 hardcode_shlibpath_var_GCJ=no
18658 hardcode_direct_absolute_GCJ=yes
18659 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18660 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18661 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18662 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18663 export_dynamic_flag_spec_GCJ='${wl}-E'
18666 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18667 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18668 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18671 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18672 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18682 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18683 hardcode_minus_L_GCJ=yes
18684 allow_undefined_flag_GCJ=unsupported
18685 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'
18686 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18690 if test "$GCC" = yes; then
18691 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18692 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18694 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18695 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18697 archive_cmds_need_lc_GCJ='no'
18698 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18699 hardcode_libdir_separator_GCJ=:
18702 osf4* | osf5*) # as osf3* with the addition of -msym flag
18703 if test "$GCC" = yes; then
18704 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18705 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18706 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18708 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18709 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18710 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~
18711 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
18713 # Both c and cxx compiler support -rpath directly
18714 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18716 archive_cmds_need_lc_GCJ='no'
18717 hardcode_libdir_separator_GCJ=:
18721 no_undefined_flag_GCJ=' -z defs'
18722 if test "$GCC" = yes; then
18724 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18725 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18726 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18728 case `$CC -V 2>&1` in
18731 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18732 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18733 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18737 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18738 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18739 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18743 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18744 hardcode_shlibpath_var_GCJ=no
18746 solaris2.[0-5] | solaris2.[0-5].*) ;;
18748 # The compiler driver will combine and reorder linker options,
18749 # but understands `-z linker_flag'. GCC discards it without `$wl',
18750 # but is careful enough not to reorder.
18751 # Supported since Solaris 2.6 (maybe 2.5.1?)
18752 if test "$GCC" = yes; then
18753 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18755 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18759 link_all_deplibs_GCJ=yes
18763 if test "x$host_vendor" = xsequent; then
18764 # Use $CC to link under sequent, because it throws in some extra .o
18765 # files that make .init and .fini sections work.
18766 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18768 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18770 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18771 hardcode_direct_GCJ=yes
18772 hardcode_minus_L_GCJ=yes
18773 hardcode_shlibpath_var_GCJ=no
18777 case $host_vendor in
18779 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18780 hardcode_direct_GCJ=yes # is this really true???
18783 ## LD is ld it makes a PLAMLIB
18784 ## CC just makes a GrossModule.
18785 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18786 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18787 hardcode_direct_GCJ=no
18790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18791 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18794 runpath_var='LD_RUN_PATH'
18795 hardcode_shlibpath_var_GCJ=no
18799 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18800 hardcode_shlibpath_var_GCJ=no
18801 export_dynamic_flag_spec_GCJ='-Bexport'
18805 if test -d /usr/nec; then
18806 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18807 hardcode_shlibpath_var_GCJ=no
18808 runpath_var=LD_RUN_PATH
18809 hardcode_runpath_var=yes
18814 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18815 no_undefined_flag_GCJ='${wl}-z,text'
18816 archive_cmds_need_lc_GCJ=no
18817 hardcode_shlibpath_var_GCJ=no
18818 runpath_var='LD_RUN_PATH'
18820 if test "$GCC" = yes; then
18821 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18822 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18824 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18825 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18829 sysv5* | sco3.2v5* | sco5v6*)
18830 # Note: We can NOT use -z defs as we might desire, because we do not
18831 # link with -lc, and that would cause any symbols used from libc to
18832 # always be unresolved, which means just about no library would
18833 # ever link correctly. If we're not using GNU ld we use -z text
18834 # though, which does catch some bad symbols but isn't as heavy-handed
18836 no_undefined_flag_GCJ='${wl}-z,text'
18837 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18838 archive_cmds_need_lc_GCJ=no
18839 hardcode_shlibpath_var_GCJ=no
18840 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18841 hardcode_libdir_separator_GCJ=':'
18842 link_all_deplibs_GCJ=yes
18843 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18844 runpath_var='LD_RUN_PATH'
18846 if test "$GCC" = yes; then
18847 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18848 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18850 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18851 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18856 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18857 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18858 hardcode_shlibpath_var_GCJ=no
18866 if test x$host_vendor = xsni; then
18868 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18869 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18876 $as_echo "$ld_shlibs_GCJ" >&6; }
18877 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18879 with_gnu_ld_GCJ=$with_gnu_ld
18887 # Do we need to explicitly link libc?
18889 case "x$archive_cmds_need_lc_GCJ" in
18891 # Assume -lc should be added
18892 archive_cmds_need_lc_GCJ=yes
18894 if test "$enable_shared" = yes && test "$GCC" = yes; then
18895 case $archive_cmds_GCJ in
18897 # FIXME: we may have to deal with multi-command sequences.
18900 # Test whether the compiler implicitly links with -lc since on some
18901 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18902 # to ld, don't add -lc before -lgcc.
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18904 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18905 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18906 $as_echo_n "(cached) " >&6
18909 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18911 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18912 (eval $ac_compile) 2>&5
18914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18915 test $ac_status = 0; } 2>conftest.err; then
18918 libobjs=conftest.$ac_objext
18920 wl=$lt_prog_compiler_wl_GCJ
18921 pic_flag=$lt_prog_compiler_pic_GCJ
18927 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18928 allow_undefined_flag_GCJ=
18929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18930 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18933 test $ac_status = 0; }
18935 lt_cv_archive_cmds_need_lc_GCJ=no
18937 lt_cv_archive_cmds_need_lc_GCJ=yes
18939 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18941 cat conftest.err 1>&5
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18947 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18948 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19019 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19020 hardcode_action_GCJ=
19021 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19022 test -n "$runpath_var_GCJ" ||
19023 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19025 # We can hardcode non-existent directories.
19026 if test "$hardcode_direct_GCJ" != no &&
19027 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19028 # have to relink, otherwise we might link with an installed library
19029 # when we should be linking with a yet-to-be-installed one
19030 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19031 test "$hardcode_minus_L_GCJ" != no; then
19032 # Linking always hardcodes the temporary library directory.
19033 hardcode_action_GCJ=relink
19035 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19036 hardcode_action_GCJ=immediate
19039 # We cannot hardcode anything, or else we can only hardcode existing
19041 hardcode_action_GCJ=unsupported
19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19044 $as_echo "$hardcode_action_GCJ" >&6; }
19046 if test "$hardcode_action_GCJ" = relink ||
19047 test "$inherit_rpath_GCJ" = yes; then
19048 # Fast installation is not supported
19049 enable_fast_install=no
19050 elif test "$shlibpath_overrides_runpath" = yes ||
19051 test "$enable_shared" = no; then
19052 # Fast installation is not necessary
19053 enable_fast_install=needless
19064 compiler_GCJ=${GCJ-gcj}
19066 ac_cpp='$CPP $CPPFLAGS'
19067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19072 if test "x$CC" != xcc; then
19073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19074 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19077 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19079 set dummy $CC; ac_cc=`$as_echo "$2" |
19080 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19081 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19082 $as_echo_n "(cached) " >&6
19084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19085 /* end confdefs.h. */
19095 # Make sure it works both with $CC and with simple cc.
19096 # We do the test twice because some compilers refuse to overwrite an
19097 # existing .o file with -o, though they will create one.
19098 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19100 if { { case "(($ac_try" in
19101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102 *) ac_try_echo=$ac_try;;
19104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19105 $as_echo "$ac_try_echo"; } >&5
19106 (eval "$ac_try") 2>&5
19108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19109 test $ac_status = 0; } &&
19110 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19112 *) ac_try_echo=$ac_try;;
19114 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19115 $as_echo "$ac_try_echo"; } >&5
19116 (eval "$ac_try") 2>&5
19118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19119 test $ac_status = 0; };
19121 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19122 if test "x$CC" != xcc; then
19123 # Test first that cc exists at all.
19124 if { ac_try='cc -c conftest.$ac_ext >&5'
19125 { { case "(($ac_try" in
19126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19127 *) ac_try_echo=$ac_try;;
19129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19130 $as_echo "$ac_try_echo"; } >&5
19131 (eval "$ac_try") 2>&5
19133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19134 test $ac_status = 0; }; }; then
19135 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19137 if { { case "(($ac_try" in
19138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139 *) ac_try_echo=$ac_try;;
19141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19142 $as_echo "$ac_try_echo"; } >&5
19143 (eval "$ac_try") 2>&5
19145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19146 test $ac_status = 0; } &&
19147 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19152 $as_echo "$ac_try_echo"; } >&5
19153 (eval "$ac_try") 2>&5
19155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19156 test $ac_status = 0; };
19161 # cc exists but doesn't like -o.
19162 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19167 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19169 rm -f core conftest*
19172 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19174 $as_echo "yes" >&6; }
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19177 $as_echo "no" >&6; }
19179 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19183 # FIXME: we rely on the cache variable name because
19184 # there is no other way.
19186 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19187 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19188 if test "$am_t" != yes; then
19189 # Losing compiler, so override with the script.
19190 # FIXME: It is wrong to rewrite CC.
19191 # But if we don't then we get into trouble of one sort or another.
19192 # A longer-term fix would be to have automake use am__CC in this case,
19193 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19194 CC="$am_aux_dir/compile $CC"
19201 subdirs="$subdirs classpath libltdl"
19204 # The -no-testsuite modules omit the test subdir.
19205 if test -d $srcdir/testsuite; then
19207 TESTSUBDIR_FALSE='#'
19209 TESTSUBDIR_TRUE='#'
19214 # Should the runtime set system properties by examining the
19215 # environment variable GCJ_PROPERTIES?
19216 # Check whether --enable-getenv-properties was given.
19217 if test "${enable_getenv_properties+set}" = set; then :
19218 enableval=$enable_getenv_properties;
19222 # Whether GCJ_PROPERTIES is used depends on the target.
19223 if test -z "$enable_getenv_properties"; then
19224 enable_getenv_properties=${enable_getenv_properties_default-yes}
19226 if test "$enable_getenv_properties" = no; then
19228 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19232 # Whether we should use arguments to main()
19233 if test -z "$enable_main_args"; then
19234 enable_main_args=${enable_main_args_default-yes}
19236 if test "$enable_main_args" = no; then
19238 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19243 # Should we use hashtable-based synchronization?
19244 # Currently works only for Linux X86/ia64
19245 # Typically faster and more space-efficient
19246 # Check whether --enable-hash-synchronization was given.
19247 if test "${enable_hash_synchronization+set}" = set; then :
19248 enableval=$enable_hash_synchronization;
19252 if test -z "$enable_hash_synchronization"; then
19253 enable_hash_synchronization=$enable_hash_synchronization_default
19261 # Check whether --with-ecj-jar was given.
19262 if test "${with_ecj_jar+set}" = set; then :
19263 withval=$with_ecj_jar; ECJ_JAR=$withval
19265 if test -f $multi_basedir/ecj.jar; then
19266 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19267 ECJ_JAR='$(jardir)/ecj.jar'
19268 install_ecj_jar=yes
19274 if test "$ECJ_JAR" != ""; then
19276 BUILD_ECJ1_FALSE='#'
19278 BUILD_ECJ1_TRUE='#'
19282 if test $install_ecj_jar = yes; then
19283 INSTALL_ECJ_JAR_TRUE=
19284 INSTALL_ECJ_JAR_FALSE='#'
19286 INSTALL_ECJ_JAR_TRUE='#'
19287 INSTALL_ECJ_JAR_FALSE=
19292 # Check whether --with-java-home was given.
19293 if test "${with_java_home+set}" = set; then :
19294 withval=$with_java_home; JAVA_HOME="${withval}"
19299 if test ! -z "$JAVA_HOME"; then
19300 JAVA_HOME_SET_TRUE=
19301 JAVA_HOME_SET_FALSE='#'
19303 JAVA_HOME_SET_TRUE='#'
19304 JAVA_HOME_SET_FALSE=
19309 suppress_libgcj_bc=no
19310 # Check whether --enable-libgcj-bc was given.
19311 if test "${enable_libgcj_bc+set}" = set; then :
19312 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19313 suppress_libgcj_bc=yes
19317 if test "$suppress_libgcj_bc" = "yes"; then
19318 SUPPRESS_LIBGCJ_BC_TRUE=
19319 SUPPRESS_LIBGCJ_BC_FALSE='#'
19321 SUPPRESS_LIBGCJ_BC_TRUE='#'
19322 SUPPRESS_LIBGCJ_BC_FALSE=
19326 build_libgcj_reduced_reflection=no
19327 # Check whether --enable-reduced-reflection was given.
19328 if test "${enable_reduced_reflection+set}" = set; then :
19329 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19330 build_libgcj_reduced_reflection=yes
19334 if test "$build_libgcj_reduced_reflection" = "yes"; then
19335 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19336 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19338 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19339 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19343 # What is the native OS API for MinGW?
19345 # Check whether --with-win32-nlsapi was given.
19346 if test "${with_win32_nlsapi+set}" = set; then :
19347 withval=$with_win32_nlsapi; case "${withval}" in
19348 ansi) with_win32_nlsapi=ansi ;;
19349 unicows) with_win32_nlsapi=unicows ;;
19350 unicode) with_win32_nlsapi=unicode ;;
19351 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19354 with_win32_nlsapi=ansi
19358 case "${with_win32_nlsapi}" in
19361 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19366 # configure.host sets slow_pthread_self if the synchronization code should
19367 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19368 if test "${slow_pthread_self}" = "yes"; then
19370 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19374 # Check for gc debugging. This option is handled both here and in the GC.
19375 # Check whether --enable-gc-debug was given.
19376 if test "${enable_gc_debug+set}" = set; then :
19377 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19379 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19385 # See if the user has the interpreter included.
19386 # Check whether --enable-interpreter was given.
19387 if test "${enable_interpreter+set}" = set; then :
19388 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19389 # This can also be set in configure.host.
19390 libgcj_interpreter=yes
19391 elif test "$enable_interpreter" = no; then
19392 libgcj_interpreter=no
19397 if test "$libgcj_interpreter" = yes; then
19399 $as_echo "#define INTERPRETER 1" >>confdefs.h
19402 INTERPRETER="$libgcj_interpreter"
19404 if test "$libgcj_interpreter" = yes; then
19406 INTERPRETER_FALSE='#'
19408 INTERPRETER_TRUE='#'
19413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19414 $as_echo_n "checking for exception model to use... " >&6; }
19416 ac_cpp='$CXXCPP $CPPFLAGS'
19417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19421 # Check whether --enable-sjlj-exceptions was given.
19422 if test "${enable_sjlj_exceptions+set}" = set; then :
19423 enableval=$enable_sjlj_exceptions; :
19425 cat > conftest.$ac_ext << EOF
19426 #line 19426 "configure"
19427 struct S { ~S(); };
19435 old_CXXFLAGS="$CXXFLAGS"
19437 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19438 (eval $ac_compile) 2>&5
19440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19441 test $ac_status = 0; }; then
19442 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19443 enable_sjlj_exceptions=yes
19444 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19445 enable_sjlj_exceptions=no
19446 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19448 enable_sjlj_exceptions=no
19451 CXXFLAGS="$old_CXXFLAGS"
19455 if test x$enable_sjlj_exceptions = xyes; then
19457 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19459 ac_exception_model_name=sjlj
19460 elif test x$enable_sjlj_exceptions = xno; then
19461 ac_exception_model_name="call frame"
19463 as_fn_error "unable to detect exception model" "$LINENO" 5
19466 ac_cpp='$CPP $CPPFLAGS'
19467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19472 $as_echo "$ac_exception_model_name" >&6; }
19474 # If we are non using SJLJ exceptions, and this host does not have support
19475 # for unwinding from a signal handler, enable checked dereferences and divides.
19476 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19477 CHECKREFSPEC=-fcheck-references
19478 DIVIDESPEC=-fuse-divide-subroutine
19482 # See if the user wants to disable java.net. This is the mildly
19483 # ugly way that we admit that target-side configuration sucks.
19484 # Check whether --enable-java-net was given.
19485 if test "${enable_java_net+set}" = set; then :
19486 enableval=$enable_java_net;
19490 # Whether java.net is built by default can depend on the target.
19491 if test -z "$enable_java_net"; then
19492 enable_java_net=${enable_java_net_default-yes}
19494 if test "$enable_java_net" = no; then
19496 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19500 # See if the user wants to configure without libffi. Some
19501 # architectures don't support it, and default values are set in
19504 # Check whether --with-libffi was given.
19505 if test "${with_libffi+set}" = set; then :
19506 withval=$with_libffi; :
19508 with_libffi=${with_libffi_default-yes}
19514 if test "$with_libffi" != no; then
19516 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19518 LIBFFI=../libffi/libffi_convenience.la
19519 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19524 # See if the user wants to disable JVMPI support.
19525 # Check whether --enable-jvmpi was given.
19526 if test "${enable_jvmpi+set}" = set; then :
19527 enableval=$enable_jvmpi;
19531 if test "$enable_jvmpi" != no; then
19533 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19537 # If the target is an eCos system, use the appropriate eCos
19539 # FIXME: this should not be a local option but a global target
19540 # system; at present there is no eCos target.
19541 TARGET_ECOS=${PROCESS-"no"}
19543 # Check whether --with-ecos was given.
19544 if test "${with_ecos+set}" = set; then :
19545 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19550 case "$TARGET_ECOS" in
19551 no) case "$host" in
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19558 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19559 LD_PROG=`$CC --print-prog-name=ld`
19560 LD_VERSION=`$LD_PROG --version`
19561 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19562 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19563 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19566 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19570 if test "x$LD_OK" != x; then
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19572 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19575 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19577 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19579 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19594 $as_echo "#define ECOS 1" >>confdefs.h
19600 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19604 /* end confdefs.h. */
19605 #include <stdint.h>
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609 $EGREP "uint32_t" >/dev/null 2>&1; then :
19611 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19617 /* end confdefs.h. */
19618 #include <inttypes.h>
19621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19622 $EGREP "uint32_t" >/dev/null 2>&1; then :
19624 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19630 /* end confdefs.h. */
19631 #include <sys/types.h>
19634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19635 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19637 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h. */
19644 #include <sys/config.h>
19647 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19648 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19650 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19656 if test "$PLATFORM" = Win32; then
19657 USING_WIN32_PLATFORM_TRUE=
19658 USING_WIN32_PLATFORM_FALSE='#'
19660 USING_WIN32_PLATFORM_TRUE='#'
19661 USING_WIN32_PLATFORM_FALSE=
19664 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19665 USING_POSIX_PLATFORM_TRUE=
19666 USING_POSIX_PLATFORM_FALSE='#'
19668 USING_POSIX_PLATFORM_TRUE='#'
19669 USING_POSIX_PLATFORM_FALSE=
19674 *-darwin*) DARWIN_CRT=true ;;
19675 *) DARWIN_CRT=false ;;
19677 if $DARWIN_CRT; then
19678 USING_DARWIN_CRT_TRUE=
19679 USING_DARWIN_CRT_FALSE='#'
19681 USING_DARWIN_CRT_TRUE='#'
19682 USING_DARWIN_CRT_FALSE=
19686 # This may not be defined in a non-ANS conformant embedded system.
19687 # FIXME: Should these case a runtime exception in that case?
19688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19689 /* end confdefs.h. */
19693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19694 $EGREP "localtime" >/dev/null 2>&1; then :
19696 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19702 # Create the subdirectory for natFile.cc, or the attempt
19703 # to create the link will fail.
19704 test -d java || mkdir java
19705 test -d java/io || mkdir java/io
19706 test -d gnu || mkdir gnu
19707 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19710 # Likewise for natConcreteProcess.cc.
19711 test -d java/lang || mkdir java/lang
19712 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19715 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19716 test -d java/net || mkdir java/net
19717 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19719 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19722 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19723 test -d gnu/java || mkdir gnu/java
19724 test -d gnu/java/net || mkdir gnu/java/net
19725 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19727 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19730 # Likewise for natVMPipe.cc and natVMSelector.cc.
19731 test -d gnu/java/nio || mkdir gnu/java/nio
19732 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19734 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19737 # Likewise for natFileChannelImpl.cc
19738 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19739 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19742 # Likewise for natVMSecureRandom.cc
19743 test -d gnu/java/security || mkdir gnu/java/security
19744 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19745 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19746 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19751 SYSTEMSPEC="-lgdi32 -lws2_32"
19752 if test "${with_win32_nlsapi}" = "unicows"; then
19753 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19757 SYSTEMSPEC="-allow_stack_execute"
19766 # Check whether --with-system-zlib was given.
19767 if test "${with_system_zlib+set}" = set; then :
19768 withval=$with_system_zlib;
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19777 $as_echo_n "checking for X... " >&6; }
19780 # Check whether --with-x was given.
19781 if test "${with_x+set}" = set; then :
19785 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19786 if test "x$with_x" = xno; then
19787 # The user explicitly disabled X.
19790 case $x_includes,$x_libraries in #(
19791 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19792 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19793 $as_echo_n "(cached) " >&6
19795 # One or both of the vars are not set, and there is no cached value.
19796 ac_x_includes=no ac_x_libraries=no
19797 rm -f -r conftest.dir
19798 if mkdir conftest.dir; then
19800 cat >Imakefile <<'_ACEOF'
19802 @echo incroot='${INCROOT}'
19804 @echo usrlibdir='${USRLIBDIR}'
19806 @echo libdir='${LIBDIR}'
19808 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19809 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19810 for ac_var in incroot usrlibdir libdir; do
19811 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19813 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19814 for ac_extension in a so sl dylib la dll; do
19815 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19816 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19817 ac_im_usrlibdir=$ac_im_libdir; break
19820 # Screen out bogus values from the imake configuration. They are
19821 # bogus both because they are the default anyway, and because
19822 # using them would break gcc on systems where it needs fixed includes.
19823 case $ac_im_incroot in
19824 /usr/include) ac_x_includes= ;;
19825 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19827 case $ac_im_usrlibdir in
19828 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19829 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19833 rm -f -r conftest.dir
19836 # Standard set of common directories for X headers.
19837 # Check X11 before X11Rn because it is often a symlink to the current release.
19851 /usr/local/X11/include
19852 /usr/local/X11R7/include
19853 /usr/local/X11R6/include
19854 /usr/local/X11R5/include
19855 /usr/local/X11R4/include
19857 /usr/local/include/X11
19858 /usr/local/include/X11R7
19859 /usr/local/include/X11R6
19860 /usr/local/include/X11R5
19861 /usr/local/include/X11R4
19865 /usr/XFree86/include/X11
19869 /usr/unsupported/include
19870 /usr/athena/include
19871 /usr/local/x11r5/include
19872 /usr/lpp/Xamples/include
19874 /usr/openwin/include
19875 /usr/openwin/share/include'
19877 if test "$ac_x_includes" = no; then
19878 # Guess where to find include files, by looking for Xlib.h.
19879 # First, try using that file with no special directory specified.
19880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19881 /* end confdefs.h. */
19882 #include <X11/Xlib.h>
19884 if ac_fn_c_try_cpp "$LINENO"; then :
19885 # We can compile using X headers with no special include directory.
19888 for ac_dir in $ac_x_header_dirs; do
19889 if test -r "$ac_dir/X11/Xlib.h"; then
19890 ac_x_includes=$ac_dir
19895 rm -f conftest.err conftest.$ac_ext
19896 fi # $ac_x_includes = no
19898 if test "$ac_x_libraries" = no; then
19899 # Check for the libraries.
19900 # See if we find them without any special options.
19901 # Don't add to $LIBS permanently.
19904 if test x$gcc_no_link = xyes; then
19905 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19908 /* end confdefs.h. */
19909 #include <X11/Xlib.h>
19918 if ac_fn_c_try_link "$LINENO"; then :
19920 # We can link X programs with no special library path.
19924 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19926 # Don't even attempt the hair of trying to link an X program!
19927 for ac_extension in a so sl dylib la dll; do
19928 if test -r "$ac_dir/libX11.$ac_extension"; then
19929 ac_x_libraries=$ac_dir
19935 rm -f core conftest.err conftest.$ac_objext \
19936 conftest$ac_exeext conftest.$ac_ext
19937 fi # $ac_x_libraries = no
19939 case $ac_x_includes,$ac_x_libraries in #(
19940 no,* | *,no | *\'*)
19941 # Didn't find X, or a directory has "'" in its name.
19942 ac_cv_have_x="have_x=no";; #(
19944 # Record where we found X for the cache.
19945 ac_cv_have_x="have_x=yes\
19946 ac_x_includes='$ac_x_includes'\
19947 ac_x_libraries='$ac_x_libraries'"
19953 eval "$ac_cv_have_x"
19956 if test "$have_x" != yes; then
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19958 $as_echo "$have_x" >&6; }
19961 # If each of the values was on the command line, it overrides each guess.
19962 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19963 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19964 # Update the cache value to reflect the command line values.
19965 ac_cv_have_x="have_x=yes\
19966 ac_x_includes='$x_includes'\
19967 ac_x_libraries='$x_libraries'"
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19969 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19972 if test "$no_x" = yes; then
19973 # Not all programs may use this symbol, but it does not hurt to define it.
19975 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19977 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19979 if test -n "$x_includes"; then
19980 X_CFLAGS="$X_CFLAGS -I$x_includes"
19983 # It would also be nice to do this for all -L options, not just this one.
19984 if test -n "$x_libraries"; then
19985 X_LIBS="$X_LIBS -L$x_libraries"
19986 # For Solaris; some versions of Sun CC require a space after -R and
19987 # others require no space. Words are not sufficient . . . .
19988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19989 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19990 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19991 ac_xsave_c_werror_flag=$ac_c_werror_flag
19992 ac_c_werror_flag=yes
19993 if test x$gcc_no_link = xyes; then
19994 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19997 /* end confdefs.h. */
20007 if ac_fn_c_try_link "$LINENO"; then :
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20009 $as_echo "no" >&6; }
20010 X_LIBS="$X_LIBS -R$x_libraries"
20012 LIBS="$ac_xsave_LIBS -R $x_libraries"
20013 if test x$gcc_no_link = xyes; then
20014 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017 /* end confdefs.h. */
20027 if ac_fn_c_try_link "$LINENO"; then :
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20029 $as_echo "yes" >&6; }
20030 X_LIBS="$X_LIBS -R $x_libraries"
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20033 $as_echo "neither works" >&6; }
20035 rm -f core conftest.err conftest.$ac_objext \
20036 conftest$ac_exeext conftest.$ac_ext
20038 rm -f core conftest.err conftest.$ac_objext \
20039 conftest$ac_exeext conftest.$ac_ext
20040 ac_c_werror_flag=$ac_xsave_c_werror_flag
20041 LIBS=$ac_xsave_LIBS
20044 # Check for system-dependent libraries X programs must link with.
20045 # Do this before checking for the system-independent R6 libraries
20046 # (-lICE), since we may need -lsocket or whatever for X linking.
20048 if test "$ISC" = yes; then
20049 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20051 # Martyn Johnson says this is needed for Ultrix, if the X
20052 # libraries were built with DECnet support. And Karl Berry says
20053 # the Alpha needs dnet_stub (dnet does not exist).
20054 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20055 if test x$gcc_no_link = xyes; then
20056 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20059 /* end confdefs.h. */
20061 /* Override any GCC internal prototype to avoid an error.
20062 Use char because int might match the return type of a GCC
20063 builtin and then its argument prototype would still apply. */
20067 char XOpenDisplay ();
20071 return XOpenDisplay ();
20076 if ac_fn_c_try_link "$LINENO"; then :
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20080 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20081 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20082 $as_echo_n "(cached) " >&6
20084 ac_check_lib_save_LIBS=$LIBS
20085 LIBS="-ldnet $LIBS"
20086 if test x$gcc_no_link = xyes; then
20087 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20090 /* end confdefs.h. */
20092 /* Override any GCC internal prototype to avoid an error.
20093 Use char because int might match the return type of a GCC
20094 builtin and then its argument prototype would still apply. */
20102 return dnet_ntoa ();
20107 if ac_fn_c_try_link "$LINENO"; then :
20108 ac_cv_lib_dnet_dnet_ntoa=yes
20110 ac_cv_lib_dnet_dnet_ntoa=no
20112 rm -f core conftest.err conftest.$ac_objext \
20113 conftest$ac_exeext conftest.$ac_ext
20114 LIBS=$ac_check_lib_save_LIBS
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20117 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20118 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20119 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20122 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20124 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20125 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20126 $as_echo_n "(cached) " >&6
20128 ac_check_lib_save_LIBS=$LIBS
20129 LIBS="-ldnet_stub $LIBS"
20130 if test x$gcc_no_link = xyes; then
20131 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20134 /* end confdefs.h. */
20136 /* Override any GCC internal prototype to avoid an error.
20137 Use char because int might match the return type of a GCC
20138 builtin and then its argument prototype would still apply. */
20146 return dnet_ntoa ();
20151 if ac_fn_c_try_link "$LINENO"; then :
20152 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20154 ac_cv_lib_dnet_stub_dnet_ntoa=no
20156 rm -f core conftest.err conftest.$ac_objext \
20157 conftest$ac_exeext conftest.$ac_ext
20158 LIBS=$ac_check_lib_save_LIBS
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20161 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20162 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20163 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20168 rm -f core conftest.err conftest.$ac_objext \
20169 conftest$ac_exeext conftest.$ac_ext
20170 LIBS="$ac_xsave_LIBS"
20172 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20173 # to get the SysV transport functions.
20174 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20176 # The nsl library prevents programs from opening the X display
20177 # on Irix 5.2, according to T.E. Dickey.
20178 # The functions gethostbyname, getservbyname, and inet_addr are
20179 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20180 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20181 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20185 if test $ac_cv_func_gethostbyname = no; then
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20187 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20188 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20189 $as_echo_n "(cached) " >&6
20191 ac_check_lib_save_LIBS=$LIBS
20193 if test x$gcc_no_link = xyes; then
20194 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197 /* end confdefs.h. */
20199 /* Override any GCC internal prototype to avoid an error.
20200 Use char because int might match the return type of a GCC
20201 builtin and then its argument prototype would still apply. */
20205 char gethostbyname ();
20209 return gethostbyname ();
20214 if ac_fn_c_try_link "$LINENO"; then :
20215 ac_cv_lib_nsl_gethostbyname=yes
20217 ac_cv_lib_nsl_gethostbyname=no
20219 rm -f core conftest.err conftest.$ac_objext \
20220 conftest$ac_exeext conftest.$ac_ext
20221 LIBS=$ac_check_lib_save_LIBS
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20224 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20225 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20226 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20229 if test $ac_cv_lib_nsl_gethostbyname = no; then
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20231 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20232 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20233 $as_echo_n "(cached) " >&6
20235 ac_check_lib_save_LIBS=$LIBS
20237 if test x$gcc_no_link = xyes; then
20238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20241 /* end confdefs.h. */
20243 /* Override any GCC internal prototype to avoid an error.
20244 Use char because int might match the return type of a GCC
20245 builtin and then its argument prototype would still apply. */
20249 char gethostbyname ();
20253 return gethostbyname ();
20258 if ac_fn_c_try_link "$LINENO"; then :
20259 ac_cv_lib_bsd_gethostbyname=yes
20261 ac_cv_lib_bsd_gethostbyname=no
20263 rm -f core conftest.err conftest.$ac_objext \
20264 conftest$ac_exeext conftest.$ac_ext
20265 LIBS=$ac_check_lib_save_LIBS
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20268 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20269 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20270 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20276 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20277 # socket/setsockopt and other routines are undefined under SCO ODT
20278 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20279 # on later versions), says Simon Leinen: it contains gethostby*
20280 # variants that don't use the name server (or something). -lsocket
20281 # must be given before -lnsl if both are needed. We assume that
20282 # if connect needs -lnsl, so does gethostbyname.
20283 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20284 if test "x$ac_cv_func_connect" = x""yes; then :
20288 if test $ac_cv_func_connect = no; then
20289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20290 $as_echo_n "checking for connect in -lsocket... " >&6; }
20291 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20292 $as_echo_n "(cached) " >&6
20294 ac_check_lib_save_LIBS=$LIBS
20295 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20296 if test x$gcc_no_link = xyes; then
20297 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20300 /* end confdefs.h. */
20302 /* Override any GCC internal prototype to avoid an error.
20303 Use char because int might match the return type of a GCC
20304 builtin and then its argument prototype would still apply. */
20317 if ac_fn_c_try_link "$LINENO"; then :
20318 ac_cv_lib_socket_connect=yes
20320 ac_cv_lib_socket_connect=no
20322 rm -f core conftest.err conftest.$ac_objext \
20323 conftest$ac_exeext conftest.$ac_ext
20324 LIBS=$ac_check_lib_save_LIBS
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20327 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20328 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20329 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20334 # Guillermo Gomez says -lposix is necessary on A/UX.
20335 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20336 if test "x$ac_cv_func_remove" = x""yes; then :
20340 if test $ac_cv_func_remove = no; then
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20342 $as_echo_n "checking for remove in -lposix... " >&6; }
20343 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20344 $as_echo_n "(cached) " >&6
20346 ac_check_lib_save_LIBS=$LIBS
20347 LIBS="-lposix $LIBS"
20348 if test x$gcc_no_link = xyes; then
20349 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20352 /* end confdefs.h. */
20354 /* Override any GCC internal prototype to avoid an error.
20355 Use char because int might match the return type of a GCC
20356 builtin and then its argument prototype would still apply. */
20369 if ac_fn_c_try_link "$LINENO"; then :
20370 ac_cv_lib_posix_remove=yes
20372 ac_cv_lib_posix_remove=no
20374 rm -f core conftest.err conftest.$ac_objext \
20375 conftest$ac_exeext conftest.$ac_ext
20376 LIBS=$ac_check_lib_save_LIBS
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20379 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20380 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20381 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20386 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20387 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20388 if test "x$ac_cv_func_shmat" = x""yes; then :
20392 if test $ac_cv_func_shmat = no; then
20393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20394 $as_echo_n "checking for shmat in -lipc... " >&6; }
20395 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20396 $as_echo_n "(cached) " >&6
20398 ac_check_lib_save_LIBS=$LIBS
20400 if test x$gcc_no_link = xyes; then
20401 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20404 /* end confdefs.h. */
20406 /* Override any GCC internal prototype to avoid an error.
20407 Use char because int might match the return type of a GCC
20408 builtin and then its argument prototype would still apply. */
20421 if ac_fn_c_try_link "$LINENO"; then :
20422 ac_cv_lib_ipc_shmat=yes
20424 ac_cv_lib_ipc_shmat=no
20426 rm -f core conftest.err conftest.$ac_objext \
20427 conftest$ac_exeext conftest.$ac_ext
20428 LIBS=$ac_check_lib_save_LIBS
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20431 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20432 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20433 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20439 # Check for libraries that X11R6 Xt/Xaw programs need.
20440 ac_save_LDFLAGS=$LDFLAGS
20441 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20442 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20443 # check for ICE first), but we must link in the order -lSM -lICE or
20444 # we get undefined symbols. So assume we have SM if we have ICE.
20445 # These have to be linked with before -lX11, unlike the other
20446 # libraries we check for below, so use a different variable.
20447 # John Interrante, Karl Berry
20448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20449 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20450 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20451 $as_echo_n "(cached) " >&6
20453 ac_check_lib_save_LIBS=$LIBS
20454 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20455 if test x$gcc_no_link = xyes; then
20456 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20459 /* end confdefs.h. */
20461 /* Override any GCC internal prototype to avoid an error.
20462 Use char because int might match the return type of a GCC
20463 builtin and then its argument prototype would still apply. */
20467 char IceConnectionNumber ();
20471 return IceConnectionNumber ();
20476 if ac_fn_c_try_link "$LINENO"; then :
20477 ac_cv_lib_ICE_IceConnectionNumber=yes
20479 ac_cv_lib_ICE_IceConnectionNumber=no
20481 rm -f core conftest.err conftest.$ac_objext \
20482 conftest$ac_exeext conftest.$ac_ext
20483 LIBS=$ac_check_lib_save_LIBS
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20486 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20487 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20488 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20491 LDFLAGS=$ac_save_LDFLAGS
20496 # FIXME: this should be _libs on some hosts.
20499 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20502 # extra LD Flags which are required for targets
20505 # For now we have to disable it on darwin[8-9] because it slows down
20506 # the linking phase. A possible bug in ld?
20507 # on Darwin -single_module speeds up loading of the dynamic libraries.
20508 extra_ldflags_libjava=-Wl,-single_module
20511 # Some of the ARM unwinder code is actually in libstdc++. We
20512 # could in principle replicate it in libgcj, but it's better to
20513 # have a dependency on libstdc++.
20514 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20515 LIBSTDCXXSPEC=-lstdc++
20516 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20519 extra_ldflags_libjava=-liconv
20528 # Allow the GC to be disabled. Can be useful when debugging.
20529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20530 $as_echo_n "checking for garbage collector to use... " >&6; }
20531 # Check whether --enable-java-gc was given.
20532 if test "${enable_java_gc+set}" = set; then :
20533 enableval=$enable_java_gc; GC=$enableval
20546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20547 $as_echo "boehm" >&6; }
20548 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20549 JC1GCSPEC='-fuse-boehm-gc'
20550 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20551 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20554 # The POSIX thread support needs to know this.
20556 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20561 $as_echo "none" >&6; }
20565 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20574 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20576 if test "$GC" = boehm; then
20577 USING_BOEHMGC_TRUE=
20578 USING_BOEHMGC_FALSE='#'
20580 USING_BOEHMGC_TRUE='#'
20581 USING_BOEHMGC_FALSE=
20584 if test "$GC" = no; then
20586 USING_NOGC_FALSE='#'
20588 USING_NOGC_TRUE='#'
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20595 $as_echo_n "checking for thread model used by GCC... " >&6; }
20596 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20598 $as_echo "$THREADS" >&6; }
20601 no | none | single)
20604 aix | posix | posix95 | pthreads)
20609 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20616 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20617 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20620 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20631 THREADSTARTFILESPEC=
20636 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20638 *-*-freebsd[1234]*)
20639 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20640 # merely adds pthread_* functions) but it does have a -pthread switch
20641 # which is required at link-time to select -lc_r *instead* of -lc.
20642 THREADLDFLAGS=-pthread
20643 # Don't set THREADSPEC here as might be expected since -pthread is
20644 # not processed when found within a spec file, it must come from
20645 # the command line. For now, the user must provide the -pthread
20646 # switch to link code compiled with gcj. In future, consider adding
20647 # support for weak references to pthread_* functions ala gthr.h API.
20648 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20651 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20652 # systems which support threads and -lpthread.
20653 THREADLDFLAGS=-pthread
20654 THREADSPEC=-lpthread
20656 alpha*-dec-osf* | hppa*-hp-hpux*)
20657 THREADCXXFLAGS=-pthread
20658 # boehm-gc needs some functions from librt, so link that too.
20659 THREADLIBS='-lpthread -lrt'
20660 THREADSPEC='-lpthread -lrt'
20663 THREADLIBS=-lpthread
20664 THREADSPEC=-lpthread
20667 THREADH=posix-threads.h
20668 # MIT pthreads doesn't seem to have the mutexattr functions.
20669 # But for now we don't check for it. We just assume you aren't
20670 # using MIT pthreads.
20672 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20675 # If we're using the Boehm GC, then we happen to know that it
20676 # defines _REENTRANT, so we don't bother. Eww.
20677 if test "$GC" != boehm; then
20679 $as_echo "#define _REENTRANT 1" >>confdefs.h
20683 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20688 THREADH=win32-threads.h
20689 THREADCXXFLAGS=-mthreads
20690 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20691 # But we do not want the executables created to be dependent on
20692 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20693 # exception handling contexts. The following kludge achieves this effect
20694 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20695 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20696 # A workaround is to explicitly use -mthreads while linking Java programs.
20697 # See PR libgcj/28263.
20699 # FIXME: In Java we are able to detect thread death at the end of
20700 # Thread.run() so we should be able to clean up the exception handling
20701 # contexts ourselves.
20702 THREADSTARTFILESPEC='crtmt%O%s'
20706 THREADH=no-threads.h
20709 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20718 if test "$THREADS" = posix; then
20719 USING_POSIX_THREADS_TRUE=
20720 USING_POSIX_THREADS_FALSE='#'
20722 USING_POSIX_THREADS_TRUE='#'
20723 USING_POSIX_THREADS_FALSE=
20726 if test "$THREADS" = win32; then
20727 USING_WIN32_THREADS_TRUE=
20728 USING_WIN32_THREADS_FALSE='#'
20730 USING_WIN32_THREADS_TRUE='#'
20731 USING_WIN32_THREADS_FALSE=
20734 if test "$THREADS" = none; then
20735 USING_NO_THREADS_TRUE=
20736 USING_NO_THREADS_FALSE='#'
20738 USING_NO_THREADS_TRUE='#'
20739 USING_NO_THREADS_FALSE=
20742 if test "$enable_shared" != yes; then
20745 if test "$use_libgcj_bc" = yes; then
20746 USE_LIBGCJ_BC_TRUE=
20747 USE_LIBGCJ_BC_FALSE='#'
20749 USE_LIBGCJ_BC_TRUE='#'
20750 USE_LIBGCJ_BC_FALSE=
20754 if test -d sysdep; then true; else mkdir sysdep; fi
20755 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20757 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20759 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20762 LIBGCJ_SPEC_LGCJ=-lgcj
20763 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20764 if test x"$libgcj_spec_lgcj_override" != x ; then
20765 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20767 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20768 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20770 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20771 if test "$use_libgcj_bc" = yes; then
20772 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20773 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20779 # Hash synchronization is only useful with posix threads right now.
20780 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20781 HASH_SYNC_SPEC=-fhash-synchronization
20783 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20788 if test "$GCC" = yes; then
20790 USING_GCC_FALSE='#'
20797 # We're in the tree with gcc, and need to include some of its headers.
20798 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20800 if test "x${with_newlib}" = "xyes"; then
20801 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20802 # may not work correctly, because the compiler may not be able to
20803 # link executables.
20805 # We assume newlib. This lets us hard-code the functions we know
20808 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20811 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20814 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20817 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20820 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20823 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20825 # This is only for POSIX threads.
20827 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20830 # Assume we do not have getuid and friends.
20832 $as_echo "#define NO_GETUID 1" >>confdefs.h
20836 for ac_func in strerror_r select fstat open fsync sleep opendir \
20837 localtime_r getpwuid_r getcwd \
20838 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20839 nl_langinfo setlocale \
20840 inet_pton uname inet_ntoa \
20841 getrlimit sigaction ftruncate mmap \
20844 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20845 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20846 eval as_val=\$$as_ac_var
20847 if test "x$as_val" = x""yes; then :
20848 cat >>confdefs.h <<_ACEOF
20849 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20855 for ac_func in inet_aton inet_addr
20857 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20858 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20859 eval as_val=\$$as_ac_var
20860 if test "x$as_val" = x""yes; then :
20861 cat >>confdefs.h <<_ACEOF
20862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20868 for ac_header in unistd.h dlfcn.h sys/resource.h
20870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20871 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20872 eval as_val=\$$as_ac_Header
20873 if test "x$as_val" = x""yes; then :
20874 cat >>confdefs.h <<_ACEOF
20875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20882 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20884 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20885 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20886 $as_echo_n "(cached) " >&6
20888 ac_check_lib_save_LIBS=$LIBS
20890 if test x$gcc_no_link = xyes; then
20891 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20894 /* end confdefs.h. */
20896 /* Override any GCC internal prototype to avoid an error.
20897 Use char because int might match the return type of a GCC
20898 builtin and then its argument prototype would still apply. */
20911 if ac_fn_c_try_link "$LINENO"; then :
20912 ac_cv_lib_dl_dladdr=yes
20914 ac_cv_lib_dl_dladdr=no
20916 rm -f core conftest.err conftest.$ac_objext \
20917 conftest$ac_exeext conftest.$ac_ext
20918 LIBS=$ac_check_lib_save_LIBS
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20921 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20922 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20925 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20930 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20931 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20932 $as_echo_n "(cached) " >&6
20934 ac_check_lib_save_LIBS=$LIBS
20936 if test x$gcc_no_link = xyes; then
20937 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20940 /* end confdefs.h. */
20942 /* Override any GCC internal prototype to avoid an error.
20943 Use char because int might match the return type of a GCC
20944 builtin and then its argument prototype would still apply. */
20957 if ac_fn_c_try_link "$LINENO"; then :
20958 ac_cv_lib_dld_dladdr=yes
20960 ac_cv_lib_dld_dladdr=no
20962 rm -f core conftest.err conftest.$ac_objext \
20963 conftest$ac_exeext conftest.$ac_ext
20964 LIBS=$ac_check_lib_save_LIBS
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
20967 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
20968 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
20971 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20978 if test x"$cross_compiling" = x"no"; then
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
20980 $as_echo_n "checking for /proc/self/exe... " >&6; }
20981 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
20982 $as_echo_n "(cached) " >&6
20984 test "$cross_compiling" = yes &&
20985 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20986 if test -r "/proc/self/exe"; then
20987 ac_cv_file__proc_self_exe=yes
20989 ac_cv_file__proc_self_exe=no
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
20993 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
20994 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
20996 cat >>confdefs.h <<_ACEOF
20997 #define HAVE__PROC_SELF_EXE 1
21001 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21006 $as_echo_n "checking for /proc/self/maps... " >&6; }
21007 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21008 $as_echo_n "(cached) " >&6
21010 test "$cross_compiling" = yes &&
21011 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21012 if test -r "/proc/self/maps"; then
21013 ac_cv_file__proc_self_maps=yes
21015 ac_cv_file__proc_self_maps=no
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21019 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21020 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21022 cat >>confdefs.h <<_ACEOF
21023 #define HAVE__PROC_SELF_MAPS 1
21027 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21035 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21038 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21045 if test "X$prefix" = "XNONE"; then
21046 acl_final_prefix="$ac_default_prefix"
21048 acl_final_prefix="$prefix"
21050 if test "X$exec_prefix" = "XNONE"; then
21051 acl_final_exec_prefix='${prefix}'
21053 acl_final_exec_prefix="$exec_prefix"
21055 acl_save_prefix="$prefix"
21056 prefix="$acl_final_prefix"
21057 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21058 prefix="$acl_save_prefix"
21061 # Check whether --with-gnu-ld was given.
21062 if test "${with_gnu_ld+set}" = set; then :
21063 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21068 # Prepare PATH_SEPARATOR.
21069 # The user is always right.
21070 if test "${PATH_SEPARATOR+set}" != set; then
21071 echo "#! /bin/sh" >conf$$.sh
21072 echo "exit 0" >>conf$$.sh
21074 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21082 if test "$GCC" = yes; then
21083 # Check if gcc -print-prog-name=ld gives a path.
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21085 $as_echo_n "checking for ld used by GCC... " >&6; }
21088 # gcc leaves a trailing carriage return which upsets mingw
21089 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21091 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21094 # Accept absolute paths.
21095 [\\/]* | [A-Za-z]:[\\/]*)
21096 re_direlt='/[^/][^/]*/\.\./'
21097 # Canonicalize the path of ld
21098 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21099 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21100 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21102 test -z "$LD" && LD="$ac_prog"
21105 # If it fails, then pretend we aren't using GCC.
21109 # If it is relative, then search for the first ld in PATH.
21110 with_gnu_ld=unknown
21113 elif test "$with_gnu_ld" = yes; then
21114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21115 $as_echo_n "checking for GNU ld... " >&6; }
21117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21118 $as_echo_n "checking for non-GNU ld... " >&6; }
21120 if test "${acl_cv_path_LD+set}" = set; then :
21121 $as_echo_n "(cached) " >&6
21123 if test -z "$LD"; then
21124 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21125 for ac_dir in $PATH; do
21126 test -z "$ac_dir" && ac_dir=.
21127 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21128 acl_cv_path_LD="$ac_dir/$ac_prog"
21129 # Check to see if the program is GNU ld. I'd rather use --version,
21130 # but apparently some GNU ld's only accept -v.
21131 # Break only if it was the GNU/non-GNU ld that we prefer.
21132 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21133 test "$with_gnu_ld" != no && break
21135 test "$with_gnu_ld" != yes && break
21141 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21145 LD="$acl_cv_path_LD"
21146 if test -n "$LD"; then
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21148 $as_echo "$LD" >&6; }
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21151 $as_echo "no" >&6; }
21153 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21155 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21156 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21157 $as_echo_n "(cached) " >&6
21159 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21160 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21161 acl_cv_prog_gnu_ld=yes
21163 acl_cv_prog_gnu_ld=no
21166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21167 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21168 with_gnu_ld=$acl_cv_prog_gnu_ld
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21173 $as_echo_n "checking for shared library run path origin... " >&6; }
21174 if test "${acl_cv_rpath+set}" = set; then :
21175 $as_echo_n "(cached) " >&6
21178 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21179 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21181 rm -f ./conftest.sh
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21186 $as_echo "$acl_cv_rpath" >&6; }
21188 libext="$acl_cv_libext"
21189 shlibext="$acl_cv_shlibext"
21190 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21191 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21192 hardcode_direct="$acl_cv_hardcode_direct"
21193 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21194 # Check whether --enable-rpath was given.
21195 if test "${enable_rpath+set}" = set; then :
21196 enableval=$enable_rpath; :
21210 acl_save_prefix="$prefix"
21211 prefix="$acl_final_prefix"
21212 acl_save_exec_prefix="$exec_prefix"
21213 exec_prefix="$acl_final_exec_prefix"
21215 eval additional_includedir=\"$includedir\"
21216 eval additional_libdir=\"$libdir\"
21218 exec_prefix="$acl_save_exec_prefix"
21219 prefix="$acl_save_prefix"
21222 # Check whether --with-libiconv-prefix was given.
21223 if test "${with_libiconv_prefix+set}" = set; then :
21224 withval=$with_libiconv_prefix;
21225 if test "X$withval" = "Xno"; then
21228 if test "X$withval" = "X"; then
21230 acl_save_prefix="$prefix"
21231 prefix="$acl_final_prefix"
21232 acl_save_exec_prefix="$exec_prefix"
21233 exec_prefix="$acl_final_exec_prefix"
21235 eval additional_includedir=\"$includedir\"
21236 eval additional_libdir=\"$libdir\"
21238 exec_prefix="$acl_save_exec_prefix"
21239 prefix="$acl_save_prefix"
21242 additional_includedir="$withval/include"
21243 additional_libdir="$withval/lib"
21254 names_already_handled=
21255 names_next_round='iconv '
21256 while test -n "$names_next_round"; do
21257 names_this_round="$names_next_round"
21259 for name in $names_this_round; do
21261 for n in $names_already_handled; do
21262 if test "$n" = "$name"; then
21263 already_handled=yes
21267 if test -z "$already_handled"; then
21268 names_already_handled="$names_already_handled $name"
21269 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21270 eval value=\"\$HAVE_LIB$uppername\"
21271 if test -n "$value"; then
21272 if test "$value" = yes; then
21273 eval value=\"\$LIB$uppername\"
21274 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21275 eval value=\"\$LTLIB$uppername\"
21276 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21285 if test $use_additional = yes; then
21286 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21287 found_dir="$additional_libdir"
21288 found_so="$additional_libdir/lib$name.$shlibext"
21289 if test -f "$additional_libdir/lib$name.la"; then
21290 found_la="$additional_libdir/lib$name.la"
21293 if test -f "$additional_libdir/lib$name.$libext"; then
21294 found_dir="$additional_libdir"
21295 found_a="$additional_libdir/lib$name.$libext"
21296 if test -f "$additional_libdir/lib$name.la"; then
21297 found_la="$additional_libdir/lib$name.la"
21302 if test "X$found_dir" = "X"; then
21303 for x in $LDFLAGS $LTLIBICONV; do
21305 acl_save_prefix="$prefix"
21306 prefix="$acl_final_prefix"
21307 acl_save_exec_prefix="$exec_prefix"
21308 exec_prefix="$acl_final_exec_prefix"
21310 exec_prefix="$acl_save_exec_prefix"
21311 prefix="$acl_save_prefix"
21315 dir=`echo "X$x" | sed -e 's/^X-L//'`
21316 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21318 found_so="$dir/lib$name.$shlibext"
21319 if test -f "$dir/lib$name.la"; then
21320 found_la="$dir/lib$name.la"
21323 if test -f "$dir/lib$name.$libext"; then
21325 found_a="$dir/lib$name.$libext"
21326 if test -f "$dir/lib$name.la"; then
21327 found_la="$dir/lib$name.la"
21333 if test "X$found_dir" != "X"; then
21338 if test "X$found_dir" != "X"; then
21339 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21340 if test "X$found_so" != "X"; then
21341 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21342 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21345 for x in $ltrpathdirs; do
21346 if test "X$x" = "X$found_dir"; then
21351 if test -z "$haveit"; then
21352 ltrpathdirs="$ltrpathdirs $found_dir"
21354 if test "$hardcode_direct" = yes; then
21355 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21357 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21358 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21360 for x in $rpathdirs; do
21361 if test "X$x" = "X$found_dir"; then
21366 if test -z "$haveit"; then
21367 rpathdirs="$rpathdirs $found_dir"
21371 for x in $LDFLAGS $LIBICONV; do
21373 acl_save_prefix="$prefix"
21374 prefix="$acl_final_prefix"
21375 acl_save_exec_prefix="$exec_prefix"
21376 exec_prefix="$acl_final_exec_prefix"
21378 exec_prefix="$acl_save_exec_prefix"
21379 prefix="$acl_save_prefix"
21381 if test "X$x" = "X-L$found_dir"; then
21386 if test -z "$haveit"; then
21387 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21389 if test "$hardcode_minus_L" != no; then
21390 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21392 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21398 if test "X$found_a" != "X"; then
21399 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21401 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21404 additional_includedir=
21405 case "$found_dir" in
21407 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21408 additional_includedir="$basedir/include"
21411 if test "X$additional_includedir" != "X"; then
21412 if test "X$additional_includedir" != "X/usr/include"; then
21414 if test "X$additional_includedir" = "X/usr/local/include"; then
21415 if test -n "$GCC"; then
21417 linux*) haveit=yes;;
21421 if test -z "$haveit"; then
21422 for x in $CPPFLAGS $INCICONV; do
21424 acl_save_prefix="$prefix"
21425 prefix="$acl_final_prefix"
21426 acl_save_exec_prefix="$exec_prefix"
21427 exec_prefix="$acl_final_exec_prefix"
21429 exec_prefix="$acl_save_exec_prefix"
21430 prefix="$acl_save_prefix"
21432 if test "X$x" = "X-I$additional_includedir"; then
21437 if test -z "$haveit"; then
21438 if test -d "$additional_includedir"; then
21439 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21445 if test -n "$found_la"; then
21446 save_libdir="$libdir"
21447 case "$found_la" in
21448 */* | *\\*) . "$found_la" ;;
21449 *) . "./$found_la" ;;
21451 libdir="$save_libdir"
21452 for dep in $dependency_libs; do
21455 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21456 if test "X$additional_libdir" != "X/usr/lib"; then
21458 if test "X$additional_libdir" = "X/usr/local/lib"; then
21459 if test -n "$GCC"; then
21461 linux*) haveit=yes;;
21465 if test -z "$haveit"; then
21467 for x in $LDFLAGS $LIBICONV; do
21469 acl_save_prefix="$prefix"
21470 prefix="$acl_final_prefix"
21471 acl_save_exec_prefix="$exec_prefix"
21472 exec_prefix="$acl_final_exec_prefix"
21474 exec_prefix="$acl_save_exec_prefix"
21475 prefix="$acl_save_prefix"
21477 if test "X$x" = "X-L$additional_libdir"; then
21482 if test -z "$haveit"; then
21483 if test -d "$additional_libdir"; then
21484 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21488 for x in $LDFLAGS $LTLIBICONV; do
21490 acl_save_prefix="$prefix"
21491 prefix="$acl_final_prefix"
21492 acl_save_exec_prefix="$exec_prefix"
21493 exec_prefix="$acl_final_exec_prefix"
21495 exec_prefix="$acl_save_exec_prefix"
21496 prefix="$acl_save_prefix"
21498 if test "X$x" = "X-L$additional_libdir"; then
21503 if test -z "$haveit"; then
21504 if test -d "$additional_libdir"; then
21505 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21512 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21513 if test "$enable_rpath" != no; then
21515 for x in $rpathdirs; do
21516 if test "X$x" = "X$dir"; then
21521 if test -z "$haveit"; then
21522 rpathdirs="$rpathdirs $dir"
21525 for x in $ltrpathdirs; do
21526 if test "X$x" = "X$dir"; then
21531 if test -z "$haveit"; then
21532 ltrpathdirs="$ltrpathdirs $dir"
21537 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21540 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21543 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21544 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21550 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21551 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21557 if test "X$rpathdirs" != "X"; then
21558 if test -n "$hardcode_libdir_separator"; then
21560 for found_dir in $rpathdirs; do
21561 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21563 acl_save_libdir="$libdir"
21565 eval flag=\"$hardcode_libdir_flag_spec\"
21566 libdir="$acl_save_libdir"
21567 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21569 for found_dir in $rpathdirs; do
21570 acl_save_libdir="$libdir"
21571 libdir="$found_dir"
21572 eval flag=\"$hardcode_libdir_flag_spec\"
21573 libdir="$acl_save_libdir"
21574 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21578 if test "X$ltrpathdirs" != "X"; then
21579 for found_dir in $ltrpathdirs; do
21580 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21590 am_save_CPPFLAGS="$CPPFLAGS"
21592 for element in $INCICONV; do
21594 for x in $CPPFLAGS; do
21596 acl_save_prefix="$prefix"
21597 prefix="$acl_final_prefix"
21598 acl_save_exec_prefix="$exec_prefix"
21599 exec_prefix="$acl_final_exec_prefix"
21601 exec_prefix="$acl_save_exec_prefix"
21602 prefix="$acl_save_prefix"
21604 if test "X$x" = "X$element"; then
21609 if test -z "$haveit"; then
21610 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21616 $as_echo_n "checking for iconv... " >&6; }
21617 if test "${am_cv_func_iconv+set}" = set; then :
21618 $as_echo_n "(cached) " >&6
21621 am_cv_func_iconv="no, consider installing GNU libiconv"
21623 if test x$gcc_no_link = xyes; then
21624 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21627 /* end confdefs.h. */
21628 #include <stdlib.h>
21633 iconv_t cd = iconv_open("","");
21634 iconv(cd,NULL,NULL,NULL,NULL);
21640 if ac_fn_c_try_link "$LINENO"; then :
21641 am_cv_func_iconv=yes
21643 rm -f core conftest.err conftest.$ac_objext \
21644 conftest$ac_exeext conftest.$ac_ext
21645 if test "$am_cv_func_iconv" != yes; then
21646 am_save_LIBS="$LIBS"
21647 LIBS="$LIBS $LIBICONV"
21648 if test x$gcc_no_link = xyes; then
21649 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21652 /* end confdefs.h. */
21653 #include <stdlib.h>
21658 iconv_t cd = iconv_open("","");
21659 iconv(cd,NULL,NULL,NULL,NULL);
21665 if ac_fn_c_try_link "$LINENO"; then :
21666 am_cv_lib_iconv=yes
21667 am_cv_func_iconv=yes
21669 rm -f core conftest.err conftest.$ac_objext \
21670 conftest$ac_exeext conftest.$ac_ext
21671 LIBS="$am_save_LIBS"
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21676 $as_echo "$am_cv_func_iconv" >&6; }
21677 if test "$am_cv_func_iconv" = yes; then
21679 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21682 if test "$am_cv_lib_iconv" = yes; then
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21684 $as_echo_n "checking how to link with libiconv... " >&6; }
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21686 $as_echo "$LIBICONV" >&6; }
21688 CPPFLAGS="$am_save_CPPFLAGS"
21695 if test "$am_cv_func_iconv" = yes; then
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21697 $as_echo_n "checking for iconv declaration... " >&6; }
21698 if test "${am_cv_proto_iconv+set}" = set; then :
21699 $as_echo_n "(cached) " >&6
21702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21703 /* end confdefs.h. */
21705 #include <stdlib.h>
21711 #if defined(__STDC__) || defined(__cplusplus)
21712 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21725 if ac_fn_c_try_compile "$LINENO"; then :
21726 am_cv_proto_iconv_arg1=""
21728 am_cv_proto_iconv_arg1="const"
21730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21731 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);"
21734 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21736 }$am_cv_proto_iconv" >&5
21738 }$am_cv_proto_iconv" >&6; }
21740 cat >>confdefs.h <<_ACEOF
21741 #define ICONV_CONST $am_cv_proto_iconv_arg1
21747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21748 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21749 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21750 $as_echo_n "(cached) " >&6
21752 if test x$gcc_no_link = xyes; then
21753 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21756 /* end confdefs.h. */
21757 #include <locale.h>
21766 if ac_fn_c_try_link "$LINENO"; then :
21767 am_cv_val_LC_MESSAGES=yes
21769 am_cv_val_LC_MESSAGES=no
21771 rm -f core conftest.err conftest.$ac_objext \
21772 conftest$ac_exeext conftest.$ac_ext
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21775 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21776 if test $am_cv_val_LC_MESSAGES = yes; then
21778 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21783 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21784 if test "${ac_cv_struct_tm+set}" = set; then :
21785 $as_echo_n "(cached) " >&6
21787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21788 /* end confdefs.h. */
21789 #include <sys/types.h>
21796 int *p = &tm.tm_sec;
21802 if ac_fn_c_try_compile "$LINENO"; then :
21803 ac_cv_struct_tm=time.h
21805 ac_cv_struct_tm=sys/time.h
21807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21810 $as_echo "$ac_cv_struct_tm" >&6; }
21811 if test $ac_cv_struct_tm = sys/time.h; then
21813 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21817 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21818 #include <$ac_cv_struct_tm>
21821 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21823 cat >>confdefs.h <<_ACEOF
21824 #define HAVE_STRUCT_TM_TM_ZONE 1
21830 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21832 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21835 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21837 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21843 cat >>confdefs.h <<_ACEOF
21844 #define HAVE_DECL_TZNAME $ac_have_decl
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21848 $as_echo_n "checking for tzname... " >&6; }
21849 if test "${ac_cv_var_tzname+set}" = set; then :
21850 $as_echo_n "(cached) " >&6
21852 if test x$gcc_no_link = xyes; then
21853 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21856 /* end confdefs.h. */
21858 #if !HAVE_DECL_TZNAME
21859 extern char *tzname[];
21865 return tzname[0][0];
21870 if ac_fn_c_try_link "$LINENO"; then :
21871 ac_cv_var_tzname=yes
21873 ac_cv_var_tzname=no
21875 rm -f core conftest.err conftest.$ac_objext \
21876 conftest$ac_exeext conftest.$ac_ext
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21879 $as_echo "$ac_cv_var_tzname" >&6; }
21880 if test $ac_cv_var_tzname = yes; then
21882 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21888 for ac_func in gethostbyname_r
21890 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21891 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21892 cat >>confdefs.h <<_ACEOF
21893 #define HAVE_GETHOSTBYNAME_R 1
21897 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21899 # There are two different kinds of gethostbyname_r.
21900 # We look for the one that returns `int'.
21901 # Hopefully this check is robust enough.
21902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21903 /* end confdefs.h. */
21907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21908 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21911 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21917 case " $GCINCS " in
21918 *" -D_REENTRANT "*) ;;
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21921 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21922 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21923 $as_echo_n "(cached) " >&6
21926 ac_cpp='$CXXCPP $CPPFLAGS'
21927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21932 /* end confdefs.h. */
21937 gethostbyname_r("", 0, 0);
21942 if ac_fn_cxx_try_compile "$LINENO"; then :
21943 libjava_cv_gethostbyname_r_needs_reentrant=no
21945 CPPFLAGS_SAVE="$CPPFLAGS"
21946 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21948 /* end confdefs.h. */
21953 gethostbyname_r("", 0, 0);
21958 if ac_fn_cxx_try_compile "$LINENO"; then :
21959 libjava_cv_gethostbyname_r_needs_reentrant=yes
21961 libjava_cv_gethostbyname_r_needs_reentrant=fail
21963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21964 CPPFLAGS="$CPPFLAGS_SAVE"
21967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21969 ac_cpp='$CPP $CPPFLAGS'
21970 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21971 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21972 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
21977 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
21978 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
21980 $as_echo "#define _REENTRANT 1" >>confdefs.h
21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
21987 $as_echo_n "checking for struct hostent_data... " >&6; }
21988 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
21989 $as_echo_n "(cached) " >&6
21991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21992 /* end confdefs.h. */
21994 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
21995 # define _REENTRANT 1
22001 struct hostent_data data;
22006 if ac_fn_c_try_compile "$LINENO"; then :
22007 libjava_cv_struct_hostent_data=yes
22009 libjava_cv_struct_hostent_data=no
22011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22014 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22015 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22017 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22025 # FIXME: libjava source code expects to find a prototype for
22026 # gethostbyaddr_r in netdb.h. The outer check ensures that
22027 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22028 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22029 # linkage check is enough, yet C++ code requires proper prototypes.)
22030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22031 /* end confdefs.h. */
22035 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22036 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22038 for ac_func in gethostbyaddr_r
22040 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22041 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22042 cat >>confdefs.h <<_ACEOF
22043 #define HAVE_GETHOSTBYADDR_R 1
22047 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22049 # There are two different kinds of gethostbyaddr_r.
22050 # We look for the one that returns `int'.
22051 # Hopefully this check is robust enough.
22052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22053 /* end confdefs.h. */
22057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22058 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22061 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22073 for ac_func in gethostname
22075 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22076 if test "x$ac_cv_func_gethostname" = x""yes; then :
22077 cat >>confdefs.h <<_ACEOF
22078 #define HAVE_GETHOSTNAME 1
22082 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22085 /* end confdefs.h. */
22086 #include <unistd.h>
22089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22090 $EGREP "gethostname" >/dev/null 2>&1; then :
22093 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22102 for ac_func in usleep
22104 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22105 if test "x$ac_cv_func_usleep" = x""yes; then :
22106 cat >>confdefs.h <<_ACEOF
22107 #define HAVE_USLEEP 1
22110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h. */
22112 #include <unistd.h>
22115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22116 $EGREP "usleep" >/dev/null 2>&1; then :
22119 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22128 # Look for these functions in the thread library, but only bother
22129 # if using POSIX threads.
22130 if test "$THREADS" = posix; then
22132 LIBS="$LIBS $THREADLIBS"
22134 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22135 # Solaris 7 the name librt is preferred.
22136 for ac_func in sched_yield
22138 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22139 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22140 cat >>confdefs.h <<_ACEOF
22141 #define HAVE_SCHED_YIELD 1
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22147 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22148 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22149 $as_echo_n "(cached) " >&6
22151 ac_check_lib_save_LIBS=$LIBS
22153 if test x$gcc_no_link = xyes; then
22154 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22157 /* end confdefs.h. */
22159 /* Override any GCC internal prototype to avoid an error.
22160 Use char because int might match the return type of a GCC
22161 builtin and then its argument prototype would still apply. */
22165 char sched_yield ();
22169 return sched_yield ();
22174 if ac_fn_c_try_link "$LINENO"; then :
22175 ac_cv_lib_rt_sched_yield=yes
22177 ac_cv_lib_rt_sched_yield=no
22179 rm -f core conftest.err conftest.$ac_objext \
22180 conftest$ac_exeext conftest.$ac_ext
22181 LIBS=$ac_check_lib_save_LIBS
22183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22184 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22185 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22187 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22189 THREADLIBS="$THREADLIBS -lrt"
22190 THREADSPEC="$THREADSPEC -lrt"
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22194 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22195 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22196 $as_echo_n "(cached) " >&6
22198 ac_check_lib_save_LIBS=$LIBS
22199 LIBS="-lposix4 $LIBS"
22200 if test x$gcc_no_link = xyes; then
22201 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22204 /* end confdefs.h. */
22206 /* Override any GCC internal prototype to avoid an error.
22207 Use char because int might match the return type of a GCC
22208 builtin and then its argument prototype would still apply. */
22212 char sched_yield ();
22216 return sched_yield ();
22221 if ac_fn_c_try_link "$LINENO"; then :
22222 ac_cv_lib_posix4_sched_yield=yes
22224 ac_cv_lib_posix4_sched_yield=no
22226 rm -f core conftest.err conftest.$ac_objext \
22227 conftest$ac_exeext conftest.$ac_ext
22228 LIBS=$ac_check_lib_save_LIBS
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22231 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22232 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22234 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22236 THREADLIBS="$THREADLIBS -lposix4"
22237 THREADSPEC="$THREADSPEC -lposix4"
22246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22247 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22248 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22249 $as_echo_n "(cached) " >&6
22251 ac_check_lib_save_LIBS=$LIBS
22253 if test x$gcc_no_link = xyes; then
22254 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22257 /* end confdefs.h. */
22259 /* Override any GCC internal prototype to avoid an error.
22260 Use char because int might match the return type of a GCC
22261 builtin and then its argument prototype would still apply. */
22265 char clock_gettime ();
22269 return clock_gettime ();
22274 if ac_fn_c_try_link "$LINENO"; then :
22275 ac_cv_lib_rt_clock_gettime=yes
22277 ac_cv_lib_rt_clock_gettime=no
22279 rm -f core conftest.err conftest.$ac_objext \
22280 conftest$ac_exeext conftest.$ac_ext
22281 LIBS=$ac_check_lib_save_LIBS
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22284 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22285 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22288 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22290 case "$THREADSPEC" in
22293 THREADSPEC="$THREADSPEC -lrt"
22294 THREADLIBS="$THREADLIBS -lrt"
22302 # We can save a little space at runtime if the mutex has m_count
22303 # or __m_count. This is a nice hack for Linux.
22304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22305 /* end confdefs.h. */
22306 #include <pthread.h>
22311 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22317 if ac_fn_c_try_compile "$LINENO"; then :
22319 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22324 /* end confdefs.h. */
22325 #include <pthread.h>
22330 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22336 if ac_fn_c_try_compile "$LINENO"; then :
22338 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22346 # We require a way to get the time.
22348 for ac_func in gettimeofday time ftime
22350 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22351 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22352 eval as_val=\$$as_ac_var
22353 if test "x$as_val" = x""yes; then :
22354 cat >>confdefs.h <<_ACEOF
22355 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22361 if test "$time_found" = no; then
22362 as_fn_error "no function found to get the time" "$LINENO" 5
22365 for ac_func in memmove
22367 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22368 if test "x$ac_cv_func_memmove" = x""yes; then :
22369 cat >>confdefs.h <<_ACEOF
22370 #define HAVE_MEMMOVE 1
22377 # We require memcpy.
22379 for ac_func in memcpy
22381 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22382 if test "x$ac_cv_func_memcpy" = x""yes; then :
22383 cat >>confdefs.h <<_ACEOF
22384 #define HAVE_MEMCPY 1
22390 if test "$memcpy_found" = no; then
22391 as_fn_error "memcpy is required" "$LINENO" 5
22393 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22395 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22396 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22397 $as_echo_n "(cached) " >&6
22399 ac_check_lib_save_LIBS=$LIBS
22401 if test x$gcc_no_link = xyes; then
22402 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22405 /* end confdefs.h. */
22407 /* Override any GCC internal prototype to avoid an error.
22408 Use char because int might match the return type of a GCC
22409 builtin and then its argument prototype would still apply. */
22422 if ac_fn_c_try_link "$LINENO"; then :
22423 ac_cv_lib_dl_dlopen=yes
22425 ac_cv_lib_dl_dlopen=no
22427 rm -f core conftest.err conftest.$ac_objext \
22428 conftest$ac_exeext conftest.$ac_ext
22429 LIBS=$ac_check_lib_save_LIBS
22431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22432 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22433 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22436 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22441 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22442 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22443 $as_echo_n "(cached) " >&6
22445 ac_check_lib_save_LIBS=$LIBS
22447 if test x$gcc_no_link = xyes; then
22448 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22451 /* end confdefs.h. */
22453 /* Override any GCC internal prototype to avoid an error.
22454 Use char because int might match the return type of a GCC
22455 builtin and then its argument prototype would still apply. */
22468 if ac_fn_c_try_link "$LINENO"; then :
22469 ac_cv_lib_dld_dlopen=yes
22471 ac_cv_lib_dld_dlopen=no
22473 rm -f core conftest.err conftest.$ac_objext \
22474 conftest$ac_exeext conftest.$ac_ext
22475 LIBS=$ac_check_lib_save_LIBS
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22478 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22479 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22482 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22489 # Some library-finding code we stole from Tcl.
22490 #--------------------------------------------------------------------
22491 # Check for the existence of the -lsocket and -lnsl libraries.
22492 # The order here is important, so that they end up in the right
22493 # order in the command line generated by make. Here are some
22494 # special considerations:
22495 # 1. Use "connect" and "accept" to check for -lsocket, and
22496 # "gethostbyname" to check for -lnsl.
22497 # 2. Use each function name only once: can't redo a check because
22498 # autoconf caches the results of the last check and won't redo it.
22499 # 3. Use -lnsl and -lsocket only if they supply procedures that
22500 # aren't already present in the normal libraries. This is because
22501 # IRIX 5.2 has libraries, but they aren't needed and they're
22502 # bogus: they goof up name resolution if used.
22503 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22504 # To get around this problem, check for both libraries together
22505 # if -lsocket doesn't work by itself.
22506 #--------------------------------------------------------------------
22508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22509 $as_echo_n "checking for socket libraries... " >&6; }
22510 if test "${gcj_cv_lib_sockets+set}" = set; then :
22511 $as_echo_n "(cached) " >&6
22513 gcj_cv_lib_sockets=
22515 unset ac_cv_func_connect
22516 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22517 if test "x$ac_cv_func_connect" = x""yes; then :
22523 if test "$gcj_checkSocket" = 1; then
22524 unset ac_cv_func_connect
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22526 $as_echo_n "checking for main in -lsocket... " >&6; }
22527 if test "${ac_cv_lib_socket_main+set}" = set; then :
22528 $as_echo_n "(cached) " >&6
22530 ac_check_lib_save_LIBS=$LIBS
22531 LIBS="-lsocket $LIBS"
22532 if test x$gcc_no_link = xyes; then
22533 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22536 /* end confdefs.h. */
22547 if ac_fn_c_try_link "$LINENO"; then :
22548 ac_cv_lib_socket_main=yes
22550 ac_cv_lib_socket_main=no
22552 rm -f core conftest.err conftest.$ac_objext \
22553 conftest$ac_exeext conftest.$ac_ext
22554 LIBS=$ac_check_lib_save_LIBS
22556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22557 $as_echo "$ac_cv_lib_socket_main" >&6; }
22558 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22559 gcj_cv_lib_sockets="-lsocket"
22565 if test "$gcj_checkBoth" = 1; then
22567 LIBS="$LIBS -lsocket -lnsl"
22568 unset ac_cv_func_accept
22569 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22570 if test "x$ac_cv_func_accept" = x""yes; then :
22572 gcj_cv_lib_sockets="-lsocket -lnsl"
22575 unset ac_cv_func_accept
22578 unset ac_cv_func_gethostbyname
22580 LIBS="$LIBS $gcj_cv_lib_sockets"
22581 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22582 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22586 $as_echo_n "checking for main in -lnsl... " >&6; }
22587 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22588 $as_echo_n "(cached) " >&6
22590 ac_check_lib_save_LIBS=$LIBS
22592 if test x$gcc_no_link = xyes; then
22593 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22596 /* end confdefs.h. */
22607 if ac_fn_c_try_link "$LINENO"; then :
22608 ac_cv_lib_nsl_main=yes
22610 ac_cv_lib_nsl_main=no
22612 rm -f core conftest.err conftest.$ac_objext \
22613 conftest$ac_exeext conftest.$ac_ext
22614 LIBS=$ac_check_lib_save_LIBS
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22617 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22618 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22619 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22624 unset ac_cv_func_gethostbyname
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22629 $as_echo "$gcj_cv_lib_sockets" >&6; }
22630 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22632 if test "$with_system_zlib" = yes; then
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22634 $as_echo_n "checking for deflate in -lz... " >&6; }
22635 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22636 $as_echo_n "(cached) " >&6
22638 ac_check_lib_save_LIBS=$LIBS
22640 if test x$gcc_no_link = xyes; then
22641 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22644 /* end confdefs.h. */
22646 /* Override any GCC internal prototype to avoid an error.
22647 Use char because int might match the return type of a GCC
22648 builtin and then its argument prototype would still apply. */
22661 if ac_fn_c_try_link "$LINENO"; then :
22662 ac_cv_lib_z_deflate=yes
22664 ac_cv_lib_z_deflate=no
22666 rm -f core conftest.err conftest.$ac_objext \
22667 conftest$ac_exeext conftest.$ac_ext
22668 LIBS=$ac_check_lib_save_LIBS
22670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22671 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22672 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22680 # Test for Gtk stuff, if asked for.
22681 if test "$use_gtk_awt" = yes; then
22685 if test -z "$PKG_CONFIG"; then
22686 # Extract the first word of "pkg-config", so it can be a program name with args.
22687 set dummy pkg-config; ac_word=$2
22688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22689 $as_echo_n "checking for $ac_word... " >&6; }
22690 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22691 $as_echo_n "(cached) " >&6
22693 case $PKG_CONFIG in
22695 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22699 for as_dir in $PATH
22702 test -z "$as_dir" && as_dir=.
22703 for ac_exec_ext in '' $ac_executable_extensions; do
22704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22705 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22713 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22717 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22718 if test -n "$PKG_CONFIG"; then
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22720 $as_echo "$PKG_CONFIG" >&6; }
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22723 $as_echo "no" >&6; }
22729 if test "$PKG_CONFIG" = "no" ; then
22730 echo "*** The pkg-config script could not be found. Make sure it is"
22731 echo "*** in your path, or set the PKG_CONFIG environment variable"
22732 echo "*** to the full path to pkg-config."
22733 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22735 PKG_CONFIG_MIN_VERSION=0.9.0
22736 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22738 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22740 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22742 $as_echo "yes" >&6; }
22745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22746 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22747 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22749 $as_echo "$GTK_CFLAGS" >&6; }
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22752 $as_echo_n "checking GTK_LIBS... " >&6; }
22753 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22755 $as_echo "$GTK_LIBS" >&6; }
22759 ## If we have a custom action on failure, don't print errors, but
22760 ## do set a variable so people can do so.
22761 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22762 echo $GTK_PKG_ERRORS
22768 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22769 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22773 if test $succeeded = yes; then
22776 as_fn_error "Library requirements (gtk+-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
22785 if test -z "$PKG_CONFIG"; then
22786 # Extract the first word of "pkg-config", so it can be a program name with args.
22787 set dummy pkg-config; ac_word=$2
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22789 $as_echo_n "checking for $ac_word... " >&6; }
22790 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22791 $as_echo_n "(cached) " >&6
22793 case $PKG_CONFIG in
22795 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22799 for as_dir in $PATH
22802 test -z "$as_dir" && as_dir=.
22803 for ac_exec_ext in '' $ac_executable_extensions; do
22804 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22805 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22813 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22817 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22818 if test -n "$PKG_CONFIG"; then
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22820 $as_echo "$PKG_CONFIG" >&6; }
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22823 $as_echo "no" >&6; }
22829 if test "$PKG_CONFIG" = "no" ; then
22830 echo "*** The pkg-config script could not be found. Make sure it is"
22831 echo "*** in your path, or set the PKG_CONFIG environment variable"
22832 echo "*** to the full path to pkg-config."
22833 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22835 PKG_CONFIG_MIN_VERSION=0.9.0
22836 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22838 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22840 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22842 $as_echo "yes" >&6; }
22845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22846 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22847 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22849 $as_echo "$GLIB_CFLAGS" >&6; }
22851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22852 $as_echo_n "checking GLIB_LIBS... " >&6; }
22853 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22855 $as_echo "$GLIB_LIBS" >&6; }
22859 ## If we have a custom action on failure, don't print errors, but
22860 ## do set a variable so people can do so.
22861 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22862 echo $GLIB_PKG_ERRORS
22868 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22869 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22873 if test $succeeded = yes; then
22876 as_fn_error "Library requirements (glib-2.0 >= 2.4 gthread-2.0 >= 2.4) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
22885 if test -z "$PKG_CONFIG"; then
22886 # Extract the first word of "pkg-config", so it can be a program name with args.
22887 set dummy pkg-config; ac_word=$2
22888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22889 $as_echo_n "checking for $ac_word... " >&6; }
22890 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22891 $as_echo_n "(cached) " >&6
22893 case $PKG_CONFIG in
22895 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22899 for as_dir in $PATH
22902 test -z "$as_dir" && as_dir=.
22903 for ac_exec_ext in '' $ac_executable_extensions; do
22904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22905 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22913 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22917 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22918 if test -n "$PKG_CONFIG"; then
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22920 $as_echo "$PKG_CONFIG" >&6; }
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22923 $as_echo "no" >&6; }
22929 if test "$PKG_CONFIG" = "no" ; then
22930 echo "*** The pkg-config script could not be found. Make sure it is"
22931 echo "*** in your path, or set the PKG_CONFIG environment variable"
22932 echo "*** to the full path to pkg-config."
22933 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22935 PKG_CONFIG_MIN_VERSION=0.9.0
22936 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22938 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22940 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22942 $as_echo "yes" >&6; }
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22946 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
22947 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
22948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
22949 $as_echo "$LIBART_CFLAGS" >&6; }
22951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
22952 $as_echo_n "checking LIBART_LIBS... " >&6; }
22953 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
22955 $as_echo "$LIBART_LIBS" >&6; }
22959 ## If we have a custom action on failure, don't print errors, but
22960 ## do set a variable so people can do so.
22961 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
22962 echo $LIBART_PKG_ERRORS
22968 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22969 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22973 if test $succeeded = yes; then
22976 as_fn_error "Library requirements (libart-2.0 >= 2.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
22982 # We require the XTest Extension to support java.awt.Robot.
22983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
22984 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
22985 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
22986 $as_echo_n "(cached) " >&6
22988 ac_check_lib_save_LIBS=$LIBS
22989 LIBS="-lXtst ${X_LIBS} $LIBS"
22990 if test x$gcc_no_link = xyes; then
22991 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22994 /* end confdefs.h. */
22996 /* Override any GCC internal prototype to avoid an error.
22997 Use char because int might match the return type of a GCC
22998 builtin and then its argument prototype would still apply. */
23002 char XTestQueryExtension ();
23006 return XTestQueryExtension ();
23011 if ac_fn_c_try_link "$LINENO"; then :
23012 ac_cv_lib_Xtst_XTestQueryExtension=yes
23014 ac_cv_lib_Xtst_XTestQueryExtension=no
23016 rm -f core conftest.err conftest.$ac_objext \
23017 conftest$ac_exeext conftest.$ac_ext
23018 LIBS=$ac_check_lib_save_LIBS
23020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23021 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23022 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23025 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23030 # On Solaris, and maybe other architectures, the Boehm collector
23032 if test "$GC" = boehm; then
23035 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
23036 # libgcj.spec is used, so override here
23037 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23041 $as_echo_n "checking for main in -ldl... " >&6; }
23042 if test "${ac_cv_lib_dl_main+set}" = set; then :
23043 $as_echo_n "(cached) " >&6
23045 ac_check_lib_save_LIBS=$LIBS
23047 if test x$gcc_no_link = xyes; then
23048 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23051 /* end confdefs.h. */
23062 if ac_fn_c_try_link "$LINENO"; then :
23063 ac_cv_lib_dl_main=yes
23065 ac_cv_lib_dl_main=no
23067 rm -f core conftest.err conftest.$ac_objext \
23068 conftest$ac_exeext conftest.$ac_ext
23069 LIBS=$ac_check_lib_save_LIBS
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23072 $as_echo "$ac_cv_lib_dl_main" >&6; }
23073 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23074 SYSTEMSPEC="$SYSTEMSPEC -ldl"
23082 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23084 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23085 *) CLASSPATH_SEPARATOR=':' ;;
23089 # We must search the source tree for java.lang, since we still don't
23090 # have libgcj.jar nor java/lang/*.class
23091 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23092 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23094 # Since some classes depend on this one, we need its source available
23095 # before we can do any GCJ compilation test :-(
23096 if test ! -f gnu/classpath/Configuration.java; then
23097 test -d gnu || mkdir gnu
23098 test -d gnu/classpath || mkdir gnu/classpath
23099 # Note that it is not crucial that all the values here be correct.
23100 sed -e "s,@prefix@,$expanded_prefix," \
23101 -e "s,@VERSION@,$VERSION," \
23102 -e "s,@LIBDEBUG@,false," \
23103 -e "s,@INIT_LOAD_LIBRARY@,false," \
23104 -e "s,@@,$LIBGCJDEBUG," \
23105 -e "s,@default_toolkit@,$TOOLKIT," \
23106 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23107 -e "s,@GTK_CAIRO_ENABLED@,false," \
23108 -e "s,@ECJ_JAR@,," \
23109 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23110 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23111 > gnu/classpath/Configuration.java
23112 # We do not want to redirect the output of the grep below to /dev/null,
23113 # but we add /dev/null to the input list so that grep will print the
23114 # filename of Configuration.java in case it finds any matches.
23115 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23116 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23121 if test -n "$ac_tool_prefix"; then
23124 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23125 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23127 $as_echo_n "checking for $ac_word... " >&6; }
23128 if test "${ac_cv_prog_GCJ+set}" = set; then :
23129 $as_echo_n "(cached) " >&6
23131 if test -n "$GCJ"; then
23132 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23135 for as_dir in $PATH
23138 test -z "$as_dir" && as_dir=.
23139 for ac_exec_ext in '' $ac_executable_extensions; do
23140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23141 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23151 GCJ=$ac_cv_prog_GCJ
23152 if test -n "$GCJ"; then
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23154 $as_echo "$GCJ" >&6; }
23156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23157 $as_echo "no" >&6; }
23161 test -n "$GCJ" && break
23164 if test -z "$GCJ"; then
23168 # Extract the first word of "$ac_prog", so it can be a program name with args.
23169 set dummy $ac_prog; ac_word=$2
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23171 $as_echo_n "checking for $ac_word... " >&6; }
23172 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23173 $as_echo_n "(cached) " >&6
23175 if test -n "$ac_ct_GCJ"; then
23176 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23179 for as_dir in $PATH
23182 test -z "$as_dir" && as_dir=.
23183 for ac_exec_ext in '' $ac_executable_extensions; do
23184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23185 ac_cv_prog_ac_ct_GCJ="$ac_prog"
23186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23195 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23196 if test -n "$ac_ct_GCJ"; then
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23198 $as_echo "$ac_ct_GCJ" >&6; }
23200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23201 $as_echo "no" >&6; }
23205 test -n "$ac_ct_GCJ" && break
23208 if test "x$ac_ct_GCJ" = x; then
23211 case $cross_compiling:$ac_tool_warned in
23213 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23214 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23215 ac_tool_warned=yes ;;
23221 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23222 if test "x${GCJFLAGS-unset}" = xunset; then
23227 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23230 $as_echo_n "checking dependency style of $depcc... " >&6; }
23231 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23232 $as_echo_n "(cached) " >&6
23234 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23235 # We make a subdir and do the tests there. Otherwise we can end up
23236 # making bogus files that we don't know about and never remove. For
23237 # instance it was reported that on HP-UX the gcc test will end up
23238 # making a dummy file named `D' -- because `-MD' means `put the output
23241 # Copy depcomp to subdir because otherwise we won't find it if we're
23242 # using a relative directory.
23243 cp "$am_depcomp" conftest.dir
23245 # We will build objects and dependencies in a subdirectory because
23246 # it helps to detect inapplicable dependency modes. For instance
23247 # both Tru64's cc and ICC support -MD to output dependencies as a
23248 # side effect of compilation, but ICC will put the dependencies in
23249 # the current directory while Tru64 will put them in the object
23253 am_cv_GCJ_dependencies_compiler_type=none
23254 if test "$am_compiler_list" = ""; then
23255 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23257 am__universal=false
23260 for depmode in $am_compiler_list; do
23261 # Setup a source with many dependencies, because some compilers
23262 # like to wrap large dependency lists on column 80 (with \), and
23263 # we should not choose a depcomp mode which is confused by this.
23265 # We need to recreate these files for each test, as the compiler may
23266 # overwrite some of them when testing with obscure command lines.
23267 # This happens at least with the AIX C compiler.
23269 for i in 1 2 3 4 5 6; do
23270 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23271 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23272 # Solaris 8's {/usr,}/bin/sh.
23273 touch sub/conftst$i.h
23275 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23277 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23278 # mode. It turns out that the SunPro C++ compiler does not properly
23279 # handle `-M -o', and we need to detect this. Also, some Intel
23280 # versions had trouble with output in subdirs
23281 am__obj=sub/conftest.${OBJEXT-o}
23282 am__minus_obj="-o $am__obj"
23285 # This depmode causes a compiler race in universal mode.
23286 test "$am__universal" = false || continue
23289 # after this tag, mechanisms are not by side-effect, so they'll
23290 # only be used when explicitly requested
23291 if test "x$enable_dependency_tracking" = xyes; then
23297 msvisualcpp | msvcmsys)
23298 # This compiler won't grok `-c -o', but also, the minuso test has
23299 # not run yet. These depmodes are late enough in the game, and
23300 # so weak that their functioning should not be impacted.
23301 am__obj=conftest.${OBJEXT-o}
23306 if depmode=$depmode \
23307 source=sub/conftest.c object=$am__obj \
23308 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23309 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23310 >/dev/null 2>conftest.err &&
23311 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23312 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23313 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23314 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23315 # icc doesn't choke on unknown options, it will just issue warnings
23316 # or remarks (even with -Werror). So we grep stderr for any message
23317 # that says an option was ignored or not supported.
23318 # When given -MP, icc 7.0 and 7.1 complain thusly:
23319 # icc: Command line warning: ignoring option '-M'; no argument required
23320 # The diagnosis changed in icc 8.0:
23321 # icc: Command line remark: option '-MP' not supported
23322 if (grep 'ignoring option' conftest.err ||
23323 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23324 am_cv_GCJ_dependencies_compiler_type=$depmode
23331 rm -rf conftest.dir
23333 am_cv_GCJ_dependencies_compiler_type=none
23337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23338 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23339 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23342 test "x$enable_dependency_tracking" != xno \
23343 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23344 am__fastdepGCJ_TRUE=
23345 am__fastdepGCJ_FALSE='#'
23347 am__fastdepGCJ_TRUE='#'
23348 am__fastdepGCJ_FALSE=
23355 rm -f gnu/classpath/Configuration.java
23357 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23359 # The cast to long int works around a bug in the HP C Compiler
23360 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23361 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23362 # This bug is HP SR number 8606223364.
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23364 $as_echo_n "checking size of void *... " >&6; }
23365 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23366 $as_echo_n "(cached) " >&6
23368 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23371 if test "$ac_cv_type_void_p" = yes; then
23372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23374 { as_fn_set_status 77
23375 as_fn_error "cannot compute sizeof (void *)
23376 See \`config.log' for more details." "$LINENO" 5; }; }
23378 ac_cv_sizeof_void_p=0
23383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23384 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23388 cat >>confdefs.h <<_ACEOF
23389 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23395 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23396 if test "${ac_cv_c_bigendian+set}" = set; then :
23397 $as_echo_n "(cached) " >&6
23399 ac_cv_c_bigendian=unknown
23400 # See if we're dealing with a universal compiler.
23401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23402 /* end confdefs.h. */
23403 #ifndef __APPLE_CC__
23404 not a universal capable compiler
23409 if ac_fn_c_try_compile "$LINENO"; then :
23411 # Check for potential -arch flags. It is not universal unless
23412 # there are at least two -arch flags with different values.
23415 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23416 if test -n "$ac_prev"; then
23418 i?86 | x86_64 | ppc | ppc64)
23419 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23422 ac_cv_c_bigendian=universal
23428 elif test "x$ac_word" = "x-arch"; then
23433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23434 if test $ac_cv_c_bigendian = unknown; then
23435 # See if sys/param.h defines the BYTE_ORDER macro.
23436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23437 /* end confdefs.h. */
23438 #include <sys/types.h>
23439 #include <sys/param.h>
23444 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23445 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23447 bogus endian macros
23454 if ac_fn_c_try_compile "$LINENO"; then :
23455 # It does; now see whether it defined to BIG_ENDIAN or not.
23456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23457 /* end confdefs.h. */
23458 #include <sys/types.h>
23459 #include <sys/param.h>
23464 #if BYTE_ORDER != BIG_ENDIAN
23472 if ac_fn_c_try_compile "$LINENO"; then :
23473 ac_cv_c_bigendian=yes
23475 ac_cv_c_bigendian=no
23477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23481 if test $ac_cv_c_bigendian = unknown; then
23482 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23484 /* end confdefs.h. */
23485 #include <limits.h>
23490 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23491 bogus endian macros
23498 if ac_fn_c_try_compile "$LINENO"; then :
23499 # It does; now see whether it defined to _BIG_ENDIAN or not.
23500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23501 /* end confdefs.h. */
23502 #include <limits.h>
23507 #ifndef _BIG_ENDIAN
23515 if ac_fn_c_try_compile "$LINENO"; then :
23516 ac_cv_c_bigendian=yes
23518 ac_cv_c_bigendian=no
23520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23524 if test $ac_cv_c_bigendian = unknown; then
23525 # Compile a test program.
23526 if test "$cross_compiling" = yes; then :
23527 # Try to guess by grepping values from an object file.
23528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23529 /* end confdefs.h. */
23530 short int ascii_mm[] =
23531 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23532 short int ascii_ii[] =
23533 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23534 int use_ascii (int i) {
23535 return ascii_mm[i] + ascii_ii[i];
23537 short int ebcdic_ii[] =
23538 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23539 short int ebcdic_mm[] =
23540 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23541 int use_ebcdic (int i) {
23542 return ebcdic_mm[i] + ebcdic_ii[i];
23549 return use_ascii (foo) == use_ebcdic (foo);
23554 if ac_fn_c_try_compile "$LINENO"; then :
23555 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23556 ac_cv_c_bigendian=yes
23558 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23559 if test "$ac_cv_c_bigendian" = unknown; then
23560 ac_cv_c_bigendian=no
23562 # finding both strings is unlikely to happen, but who knows?
23563 ac_cv_c_bigendian=unknown
23567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23570 /* end confdefs.h. */
23571 $ac_includes_default
23576 /* Are we little or big endian? From Harbison&Steele. */
23580 char c[sizeof (long int)];
23583 return u.c[sizeof (long int) - 1] == 1;
23589 if ac_fn_c_try_run "$LINENO"; then :
23590 ac_cv_c_bigendian=no
23592 ac_cv_c_bigendian=yes
23594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23595 conftest.$ac_objext conftest.beam conftest.$ac_ext
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23601 $as_echo "$ac_cv_c_bigendian" >&6; }
23602 case $ac_cv_c_bigendian in #(
23604 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23610 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23614 as_fn_error "unknown endianness
23615 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23623 if test -z "$ZLIBSPEC"; then
23624 # Use zlib from the GCC tree.
23625 ZINCS='-I$(top_srcdir)/../zlib'
23626 ZLIBS=../zlib/libzgcj_convenience.la
23629 SYS_ZLIBS="$ZLIBSPEC"
23641 if test "$NATIVE" = yes; then
23649 if test "$enable_shared" = yes; then
23650 ENABLE_SHARED_TRUE=
23651 ENABLE_SHARED_FALSE='#'
23653 ENABLE_SHARED_TRUE='#'
23654 ENABLE_SHARED_FALSE=
23657 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23658 NEEDS_DATA_START_TRUE=
23659 NEEDS_DATA_START_FALSE='#'
23661 NEEDS_DATA_START_TRUE='#'
23662 NEEDS_DATA_START_FALSE=
23665 if test -z "${with_multisubdir}"; then
23666 INSTALL_BINARIES_TRUE=
23667 INSTALL_BINARIES_FALSE='#'
23669 INSTALL_BINARIES_TRUE='#'
23670 INSTALL_BINARIES_FALSE=
23675 # Process the option "--enable-version-specific-runtime-libs"
23676 # Calculate toolexeclibdir
23677 case ${version_specific_libs} in
23679 # Need the gcc compiler version to know where to install libraries
23680 # and header files if --enable-version-specific-runtime-libs option
23682 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23683 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23684 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23685 toolexeclibdir=$toolexecmainlibdir
23688 if test -n "$with_cross_host" &&
23689 test x"$with_cross_host" != x"no"; then
23690 # Install a library built with a cross compiler in tooldir, not libdir.
23691 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23692 toolexecmainlibdir='$(toolexecdir)/lib'
23694 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23695 toolexecmainlibdir='$(libdir)'
23697 multi_os_directory=`$CC -print-multi-os-directory`
23698 case $multi_os_directory in
23699 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23700 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23708 # Determine gcj and libgcj version number.
23709 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23710 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23711 GCJVERSION=$gcjversion
23714 cat >>confdefs.h <<_ACEOF
23715 #define GCJVERSION "$GCJVERSION"
23719 # Determine where the standard .db file and GNU Classpath JNI
23720 # libraries are found.
23721 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23722 multi_os_directory=`$CC -print-multi-os-directory`
23723 case $multi_os_directory in
23725 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23728 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23735 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23738 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23742 case "${with_gxx_include_dir}" in
23744 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23747 case "${enable_version_specific_runtime_libs}" in
23748 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23750 libstdcxx_incdir='c++/$(gcc_version)'
23751 gxx_include_dir='include/$(libstdcxx_incdir)'
23752 if test -n "$with_cross_host" &&
23753 test x"$with_cross_host" != x"no"; then
23754 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23756 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23759 *) gxx_include_dir=${with_gxx_include_dir} ;;
23765 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23766 # On that system, sys/ioctl.h will not include sys/filio.h unless
23767 # BSD_COMP is defined; just including sys/filio.h is simpler.
23768 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23769 # for now. If you change this, you also must update natFile.cc.
23770 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23771 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23772 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23773 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23774 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23777 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23778 eval as_val=\$$as_ac_Header
23779 if test "x$as_val" = x""yes; then :
23780 cat >>confdefs.h <<_ACEOF
23781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23789 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23790 for ac_header in net/if.h
23792 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23793 #ifdef HAVE_SYS_SOCKET_H
23794 #include <sys/socket.h>
23798 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23799 cat >>confdefs.h <<_ACEOF
23800 #define HAVE_NET_IF_H 1
23808 for ac_header in inttypes.h
23810 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23811 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23812 cat >>confdefs.h <<_ACEOF
23813 #define HAVE_INTTYPES_H 1
23817 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23820 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23828 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23829 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23833 cat >>confdefs.h <<_ACEOF
23834 #define ssize_t int
23839 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23840 #ifdef HAVE_MAGIC_H
23844 if test "x$ac_cv_type_magic_t" = x""yes; then :
23847 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23853 $as_echo_n "checking for in_addr_t... " >&6; }
23854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23855 /* end confdefs.h. */
23856 #include <sys/types.h>
23858 #include <stdlib.h>
23859 #include <stddef.h>
23861 #if HAVE_NETINET_IN_H
23862 #include <netinet/in.h>
23872 if ac_fn_c_try_compile "$LINENO"; then :
23874 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23877 $as_echo "yes" >&6; }
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23880 $as_echo "no" >&6; }
23882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23885 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23887 /* end confdefs.h. */
23888 #include <netinet/in.h>
23892 struct ip_mreq mreq;
23897 if ac_fn_c_try_compile "$LINENO"; then :
23899 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23902 $as_echo "yes" >&6; }
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23905 $as_echo "no" >&6; }
23907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23910 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23912 /* end confdefs.h. */
23913 #include <netinet/in.h>
23917 struct ipv6_mreq mreq6;
23922 if ac_fn_c_try_compile "$LINENO"; then :
23924 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23927 $as_echo "yes" >&6; }
23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23930 $as_echo "no" >&6; }
23932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23935 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23937 /* end confdefs.h. */
23938 #include <netinet/in.h>
23942 struct sockaddr_in6 addr6;
23947 if ac_fn_c_try_compile "$LINENO"; then :
23949 $as_echo "#define HAVE_INET6 1" >>confdefs.h
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23952 $as_echo "yes" >&6; }
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23955 $as_echo "no" >&6; }
23957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
23960 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
23961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23962 /* end confdefs.h. */
23963 #define _POSIX_PII_SOCKET
23964 #include <sys/types.h>
23965 #include <sys/socket.h>
23974 if ac_fn_c_try_compile "$LINENO"; then :
23976 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23979 $as_echo "yes" >&6; }
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23982 $as_echo "no" >&6; }
23984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
23987 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
23988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23989 /* end confdefs.h. */
23994 struct tm tim; tim.tm_gmtoff = 0;
23999 if ac_fn_c_try_compile "$LINENO"; then :
24001 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24004 $as_echo "yes" >&6; }
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24007 $as_echo "no" >&6; }
24008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24009 $as_echo_n "checking for global timezone variable... " >&6; }
24010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24011 /* end confdefs.h. */
24016 void i(){long z2 = 2*timezone;}
24021 if ac_fn_c_try_compile "$LINENO"; then :
24023 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24026 $as_echo "yes" >&6; }
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24029 $as_echo "no" >&6; }
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24031 $as_echo_n "checking for global _timezone variable... " >&6; }
24032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24033 /* end confdefs.h. */
24038 long z2 = _timezone;
24043 if ac_fn_c_try_compile "$LINENO"; then :
24045 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24048 $as_echo "yes" >&6; }
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24051 $as_echo "no" >&6; }
24053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24059 for ac_prog in perl
24061 # Extract the first word of "$ac_prog", so it can be a program name with args.
24062 set dummy $ac_prog; ac_word=$2
24063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24064 $as_echo_n "checking for $ac_word... " >&6; }
24065 if test "${ac_cv_prog_PERL+set}" = set; then :
24066 $as_echo_n "(cached) " >&6
24068 if test -n "$PERL"; then
24069 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24072 for as_dir in $PATH
24075 test -z "$as_dir" && as_dir=.
24076 for ac_exec_ext in '' $ac_executable_extensions; do
24077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24078 ac_cv_prog_PERL="$ac_prog"
24079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24088 PERL=$ac_cv_prog_PERL
24089 if test -n "$PERL"; then
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24091 $as_echo "$PERL" >&6; }
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24094 $as_echo "no" >&6; }
24098 test -n "$PERL" && break
24100 test -n "$PERL" || PERL="false"
24104 SIGNAL_HANDLER_AUX=
24108 SIGNAL_HANDLER=include/i386-signal.h
24110 sparc*-sun-solaris*)
24111 SIGNAL_HANDLER=include/sparc-signal.h
24114 # SYSDEP_SOURCES=sysdep/ia64.c
24115 # test -d sysdep || mkdir sysdep
24118 SIGNAL_HANDLER=include/pa-signal.h
24121 SIGNAL_HANDLER=include/hppa-signal.h
24124 SIGNAL_HANDLER=include/dwarf2-signal.h
24127 SIGNAL_HANDLER=include/powerpc-signal.h
24130 SIGNAL_HANDLER=include/dwarf2-signal.h
24133 SIGNAL_HANDLER=include/s390-signal.h
24136 SIGNAL_HANDLER=include/x86_64-signal.h
24137 SIGNAL_HANDLER_AUX=include/i386-signal.h
24140 SIGNAL_HANDLER=include/dwarf2-signal.h
24143 SIGNAL_HANDLER=include/sh-signal.h
24146 SIGNAL_HANDLER=include/win32-signal.h
24149 SIGNAL_HANDLER=include/mips-signal.h
24152 SIGNAL_HANDLER=include/dwarf2-signal.h
24154 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24155 SIGNAL_HANDLER=include/darwin-signal.h
24158 SIGNAL_HANDLER=include/aix-signal.h
24161 SIGNAL_HANDLER=include/default-signal.h
24165 # If we're using sjlj exceptions, forget what we just learned.
24166 if test "$enable_sjlj_exceptions" = yes; then
24167 SIGNAL_HANDLER=include/default-signal.h
24168 SIGNAL_HANDLER_AUX=
24173 if test -z "$SIGNAL_HANDLER_AUX"; then
24174 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24177 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24180 if test "${multilib}" = "yes"; then
24181 multilib_arg="--enable-multilib"
24186 # See if we support thread-local storage.
24189 # Check whether --enable-tls was given.
24190 if test "${enable_tls+set}" = set; then :
24191 enableval=$enable_tls;
24192 case "$enableval" in
24194 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24203 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24204 if test "${gcc_cv_have_tls+set}" = set; then :
24205 $as_echo_n "(cached) " >&6
24208 if test "$cross_compiling" = yes; then :
24209 if test x$gcc_no_link = xyes; then
24210 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24213 /* end confdefs.h. */
24214 __thread int a; int b; int main() { return a = b; }
24216 if ac_fn_c_try_link "$LINENO"; then :
24217 chktls_save_LDFLAGS="$LDFLAGS"
24220 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24223 chktls_save_CFLAGS="$CFLAGS"
24224 CFLAGS="-fPIC $CFLAGS"
24225 if test x$gcc_no_link = xyes; then
24226 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24229 /* end confdefs.h. */
24230 int f() { return 0; }
24232 if ac_fn_c_try_link "$LINENO"; then :
24233 if test x$gcc_no_link = xyes; then
24234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24237 /* end confdefs.h. */
24238 __thread int a; int b; int f() { return a = b; }
24240 if ac_fn_c_try_link "$LINENO"; then :
24241 gcc_cv_have_tls=yes
24245 rm -f core conftest.err conftest.$ac_objext \
24246 conftest$ac_exeext conftest.$ac_ext
24248 gcc_cv_have_tls=yes
24250 rm -f core conftest.err conftest.$ac_objext \
24251 conftest$ac_exeext conftest.$ac_ext
24252 CFLAGS="$chktls_save_CFLAGS"
24253 LDFLAGS="$chktls_save_LDFLAGS"
24257 rm -f core conftest.err conftest.$ac_objext \
24258 conftest$ac_exeext conftest.$ac_ext
24262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24263 /* end confdefs.h. */
24264 __thread int a; int b; int main() { return a = b; }
24266 if ac_fn_c_try_run "$LINENO"; then :
24267 chktls_save_LDFLAGS="$LDFLAGS"
24268 LDFLAGS="-static $LDFLAGS"
24269 if test x$gcc_no_link = xyes; then
24270 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24273 /* end confdefs.h. */
24274 int main() { return 0; }
24276 if ac_fn_c_try_link "$LINENO"; then :
24277 if test "$cross_compiling" = yes; then :
24278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24280 as_fn_error "cannot run test program while cross compiling
24281 See \`config.log' for more details." "$LINENO" 5; }
24283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24284 /* end confdefs.h. */
24285 __thread int a; int b; int main() { return a = b; }
24287 if ac_fn_c_try_run "$LINENO"; then :
24288 gcc_cv_have_tls=yes
24292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24293 conftest.$ac_objext conftest.beam conftest.$ac_ext
24297 gcc_cv_have_tls=yes
24299 rm -f core conftest.err conftest.$ac_objext \
24300 conftest$ac_exeext conftest.$ac_ext
24301 LDFLAGS="$chktls_save_LDFLAGS"
24302 if test $gcc_cv_have_tls = yes; then
24303 chktls_save_CFLAGS="$CFLAGS"
24304 thread_CFLAGS=failed
24305 for flag in '' '-pthread' '-lpthread'; do
24306 CFLAGS="$flag $chktls_save_CFLAGS"
24307 if test x$gcc_no_link = xyes; then
24308 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24311 /* end confdefs.h. */
24312 #include <pthread.h>
24313 void *g(void *d) { return NULL; }
24317 pthread_t t; pthread_create(&t,NULL,g,NULL);
24322 if ac_fn_c_try_link "$LINENO"; then :
24323 thread_CFLAGS="$flag"
24325 rm -f core conftest.err conftest.$ac_objext \
24326 conftest$ac_exeext conftest.$ac_ext
24327 if test "X$thread_CFLAGS" != Xfailed; then
24331 CFLAGS="$chktls_save_CFLAGS"
24332 if test "X$thread_CFLAGS" != Xfailed; then
24333 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24334 if test "$cross_compiling" = yes; then :
24335 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24337 as_fn_error "cannot run test program while cross compiling
24338 See \`config.log' for more details." "$LINENO" 5; }
24340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24341 /* end confdefs.h. */
24342 #include <pthread.h>
24344 static int *a_in_other_thread;
24346 thread_func (void *arg)
24348 a_in_other_thread = &a;
24355 void *thread_retval;
24356 int *a_in_main_thread;
24357 if (pthread_create (&thread, (pthread_attr_t *)0,
24358 thread_func, (void *)0))
24360 a_in_main_thread = &a;
24361 if (pthread_join (thread, &thread_retval))
24363 return (a_in_other_thread == a_in_main_thread);
24368 if ac_fn_c_try_run "$LINENO"; then :
24369 gcc_cv_have_tls=yes
24373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24374 conftest.$ac_objext conftest.beam conftest.$ac_ext
24377 CFLAGS="$chktls_save_CFLAGS"
24383 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24384 conftest.$ac_objext conftest.beam conftest.$ac_ext
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24389 $as_echo "$gcc_cv_have_tls" >&6; }
24390 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24392 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24396 # For _Unwind_GetIPInfo.
24399 # Check whether --with-system-libunwind was given.
24400 if test "${with_system_libunwind+set}" = set; then :
24401 withval=$with_system_libunwind;
24404 # If system-libunwind was not specifically set, pick a default setting.
24405 if test x$with_system_libunwind = x; then
24407 ia64-*-hpux*) with_system_libunwind=yes ;;
24408 *) with_system_libunwind=no ;;
24411 # Based on system-libunwind and target, do we have ipinfo?
24412 if test x$with_system_libunwind = xyes; then
24414 ia64-*-*) have_unwind_getipinfo=no ;;
24415 *) have_unwind_getipinfo=yes ;;
24418 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24421 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24422 *) have_unwind_getipinfo=yes ;;
24427 if test x$have_unwind_getipinfo = xyes; then
24429 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24434 # See if linker supports anonymous version scripts.
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24436 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24437 if test "${libjava_cv_anon_version_script+set}" = set; then :
24438 $as_echo_n "(cached) " >&6
24440 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24441 libjava_cv_anon_version_script=no
24442 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24443 echo '{ global: globalsymb*; local: *; };' > conftest.map
24444 if test x$gcc_no_link = xyes; then
24445 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24448 /* end confdefs.h. */
24449 void globalsymbol (void) {} void localsymbol (void) {}
24458 if ac_fn_c_try_link "$LINENO"; then :
24459 libjava_cv_anon_version_script=yes
24461 rm -f core conftest.err conftest.$ac_objext \
24462 conftest$ac_exeext conftest.$ac_ext
24463 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24467 $as_echo "$libjava_cv_anon_version_script" >&6; }
24468 if test "$libjava_cv_anon_version_script" = yes; then
24469 ANONVERSCRIPT_TRUE=
24470 ANONVERSCRIPT_FALSE='#'
24472 ANONVERSCRIPT_TRUE='#'
24473 ANONVERSCRIPT_FALSE=
24477 # Check if linker supports static linking on a per library basis
24478 LD_START_STATIC_SPEC=
24479 LD_FINISH_STATIC_SPEC=
24480 if $LD --help 2>&1 | grep -q -e -call_shared ; then
24481 if $LD --help 2>&1 | grep -q -e -non_shared ; then
24482 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24483 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24489 here=`${PWDCMD-pwd}`
24492 # We get this from the environment.
24496 # Check whether --with-python-dir was given.
24497 if test "${with_python_dir+set}" = set; then :
24498 withval=$with_python_dir; with_python_dir=$withval
24504 if test "x${with_python_dir}" = "x"
24506 # Needed for installing Python modules during make install.
24507 python_mod_dir="\${prefix}/share/python"
24508 # Needed for substituting into aot-compile*
24509 python_mod_dir_expanded="${expanded_prefix}/share/python"
24511 python_mod_dir="\${prefix}${with_python_dir}"
24512 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24515 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24519 # needed for aot-compile-rpm
24523 # Check whether --enable-aot-compile-rpm was given.
24524 if test "${enable_aot_compile_rpm+set}" = set; then :
24525 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24526 yes) AOT_RPM_ENABLED=yes ;;
24527 no) AOT_RPM_ENABLED=no ;;
24528 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24535 if test "x${AOT_RPM_ENABLED}" = xyes; then
24536 INSTALL_AOT_RPM_TRUE=
24537 INSTALL_AOT_RPM_FALSE='#'
24539 INSTALL_AOT_RPM_TRUE='#'
24540 INSTALL_AOT_RPM_FALSE=
24544 # Check whether --enable-java-home was given.
24545 if test "${enable_java_home+set}" = set; then :
24546 enableval=$enable_java_home; case "${enableval}" in
24547 yes) JAVA_HOME_ENABLED=yes ;;
24548 no) JAVA_HOME_ENABLED=no ;;
24549 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24552 JAVA_HOME_ENABLED=no
24556 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24557 CREATE_JAVA_HOME_TRUE=
24558 CREATE_JAVA_HOME_FALSE='#'
24560 CREATE_JAVA_HOME_TRUE='#'
24561 CREATE_JAVA_HOME_FALSE=
24565 # Only do these checks if java-home above is enabled.
24566 if test "x${JAVA_HOME_ENABLED}" = xyes
24570 # Check whether --with-gcc-suffix was given.
24571 if test "${with_gcc_suffix+set}" = set; then :
24572 withval=$with_gcc_suffix; gcc_suffix=$withval
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24578 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24582 # Check whether --with-arch-directory was given.
24583 if test "${with_arch_directory+set}" = set; then :
24584 withval=$with_arch_directory; host_cpu=$withval
24591 # Check whether --with-os-directory was given.
24592 if test "${with_os_directory+set}" = set; then :
24593 withval=$with_os_directory; host_os=$withval
24600 # Check whether --with-origin-name was given.
24601 if test "${with_origin_name+set}" = set; then :
24602 withval=$with_origin_name; origin_name=$withval
24604 origin_name=gcj${gcc_suffix}
24607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24608 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24611 # Check whether --with-arch-suffix was given.
24612 if test "${with_arch_suffix+set}" = set; then :
24613 withval=$with_arch_suffix; arch_suffix=$withval
24618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24619 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24622 # Check whether --with-jvm-root-dir was given.
24623 if test "${with_jvm_root_dir+set}" = set; then :
24624 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24626 jvm_root_dir="\${prefix}/lib/jvm"
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24630 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24633 # Check whether --with-jvm-jar-dir was given.
24634 if test "${with_jvm_jar_dir+set}" = set; then :
24635 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24637 jvm_jar_dir=\${prefix}/lib/jvm-exports
24640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24641 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24648 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24651 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24652 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24654 JVM_ROOT_DIR=${jvm_root_dir}
24656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24657 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24659 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24662 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24664 JVM_JAR_DIR=${jvm_jar_dir}
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24667 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24678 SDK_BIN_DIR=${jvm_root_dir}/bin
24680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24681 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24683 SDK_LIB_DIR=${jvm_root_dir}/lib
24685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24686 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24688 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24691 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24693 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24696 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24698 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24701 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24703 # Find gcj prefix using gcj found in PATH.
24704 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24706 # Where do the gcj binaries live?
24707 # For jhbuild based builds, they all live in a sibling of bin called
24708 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24709 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24712 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24715 $as_echo "host is ${host}" >&6; }
24716 if test "x${host_cpu}" = "x"
24719 *-mingw* | *-cygwin*)
24721 i486-* | i586-* | i686-*)
24726 host_cpu=${host_cpu};;
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24730 $as_echo "arch directory: ${host_cpu}" >&6; }
24734 if test "x${host_os}" = "x"
24737 *-mingw* | *-cygwin*)
24742 host_os=${host_os};;
24745 echo os directory: ${host_os}
24749 # make an expanded $libdir, for substituting into
24750 # scripts (and other non-Makefile things).
24752 if test "x${exec_prefix}" = "xNONE"
24754 lib_exec_prefix=$expanded_prefix
24756 lib_exec_prefix=$exec_prefix
24758 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24762 ac_config_files="$ac_config_files Makefile libgcj.pc libgcj.spec libgcj-test.spec gcj/Makefile include/Makefile testsuite/Makefile contrib/aotcompile.py contrib/aot-compile contrib/aot-compile-rpm contrib/generate-cacerts.pl contrib/rebuild-gcj-db"
24765 if test ${multilib} = yes; then
24766 multilib_arg="--enable-multilib"
24771 ac_config_files="$ac_config_files scripts/jar"
24773 cat >confcache <<\_ACEOF
24774 # This file is a shell script that caches the results of configure
24775 # tests run on this system so they can be shared between configure
24776 # scripts and configure runs, see configure's option --config-cache.
24777 # It is not useful on other systems. If it contains results you don't
24778 # want to keep, you may remove or edit it.
24780 # config.status only pays attention to the cache file if you give it
24781 # the --recheck option to rerun configure.
24783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24785 # following values.
24789 # The following way of writing the cache mishandles newlines in values,
24790 # but we know of no workaround that is simple, portable, and efficient.
24791 # So, we kill variables containing newlines.
24792 # Ultrix sh set writes to stderr and can't be redirected directly,
24793 # and sets the high bit in the cache file unless we assign to the vars.
24795 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24796 eval ac_val=\$$ac_var
24800 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24801 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24804 _ | IFS | as_nl) ;; #(
24805 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24806 *) { eval $ac_var=; unset $ac_var;} ;;
24812 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24813 *${as_nl}ac_space=\ *)
24814 # `set' does not quote correctly, so add quotes: double-quote
24815 # substitution turns \\\\ into \\, and sed turns \\ into \.
24818 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24821 # `set' quotes correctly as required by POSIX, so do not add quotes.
24822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24831 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24833 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24835 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24836 if test -w "$cache_file"; then
24837 test "x$cache_file" != "x/dev/null" &&
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24839 $as_echo "$as_me: updating cache $cache_file" >&6;}
24840 cat confcache >$cache_file
24842 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24843 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24848 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24849 # Let make expand exec_prefix.
24850 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24852 DEFS=-DHAVE_CONFIG_H
24856 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24857 # 1. Remove the extension, and $U if already installed.
24858 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24859 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24860 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24861 # will be set to the directory where LIBOBJS objects are built.
24862 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24863 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24865 LIBOBJS=$ac_libobjs
24867 LTLIBOBJS=$ac_ltlibobjs
24870 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24871 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24874 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24875 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24878 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24879 as_fn_error "conditional \"AMDEP\" was never defined.
24880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24882 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24883 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24886 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24887 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24890 if test -n "$EXEEXT"; then
24892 am__EXEEXT_FALSE='#'
24894 am__EXEEXT_TRUE='#'
24898 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24899 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24900 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24902 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
24903 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
24904 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24906 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
24907 as_fn_error "conditional \"XLIB_AWT\" was never defined.
24908 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24910 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
24911 as_fn_error "conditional \"X_AWT\" was never defined.
24912 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24914 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24915 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24916 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24918 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24919 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24920 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24922 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
24923 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
24924 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24926 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
24927 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
24928 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24930 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
24931 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
24932 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24934 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
24935 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
24936 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24938 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
24939 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
24940 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24942 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
24943 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
24944 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24946 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
24947 as_fn_error "conditional \"INTERPRETER\" was never defined.
24948 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24950 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
24951 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
24952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24954 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
24955 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
24956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24958 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
24959 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
24960 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24962 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
24963 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
24964 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24966 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
24967 as_fn_error "conditional \"USING_NOGC\" was never defined.
24968 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24970 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
24971 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
24972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24974 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
24975 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
24976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24978 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
24979 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
24980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24982 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
24983 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
24984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24986 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
24987 as_fn_error "conditional \"USING_GCC\" was never defined.
24988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24990 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24991 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24995 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
24996 as_fn_error "conditional \"NATIVE\" was never defined.
24997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24999 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25000 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25003 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25004 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25007 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25008 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25011 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25012 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25015 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25016 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25019 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25020 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25024 : ${CONFIG_STATUS=./config.status}
25026 ac_clean_files_save=$ac_clean_files
25027 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25029 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25031 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25033 # Generated by $as_me.
25034 # Run this file to recreate the current configuration.
25035 # Compiler output produced by configure, useful for debugging
25036 # configure, is in config.log if it exists.
25039 ac_cs_recheck=false
25042 SHELL=\${CONFIG_SHELL-$SHELL}
25045 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25046 ## -------------------- ##
25047 ## M4sh Initialization. ##
25048 ## -------------------- ##
25050 # Be more Bourne compatible
25051 DUALCASE=1; export DUALCASE # for MKS sh
25052 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25055 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25056 # is contrary to our usage. Disable this feature.
25057 alias -g '${1+"$@"}'='"$@"'
25058 setopt NO_GLOB_SUBST
25060 case `(set -o) 2>/dev/null` in #(
25072 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25073 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25074 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25075 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25076 # Prefer a ksh shell builtin over an external printf program on Solaris,
25077 # but without wasting forks for bash or zsh.
25078 if test -z "$BASH_VERSION$ZSH_VERSION" \
25079 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25080 as_echo='print -r --'
25081 as_echo_n='print -rn --'
25082 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25083 as_echo='printf %s\n'
25084 as_echo_n='printf %s'
25086 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25087 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25088 as_echo_n='/usr/ucb/echo -n'
25090 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25091 as_echo_n_body='eval
25095 expr "X$arg" : "X\\(.*\\)$as_nl";
25096 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25098 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25100 export as_echo_n_body
25101 as_echo_n='sh -c $as_echo_n_body as_echo'
25103 export as_echo_body
25104 as_echo='sh -c $as_echo_body as_echo'
25107 # The user is always right.
25108 if test "${PATH_SEPARATOR+set}" != set; then
25110 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25111 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25118 # We need space, tab and new line, in precisely that order. Quoting is
25119 # there to prevent editors from complaining about space-tab.
25120 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25121 # splitting by setting IFS to empty value.)
25124 # Find who we are. Look in the path if we contain no directory separator.
25126 *[\\/]* ) as_myself=$0 ;;
25127 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25128 for as_dir in $PATH
25131 test -z "$as_dir" && as_dir=.
25132 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25138 # We did not find ourselves, most probably we were run as `sh COMMAND'
25139 # in which case we are not to be found in the path.
25140 if test "x$as_myself" = x; then
25143 if test ! -f "$as_myself"; then
25144 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25148 # Unset variables that we do not need and which cause bugs (e.g. in
25149 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25150 # suppresses any "Segmentation fault" message there. '((' could
25151 # trigger a bug in pdksh 5.2.14.
25152 for as_var in BASH_ENV ENV MAIL MAILPATH
25153 do eval test x\${$as_var+set} = xset \
25154 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25167 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25170 # as_fn_error ERROR [LINENO LOG_FD]
25171 # ---------------------------------
25172 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25173 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25174 # script with status $?, using 1 if that was 0.
25177 as_status=$?; test $as_status -eq 0 && as_status=1
25179 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25180 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25182 $as_echo "$as_me: error: $1" >&2
25183 as_fn_exit $as_status
25187 # as_fn_set_status STATUS
25188 # -----------------------
25189 # Set $? to STATUS, without forking.
25190 as_fn_set_status ()
25193 } # as_fn_set_status
25195 # as_fn_exit STATUS
25196 # -----------------
25197 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25201 as_fn_set_status $1
25207 # Portably unset VAR.
25210 { eval $1=; unset $1;}
25212 as_unset=as_fn_unset
25213 # as_fn_append VAR VALUE
25214 # ----------------------
25215 # Append the text in VALUE to the end of the definition contained in VAR. Take
25216 # advantage of any shell optimizations that allow amortized linear growth over
25217 # repeated appends, instead of the typical quadratic growth present in naive
25219 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25220 eval 'as_fn_append ()
25231 # as_fn_arith ARG...
25232 # ------------------
25233 # Perform arithmetic evaluation on the ARGs, and store the result in the
25234 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25235 # must be portable across $(()) and expr.
25236 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25237 eval 'as_fn_arith ()
25244 as_val=`expr "$@" || test $? -eq 1`
25249 if expr a : '\(a\)' >/dev/null 2>&1 &&
25250 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25256 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25257 as_basename=basename
25262 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25268 as_me=`$as_basename -- "$0" ||
25269 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25270 X"$0" : 'X\(//\)$' \| \
25271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25273 sed '/^.*\/\([^/][^/]*\)\/*$/{
25287 # Avoid depending upon Character Ranges.
25288 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25289 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25290 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25291 as_cr_digits='0123456789'
25292 as_cr_alnum=$as_cr_Letters$as_cr_digits
25294 ECHO_C= ECHO_N= ECHO_T=
25295 case `echo -n x` in #(((((
25297 case `echo 'xy\c'` in
25298 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25300 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25307 rm -f conf$$ conf$$.exe conf$$.file
25308 if test -d conf$$.dir; then
25309 rm -f conf$$.dir/conf$$.file
25312 mkdir conf$$.dir 2>/dev/null
25314 if (echo >conf$$.file) 2>/dev/null; then
25315 if ln -s conf$$.file conf$$ 2>/dev/null; then
25317 # ... but there are two gotchas:
25318 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25319 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25320 # In both cases, we have to default to `cp -p'.
25321 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25323 elif ln conf$$.file conf$$ 2>/dev/null; then
25331 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25332 rmdir conf$$.dir 2>/dev/null
25337 # Create "$as_dir" as a directory, including parents if necessary.
25342 -*) as_dir=./$as_dir;;
25344 test -d "$as_dir" || eval $as_mkdir_p || {
25348 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25349 *) as_qdir=$as_dir;;
25351 as_dirs="'$as_qdir' $as_dirs"
25352 as_dir=`$as_dirname -- "$as_dir" ||
25353 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25354 X"$as_dir" : 'X\(//\)[^/]' \| \
25355 X"$as_dir" : 'X\(//\)$' \| \
25356 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25357 $as_echo X"$as_dir" |
25358 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25362 /^X\(\/\/\)[^/].*/{
25375 test -d "$as_dir" && break
25377 test -z "$as_dirs" || eval "mkdir $as_dirs"
25378 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25382 if mkdir -p . 2>/dev/null; then
25383 as_mkdir_p='mkdir -p "$as_dir"'
25385 test -d ./-p && rmdir ./-p
25389 if test -x / >/dev/null 2>&1; then
25390 as_test_x='test -x'
25392 if ls -dL / >/dev/null 2>&1; then
25399 if test -d "$1"; then
25405 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25406 ???[sx]*):;;*)false;;esac;fi
25410 as_executable_p=$as_test_x
25412 # Sed expression to map a string onto a valid CPP name.
25413 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25415 # Sed expression to map a string onto a valid variable name.
25416 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25420 ## ----------------------------------- ##
25421 ## Main body of $CONFIG_STATUS script. ##
25422 ## ----------------------------------- ##
25424 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25427 # Save the log message, to keep $0 and so on meaningful, and to
25428 # report actual input values of CONFIG_FILES etc. instead of their
25429 # values after options handling.
25431 This file was extended by libjava $as_me version-unused, which was
25432 generated by GNU Autoconf 2.64. Invocation command line was
25434 CONFIG_FILES = $CONFIG_FILES
25435 CONFIG_HEADERS = $CONFIG_HEADERS
25436 CONFIG_LINKS = $CONFIG_LINKS
25437 CONFIG_COMMANDS = $CONFIG_COMMANDS
25440 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25445 case $ac_config_files in *"
25446 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25449 case $ac_config_headers in *"
25450 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25455 # Files that config.status was made for.
25456 config_files="$ac_config_files"
25457 config_headers="$ac_config_headers"
25458 config_links="$ac_config_links"
25459 config_commands="$ac_config_commands"
25463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25465 \`$as_me' instantiates files and other configuration actions
25466 from templates according to the current configuration. Unless the files
25467 and actions are specified as TAGs, all are instantiated by default.
25469 Usage: $0 [OPTION]... [TAG]...
25471 -h, --help print this help, then exit
25472 -V, --version print version number and configuration settings, then exit
25473 -q, --quiet, --silent
25474 do not print progress messages
25475 -d, --debug don't remove temporary files
25476 --recheck update $as_me by reconfiguring in the same conditions
25477 --file=FILE[:TEMPLATE]
25478 instantiate the configuration file FILE
25479 --header=FILE[:TEMPLATE]
25480 instantiate the configuration header FILE
25482 Configuration files:
25485 Configuration headers:
25488 Configuration links:
25491 Configuration commands:
25494 Report bugs to the package provider."
25497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25499 libjava config.status version-unused
25500 configured by $0, generated by GNU Autoconf 2.64,
25501 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25503 Copyright (C) 2009 Free Software Foundation, Inc.
25504 This config.status script is free software; the Free Software Foundation
25505 gives unlimited permission to copy, distribute and modify it."
25512 test -n "\$AWK" || AWK=awk
25515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25516 # The default lists apply if the user does not specify any file.
25522 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25523 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25534 # Handling of the options.
25535 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25537 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25538 $as_echo "$ac_cs_version"; exit ;;
25539 --debug | --debu | --deb | --de | --d | -d )
25541 --file | --fil | --fi | --f )
25544 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25546 as_fn_append CONFIG_FILES " '$ac_optarg'"
25547 ac_need_defaults=false;;
25548 --header | --heade | --head | --hea )
25551 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25553 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25554 ac_need_defaults=false;;
25556 # Conflict between --help and --header
25557 as_fn_error "ambiguous option: \`$1'
25558 Try \`$0 --help' for more information.";;
25559 --help | --hel | -h )
25560 $as_echo "$ac_cs_usage"; exit ;;
25561 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25562 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25565 # This is an error.
25566 -*) as_fn_error "unrecognized option: \`$1'
25567 Try \`$0 --help' for more information." ;;
25569 *) as_fn_append ac_config_targets " $1"
25570 ac_need_defaults=false ;;
25576 ac_configure_extra_args=
25578 if $ac_cs_silent; then
25580 ac_configure_extra_args="$ac_configure_extra_args --silent"
25584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25585 if \$ac_cs_recheck; then
25586 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25588 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25589 CONFIG_SHELL='$SHELL'
25590 export CONFIG_SHELL
25595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25599 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25600 ## Running $as_me. ##
25606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25614 with_multisubdir="$with_multisubdir"
25615 with_multisrctop="$with_multisrctop"
25616 with_target_subdir="$with_target_subdir"
25617 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25618 multi_basedir="$multi_basedir"
25619 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25622 GFORTRAN="$GFORTRAN"
25624 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25627 # The HP-UX ksh and POSIX shell print the target directory to stdout
25628 # if CDPATH is set.
25629 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25631 sed_quote_subst='$sed_quote_subst'
25632 double_quote_subst='$double_quote_subst'
25633 delay_variable_subst='$delay_variable_subst'
25634 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25635 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25636 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25637 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25638 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25639 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25640 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25641 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25642 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25643 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25644 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25645 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25646 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25647 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25648 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25649 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25650 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25651 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25652 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25653 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25654 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25655 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25656 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25657 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25658 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25659 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25660 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25661 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25662 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25663 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25664 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25665 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25666 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25667 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25668 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25669 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25670 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25671 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25672 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25673 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25674 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25675 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25676 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25677 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25678 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25679 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25680 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25681 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25682 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
25683 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25684 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25685 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25686 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25687 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25688 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25689 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25690 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25691 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25692 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25693 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25694 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25695 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25696 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25697 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25698 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25699 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25700 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25701 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25702 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25703 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25704 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25705 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25706 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25707 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25708 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25709 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25710 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25711 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25712 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25713 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25714 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25715 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25716 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25717 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25718 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25719 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25720 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25721 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25722 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25723 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25724 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25725 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25726 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25727 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25728 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25729 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25730 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25731 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25732 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25733 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25734 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25735 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25736 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25737 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25738 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25739 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25740 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25741 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25742 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25743 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25744 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25745 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25746 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25747 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25748 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25749 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25750 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25751 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25752 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25753 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25754 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25755 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25756 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25757 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25758 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25759 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25760 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25761 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25762 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25763 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25764 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25765 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25766 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25767 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25768 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25769 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25770 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25771 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25772 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25773 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25774 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25775 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25776 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25777 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25778 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25779 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25780 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25781 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25782 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25783 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25784 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25785 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25786 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25787 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25788 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25789 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25790 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25791 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25792 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25793 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25794 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25795 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25796 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25797 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25798 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25799 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25800 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25801 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25802 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25803 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25804 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25805 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25806 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25807 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25808 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25809 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25810 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25811 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25812 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25813 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25814 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25815 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25816 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25817 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25818 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25819 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25820 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25821 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25822 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25823 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25824 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25825 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25826 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25827 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25828 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25829 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25830 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25831 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25832 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25833 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25834 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25835 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25836 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25837 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25838 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25839 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25840 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25841 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25842 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25843 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25844 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25845 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
25846 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25847 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
25848 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25849 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25850 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25851 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25852 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25853 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
25854 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25855 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
25856 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25857 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
25860 LTCFLAGS='$LTCFLAGS'
25861 compiler='$compiler_DEFAULT'
25863 # A function that is used when there is no print builtin or printf.
25864 func_fallback_echo ()
25866 eval 'cat <<_LTECHO_EOF
25871 # Quote evaled strings.
25885 deplibs_check_method \
25894 lt_cv_sys_global_symbol_pipe \
25895 lt_cv_sys_global_symbol_to_cdecl \
25896 lt_cv_sys_global_symbol_to_c_name_address \
25897 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25898 lt_prog_compiler_no_builtin_flag \
25899 lt_prog_compiler_wl \
25900 lt_prog_compiler_pic \
25901 lt_prog_compiler_static \
25902 lt_cv_prog_compiler_c_o \
25910 export_dynamic_flag_spec \
25911 whole_archive_flag_spec \
25912 compiler_needs_object \
25914 allow_undefined_flag \
25915 no_undefined_flag \
25916 hardcode_libdir_flag_spec \
25917 hardcode_libdir_flag_spec_ld \
25918 hardcode_libdir_separator \
25923 variables_saved_for_relink \
25925 library_names_spec \
25927 install_override_mode \
25931 compiler_lib_search_dirs \
25936 compiler_lib_search_path \
25943 lt_prog_compiler_no_builtin_flag_CXX \
25944 lt_prog_compiler_no_builtin_flag_GCJ \
25945 lt_prog_compiler_wl_CXX \
25946 lt_prog_compiler_wl_GCJ \
25947 lt_prog_compiler_pic_CXX \
25948 lt_prog_compiler_pic_GCJ \
25949 lt_prog_compiler_static_CXX \
25950 lt_prog_compiler_static_GCJ \
25951 lt_cv_prog_compiler_c_o_CXX \
25952 lt_cv_prog_compiler_c_o_GCJ \
25953 export_dynamic_flag_spec_CXX \
25954 export_dynamic_flag_spec_GCJ \
25955 whole_archive_flag_spec_CXX \
25956 whole_archive_flag_spec_GCJ \
25957 compiler_needs_object_CXX \
25958 compiler_needs_object_GCJ \
25961 allow_undefined_flag_CXX \
25962 allow_undefined_flag_GCJ \
25963 no_undefined_flag_CXX \
25964 no_undefined_flag_GCJ \
25965 hardcode_libdir_flag_spec_CXX \
25966 hardcode_libdir_flag_spec_GCJ \
25967 hardcode_libdir_flag_spec_ld_CXX \
25968 hardcode_libdir_flag_spec_ld_GCJ \
25969 hardcode_libdir_separator_CXX \
25970 hardcode_libdir_separator_GCJ \
25971 fix_srcfile_path_CXX \
25972 fix_srcfile_path_GCJ \
25973 exclude_expsyms_CXX \
25974 exclude_expsyms_GCJ \
25975 include_expsyms_CXX \
25976 include_expsyms_GCJ \
25977 file_list_spec_CXX \
25978 file_list_spec_GCJ \
25979 compiler_lib_search_dirs_CXX \
25980 compiler_lib_search_dirs_GCJ \
25981 predep_objects_CXX \
25982 predep_objects_GCJ \
25983 postdep_objects_CXX \
25984 postdep_objects_GCJ \
25989 compiler_lib_search_path_CXX \
25990 compiler_lib_search_path_GCJ; do
25991 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25992 *[\\\\\\\`\\"\\\$]*)
25993 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25996 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26001 # Double-quote double-evaled strings.
26002 for var in reload_cmds \
26003 old_postinstall_cmds \
26004 old_postuninstall_cmds \
26006 extract_expsyms_cmds \
26007 old_archive_from_new_cmds \
26008 old_archive_from_expsyms_cmds \
26010 archive_expsym_cmds \
26012 module_expsym_cmds \
26013 export_symbols_cmds \
26016 postuninstall_cmds \
26018 sys_lib_search_path_spec \
26019 sys_lib_dlsearch_path_spec \
26022 old_archive_cmds_CXX \
26023 old_archive_cmds_GCJ \
26024 old_archive_from_new_cmds_CXX \
26025 old_archive_from_new_cmds_GCJ \
26026 old_archive_from_expsyms_cmds_CXX \
26027 old_archive_from_expsyms_cmds_GCJ \
26030 archive_expsym_cmds_CXX \
26031 archive_expsym_cmds_GCJ \
26034 module_expsym_cmds_CXX \
26035 module_expsym_cmds_GCJ \
26036 export_symbols_cmds_CXX \
26037 export_symbols_cmds_GCJ \
26039 prelink_cmds_GCJ; do
26040 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26041 *[\\\\\\\`\\"\\\$]*)
26042 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26045 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26050 ac_aux_dir='$ac_aux_dir'
26051 xsi_shell='$xsi_shell'
26052 lt_shell_append='$lt_shell_append'
26054 # See if we are running on zsh, and set the options which allow our
26055 # commands through without removal of \ escapes INIT.
26056 if test -n "\${ZSH_VERSION+set}" ; then
26057 setopt NO_GLOB_SUBST
26063 TIMESTAMP='$TIMESTAMP'
26076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26078 # Handling of arguments.
26079 for ac_config_target in $ac_config_targets
26081 case $ac_config_target in
26082 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26083 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26084 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26085 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26086 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26087 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26088 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26089 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26090 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26091 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26092 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26093 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26094 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26095 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26096 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26097 "gnu/java/security/jce/prng/natVMSecureRandom.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc" ;;
26098 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26099 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26100 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26101 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26102 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26103 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26104 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26105 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26106 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26107 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26108 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26109 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26110 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26111 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26112 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26113 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26114 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26115 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26116 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26117 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26119 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26124 # If the user did not use the arguments to specify the items to instantiate,
26125 # then the envvar interface is used. Set only those that are not.
26126 # We use the long form for the default assignment because of an extremely
26127 # bizarre bug on SunOS 4.1.3.
26128 if $ac_need_defaults; then
26129 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26130 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26131 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26132 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26135 # Have a temporary directory for convenience. Make it in the build tree
26136 # simply because there is no reason against having it here, and in addition,
26137 # creating and moving files from /tmp can sometimes cause problems.
26138 # Hook for its removal unless debugging.
26139 # Note that there is a small window in which the directory will not be cleaned:
26140 # after its creation but before its name has been assigned to `$tmp'.
26144 trap 'exit_status=$?
26145 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26147 trap 'as_fn_exit 1' 1 2 13 15
26149 # Create a (secure) tmp directory for tmp files.
26152 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26153 test -n "$tmp" && test -d "$tmp"
26156 tmp=./conf$$-$RANDOM
26157 (umask 077 && mkdir "$tmp")
26158 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26160 # Set up the scripts for CONFIG_FILES section.
26161 # No need to generate them if there are no CONFIG_FILES.
26162 # This happens for instance with `./config.status config.h'.
26163 if test -n "$CONFIG_FILES"; then
26166 ac_cr=`echo X | tr X '\015'`
26167 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26168 # But we know of no other shell where ac_cr would be empty at this
26169 # point, so we can use a bashism as a fallback.
26170 if test "x$ac_cr" = x; then
26171 eval ac_cr=\$\'\\r\'
26173 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26174 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26177 ac_cs_awk_cr=$ac_cr
26180 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26185 echo "cat >conf$$subs.awk <<_ACEOF" &&
26186 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26188 } >conf$$subs.sh ||
26189 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26190 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26192 for ac_last_try in false false false false false :; do
26193 . ./conf$$subs.sh ||
26194 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26196 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26197 if test $ac_delim_n = $ac_delim_num; then
26199 elif $ac_last_try; then
26200 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26202 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26205 rm -f conf$$subs.sh
26207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26208 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26212 s/^/S["/; s/!.*/"]=/
26222 s/\(.\{148\}\).*/\1/
26224 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26229 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26236 s/\(.\{148\}\).*/\1/
26238 s/["\\]/\\&/g; s/^/"/; s/$/"/
26242 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26247 ' <conf$$subs.awk | sed '
26252 ' >>$CONFIG_STATUS || ac_write_fail=1
26253 rm -f conf$$subs.awk
26254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26256 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26257 for (key in S) S_is_set[key] = 1
26263 nfields = split(line, field, "@")
26265 len = length(field[1])
26266 for (i = 2; i < nfields; i++) {
26268 keylen = length(key)
26269 if (S_is_set[key]) {
26271 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26272 len += length(value) + length(field[++i])
26283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26284 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26285 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26288 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26289 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26292 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26293 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26294 # trailing colons and then remove the whole line if VPATH becomes empty
26295 # (actually we leave an empty line to preserve line numbers).
26296 if test "x$srcdir" = x.; then
26297 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26298 s/:*\$(srcdir):*/:/
26299 s/:*\${srcdir}:*/:/
26301 s/^\([^=]*=[ ]*\):*/\1/
26307 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26308 fi # test -n "$CONFIG_FILES"
26310 # Set up the scripts for CONFIG_HEADERS section.
26311 # No need to generate them if there are no CONFIG_HEADERS.
26312 # This happens for instance with `./config.status Makefile'.
26313 if test -n "$CONFIG_HEADERS"; then
26314 cat >"$tmp/defines.awk" <<\_ACAWK ||
26318 # Transform confdefs.h into an awk script `defines.awk', embedded as
26319 # here-document in config.status, that substitutes the proper values into
26320 # config.h.in to produce config.h.
26322 # Create a delimiter string that does not exist in confdefs.h, to ease
26323 # handling of long lines.
26325 for ac_last_try in false false :; do
26326 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26327 if test -z "$ac_t"; then
26329 elif $ac_last_try; then
26330 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26336 # For the awk script, D is an array of macro values keyed by name,
26337 # likewise P contains macro parameters if any. Preserve backslash
26338 # newline sequences.
26340 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26342 s/.\{148\}/&'"$ac_delim"'/g
26345 s/^[ ]*#[ ]*define[ ][ ]*/ /
26352 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26354 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26358 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26359 D["\1"]=" \3\\\\\\n"\\/p
26361 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26366 s/.\{148\}/&'"$ac_delim"'/g
26371 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26374 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26376 ' <confdefs.h | sed '
26377 s/'"$ac_delim"'/"\\\
26378 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26380 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26381 for (key in D) D_is_set[key] = 1
26384 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26386 split(line, arg, " ")
26387 if (arg[1] == "#") {
26391 defundef = substr(arg[1], 2)
26394 split(mac1, mac2, "(") #)
26396 prefix = substr(line, 1, index(line, defundef) - 1)
26397 if (D_is_set[macro]) {
26398 # Preserve the white space surrounding the "#".
26399 print prefix "define", macro P[macro] D[macro]
26402 # Replace #undef with comments. This is necessary, for example,
26403 # in the case of _POSIX_SOURCE, which is predefined and required
26404 # on some systems where configure will not decide to define it.
26405 if (defundef == "undef") {
26406 print "/*", prefix defundef, macro, "*/"
26414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26415 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26416 fi # test -n "$CONFIG_HEADERS"
26419 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26424 :[FHLC]) ac_mode=$ac_tag; continue;;
26426 case $ac_mode$ac_tag in
26428 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26429 :[FH]-) ac_tag=-:-;;
26430 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26447 -) ac_f="$tmp/stdin";;
26448 *) # Look for the file first in the build tree, then in the source tree
26449 # (if the path is not absolute). The absolute path cannot be DOS-style,
26450 # because $ac_f cannot contain `:'.
26454 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26456 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26458 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26459 as_fn_append ac_file_inputs " '$ac_f'"
26462 # Let's still pretend it is `configure' which instantiates (i.e., don't
26463 # use $as_me), people would be surprised to read:
26464 # /* config.h. Generated by config.status. */
26465 configure_input='Generated from '`
26466 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26468 if test x"$ac_file" != x-; then
26469 configure_input="$ac_file. $configure_input"
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26471 $as_echo "$as_me: creating $ac_file" >&6;}
26473 # Neutralize special characters interpreted by sed in replacement strings.
26474 case $configure_input in #(
26475 *\&* | *\|* | *\\* )
26476 ac_sed_conf_input=`$as_echo "$configure_input" |
26477 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26478 *) ac_sed_conf_input=$configure_input;;
26482 *:-:* | *:-) cat >"$tmp/stdin" \
26483 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26488 ac_dir=`$as_dirname -- "$ac_file" ||
26489 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26490 X"$ac_file" : 'X\(//\)[^/]' \| \
26491 X"$ac_file" : 'X\(//\)$' \| \
26492 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26493 $as_echo X"$ac_file" |
26494 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26498 /^X\(\/\/\)[^/].*/{
26511 as_dir="$ac_dir"; as_fn_mkdir_p
26515 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26517 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26518 # A ".." for each directory in $ac_dir_suffix.
26519 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26520 case $ac_top_builddir_sub in
26521 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26522 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26525 ac_abs_top_builddir=$ac_pwd
26526 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26527 # for backward compatibility:
26528 ac_top_builddir=$ac_top_build_prefix
26531 .) # We are building in place.
26533 ac_top_srcdir=$ac_top_builddir_sub
26534 ac_abs_top_srcdir=$ac_pwd ;;
26535 [\\/]* | ?:[\\/]* ) # Absolute name.
26536 ac_srcdir=$srcdir$ac_dir_suffix;
26537 ac_top_srcdir=$srcdir
26538 ac_abs_top_srcdir=$srcdir ;;
26539 *) # Relative name.
26540 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26541 ac_top_srcdir=$ac_top_build_prefix$srcdir
26542 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26544 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26554 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26555 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26557 ac_MKDIR_P=$MKDIR_P
26559 [\\/$]* | ?:[\\/]* ) ;;
26560 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26564 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26565 # If the template does not know about datarootdir, expand it.
26566 # FIXME: This hack should be removed a few years after 2.60.
26567 ac_datarootdir_hack=; ac_datarootdir_seen=
26578 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26579 *datarootdir*) ac_datarootdir_seen=yes;;
26580 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26582 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26584 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26585 ac_datarootdir_hack='
26586 s&@datadir@&$datadir&g
26587 s&@docdir@&$docdir&g
26588 s&@infodir@&$infodir&g
26589 s&@localedir@&$localedir&g
26590 s&@mandir@&$mandir&g
26591 s&\\\${datarootdir}&$datarootdir&g' ;;
26595 # Neutralize VPATH when `$srcdir' = `.'.
26596 # Shell code in configure.ac might set extrasub.
26597 # FIXME: do we really want to maintain this feature?
26598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26599 ac_sed_extra="$ac_vpsub
26602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26604 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26605 s|@configure_input@|$ac_sed_conf_input|;t t
26606 s&@top_builddir@&$ac_top_builddir_sub&;t t
26607 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26608 s&@srcdir@&$ac_srcdir&;t t
26609 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26610 s&@top_srcdir@&$ac_top_srcdir&;t t
26611 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26612 s&@builddir@&$ac_builddir&;t t
26613 s&@abs_builddir@&$ac_abs_builddir&;t t
26614 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26615 s&@INSTALL@&$ac_INSTALL&;t t
26616 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26617 $ac_datarootdir_hack
26619 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26620 || as_fn_error "could not create $ac_file" "$LINENO" 5
26622 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26623 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26624 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26626 which seems to be undefined. Please make sure it is defined." >&5
26627 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26628 which seems to be undefined. Please make sure it is defined." >&2;}
26632 -) cat "$tmp/out" && rm -f "$tmp/out";;
26633 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26635 || as_fn_error "could not create $ac_file" "$LINENO" 5
26641 if test x"$ac_file" != x-; then
26643 $as_echo "/* $configure_input */" \
26644 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26645 } >"$tmp/config.h" \
26646 || as_fn_error "could not create $ac_file" "$LINENO" 5
26647 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26649 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26652 mv "$tmp/config.h" "$ac_file" \
26653 || as_fn_error "could not create $ac_file" "$LINENO" 5
26656 $as_echo "/* $configure_input */" \
26657 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26658 || as_fn_error "could not create -" "$LINENO" 5
26660 # Compute "$ac_file"'s index in $config_headers.
26663 for _am_header in $config_headers :; do
26664 case $_am_header in
26665 $_am_arg | $_am_arg:* )
26668 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26671 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26672 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26673 X"$_am_arg" : 'X\(//\)[^/]' \| \
26674 X"$_am_arg" : 'X\(//\)$' \| \
26675 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26676 $as_echo X"$_am_arg" |
26677 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26681 /^X\(\/\/\)[^/].*/{
26693 s/.*/./; q'`/stamp-h$_am_stamp_count
26700 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26703 # Prefer the file from the source tree if names are identical.
26704 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26705 ac_source=$srcdir/$ac_source
26708 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26709 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26711 if test ! -r "$ac_source"; then
26712 as_fn_error "$ac_source: file not found" "$LINENO" 5
26716 # Try a relative symlink, then a hard link, then a copy.
26718 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26719 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26721 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26722 ln "$ac_source" "$ac_file" 2>/dev/null ||
26723 cp -p "$ac_source" "$ac_file" ||
26724 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26727 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26728 $as_echo "$as_me: executing $ac_file commands" >&6;}
26733 case $ac_file$ac_mode in
26735 # Only add multilib support code if we just rebuilt the top-level
26737 case " $CONFIG_FILES " in
26739 ac_file=Makefile . ${multi_basedir}/config-ml.in
26742 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26743 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26744 # are listed without --file. Let's play safe and only enable the eval
26745 # if we detect the quoting.
26746 case $CONFIG_FILES in
26747 *\'*) eval set x "$CONFIG_FILES" ;;
26748 *) set x $CONFIG_FILES ;;
26753 # Strip MF so we end up with the name of the file.
26754 mf=`echo "$mf" | sed -e 's/:.*$//'`
26755 # Check whether this is an Automake generated Makefile or not.
26756 # We used to match only the files named `Makefile.in', but
26757 # some people rename them; so instead we look at the file content.
26758 # Grep'ing the first line is not enough: some people post-process
26759 # each Makefile.in and add a new line on top of each file to say so.
26760 # Grep'ing the whole file is not good either: AIX grep has a line
26761 # limit of 2048, but all sed's we know have understand at least 4000.
26762 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26763 dirpart=`$as_dirname -- "$mf" ||
26764 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26765 X"$mf" : 'X\(//\)[^/]' \| \
26766 X"$mf" : 'X\(//\)$' \| \
26767 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26773 /^X\(\/\/\)[^/].*/{
26789 # Extract the definition of DEPDIR, am__include, and am__quote
26790 # from the Makefile without running `make'.
26791 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26792 test -z "$DEPDIR" && continue
26793 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26794 test -z "am__include" && continue
26795 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26796 # When using ansi2knr, U may be empty or an underscore; expand it
26797 U=`sed -n 's/^U = //p' < "$mf"`
26798 # Find all dependency output files, they are included files with
26799 # $(DEPDIR) in their names. We invoke sed twice because it is the
26800 # simplest approach to changing $(DEPDIR) to its actual value in the
26802 for file in `sed -n "
26803 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26804 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26805 # Make sure the directory exists.
26806 test -f "$dirpart/$file" && continue
26807 fdir=`$as_dirname -- "$file" ||
26808 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26809 X"$file" : 'X\(//\)[^/]' \| \
26810 X"$file" : 'X\(//\)$' \| \
26811 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26812 $as_echo X"$file" |
26813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26817 /^X\(\/\/\)[^/].*/{
26830 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26831 # echo "creating $dirpart/$file"
26832 echo '# dummy' > "$dirpart/$file"
26839 # See if we are running on zsh, and set the options which allow our
26840 # commands through without removal of \ escapes.
26841 if test -n "${ZSH_VERSION+set}" ; then
26842 setopt NO_GLOB_SUBST
26845 cfgfile="${ofile}T"
26846 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26849 cat <<_LT_EOF >> "$cfgfile"
26852 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26853 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26855 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26857 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26858 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26859 # Written by Gordon Matzigkeit, 1996
26861 # This file is part of GNU Libtool.
26863 # GNU Libtool is free software; you can redistribute it and/or
26864 # modify it under the terms of the GNU General Public License as
26865 # published by the Free Software Foundation; either version 2 of
26866 # the License, or (at your option) any later version.
26868 # As a special exception to the GNU General Public License,
26869 # if you distribute this file as part of a program or library that
26870 # is built using GNU Libtool, you may include this file under the
26871 # same distribution terms that you use for the rest of that program.
26873 # GNU Libtool is distributed in the hope that it will be useful,
26874 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26875 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26876 # GNU General Public License for more details.
26878 # You should have received a copy of the GNU General Public License
26879 # along with GNU Libtool; see the file COPYING. If not, a copy
26880 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26881 # obtained by writing to the Free Software Foundation, Inc.,
26882 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26885 # The names of the tagged configurations supported by this script.
26886 available_tags="CXX GCJ "
26888 # ### BEGIN LIBTOOL CONFIG
26890 # Which release of libtool.m4 was used?
26891 macro_version=$macro_version
26892 macro_revision=$macro_revision
26894 # Whether or not to build shared libraries.
26895 build_libtool_libs=$enable_shared
26897 # Whether or not to build static libraries.
26898 build_old_libs=$enable_static
26900 # What type of objects to build.
26903 # Whether or not to optimize for fast installation.
26904 fast_install=$enable_fast_install
26906 # Shell to use when invoking shell scripts.
26909 # An echo program that protects backslashes.
26913 host_alias=$host_alias
26917 # The build system.
26918 build_alias=$build_alias
26922 # A sed program that does not truncate output.
26925 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26926 Xsed="\$SED -e 1s/^X//"
26928 # A grep program that handles long lines.
26934 # A literal string matcher.
26937 # A BSD- or MS-compatible name lister.
26940 # Whether we need soft or hard links.
26943 # What is the maximum length of a command?
26944 max_cmd_len=$max_cmd_len
26946 # Object file suffix (normally "o").
26949 # Executable file suffix (normally "").
26952 # whether the shell understands "unset".
26955 # turn spaces into newlines.
26958 # turn newlines into spaces.
26961 # An object symbol dumper.
26962 OBJDUMP=$lt_OBJDUMP
26964 # Method to check whether dependent libraries are shared objects.
26965 deplibs_check_method=$lt_deplibs_check_method
26967 # Command to use when deplibs_check_method == "file_magic".
26968 file_magic_cmd=$lt_file_magic_cmd
26972 AR_FLAGS=$lt_AR_FLAGS
26974 # A symbol stripping program.
26977 # Commands used to install an old-style archive.
26979 old_postinstall_cmds=$lt_old_postinstall_cmds
26980 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26982 # Whether to use a lock for old archive extraction.
26983 lock_old_archive_extraction=$lock_old_archive_extraction
26988 # LTCC compiler flags.
26989 LTCFLAGS=$lt_CFLAGS
26991 # Take the output of nm and produce a listing of raw symbols and C names.
26992 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26994 # Transform the output of nm in a proper C declaration.
26995 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26997 # Transform the output of nm in a C name address pair.
26998 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27000 # Transform the output of nm in a C name address pair when lib prefix is needed.
27001 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27003 # The name of the directory that contains temporary libtool files.
27006 # Used to examine libraries when file_magic_cmd begins with "file".
27007 MAGIC_CMD=$MAGIC_CMD
27009 # Must we lock files when doing compilation?
27010 need_locks=$lt_need_locks
27012 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27013 DSYMUTIL=$lt_DSYMUTIL
27015 # Tool to change global to local symbols on Mac OS X.
27018 # Tool to manipulate fat objects and archives on Mac OS X.
27021 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27024 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27025 OTOOL64=$lt_OTOOL64
27027 # Old archive suffix (normally "a").
27030 # Shared library suffix (normally ".so").
27031 shrext_cmds=$lt_shrext_cmds
27033 # The commands to extract the exported symbol list from a shared archive.
27034 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27036 # Variables whose values should be saved in libtool wrapper scripts and
27037 # restored at link time.
27038 variables_saved_for_relink=$lt_variables_saved_for_relink
27040 # Do we need the "lib" prefix for modules?
27041 need_lib_prefix=$need_lib_prefix
27043 # Do we need a version for libraries?
27044 need_version=$need_version
27046 # Library versioning type.
27047 version_type=$version_type
27049 # Shared library runtime path variable.
27050 runpath_var=$runpath_var
27052 # Shared library path variable.
27053 shlibpath_var=$shlibpath_var
27055 # Is shlibpath searched before the hard-coded library search path?
27056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27058 # Format of library name prefix.
27059 libname_spec=$lt_libname_spec
27061 # List of archive names. First name is the real one, the rest are links.
27062 # The last name is the one that the linker finds with -lNAME
27063 library_names_spec=$lt_library_names_spec
27065 # The coded name of the library, if different from the real name.
27066 soname_spec=$lt_soname_spec
27068 # Permission mode override for installation of shared libraries.
27069 install_override_mode=$lt_install_override_mode
27071 # Command to use after installation of a shared archive.
27072 postinstall_cmds=$lt_postinstall_cmds
27074 # Command to use after uninstallation of a shared archive.
27075 postuninstall_cmds=$lt_postuninstall_cmds
27077 # Commands used to finish a libtool library installation in a directory.
27078 finish_cmds=$lt_finish_cmds
27080 # As "finish_cmds", except a single script fragment to be evaled but
27082 finish_eval=$lt_finish_eval
27084 # Whether we should hardcode library paths into libraries.
27085 hardcode_into_libs=$hardcode_into_libs
27087 # Compile-time system search path for libraries.
27088 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27090 # Run-time system search path for libraries.
27091 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27093 # Whether dlopen is supported.
27094 dlopen_support=$enable_dlopen
27096 # Whether dlopen of programs is supported.
27097 dlopen_self=$enable_dlopen_self
27099 # Whether dlopen of statically linked programs is supported.
27100 dlopen_self_static=$enable_dlopen_self_static
27102 # Commands to strip libraries.
27103 old_striplib=$lt_old_striplib
27104 striplib=$lt_striplib
27107 # The linker used to build libraries.
27110 # How to create reloadable object files.
27111 reload_flag=$lt_reload_flag
27112 reload_cmds=$lt_reload_cmds
27114 # Commands used to build an old-style archive.
27115 old_archive_cmds=$lt_old_archive_cmds
27117 # A language specific compiler.
27120 # Is the compiler the GNU compiler?
27123 # Compiler flag to turn off builtin functions.
27124 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27126 # How to pass a linker flag through the compiler.
27127 wl=$lt_lt_prog_compiler_wl
27129 # Additional compiler flags for building library objects.
27130 pic_flag=$lt_lt_prog_compiler_pic
27132 # Compiler flag to prevent dynamic linking.
27133 link_static_flag=$lt_lt_prog_compiler_static
27135 # Does compiler simultaneously support -c and -o options?
27136 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27138 # Whether or not to add -lc for building shared libraries.
27139 build_libtool_need_lc=$archive_cmds_need_lc
27141 # Whether or not to disallow shared libs when runtime libs are static.
27142 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27144 # Compiler flag to allow reflexive dlopens.
27145 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27147 # Compiler flag to generate shared objects directly from archives.
27148 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27150 # Whether the compiler copes with passing no objects directly.
27151 compiler_needs_object=$lt_compiler_needs_object
27153 # Create an old-style archive from a shared archive.
27154 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27156 # Create a temporary old-style archive to link instead of a shared archive.
27157 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27159 # Commands used to build a shared archive.
27160 archive_cmds=$lt_archive_cmds
27161 archive_expsym_cmds=$lt_archive_expsym_cmds
27163 # Commands used to build a loadable module if different from building
27164 # a shared archive.
27165 module_cmds=$lt_module_cmds
27166 module_expsym_cmds=$lt_module_expsym_cmds
27168 # Whether we are building with GNU ld or not.
27169 with_gnu_ld=$lt_with_gnu_ld
27171 # Flag that allows shared libraries with undefined symbols to be built.
27172 allow_undefined_flag=$lt_allow_undefined_flag
27174 # Flag that enforces no undefined symbols.
27175 no_undefined_flag=$lt_no_undefined_flag
27177 # Flag to hardcode \$libdir into a binary during linking.
27178 # This must work even if \$libdir does not exist
27179 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27181 # If ld is used when linking, flag to hardcode \$libdir into a binary
27182 # during linking. This must work even if \$libdir does not exist.
27183 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27185 # Whether we need a single "-rpath" flag with a separated argument.
27186 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27188 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27189 # DIR into the resulting binary.
27190 hardcode_direct=$hardcode_direct
27192 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27193 # DIR into the resulting binary and the resulting library dependency is
27194 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27195 # library is relocated.
27196 hardcode_direct_absolute=$hardcode_direct_absolute
27198 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27199 # into the resulting binary.
27200 hardcode_minus_L=$hardcode_minus_L
27202 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27203 # into the resulting binary.
27204 hardcode_shlibpath_var=$hardcode_shlibpath_var
27206 # Set to "yes" if building a shared library automatically hardcodes DIR
27207 # into the library and all subsequent libraries and executables linked
27209 hardcode_automatic=$hardcode_automatic
27211 # Set to yes if linker adds runtime paths of dependent libraries
27212 # to runtime path list.
27213 inherit_rpath=$inherit_rpath
27215 # Whether libtool must link a program against all its dependency libraries.
27216 link_all_deplibs=$link_all_deplibs
27218 # Fix the shell variable \$srcfile for the compiler.
27219 fix_srcfile_path=$lt_fix_srcfile_path
27221 # Set to "yes" if exported symbols are required.
27222 always_export_symbols=$always_export_symbols
27224 # The commands to list exported symbols.
27225 export_symbols_cmds=$lt_export_symbols_cmds
27227 # Symbols that should not be listed in the preloaded symbols.
27228 exclude_expsyms=$lt_exclude_expsyms
27230 # Symbols that must always be exported.
27231 include_expsyms=$lt_include_expsyms
27233 # Commands necessary for linking programs (against libraries) with templates.
27234 prelink_cmds=$lt_prelink_cmds
27236 # Specify filename containing input files.
27237 file_list_spec=$lt_file_list_spec
27239 # How to hardcode a shared library path into an executable.
27240 hardcode_action=$hardcode_action
27242 # The directories searched by this compiler when creating a shared library.
27243 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27245 # Dependencies to place before and after the objects being linked to
27246 # create a shared library.
27247 predep_objects=$lt_predep_objects
27248 postdep_objects=$lt_postdep_objects
27249 predeps=$lt_predeps
27250 postdeps=$lt_postdeps
27252 # The library search path used internally by the compiler when linking
27253 # a shared library.
27254 compiler_lib_search_path=$lt_compiler_lib_search_path
27256 # ### END LIBTOOL CONFIG
27262 cat <<\_LT_EOF >> "$cfgfile"
27263 # AIX sometimes has problems with the GCC collect2 program. For some
27264 # reason, if we set the COLLECT_NAMES environment variable, the problems
27265 # vanish in a puff of smoke.
27266 if test "X${COLLECT_NAMES+set}" != Xset; then
27268 export COLLECT_NAMES
27275 ltmain="$ac_aux_dir/ltmain.sh"
27278 # We use sed instead of cat because bash on DJGPP gets confused if
27279 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27280 # text mode, it properly converts lines to CR/LF. This bash problem
27281 # is reportedly fixed, but why not run on old versions too?
27282 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27283 || (rm -f "$cfgfile"; exit 1)
27287 cat << \_LT_EOF >> "$cfgfile"
27289 # func_dirname file append nondir_replacement
27290 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27291 # otherwise set result to NONDIR_REPLACEMENT.
27295 */*) func_dirname_result="${1%/*}${2}" ;;
27296 * ) func_dirname_result="${3}" ;;
27300 # func_basename file
27303 func_basename_result="${1##*/}"
27306 # func_dirname_and_basename file append nondir_replacement
27307 # perform func_basename and func_dirname in a single function
27309 # dirname: Compute the dirname of FILE. If nonempty,
27310 # add APPEND to the result, otherwise set result
27311 # to NONDIR_REPLACEMENT.
27312 # value returned in "$func_dirname_result"
27313 # basename: Compute filename of FILE.
27314 # value retuned in "$func_basename_result"
27315 # Implementation must be kept synchronized with func_dirname
27316 # and func_basename. For efficiency, we do not delegate to
27317 # those functions but instead duplicate the functionality here.
27318 func_dirname_and_basename ()
27321 */*) func_dirname_result="${1%/*}${2}" ;;
27322 * ) func_dirname_result="${3}" ;;
27324 func_basename_result="${1##*/}"
27327 # func_stripname prefix suffix name
27328 # strip PREFIX and SUFFIX off of NAME.
27329 # PREFIX and SUFFIX must not contain globbing or regex special
27330 # characters, hashes, percent signs, but SUFFIX may contain a leading
27331 # dot (in which case that matches only a dot).
27334 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27335 # positional parameters, so assign one to ordinary parameter first.
27336 func_stripname_result=${3}
27337 func_stripname_result=${func_stripname_result#"${1}"}
27338 func_stripname_result=${func_stripname_result%"${2}"}
27344 func_opt_split_opt=${1%%=*}
27345 func_opt_split_arg=${1#*=}
27352 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27353 *) func_lo2o_result=${1} ;;
27357 # func_xform libobj-or-source
27360 func_xform_result=${1%.*}.lo
27363 # func_arith arithmetic-term...
27366 func_arith_result=$(( $* ))
27370 # STRING may not start with a hyphen.
27373 func_len_result=${#1}
27378 *) # Bourne compatible functions.
27379 cat << \_LT_EOF >> "$cfgfile"
27381 # func_dirname file append nondir_replacement
27382 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27383 # otherwise set result to NONDIR_REPLACEMENT.
27386 # Extract subdirectory from the argument.
27387 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27388 if test "X$func_dirname_result" = "X${1}"; then
27389 func_dirname_result="${3}"
27391 func_dirname_result="$func_dirname_result${2}"
27395 # func_basename file
27398 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27402 # func_stripname prefix suffix name
27403 # strip PREFIX and SUFFIX off of NAME.
27404 # PREFIX and SUFFIX must not contain globbing or regex special
27405 # characters, hashes, percent signs, but SUFFIX may contain a leading
27406 # dot (in which case that matches only a dot).
27407 # func_strip_suffix prefix name
27411 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27412 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27417 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27418 my_sed_long_arg='1s/^-[^=]*=//'
27423 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27424 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27430 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27433 # func_xform libobj-or-source
27436 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27439 # func_arith arithmetic-term...
27442 func_arith_result=`expr "$@"`
27446 # STRING may not start with a hyphen.
27449 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27455 case $lt_shell_append in
27457 cat << \_LT_EOF >> "$cfgfile"
27459 # func_append var value
27460 # Append VALUE to the end of shell variable VAR.
27468 cat << \_LT_EOF >> "$cfgfile"
27470 # func_append var value
27471 # Append VALUE to the end of shell variable VAR.
27482 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27483 || (rm -f "$cfgfile"; exit 1)
27485 mv -f "$cfgfile" "$ofile" ||
27486 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27490 cat <<_LT_EOF >> "$ofile"
27492 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27494 # The linker used to build libraries.
27497 # How to create reloadable object files.
27498 reload_flag=$lt_reload_flag_CXX
27499 reload_cmds=$lt_reload_cmds_CXX
27501 # Commands used to build an old-style archive.
27502 old_archive_cmds=$lt_old_archive_cmds_CXX
27504 # A language specific compiler.
27505 CC=$lt_compiler_CXX
27507 # Is the compiler the GNU compiler?
27510 # Compiler flag to turn off builtin functions.
27511 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27513 # How to pass a linker flag through the compiler.
27514 wl=$lt_lt_prog_compiler_wl_CXX
27516 # Additional compiler flags for building library objects.
27517 pic_flag=$lt_lt_prog_compiler_pic_CXX
27519 # Compiler flag to prevent dynamic linking.
27520 link_static_flag=$lt_lt_prog_compiler_static_CXX
27522 # Does compiler simultaneously support -c and -o options?
27523 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27525 # Whether or not to add -lc for building shared libraries.
27526 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27528 # Whether or not to disallow shared libs when runtime libs are static.
27529 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27531 # Compiler flag to allow reflexive dlopens.
27532 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27534 # Compiler flag to generate shared objects directly from archives.
27535 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27537 # Whether the compiler copes with passing no objects directly.
27538 compiler_needs_object=$lt_compiler_needs_object_CXX
27540 # Create an old-style archive from a shared archive.
27541 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27543 # Create a temporary old-style archive to link instead of a shared archive.
27544 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27546 # Commands used to build a shared archive.
27547 archive_cmds=$lt_archive_cmds_CXX
27548 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27550 # Commands used to build a loadable module if different from building
27551 # a shared archive.
27552 module_cmds=$lt_module_cmds_CXX
27553 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27555 # Whether we are building with GNU ld or not.
27556 with_gnu_ld=$lt_with_gnu_ld_CXX
27558 # Flag that allows shared libraries with undefined symbols to be built.
27559 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27561 # Flag that enforces no undefined symbols.
27562 no_undefined_flag=$lt_no_undefined_flag_CXX
27564 # Flag to hardcode \$libdir into a binary during linking.
27565 # This must work even if \$libdir does not exist
27566 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27568 # If ld is used when linking, flag to hardcode \$libdir into a binary
27569 # during linking. This must work even if \$libdir does not exist.
27570 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27572 # Whether we need a single "-rpath" flag with a separated argument.
27573 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27575 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27576 # DIR into the resulting binary.
27577 hardcode_direct=$hardcode_direct_CXX
27579 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27580 # DIR into the resulting binary and the resulting library dependency is
27581 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27582 # library is relocated.
27583 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27585 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27586 # into the resulting binary.
27587 hardcode_minus_L=$hardcode_minus_L_CXX
27589 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27590 # into the resulting binary.
27591 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27593 # Set to "yes" if building a shared library automatically hardcodes DIR
27594 # into the library and all subsequent libraries and executables linked
27596 hardcode_automatic=$hardcode_automatic_CXX
27598 # Set to yes if linker adds runtime paths of dependent libraries
27599 # to runtime path list.
27600 inherit_rpath=$inherit_rpath_CXX
27602 # Whether libtool must link a program against all its dependency libraries.
27603 link_all_deplibs=$link_all_deplibs_CXX
27605 # Fix the shell variable \$srcfile for the compiler.
27606 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27608 # Set to "yes" if exported symbols are required.
27609 always_export_symbols=$always_export_symbols_CXX
27611 # The commands to list exported symbols.
27612 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27614 # Symbols that should not be listed in the preloaded symbols.
27615 exclude_expsyms=$lt_exclude_expsyms_CXX
27617 # Symbols that must always be exported.
27618 include_expsyms=$lt_include_expsyms_CXX
27620 # Commands necessary for linking programs (against libraries) with templates.
27621 prelink_cmds=$lt_prelink_cmds_CXX
27623 # Specify filename containing input files.
27624 file_list_spec=$lt_file_list_spec_CXX
27626 # How to hardcode a shared library path into an executable.
27627 hardcode_action=$hardcode_action_CXX
27629 # The directories searched by this compiler when creating a shared library.
27630 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27632 # Dependencies to place before and after the objects being linked to
27633 # create a shared library.
27634 predep_objects=$lt_predep_objects_CXX
27635 postdep_objects=$lt_postdep_objects_CXX
27636 predeps=$lt_predeps_CXX
27637 postdeps=$lt_postdeps_CXX
27639 # The library search path used internally by the compiler when linking
27640 # a shared library.
27641 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27643 # ### END LIBTOOL TAG CONFIG: CXX
27647 cat <<_LT_EOF >> "$ofile"
27649 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27651 # The linker used to build libraries.
27654 # How to create reloadable object files.
27655 reload_flag=$lt_reload_flag_GCJ
27656 reload_cmds=$lt_reload_cmds_GCJ
27658 # Commands used to build an old-style archive.
27659 old_archive_cmds=$lt_old_archive_cmds_GCJ
27661 # A language specific compiler.
27662 CC=$lt_compiler_GCJ
27664 # Is the compiler the GNU compiler?
27667 # Compiler flag to turn off builtin functions.
27668 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27670 # How to pass a linker flag through the compiler.
27671 wl=$lt_lt_prog_compiler_wl_GCJ
27673 # Additional compiler flags for building library objects.
27674 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27676 # Compiler flag to prevent dynamic linking.
27677 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27679 # Does compiler simultaneously support -c and -o options?
27680 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27682 # Whether or not to add -lc for building shared libraries.
27683 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27685 # Whether or not to disallow shared libs when runtime libs are static.
27686 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27688 # Compiler flag to allow reflexive dlopens.
27689 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27691 # Compiler flag to generate shared objects directly from archives.
27692 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27694 # Whether the compiler copes with passing no objects directly.
27695 compiler_needs_object=$lt_compiler_needs_object_GCJ
27697 # Create an old-style archive from a shared archive.
27698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27700 # Create a temporary old-style archive to link instead of a shared archive.
27701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27703 # Commands used to build a shared archive.
27704 archive_cmds=$lt_archive_cmds_GCJ
27705 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27707 # Commands used to build a loadable module if different from building
27708 # a shared archive.
27709 module_cmds=$lt_module_cmds_GCJ
27710 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27712 # Whether we are building with GNU ld or not.
27713 with_gnu_ld=$lt_with_gnu_ld_GCJ
27715 # Flag that allows shared libraries with undefined symbols to be built.
27716 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27718 # Flag that enforces no undefined symbols.
27719 no_undefined_flag=$lt_no_undefined_flag_GCJ
27721 # Flag to hardcode \$libdir into a binary during linking.
27722 # This must work even if \$libdir does not exist
27723 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27725 # If ld is used when linking, flag to hardcode \$libdir into a binary
27726 # during linking. This must work even if \$libdir does not exist.
27727 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27729 # Whether we need a single "-rpath" flag with a separated argument.
27730 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27732 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27733 # DIR into the resulting binary.
27734 hardcode_direct=$hardcode_direct_GCJ
27736 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27737 # DIR into the resulting binary and the resulting library dependency is
27738 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27739 # library is relocated.
27740 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27742 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27743 # into the resulting binary.
27744 hardcode_minus_L=$hardcode_minus_L_GCJ
27746 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27747 # into the resulting binary.
27748 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27750 # Set to "yes" if building a shared library automatically hardcodes DIR
27751 # into the library and all subsequent libraries and executables linked
27753 hardcode_automatic=$hardcode_automatic_GCJ
27755 # Set to yes if linker adds runtime paths of dependent libraries
27756 # to runtime path list.
27757 inherit_rpath=$inherit_rpath_GCJ
27759 # Whether libtool must link a program against all its dependency libraries.
27760 link_all_deplibs=$link_all_deplibs_GCJ
27762 # Fix the shell variable \$srcfile for the compiler.
27763 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27765 # Set to "yes" if exported symbols are required.
27766 always_export_symbols=$always_export_symbols_GCJ
27768 # The commands to list exported symbols.
27769 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27771 # Symbols that should not be listed in the preloaded symbols.
27772 exclude_expsyms=$lt_exclude_expsyms_GCJ
27774 # Symbols that must always be exported.
27775 include_expsyms=$lt_include_expsyms_GCJ
27777 # Commands necessary for linking programs (against libraries) with templates.
27778 prelink_cmds=$lt_prelink_cmds_GCJ
27780 # Specify filename containing input files.
27781 file_list_spec=$lt_file_list_spec_GCJ
27783 # How to hardcode a shared library path into an executable.
27784 hardcode_action=$hardcode_action_GCJ
27786 # The directories searched by this compiler when creating a shared library.
27787 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27789 # Dependencies to place before and after the objects being linked to
27790 # create a shared library.
27791 predep_objects=$lt_predep_objects_GCJ
27792 postdep_objects=$lt_postdep_objects_GCJ
27793 predeps=$lt_predeps_GCJ
27794 postdeps=$lt_postdeps_GCJ
27796 # The library search path used internally by the compiler when linking
27797 # a shared library.
27798 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27800 # ### END LIBTOOL TAG CONFIG: GCJ
27804 "scripts/jar":F) chmod +x scripts/jar ;;
27812 ac_clean_files=$ac_clean_files_save
27814 test $ac_write_fail = 0 ||
27815 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27818 # configure is writing to config.log, and then calls config.status.
27819 # config.status does its own redirection, appending to config.log.
27820 # Unfortunately, on DOS this fails, as config.log is still kept open
27821 # by configure, so config.status won't be able to write to it; its
27822 # output is simply discarded. So we exec the FD to /dev/null,
27823 # effectively closing config.log, so it can be properly (re)opened and
27824 # appended to by config.status. When coming back to configure, we
27825 # need to make the FD available again.
27826 if test "$no_create" != yes; then
27828 ac_config_status_args=
27829 test "$silent" = yes &&
27830 ac_config_status_args="$ac_config_status_args --quiet"
27832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27835 # would make configure fail if this is the last instruction.
27836 $ac_cs_success || as_fn_exit $?
27840 # CONFIG_SUBDIRS section.
27842 if test "$no_recursion" != yes; then
27844 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27845 # so they do not pile up.
27846 ac_sub_configure_args=
27848 eval "set x $ac_configure_args"
27852 if test -n "$ac_prev"; then
27857 -cache-file | --cache-file | --cache-fil | --cache-fi \
27858 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27859 ac_prev=cache_file ;;
27860 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27861 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27864 --config-cache | -C)
27866 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27868 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27870 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27872 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27874 --disable-option-checking)
27878 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27880 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27884 # Always prepend --prefix to ensure using the same prefix
27885 # in subdir configurations.
27886 ac_arg="--prefix=$prefix"
27888 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27890 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27893 if test "$silent" = yes; then
27894 ac_sub_configure_args="--silent $ac_sub_configure_args"
27897 # Always prepend --disable-option-checking to silence warnings, since
27898 # different subdirs can have different --enable and --with options.
27899 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27902 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27904 # Do not complain, so a configure script can configure whichever
27905 # parts of a large source tree are present.
27906 test -d "$srcdir/$ac_dir" || continue
27908 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27909 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27910 $as_echo "$ac_msg" >&6
27911 as_dir="$ac_dir"; as_fn_mkdir_p
27915 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27917 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27918 # A ".." for each directory in $ac_dir_suffix.
27919 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27920 case $ac_top_builddir_sub in
27921 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27922 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27925 ac_abs_top_builddir=$ac_pwd
27926 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27927 # for backward compatibility:
27928 ac_top_builddir=$ac_top_build_prefix
27931 .) # We are building in place.
27933 ac_top_srcdir=$ac_top_builddir_sub
27934 ac_abs_top_srcdir=$ac_pwd ;;
27935 [\\/]* | ?:[\\/]* ) # Absolute name.
27936 ac_srcdir=$srcdir$ac_dir_suffix;
27937 ac_top_srcdir=$srcdir
27938 ac_abs_top_srcdir=$srcdir ;;
27939 *) # Relative name.
27940 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27941 ac_top_srcdir=$ac_top_build_prefix$srcdir
27942 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27944 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27949 # Check for guested configure; otherwise get Cygnus style configure.
27950 if test -f "$ac_srcdir/configure.gnu"; then
27951 ac_sub_configure=$ac_srcdir/configure.gnu
27952 elif test -f "$ac_srcdir/configure"; then
27953 ac_sub_configure=$ac_srcdir/configure
27954 elif test -f "$ac_srcdir/configure.in"; then
27955 # This should be Cygnus configure.
27956 ac_sub_configure=$ac_aux_dir/configure
27958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27959 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27963 # The recursion is here.
27964 if test -n "$ac_sub_configure"; then
27965 # Make the cache file name correct relative to the subdirectory.
27966 case $cache_file in
27967 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27968 *) # Relative name.
27969 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27972 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27973 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27974 # The eval makes quoting arguments work.
27975 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27976 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27977 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27983 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27985 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}