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
172 test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 test -z "$as_dir" && as_dir=.
190 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks.
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
204 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
211 if test "x$CONFIG_SHELL" != x; then :
212 # We cannot yet assume a decent shell, so we have to provide a
213 # neutralization value for shells without unset; and this also
214 # works around shells that cannot unset nonexistent variables.
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230 $0: including any error possibly output before this
231 $0: message. Then install a modern shell, or manually run
232 $0: the script under such a shell if you do have one."
238 SHELL=${CONFIG_SHELL-/bin/sh}
240 # Unset more variables known to interfere with behavior of common tools.
241 CLICOLOR_FORCE= GREP_OPTIONS=
242 unset CLICOLOR_FORCE GREP_OPTIONS
244 ## --------------------- ##
245 ## M4sh Shell Functions. ##
246 ## --------------------- ##
249 # Portably unset VAR.
252 { eval $1=; unset $1;}
256 # as_fn_set_status STATUS
257 # -----------------------
258 # Set $? to STATUS, without forking.
266 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
276 # Create "$as_dir" as a directory, including parents if necessary.
281 -*) as_dir=./$as_dir;;
283 test -d "$as_dir" || eval $as_mkdir_p || {
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296 $as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
314 test -d "$as_dir" && break
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
321 # as_fn_append VAR VALUE
322 # ----------------------
323 # Append the text in VALUE to the end of the definition contained in VAR. Take
324 # advantage of any shell optimizations that allow amortized linear growth over
325 # repeated appends, instead of the typical quadratic growth present in naive
327 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
341 # Perform arithmetic evaluation on the ARGs, and store the result in the
342 # global $as_val. Take advantage of shells that can avoid forks. The arguments
343 # must be portable across $(()) and expr.
344 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
352 as_val=`expr "$@" || test $? -eq 1`
357 # as_fn_error ERROR [LINENO LOG_FD]
358 # ---------------------------------
359 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
360 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
361 # script with status $?, using 1 if that was 0.
364 as_status=$?; test $as_status -eq 0 && as_status=1
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
373 if expr a : '\(a\)' >/dev/null 2>&1 &&
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_me=`$as_basename -- "$0" ||
393 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
394 X"$0" : 'X\(//\)$' \| \
395 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 # Avoid depending upon Character Ranges.
412 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415 as_cr_digits='0123456789'
416 as_cr_alnum=$as_cr_Letters$as_cr_digits
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
439 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the
444 # original and so on. Autoconf is especially sensitive to this).
446 # Exit status is that of the last command.
450 ECHO_C= ECHO_N= ECHO_T=
451 case `echo -n x` in #(((((
453 case `echo 'xy\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463 rm -f conf$$ conf$$.exe conf$$.file
464 if test -d conf$$.dir; then
465 rm -f conf$$.dir/conf$$.file
468 mkdir conf$$.dir 2>/dev/null
470 if (echo >conf$$.file) 2>/dev/null; then
471 if ln -s conf$$.file conf$$ 2>/dev/null; then
473 # ... but there are two gotchas:
474 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
475 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
476 # In both cases, we have to default to `cp -p'.
477 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479 elif ln conf$$.file conf$$ 2>/dev/null; then
487 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488 rmdir conf$$.dir 2>/dev/null
490 if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"'
493 test -d ./-p && rmdir ./-p
497 if test -x / >/dev/null 2>&1; then
500 if ls -dL / >/dev/null 2>&1; then
507 if test -d "$1"; then
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
514 ???[sx]*):;;*)false;;esac;fi
518 as_executable_p=$as_test_x
520 # Sed expression to map a string onto a valid CPP name.
521 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523 # Sed expression to map a string onto a valid variable name.
524 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
528 # Check that we are running under the correct shell.
529 SHELL=${CONFIG_SHELL-/bin/sh}
533 # Remove one level of quotation (which was required for Make).
534 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
539 if test "X$1" = X--no-reexec; then
540 # Discard the --no-reexec flag, and continue.
542 elif test "X$1" = X--fallback-echo; then
543 # Avoid inline document here, it may be left over
545 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
546 # Yippee, $ECHO works!
549 # Restart under the correct shell.
550 exec $SHELL "$0" --no-reexec ${1+"$@"}
553 if test "X$1" = X--fallback-echo; then
554 # used as fallback echo
562 # The HP-UX ksh and POSIX shell print the target directory to stdout
564 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566 if test -z "$lt_ECHO"; then
567 if test "X${echo_test_string+set}" != Xset; then
568 # find a string as large as possible, as long as the shell can cope with it
569 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
570 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
571 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
572 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
580 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
581 test "X$echo_testing_string" = "X$echo_test_string"; then
584 # The Solaris, AIX, and Digital Unix default echo programs unquote
585 # backslashes. This makes it impossible to quote backslashes using
586 # echo "$something" | sed 's/\\/\\\\/g'
588 # So, first we look for a working echo in the user's PATH.
590 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
591 for dir in $PATH /usr/ucb; do
593 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
594 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
595 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
596 test "X$echo_testing_string" = "X$echo_test_string"; then
603 if test "X$ECHO" = Xecho; then
604 # We didn't find a better echo, so look for alternatives.
605 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 # This shell has a builtin print -r that does the trick.
610 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
611 test "X$CONFIG_SHELL" != X/bin/ksh; then
612 # If we have ksh, try running configure again with it.
613 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
614 export ORIGINAL_CONFIG_SHELL
615 CONFIG_SHELL=/bin/ksh
617 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
621 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
626 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
627 test "X$echo_testing_string" = 'X\t' &&
628 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632 SHELL="$CONFIG_SHELL"
634 ECHO="$CONFIG_SHELL $0 --fallback-echo"
635 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
636 test "X$echo_testing_string" = 'X\t' &&
637 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
638 test "X$echo_testing_string" = "X$echo_test_string"; then
639 ECHO="$CONFIG_SHELL $0 --fallback-echo"
641 # maybe with a smaller string...
644 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
645 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652 if test "$prev" != 'sed 50q "$0"'; then
653 echo_test_string=`eval $prev`
654 export echo_test_string
655 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657 # Oops. We lost completely, so just stick with echo.
666 # Copy echo and quote the copy suitably for passing to libtool from
667 # the Makefile, instead of quoting the original, which is used later.
669 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
670 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676 exec 7<&0 </dev/null 6>&1
679 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
680 # so uname gets run too.
681 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
686 ac_default_prefix=/usr/local
688 ac_config_libobj_dir=.
695 # Identity of this package.
696 PACKAGE_NAME='libjava'
697 PACKAGE_TARNAME='libjava'
698 PACKAGE_VERSION='version-unused'
699 PACKAGE_STRING='libjava version-unused'
703 ac_unique_file="java/lang/System.java"
704 # Factoring default headers for most tests.
705 ac_includes_default="\
707 #ifdef HAVE_SYS_TYPES_H
708 # include <sys/types.h>
710 #ifdef HAVE_SYS_STAT_H
711 # include <sys/stat.h>
717 # ifdef HAVE_STDLIB_H
722 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727 #ifdef HAVE_STRINGS_H
728 # include <strings.h>
730 #ifdef HAVE_INTTYPES_H
731 # include <inttypes.h>
740 enable_option_checking=no
741 ac_subst_vars='am__EXEEXT_FALSE
763 CREATE_JAVA_HOME_FALSE
764 CREATE_JAVA_HOME_TRUE
765 INSTALL_AOT_RPM_FALSE
768 python_mod_dir_expanded
771 LD_FINISH_STATIC_SPEC
786 INSTALL_BINARIES_FALSE
787 INSTALL_BINARIES_TRUE
788 NEEDS_DATA_START_FALSE
789 NEEDS_DATA_START_TRUE
820 USING_NO_THREADS_FALSE
821 USING_NO_THREADS_TRUE
822 USING_WIN32_THREADS_FALSE
823 USING_WIN32_THREADS_TRUE
824 USING_POSIX_THREADS_FALSE
825 USING_POSIX_THREADS_TRUE
847 extra_ldflags_libjava
856 USING_DARWIN_CRT_FALSE
857 USING_DARWIN_CRT_TRUE
858 USING_POSIX_PLATFORM_FALSE
859 USING_POSIX_PLATFORM_TRUE
860 USING_WIN32_PLATFORM_FALSE
861 USING_WIN32_PLATFORM_TRUE
868 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
869 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
870 SUPPRESS_LIBGCJ_BC_FALSE
871 SUPPRESS_LIBGCJ_BC_TRUE
875 INSTALL_ECJ_JAR_FALSE
920 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
926 MAINTAINER_MODE_FALSE
955 INSTALL_STRIP_PROGRAM
980 JAVA_MAINTAINER_MODE_FALSE
981 JAVA_MAINTAINER_MODE_TRUE
1032 program_transform_name
1045 enable_option_checking
1046 with_build_libsubdir
1051 enable_version_specific_runtime_libs
1056 enable_java_maintainer_mode
1057 enable_dependency_tracking
1058 enable_maintainer_mode
1059 enable_libgcj_sublibs
1069 enable_getenv_properties
1070 enable_hash_synchronization
1074 enable_reduced_reflection
1078 enable_sjlj_exceptions
1087 with_libiconv_prefix
1089 with_system_libunwind
1091 enable_aot_compile_rpm
1101 ac_precious_vars='build_alias
1113 ac_subdirs_all='classpath libltdl'
1115 # Initialize some variables set by options.
1117 ac_init_version=false
1118 ac_unrecognized_opts=
1119 ac_unrecognized_sep=
1120 # The variables have the same names as the options, with
1121 # dashes changed to underlines.
1122 cache_file=/dev/null
1129 program_transform_name=s,x,x,
1137 # Installation directory options.
1138 # These are left unexpanded so users can "make install exec_prefix=/foo"
1139 # and all the variables that are supposed to be based on exec_prefix
1140 # by default will actually change.
1141 # Use braces instead of parens because sh, perl, etc. also accept them.
1142 # (The list follows the same order as the GNU Coding Standards.)
1143 bindir='${exec_prefix}/bin'
1144 sbindir='${exec_prefix}/sbin'
1145 libexecdir='${exec_prefix}/libexec'
1146 datarootdir='${prefix}/share'
1147 datadir='${datarootdir}'
1148 sysconfdir='${prefix}/etc'
1149 sharedstatedir='${prefix}/com'
1150 localstatedir='${prefix}/var'
1151 includedir='${prefix}/include'
1152 oldincludedir='/usr/include'
1153 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1154 infodir='${datarootdir}/info'
1159 libdir='${exec_prefix}/lib'
1160 localedir='${datarootdir}/locale'
1161 mandir='${datarootdir}/man'
1167 # If the previous option needs an argument, assign it.
1168 if test -n "$ac_prev"; then
1169 eval $ac_prev=\$ac_option
1175 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1179 # Accept the important Cygnus configure options, so we can diagnose typos.
1181 case $ac_dashdash$ac_option in
1185 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1187 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1188 bindir=$ac_optarg ;;
1190 -build | --build | --buil | --bui | --bu)
1191 ac_prev=build_alias ;;
1192 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1193 build_alias=$ac_optarg ;;
1195 -cache-file | --cache-file | --cache-fil | --cache-fi \
1196 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1197 ac_prev=cache_file ;;
1198 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1199 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1200 cache_file=$ac_optarg ;;
1202 --config-cache | -C)
1203 cache_file=config.cache ;;
1205 -datadir | --datadir | --datadi | --datad)
1207 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1208 datadir=$ac_optarg ;;
1210 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1211 | --dataroo | --dataro | --datar)
1212 ac_prev=datarootdir ;;
1213 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1214 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1215 datarootdir=$ac_optarg ;;
1217 -disable-* | --disable-*)
1218 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1219 # Reject names that are not valid shell variable names.
1220 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1221 as_fn_error "invalid feature name: $ac_useropt"
1222 ac_useropt_orig=$ac_useropt
1223 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1224 case $ac_user_opts in
1226 "enable_$ac_useropt"
1228 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1229 ac_unrecognized_sep=', ';;
1231 eval enable_$ac_useropt=no ;;
1233 -docdir | --docdir | --docdi | --doc | --do)
1235 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1236 docdir=$ac_optarg ;;
1238 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1240 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1241 dvidir=$ac_optarg ;;
1243 -enable-* | --enable-*)
1244 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1245 # Reject names that are not valid shell variable names.
1246 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1247 as_fn_error "invalid feature name: $ac_useropt"
1248 ac_useropt_orig=$ac_useropt
1249 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1250 case $ac_user_opts in
1252 "enable_$ac_useropt"
1254 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1255 ac_unrecognized_sep=', ';;
1257 eval enable_$ac_useropt=\$ac_optarg ;;
1259 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1260 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1261 | --exec | --exe | --ex)
1262 ac_prev=exec_prefix ;;
1263 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1264 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1265 | --exec=* | --exe=* | --ex=*)
1266 exec_prefix=$ac_optarg ;;
1268 -gas | --gas | --ga | --g)
1269 # Obsolete; use --with-gas.
1272 -help | --help | --hel | --he | -h)
1273 ac_init_help=long ;;
1274 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1275 ac_init_help=recursive ;;
1276 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1277 ac_init_help=short ;;
1279 -host | --host | --hos | --ho)
1280 ac_prev=host_alias ;;
1281 -host=* | --host=* | --hos=* | --ho=*)
1282 host_alias=$ac_optarg ;;
1284 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1286 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1288 htmldir=$ac_optarg ;;
1290 -includedir | --includedir | --includedi | --included | --include \
1291 | --includ | --inclu | --incl | --inc)
1292 ac_prev=includedir ;;
1293 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1294 | --includ=* | --inclu=* | --incl=* | --inc=*)
1295 includedir=$ac_optarg ;;
1297 -infodir | --infodir | --infodi | --infod | --info | --inf)
1299 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1300 infodir=$ac_optarg ;;
1302 -libdir | --libdir | --libdi | --libd)
1304 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1305 libdir=$ac_optarg ;;
1307 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1308 | --libexe | --libex | --libe)
1309 ac_prev=libexecdir ;;
1310 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1311 | --libexe=* | --libex=* | --libe=*)
1312 libexecdir=$ac_optarg ;;
1314 -localedir | --localedir | --localedi | --localed | --locale)
1315 ac_prev=localedir ;;
1316 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1317 localedir=$ac_optarg ;;
1319 -localstatedir | --localstatedir | --localstatedi | --localstated \
1320 | --localstate | --localstat | --localsta | --localst | --locals)
1321 ac_prev=localstatedir ;;
1322 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1323 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1324 localstatedir=$ac_optarg ;;
1326 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1328 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1329 mandir=$ac_optarg ;;
1331 -nfp | --nfp | --nf)
1332 # Obsolete; use --without-fp.
1335 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1336 | --no-cr | --no-c | -n)
1339 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1340 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1343 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1344 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1345 | --oldin | --oldi | --old | --ol | --o)
1346 ac_prev=oldincludedir ;;
1347 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1348 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1349 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1350 oldincludedir=$ac_optarg ;;
1352 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1354 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1355 prefix=$ac_optarg ;;
1357 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1358 | --program-pre | --program-pr | --program-p)
1359 ac_prev=program_prefix ;;
1360 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1361 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1362 program_prefix=$ac_optarg ;;
1364 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1365 | --program-suf | --program-su | --program-s)
1366 ac_prev=program_suffix ;;
1367 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1368 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1369 program_suffix=$ac_optarg ;;
1371 -program-transform-name | --program-transform-name \
1372 | --program-transform-nam | --program-transform-na \
1373 | --program-transform-n | --program-transform- \
1374 | --program-transform | --program-transfor \
1375 | --program-transfo | --program-transf \
1376 | --program-trans | --program-tran \
1377 | --progr-tra | --program-tr | --program-t)
1378 ac_prev=program_transform_name ;;
1379 -program-transform-name=* | --program-transform-name=* \
1380 | --program-transform-nam=* | --program-transform-na=* \
1381 | --program-transform-n=* | --program-transform-=* \
1382 | --program-transform=* | --program-transfor=* \
1383 | --program-transfo=* | --program-transf=* \
1384 | --program-trans=* | --program-tran=* \
1385 | --progr-tra=* | --program-tr=* | --program-t=*)
1386 program_transform_name=$ac_optarg ;;
1388 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1390 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1391 pdfdir=$ac_optarg ;;
1393 -psdir | --psdir | --psdi | --psd | --ps)
1395 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1398 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1399 | -silent | --silent | --silen | --sile | --sil)
1402 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1404 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1406 sbindir=$ac_optarg ;;
1408 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1409 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1410 | --sharedst | --shareds | --shared | --share | --shar \
1412 ac_prev=sharedstatedir ;;
1413 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1414 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1415 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1417 sharedstatedir=$ac_optarg ;;
1419 -site | --site | --sit)
1421 -site=* | --site=* | --sit=*)
1424 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1426 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1427 srcdir=$ac_optarg ;;
1429 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1430 | --syscon | --sysco | --sysc | --sys | --sy)
1431 ac_prev=sysconfdir ;;
1432 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1433 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1434 sysconfdir=$ac_optarg ;;
1436 -target | --target | --targe | --targ | --tar | --ta | --t)
1437 ac_prev=target_alias ;;
1438 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1439 target_alias=$ac_optarg ;;
1441 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1444 -version | --version | --versio | --versi | --vers | -V)
1445 ac_init_version=: ;;
1448 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1449 # Reject names that are not valid shell variable names.
1450 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1451 as_fn_error "invalid package name: $ac_useropt"
1452 ac_useropt_orig=$ac_useropt
1453 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1454 case $ac_user_opts in
1458 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1459 ac_unrecognized_sep=', ';;
1461 eval with_$ac_useropt=\$ac_optarg ;;
1463 -without-* | --without-*)
1464 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1465 # Reject names that are not valid shell variable names.
1466 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1467 as_fn_error "invalid package name: $ac_useropt"
1468 ac_useropt_orig=$ac_useropt
1469 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1470 case $ac_user_opts in
1474 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1475 ac_unrecognized_sep=', ';;
1477 eval with_$ac_useropt=no ;;
1480 # Obsolete; use --with-x.
1483 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1484 | --x-incl | --x-inc | --x-in | --x-i)
1485 ac_prev=x_includes ;;
1486 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1487 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1488 x_includes=$ac_optarg ;;
1490 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1491 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1492 ac_prev=x_libraries ;;
1493 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1494 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1495 x_libraries=$ac_optarg ;;
1497 -*) as_fn_error "unrecognized option: \`$ac_option'
1498 Try \`$0 --help' for more information."
1502 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1503 # Reject names that are not valid shell variable names.
1504 case $ac_envvar in #(
1505 '' | [0-9]* | *[!_$as_cr_alnum]* )
1506 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1508 eval $ac_envvar=\$ac_optarg
1509 export $ac_envvar ;;
1512 # FIXME: should be removed in autoconf 3.0.
1513 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1514 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1515 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1516 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1522 if test -n "$ac_prev"; then
1523 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1524 as_fn_error "missing argument to $ac_option"
1527 if test -n "$ac_unrecognized_opts"; then
1528 case $enable_option_checking in
1530 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1531 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1535 # Check all directory arguments for consistency.
1536 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1537 datadir sysconfdir sharedstatedir localstatedir includedir \
1538 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1539 libdir localedir mandir
1541 eval ac_val=\$$ac_var
1542 # Remove trailing slashes.
1545 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1546 eval $ac_var=\$ac_val;;
1548 # Be sure to have absolute directory names.
1550 [\\/$]* | ?:[\\/]* ) continue;;
1551 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1553 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1556 # There might be people who depend on the old broken behavior: `$host'
1557 # used to hold the argument of --host etc.
1558 # FIXME: To remove some day.
1561 target=$target_alias
1563 # FIXME: To remove some day.
1564 if test "x$host_alias" != x; then
1565 if test "x$build_alias" = x; then
1566 cross_compiling=maybe
1567 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1568 If a cross compiler is detected then cross compile mode will be used." >&2
1569 elif test "x$build_alias" != "x$host_alias"; then
1575 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1577 test "$silent" = yes && exec 6>/dev/null
1580 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1581 ac_ls_di=`ls -di .` &&
1582 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1583 as_fn_error "working directory cannot be determined"
1584 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1585 as_fn_error "pwd does not report name of working directory"
1588 # Find the source files, if location was not specified.
1589 if test -z "$srcdir"; then
1590 ac_srcdir_defaulted=yes
1591 # Try the directory containing this script, then the parent directory.
1592 ac_confdir=`$as_dirname -- "$as_myself" ||
1593 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1594 X"$as_myself" : 'X\(//\)[^/]' \| \
1595 X"$as_myself" : 'X\(//\)$' \| \
1596 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1597 $as_echo X"$as_myself" |
1598 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1616 if test ! -r "$srcdir/$ac_unique_file"; then
1620 ac_srcdir_defaulted=no
1622 if test ! -r "$srcdir/$ac_unique_file"; then
1623 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1624 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1626 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1628 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1630 # When building in place, set srcdir=.
1631 if test "$ac_abs_confdir" = "$ac_pwd"; then
1634 # Remove unnecessary trailing slashes from srcdir.
1635 # Double slashes in file names in object file debugging info
1636 # mess up M-x gdb in Emacs.
1638 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1640 for ac_var in $ac_precious_vars; do
1641 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1642 eval ac_env_${ac_var}_value=\$${ac_var}
1643 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1644 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1648 # Report the --help message.
1650 if test "$ac_init_help" = "long"; then
1651 # Omit some internal or obsolete options to make the list less imposing.
1652 # This message is too long to be a string in the A/UX 3.1 sh.
1654 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1656 Usage: $0 [OPTION]... [VAR=VALUE]...
1658 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1659 VAR=VALUE. See below for descriptions of some of the useful variables.
1661 Defaults for the options are specified in brackets.
1664 -h, --help display this help and exit
1665 --help=short display options specific to this package
1666 --help=recursive display the short help of all the included packages
1667 -V, --version display version information and exit
1668 -q, --quiet, --silent do not print \`checking...' messages
1669 --cache-file=FILE cache test results in FILE [disabled]
1670 -C, --config-cache alias for \`--cache-file=config.cache'
1671 -n, --no-create do not create output files
1672 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1674 Installation directories:
1675 --prefix=PREFIX install architecture-independent files in PREFIX
1676 [$ac_default_prefix]
1677 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1680 By default, \`make install' will install all the files in
1681 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1682 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1683 for instance \`--prefix=\$HOME'.
1685 For better control, use the options below.
1687 Fine tuning of the installation directories:
1688 --bindir=DIR user executables [EPREFIX/bin]
1689 --sbindir=DIR system admin executables [EPREFIX/sbin]
1690 --libexecdir=DIR program executables [EPREFIX/libexec]
1691 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1692 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1693 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1694 --libdir=DIR object code libraries [EPREFIX/lib]
1695 --includedir=DIR C header files [PREFIX/include]
1696 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1697 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1698 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1699 --infodir=DIR info documentation [DATAROOTDIR/info]
1700 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1701 --mandir=DIR man documentation [DATAROOTDIR/man]
1702 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1703 --htmldir=DIR html documentation [DOCDIR]
1704 --dvidir=DIR dvi documentation [DOCDIR]
1705 --pdfdir=DIR pdf documentation [DOCDIR]
1706 --psdir=DIR ps documentation [DOCDIR]
1712 --program-prefix=PREFIX prepend PREFIX to installed program names
1713 --program-suffix=SUFFIX append SUFFIX to installed program names
1714 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1717 --x-includes=DIR X include files are in DIR
1718 --x-libraries=DIR X library files are in DIR
1721 --build=BUILD configure for building on BUILD [guessed]
1722 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1723 --target=TARGET configure for building compilers for TARGET [HOST]
1727 if test -n "$ac_init_help"; then
1728 case $ac_init_help in
1729 short | recursive ) echo "Configuration of libjava version-unused:";;
1734 --disable-option-checking ignore unrecognized --enable/--with options
1735 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1736 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1737 --enable-multilib build many library versions (default)
1738 --enable-version-specific-runtime-libs
1739 specify that runtime libraries should be installed
1740 in a compiler-specific directory
1741 --enable-plugin build gcjwebplugin web browser plugin
1742 --enable-gconf-peer compile GConf native peers for util.preferences
1743 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1745 --enable-java-maintainer-mode
1746 allow rebuilding of .class and .h files
1747 --disable-dependency-tracking speeds up one-time build
1748 --enable-dependency-tracking do not reject slow dependency extractors
1749 --enable-maintainer-mode enable make rules and dependencies not useful
1750 (and sometimes confusing) to the casual installer
1751 --enable-libgcj-sublibs build libgcj as many sub-libraries
1752 --enable-libgcj-debug enable runtime debugging code
1753 --enable-java-awt list of AWT peer implementations to be built
1754 --enable-shared[=PKGS] build shared libraries [default=yes]
1755 --enable-static[=PKGS] build static libraries [default=yes]
1756 --enable-fast-install[=PKGS]
1757 optimize for fast installation [default=yes]
1758 --disable-libtool-lock avoid locking (might break parallel builds)
1759 --disable-getenv-properties
1760 don't set system properties from GCJ_PROPERTIES
1761 --enable-hash-synchronization
1762 use global hash table for monitor locks
1763 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1765 --enable-reduced-reflection
1766 enable or disable(default) -freduced-reflection when
1767 building portions of libgcj
1768 --enable-gc-debug include full support for pointer backtracing etc.
1769 --enable-interpreter enable interpreter
1770 --enable-sjlj-exceptions
1771 force use of builtin_setjmp for exceptions
1772 --disable-java-net disable java.net
1773 --disable-jvmpi disable JVMPI support
1774 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1775 --disable-rpath do not hardcode runtime library paths
1776 --enable-tls Use thread-local storage [default=yes]
1777 --enable-aot-compile-rpm
1778 enable installation of aot-compile-rpm [default=no]
1779 --enable-java-home create a standard JDK-style directory layout in the
1780 install tree [default=no]
1783 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1784 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1785 --with-build-libsubdir=DIR Directory where to find libraries for build system
1786 --with-target-subdir=SUBDIR
1787 configure in a subdirectory
1788 --with-cross-host=HOST configure with a cross compiler from HOST
1789 --with-newlib configure with newlib
1790 --with-antlr-jar=file Use ANTLR from the specified jar file
1791 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1792 --with-pic try to use only PIC/non-PIC objects [default=use
1794 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1795 --with-ecj-jar=FILE use preinstalled ecj jar
1796 --with-java-home=DIRECTORY
1797 value of java.home system property
1798 --with-win32-nlsapi=ansi or unicows or unicode
1799 native MinGW libgcj Win32 OS API (default is ansi)
1800 --without-libffi don't use libffi
1801 --with-ecos enable runtime eCos target support
1802 --with-system-zlib use installed libz
1803 --with-x use the X Window System
1804 --with-gnu-ld assume the C compiler uses GNU ld default=no
1805 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1806 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1807 --with-system-libunwind use installed libunwind
1808 --with-python-dir the location to install Python modules. This path
1809 should NOT include the prefix.
1810 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1811 --with-arch-directory the arch directory under jre/lib (defaults to
1813 --with-os-directory the os directory under include (defaults to
1815 --with-origin-name the JPackage origin name of this package (default is
1817 --with-arch-suffix the arch directory suffix (default is the empty
1819 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1820 --with-jvm-jar-dir where to install jars (default is
1821 ${prefix}/lib/jvm-exports)
1823 Some influential environment variables:
1824 CC C compiler command
1825 CFLAGS C compiler flags
1826 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1827 nonstandard directory <lib dir>
1828 LIBS libraries to pass to the linker, e.g. -l<library>
1829 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1830 you have headers in a nonstandard directory <include dir>
1831 CXX C++ compiler command
1832 CXXFLAGS C++ compiler flags
1834 CXXCPP C++ preprocessor
1835 XMKMF Path to xmkmf, Makefile generator for X Window System
1837 Use these variables to override the choices made by `configure' or to help
1838 it to find libraries and programs with nonstandard names/locations.
1840 Report bugs to the package provider.
1845 if test "$ac_init_help" = "recursive"; then
1846 # If there are subdirs, report their specific --help.
1847 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1848 test -d "$ac_dir" ||
1849 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1854 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1856 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1857 # A ".." for each directory in $ac_dir_suffix.
1858 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1859 case $ac_top_builddir_sub in
1860 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1861 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1864 ac_abs_top_builddir=$ac_pwd
1865 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1866 # for backward compatibility:
1867 ac_top_builddir=$ac_top_build_prefix
1870 .) # We are building in place.
1872 ac_top_srcdir=$ac_top_builddir_sub
1873 ac_abs_top_srcdir=$ac_pwd ;;
1874 [\\/]* | ?:[\\/]* ) # Absolute name.
1875 ac_srcdir=$srcdir$ac_dir_suffix;
1876 ac_top_srcdir=$srcdir
1877 ac_abs_top_srcdir=$srcdir ;;
1879 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1880 ac_top_srcdir=$ac_top_build_prefix$srcdir
1881 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1883 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1885 cd "$ac_dir" || { ac_status=$?; continue; }
1886 # Check for guested configure.
1887 if test -f "$ac_srcdir/configure.gnu"; then
1889 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1890 elif test -f "$ac_srcdir/configure"; then
1892 $SHELL "$ac_srcdir/configure" --help=recursive
1894 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1896 cd "$ac_pwd" || { ac_status=$?; break; }
1900 test -n "$ac_init_help" && exit $ac_status
1901 if $ac_init_version; then
1903 libjava configure version-unused
1904 generated by GNU Autoconf 2.64
1906 Copyright (C) 2009 Free Software Foundation, Inc.
1907 This configure script is free software; the Free Software Foundation
1908 gives unlimited permission to copy, distribute and modify it.
1913 ## ------------------------ ##
1914 ## Autoconf initialization. ##
1915 ## ------------------------ ##
1917 # ac_fn_c_try_compile LINENO
1918 # --------------------------
1919 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_c_try_compile ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext
1924 if { { ac_try="$ac_compile"
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_compile") 2>conftest.err
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_c_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest.$ac_objext; then :
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1950 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 } # ac_fn_c_try_compile
1955 # ac_fn_cxx_try_compile LINENO
1956 # ----------------------------
1957 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_cxx_try_compile ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 rm -f conftest.$ac_objext
1962 if { { ac_try="$ac_compile"
1964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1965 *) ac_try_echo=$ac_try;;
1967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1968 $as_echo "$ac_try_echo"; } >&5
1969 (eval "$ac_compile") 2>conftest.err
1971 if test -s conftest.err; then
1972 grep -v '^ *+' conftest.err >conftest.er1
1973 cat conftest.er1 >&5
1974 mv -f conftest.er1 conftest.err
1976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1977 test $ac_status = 0; } && {
1978 test -z "$ac_cxx_werror_flag" ||
1979 test ! -s conftest.err
1980 } && test -s conftest.$ac_objext; then :
1983 $as_echo "$as_me: failed program was:" >&5
1984 sed 's/^/| /' conftest.$ac_ext >&5
1988 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991 } # ac_fn_cxx_try_compile
1993 # ac_fn_c_try_link LINENO
1994 # -----------------------
1995 # Try to link conftest.$ac_ext, and return whether this succeeded.
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 rm -f conftest.$ac_objext conftest$ac_exeext
2000 if { { ac_try="$ac_link"
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_link") 2>conftest.err
2009 if test -s conftest.err; then
2010 grep -v '^ *+' conftest.err >conftest.er1
2011 cat conftest.er1 >&5
2012 mv -f conftest.er1 conftest.err
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } && {
2016 test -z "$ac_c_werror_flag" ||
2017 test ! -s conftest.err
2018 } && test -s conftest$ac_exeext && {
2019 test "$cross_compiling" = yes ||
2020 $as_test_x conftest$ac_exeext
2024 $as_echo "$as_me: failed program was:" >&5
2025 sed 's/^/| /' conftest.$ac_ext >&5
2029 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2030 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2031 # interfere with the next link command; also delete a directory that is
2032 # left behind by Apple's compiler. We do this before executing the actions.
2033 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2034 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037 } # ac_fn_c_try_link
2039 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2040 # -------------------------------------------------------
2041 # Tests whether HEADER exists and can be compiled using the include files in
2042 # INCLUDES, setting the cache variable VAR accordingly.
2043 ac_fn_c_check_header_compile ()
2045 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2047 $as_echo_n "checking for $2... " >&6; }
2048 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2049 $as_echo_n "(cached) " >&6
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2056 if ac_fn_c_try_compile "$LINENO"; then :
2061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065 $as_echo "$ac_res" >&6; }
2066 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2068 } # ac_fn_c_check_header_compile
2070 # ac_fn_c_try_cpp LINENO
2071 # ----------------------
2072 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 if { { ac_try="$ac_cpp conftest.$ac_ext"
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2085 if test -s conftest.err; then
2086 grep -v '^ *+' conftest.err >conftest.er1
2087 cat conftest.er1 >&5
2088 mv -f conftest.er1 conftest.err
2090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091 test $ac_status = 0; } >/dev/null && {
2092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2093 test ! -s conftest.err
2097 $as_echo "$as_me: failed program was:" >&5
2098 sed 's/^/| /' conftest.$ac_ext >&5
2102 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2107 # ac_fn_c_try_run LINENO
2108 # ----------------------
2109 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2110 # that executables *can* be run.
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 if { { ac_try="$ac_link"
2116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2117 *) ac_try_echo=$ac_try;;
2119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2120 $as_echo "$ac_try_echo"; } >&5
2121 (eval "$ac_link") 2>&5
2123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2124 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2125 { { case "(($ac_try" in
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2129 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130 $as_echo "$ac_try_echo"; } >&5
2131 (eval "$ac_try") 2>&5
2133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2134 test $ac_status = 0; }; }; then :
2137 $as_echo "$as_me: program exited with status $ac_status" >&5
2138 $as_echo "$as_me: failed program was:" >&5
2139 sed 's/^/| /' conftest.$ac_ext >&5
2141 ac_retval=$ac_status
2143 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2144 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2149 # ac_fn_c_check_func LINENO FUNC VAR
2150 # ----------------------------------
2151 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2152 ac_fn_c_check_func ()
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2158 $as_echo_n "(cached) " >&6
2160 if test x$gcc_no_link = xyes; then
2161 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2165 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2167 #define $2 innocuous_$2
2169 /* System header to define __stub macros and hopefully few prototypes,
2170 which can conflict with char $2 (); below.
2171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2172 <limits.h> exists even on freestanding compilers. */
2175 # include <limits.h>
2177 # include <assert.h>
2182 /* Override any GCC internal prototype to avoid an error.
2183 Use char because int might match the return type of a GCC
2184 builtin and then its argument prototype would still apply. */
2189 /* The GNU C library defines this for functions which it implements
2190 to always fail with ENOSYS. Some functions are actually named
2191 something starting with __ and the normal name is an alias. */
2192 #if defined __stub_$2 || defined __stub___$2
2204 if ac_fn_c_try_link "$LINENO"; then :
2209 rm -f core conftest.err conftest.$ac_objext \
2210 conftest$ac_exeext conftest.$ac_ext
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 $as_echo "$ac_res" >&6; }
2215 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2217 } # ac_fn_c_check_func
2219 # ac_fn_cxx_try_cpp LINENO
2220 # ------------------------
2221 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2222 ac_fn_cxx_try_cpp ()
2224 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2225 if { { ac_try="$ac_cpp conftest.$ac_ext"
2227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2228 *) ac_try_echo=$ac_try;;
2230 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2231 $as_echo "$ac_try_echo"; } >&5
2232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2234 if test -s conftest.err; then
2235 grep -v '^ *+' conftest.err >conftest.er1
2236 cat conftest.er1 >&5
2237 mv -f conftest.er1 conftest.err
2239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2240 test $ac_status = 0; } >/dev/null && {
2241 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2242 test ! -s conftest.err
2246 $as_echo "$as_me: failed program was:" >&5
2247 sed 's/^/| /' conftest.$ac_ext >&5
2251 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254 } # ac_fn_cxx_try_cpp
2256 # ac_fn_cxx_try_link LINENO
2257 # -------------------------
2258 # Try to link conftest.$ac_ext, and return whether this succeeded.
2259 ac_fn_cxx_try_link ()
2261 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2262 rm -f conftest.$ac_objext conftest$ac_exeext
2263 if { { ac_try="$ac_link"
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269 $as_echo "$ac_try_echo"; } >&5
2270 (eval "$ac_link") 2>conftest.err
2272 if test -s conftest.err; then
2273 grep -v '^ *+' conftest.err >conftest.er1
2274 cat conftest.er1 >&5
2275 mv -f conftest.er1 conftest.err
2277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2278 test $ac_status = 0; } && {
2279 test -z "$ac_cxx_werror_flag" ||
2280 test ! -s conftest.err
2281 } && test -s conftest$ac_exeext && {
2282 test "$cross_compiling" = yes ||
2283 $as_test_x conftest$ac_exeext
2287 $as_echo "$as_me: failed program was:" >&5
2288 sed 's/^/| /' conftest.$ac_ext >&5
2292 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2293 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2294 # interfere with the next link command; also delete a directory that is
2295 # left behind by Apple's compiler. We do this before executing the actions.
2296 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2297 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2300 } # ac_fn_cxx_try_link
2302 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2303 # -------------------------------------------------------
2304 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2305 # the include files in INCLUDES and setting the cache variable VAR
2307 ac_fn_c_check_header_mongrel ()
2309 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2310 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2312 $as_echo_n "checking for $2... " >&6; }
2313 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2314 $as_echo_n "(cached) " >&6
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2318 $as_echo "$ac_res" >&6; }
2320 # Is the header compilable?
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2322 $as_echo_n "checking $2 usability... " >&6; }
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2328 if ac_fn_c_try_compile "$LINENO"; then :
2329 ac_header_compiler=yes
2331 ac_header_compiler=no
2333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2335 $as_echo "$ac_header_compiler" >&6; }
2337 # Is the header present?
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2339 $as_echo_n "checking $2 presence... " >&6; }
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341 /* end confdefs.h. */
2344 if ac_fn_c_try_cpp "$LINENO"; then :
2345 ac_header_preproc=yes
2347 ac_header_preproc=no
2349 rm -f conftest.err conftest.$ac_ext
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2351 $as_echo "$ac_header_preproc" >&6; }
2353 # So? What about this header?
2354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2357 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2359 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2363 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2365 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2367 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2369 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2371 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2375 $as_echo_n "checking for $2... " >&6; }
2376 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2377 $as_echo_n "(cached) " >&6
2379 eval "$3=\$ac_header_compiler"
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2383 $as_echo "$ac_res" >&6; }
2385 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2387 } # ac_fn_c_check_header_mongrel
2389 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2390 # ----------------------------------------------------
2391 # Tries to find if the field MEMBER exists in type AGGR, after including
2392 # INCLUDES, setting cache variable VAR accordingly.
2393 ac_fn_c_check_member ()
2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2397 $as_echo_n "checking for $2.$3... " >&6; }
2398 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2399 $as_echo_n "(cached) " >&6
2401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2402 /* end confdefs.h. */
2414 if ac_fn_c_try_compile "$LINENO"; then :
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2424 if (sizeof ac_aggr.$3)
2430 if ac_fn_c_try_compile "$LINENO"; then :
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2441 $as_echo "$ac_res" >&6; }
2442 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2444 } # ac_fn_c_check_member
2446 # ac_fn_c_check_decl LINENO SYMBOL VAR
2447 # ------------------------------------
2448 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2449 ac_fn_c_check_decl ()
2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2453 $as_echo_n "checking whether $2 is declared... " >&6; }
2454 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2455 $as_echo_n "(cached) " >&6
2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2458 /* end confdefs.h. */
2471 if ac_fn_c_try_compile "$LINENO"; then :
2476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2480 $as_echo "$ac_res" >&6; }
2481 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2483 } # ac_fn_c_check_decl
2485 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2486 # --------------------------------------------
2487 # Tries to find the compile-time value of EXPR in a program that includes
2488 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2490 ac_fn_c_compute_int ()
2492 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2493 if test "$cross_compiling" = yes; then
2494 # Depending upon the size, compute the lo and hi bounds.
2495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2496 /* end confdefs.h. */
2501 static int test_array [1 - 2 * !(($2) >= 0)];
2508 if ac_fn_c_try_compile "$LINENO"; then :
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h. */
2517 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2524 if ac_fn_c_try_compile "$LINENO"; then :
2525 ac_hi=$ac_mid; break
2527 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2528 if test $ac_lo -le $ac_mid; then
2532 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2538 /* end confdefs.h. */
2543 static int test_array [1 - 2 * !(($2) < 0)];
2550 if ac_fn_c_try_compile "$LINENO"; then :
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2559 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2566 if ac_fn_c_try_compile "$LINENO"; then :
2567 ac_lo=$ac_mid; break
2569 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2570 if test $ac_mid -le $ac_hi; then
2574 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 # Binary search between lo and hi bounds.
2585 while test "x$ac_lo" != "x$ac_hi"; do
2586 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2588 /* end confdefs.h. */
2593 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2600 if ac_fn_c_try_compile "$LINENO"; then :
2603 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h. */
2615 static long int longval () { return $2; }
2616 static unsigned long int ulongval () { return $2; }
2623 FILE *f = fopen ("conftest.val", "w");
2628 long int i = longval ();
2631 fprintf (f, "%ld", i);
2635 unsigned long int i = ulongval ();
2638 fprintf (f, "%lu", i);
2640 /* Do not output a trailing newline, as this causes \r\n confusion
2641 on some platforms. */
2642 return ferror (f) || fclose (f) != 0;
2648 if ac_fn_c_try_run "$LINENO"; then :
2649 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2654 conftest.$ac_objext conftest.beam conftest.$ac_ext
2658 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2661 } # ac_fn_c_compute_int
2663 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2664 # -------------------------------------------
2665 # Tests whether TYPE exists after having included INCLUDES, setting cache
2666 # variable VAR accordingly.
2667 ac_fn_c_check_type ()
2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2671 $as_echo_n "checking for $2... " >&6; }
2672 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2673 $as_echo_n "(cached) " >&6
2676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2677 /* end confdefs.h. */
2688 if ac_fn_c_try_compile "$LINENO"; then :
2689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2690 /* end confdefs.h. */
2701 if ac_fn_c_try_compile "$LINENO"; then :
2706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2712 $as_echo "$ac_res" >&6; }
2713 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2715 } # ac_fn_c_check_type
2716 cat >config.log <<_ACEOF
2717 This file contains any messages produced by compilers while
2718 running configure, to aid debugging if configure makes a mistake.
2720 It was created by libjava $as_me version-unused, which was
2721 generated by GNU Autoconf 2.64. Invocation command line was
2733 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2734 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2735 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2736 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2737 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2739 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2740 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2742 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2743 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2744 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2745 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2746 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2747 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2748 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 test -z "$as_dir" && as_dir=.
2757 $as_echo "PATH: $as_dir"
2773 # Keep a trace of the command line.
2774 # Strip out --no-create and --no-recursion so they do not pile up.
2775 # Strip out --silent because we don't want to record it for future runs.
2776 # Also quote any args containing shell meta-characters.
2777 # Make two passes to allow for proper duplicate-argument suppression.
2781 ac_must_keep_next=false
2787 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2788 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2789 | -silent | --silent | --silen | --sile | --sil)
2792 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2795 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2797 as_fn_append ac_configure_args1 " '$ac_arg'"
2798 if test $ac_must_keep_next = true; then
2799 ac_must_keep_next=false # Got value, back to normal.
2802 *=* | --config-cache | -C | -disable-* | --disable-* \
2803 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2804 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2805 | -with-* | --with-* | -without-* | --without-* | --x)
2806 case "$ac_configure_args0 " in
2807 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2810 -* ) ac_must_keep_next=true ;;
2813 as_fn_append ac_configure_args " '$ac_arg'"
2818 { ac_configure_args0=; unset ac_configure_args0;}
2819 { ac_configure_args1=; unset ac_configure_args1;}
2821 # When interrupted or exit'd, cleanup temporary files, and complete
2822 # config.log. We remove comments because anyway the quotes in there
2823 # would cause problems or look ugly.
2824 # WARNING: Use '\'' to represent an apostrophe within the trap.
2825 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2826 trap 'exit_status=$?
2827 # Save into config.log some information that might help in debugging.
2832 ## ---------------- ##
2833 ## Cache variables. ##
2834 ## ---------------- ##
2837 # The following way of writing the cache mishandles newlines in values,
2839 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2840 eval ac_val=\$$ac_var
2844 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2845 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2848 _ | IFS | as_nl) ;; #(
2849 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2850 *) { eval $ac_var=; unset $ac_var;} ;;
2855 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2856 *${as_nl}ac_space=\ *)
2858 "s/'\''/'\''\\\\'\'''\''/g;
2859 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2862 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2870 ## ----------------- ##
2871 ## Output variables. ##
2872 ## ----------------- ##
2875 for ac_var in $ac_subst_vars
2877 eval ac_val=\$$ac_var
2879 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2881 $as_echo "$ac_var='\''$ac_val'\''"
2885 if test -n "$ac_subst_files"; then
2887 ## ------------------- ##
2888 ## File substitutions. ##
2889 ## ------------------- ##
2892 for ac_var in $ac_subst_files
2894 eval ac_val=\$$ac_var
2896 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2898 $as_echo "$ac_var='\''$ac_val'\''"
2903 if test -s confdefs.h; then
2913 test "$ac_signal" != 0 &&
2914 $as_echo "$as_me: caught signal $ac_signal"
2915 $as_echo "$as_me: exit $exit_status"
2917 rm -f core *.core core.conftest.* &&
2918 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2921 for ac_signal in 1 2 13 15; do
2922 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2926 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2927 rm -f -r conftest* confdefs.h
2929 $as_echo "/* confdefs.h */" > confdefs.h
2931 # Predefined preprocessor variables.
2933 cat >>confdefs.h <<_ACEOF
2934 #define PACKAGE_NAME "$PACKAGE_NAME"
2937 cat >>confdefs.h <<_ACEOF
2938 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2941 cat >>confdefs.h <<_ACEOF
2942 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2945 cat >>confdefs.h <<_ACEOF
2946 #define PACKAGE_STRING "$PACKAGE_STRING"
2949 cat >>confdefs.h <<_ACEOF
2950 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2953 cat >>confdefs.h <<_ACEOF
2954 #define PACKAGE_URL "$PACKAGE_URL"
2958 # Let the site file select an alternate cache file if it wants to.
2959 # Prefer an explicitly selected file to automatically selected ones.
2962 if test -n "$CONFIG_SITE"; then
2963 ac_site_file1=$CONFIG_SITE
2964 elif test "x$prefix" != xNONE; then
2965 ac_site_file1=$prefix/share/config.site
2966 ac_site_file2=$prefix/etc/config.site
2968 ac_site_file1=$ac_default_prefix/share/config.site
2969 ac_site_file2=$ac_default_prefix/etc/config.site
2971 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2973 test "x$ac_site_file" = xNONE && continue
2974 if test -r "$ac_site_file"; then
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2976 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2977 sed 's/^/| /' "$ac_site_file" >&5
2982 if test -r "$cache_file"; then
2983 # Some versions of bash will fail to source /dev/null (special
2984 # files actually), so we avoid doing that.
2985 if test -f "$cache_file"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2987 $as_echo "$as_me: loading cache $cache_file" >&6;}
2989 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2990 *) . "./$cache_file";;
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2995 $as_echo "$as_me: creating cache $cache_file" >&6;}
2999 # Check that the precious variables saved in the cache have kept the same
3001 ac_cache_corrupted=false
3002 for ac_var in $ac_precious_vars; do
3003 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3004 eval ac_new_set=\$ac_env_${ac_var}_set
3005 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3006 eval ac_new_val=\$ac_env_${ac_var}_value
3007 case $ac_old_set,$ac_new_set in
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3010 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3011 ac_cache_corrupted=: ;;
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3014 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3015 ac_cache_corrupted=: ;;
3018 if test "x$ac_old_val" != "x$ac_new_val"; then
3019 # differences in whitespace do not lead to failure.
3020 ac_old_val_w=`echo x $ac_old_val`
3021 ac_new_val_w=`echo x $ac_new_val`
3022 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3024 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3025 ac_cache_corrupted=:
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3028 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3029 eval $ac_var=\$ac_old_val
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3032 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3034 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3037 # Pass precious variables to config.status.
3038 if test "$ac_new_set" = set; then
3040 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3041 *) ac_arg=$ac_var=$ac_new_val ;;
3043 case " $ac_configure_args " in
3044 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3045 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3049 if $ac_cache_corrupted; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3051 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3053 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3054 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3056 ## -------------------- ##
3057 ## Main body of script. ##
3058 ## -------------------- ##
3061 ac_cpp='$CPP $CPPFLAGS'
3062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3075 for ac_t in install-sh install.sh shtool; do
3076 if test -f "$ac_dir/$ac_t"; then
3078 ac_install_sh="$ac_aux_dir/$ac_t -c"
3083 if test -z "$ac_aux_dir"; then
3084 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3087 # These three variables are undocumented and unsupported,
3088 # and are intended to be withdrawn in a future Autoconf release.
3089 # They can cause serious problems if a builder's source tree is in a directory
3090 # whose full name contains unusual characters.
3091 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3092 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3093 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3096 # Make sure we can run config.sub.
3097 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3098 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3101 $as_echo_n "checking build system type... " >&6; }
3102 if test "${ac_cv_build+set}" = set; then :
3103 $as_echo_n "(cached) " >&6
3105 ac_build_alias=$build_alias
3106 test "x$ac_build_alias" = x &&
3107 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3108 test "x$ac_build_alias" = x &&
3109 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3110 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3111 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3115 $as_echo "$ac_cv_build" >&6; }
3116 case $ac_cv_build in
3118 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3121 ac_save_IFS=$IFS; IFS='-'
3127 # Remember, the first character of IFS is used to create $*,
3128 # except with old shells:
3131 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3134 case ${build_alias} in
3135 "") build_noncanonical=${build} ;;
3136 *) build_noncanonical=${build_alias} ;;
3139 case ${host_alias} in
3140 "") host_noncanonical=${build_noncanonical} ;;
3141 *) host_noncanonical=${host_alias} ;;
3144 case ${target_alias} in
3145 "") target_noncanonical=${host_noncanonical} ;;
3146 *) target_noncanonical=${target_alias} ;;
3150 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3151 # have matching libraries, they should use host libraries: Makefile.tpl
3152 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3153 # However, they still use the build modules, because the corresponding
3154 # host modules (e.g. bison) are only built for the host when bootstrap
3156 # - build_subdir is where we find build modules, and never changes.
3157 # - build_libsubdir is where we find build libraries, and can be overridden.
3159 # Prefix 'build-' so this never conflicts with target_subdir.
3160 build_subdir="build-${build_noncanonical}"
3162 # Check whether --with-build-libsubdir was given.
3163 if test "${with_build_libsubdir+set}" = set; then :
3164 withval=$with_build_libsubdir; build_libsubdir="$withval"
3166 build_libsubdir="$build_subdir"
3169 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3170 if ( test $srcdir = . && test -d gcc ) \
3171 || test -d $srcdir/../host-${host_noncanonical}; then
3172 host_subdir="host-${host_noncanonical}"
3177 target_subdir=${target_noncanonical}
3180 # We use these options to decide which functions to include.
3182 # Check whether --with-target-subdir was given.
3183 if test "${with_target_subdir+set}" = set; then :
3184 withval=$with_target_subdir;
3188 # We may get other options which we don't document:
3189 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3191 # Find the rest of the source tree framework.
3192 # Default to --enable-multilib
3193 # Check whether --enable-multilib was given.
3194 if test "${enable_multilib+set}" = set; then :
3195 enableval=$enable_multilib; case "$enableval" in
3196 yes) multilib=yes ;;
3198 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3205 # We may get other options which we leave undocumented:
3206 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3207 # See config-ml.in if you want the gory details.
3209 if test "$srcdir" = "."; then
3210 if test "$with_target_subdir" != "."; then
3211 multi_basedir="$srcdir/$with_multisrctop../.."
3213 multi_basedir="$srcdir/$with_multisrctop.."
3216 multi_basedir="$srcdir/.."
3220 # Even if the default multilib is not a cross compilation,
3221 # it may be that some of the other multilibs are.
3222 if test $cross_compiling = no && test $multilib = yes \
3223 && test "x${with_multisubdir}" != x ; then
3224 cross_compiling=maybe
3227 ac_config_commands="$ac_config_commands default-1"
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3231 $as_echo_n "checking host system type... " >&6; }
3232 if test "${ac_cv_host+set}" = set; then :
3233 $as_echo_n "(cached) " >&6
3235 if test "x$host_alias" = x; then
3236 ac_cv_host=$ac_cv_build
3238 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3239 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3244 $as_echo "$ac_cv_host" >&6; }
3247 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3250 ac_save_IFS=$IFS; IFS='-'
3256 # Remember, the first character of IFS is used to create $*,
3257 # except with old shells:
3260 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3264 $as_echo_n "checking target system type... " >&6; }
3265 if test "${ac_cv_target+set}" = set; then :
3266 $as_echo_n "(cached) " >&6
3268 if test "x$target_alias" = x; then
3269 ac_cv_target=$ac_cv_host
3271 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3272 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3277 $as_echo "$ac_cv_target" >&6; }
3278 case $ac_cv_target in
3280 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3282 target=$ac_cv_target
3283 ac_save_IFS=$IFS; IFS='-'
3289 # Remember, the first character of IFS is used to create $*,
3290 # except with old shells:
3293 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3296 # The aliases save the names the user supplied, while $host etc.
3297 # will get canonicalized.
3298 test -n "$target_alias" &&
3299 test "$program_prefix$program_suffix$program_transform_name" = \
3301 program_prefix=${target_alias}-
3303 case ${build_alias} in
3304 "") build_noncanonical=${build} ;;
3305 *) build_noncanonical=${build_alias} ;;
3308 case ${target_alias} in
3309 "") target_noncanonical=${host_noncanonical} ;;
3310 *) target_noncanonical=${target_alias} ;;
3316 # This works around the fact that libtool configuration may change LD
3317 # for this particular configuration, but some shells, instead of
3318 # keeping the changes in LD private, export them just because LD is
3320 ORIGINAL_LD_FOR_MULTILIBS=$LD
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3323 $as_echo_n "checking whether ln -s works... " >&6; }
3325 if test "$LN_S" = "ln -s"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3327 $as_echo "yes" >&6; }
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3330 $as_echo "no, using $LN_S" >&6; }
3334 # This works around an automake problem.
3335 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3339 # Check whether --with-cross-host was given.
3340 if test "${with_cross_host+set}" = set; then :
3341 withval=$with_cross_host;
3346 # Check whether --with-newlib was given.
3347 if test "${with_newlib+set}" = set; then :
3348 withval=$with_newlib;
3352 # Check whether --enable-version-specific-runtime-libs was given.
3353 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3354 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3355 yes) version_specific_libs=yes ;;
3356 no) version_specific_libs=no ;;
3357 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3360 version_specific_libs=no
3365 # Check whether --enable-plugin was given.
3366 if test "${enable_plugin+set}" = set; then :
3367 enableval=$enable_plugin; case "$enableval" in
3368 yes) plugin_enabled=yes ;;
3369 no) plugin_enabled=no ;;
3370 *) as_fn_error "Unknown argument to enable/disable plugin" "$LINENO" 5;;
3378 # Check whether --enable-gconf-peer was given.
3379 if test "${enable_gconf_peer+set}" = set; then :
3380 enableval=$enable_gconf_peer; case "$enableval" in
3381 yes) gconf_enabled=yes ;;
3382 no) gconf_enabled=no ;;
3383 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3392 # Check whether --with-antlr-jar was given.
3393 if test "${with_antlr_jar+set}" = set; then :
3394 withval=$with_antlr_jar;
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3405 $as_echo_n "checking for antlr.jar... " >&6; }
3406 if test "x$ANTLR_JAR" = x; then
3407 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3408 /usr/share/antlr/lib /usr/share/java /usr/lib;
3410 if test -f "$antlr_lib_home/antlr.jar"; then
3411 # FIXME: version check for antlr needed without using a VM
3412 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3416 if test "x$ANTLR_JAR" = x; then
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3418 $as_echo "not found" >&6; }
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3421 $as_echo "$ANTLR_JAR" >&6; }
3424 if test -f "${ANTLR_JAR}"; then
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3426 $as_echo "$ANTLR_JAR" >&6; }
3428 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3433 # Check whether --enable-gjdoc was given.
3434 if test "${enable_gjdoc+set}" = set; then :
3435 enableval=$enable_gjdoc; case "${enableval}" in
3436 yes) BUILD_GJDOC=yes ;;
3437 no) BUILD_GJDOC=no ;;
3438 *) BUILD_GJDOC=yes ;;
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3446 $as_echo_n "checking whether to build gjdoc... " >&6; }
3447 if test "x$BUILD_GJDOC" = xmaybe; then
3448 if test -f "${ANTLR_JAR}"; then
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3451 $as_echo "yes" >&6; }
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3455 $as_echo "no, antlr.jar not found" >&6; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3459 $as_echo "$BUILD_GJDOC" >&6; }
3461 if test "x${BUILD_GJDOC}" = xyes; then
3463 CREATE_GJDOC_FALSE='#'
3465 CREATE_GJDOC_TRUE='#'
3470 # Check whether --enable-java-maintainer-mode was given.
3471 if test "${enable_java_maintainer_mode+set}" = set; then :
3472 enableval=$enable_java_maintainer_mode;
3475 if test "$enable_java_maintainer_mode" = yes; then
3476 JAVA_MAINTAINER_MODE_TRUE=
3477 JAVA_MAINTAINER_MODE_FALSE='#'
3479 JAVA_MAINTAINER_MODE_TRUE='#'
3480 JAVA_MAINTAINER_MODE_FALSE=
3484 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3487 # (1) We use an abnormal CXX (without library references), so we
3488 # must cache it under a different name.
3489 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
3490 # the non-multilib-adjusted value will be used in multilibs.
3491 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
3492 # (4) As another side effect, automake doesn't automatically include them
3494 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
3495 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3496 # used in later tests. This may not be necessary in libjava; I don't know.
3499 save_CXXFLAGS="$CXXFLAGS"
3500 CXXFLAGS="$CXXFLAGS -fno-builtin"
3502 ac_cpp='$CPP $CPPFLAGS'
3503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3506 if test -n "$ac_tool_prefix"; then
3507 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3508 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_CC+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3514 if test -n "$CC"; then
3515 ac_cv_prog_CC="$CC" # Let the user override the test.
3517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3521 test -z "$as_dir" && as_dir=.
3522 for ac_exec_ext in '' $ac_executable_extensions; do
3523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3524 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 if test -n "$CC"; then
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3537 $as_echo "$CC" >&6; }
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3545 if test -z "$ac_cv_prog_CC"; then
3547 # Extract the first word of "gcc", so it can be a program name with args.
3548 set dummy gcc; ac_word=$2
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550 $as_echo_n "checking for $ac_word... " >&6; }
3551 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3552 $as_echo_n "(cached) " >&6
3554 if test -n "$ac_ct_CC"; then
3555 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3564 ac_cv_prog_ac_ct_CC="gcc"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3574 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3575 if test -n "$ac_ct_CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3577 $as_echo "$ac_ct_CC" >&6; }
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580 $as_echo "no" >&6; }
3583 if test "x$ac_ct_CC" = x; then
3586 case $cross_compiling:$ac_tool_warned in
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3590 ac_tool_warned=yes ;;
3598 if test -z "$CC"; then
3599 if test -n "$ac_tool_prefix"; then
3600 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3601 set dummy ${ac_tool_prefix}cc; ac_word=$2
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3603 $as_echo_n "checking for $ac_word... " >&6; }
3604 if test "${ac_cv_prog_CC+set}" = set; then :
3605 $as_echo_n "(cached) " >&6
3607 if test -n "$CC"; then
3608 ac_cv_prog_CC="$CC" # Let the user override the test.
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3617 ac_cv_prog_CC="${ac_tool_prefix}cc"
3618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3628 if test -n "$CC"; then
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630 $as_echo "$CC" >&6; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633 $as_echo "no" >&6; }
3639 if test -z "$CC"; then
3640 # Extract the first word of "cc", so it can be a program name with args.
3641 set dummy cc; ac_word=$2
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3643 $as_echo_n "checking for $ac_word... " >&6; }
3644 if test "${ac_cv_prog_CC+set}" = set; then :
3645 $as_echo_n "(cached) " >&6
3647 if test -n "$CC"; then
3648 ac_cv_prog_CC="$CC" # Let the user override the test.
3651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 test -z "$as_dir" && as_dir=.
3656 for ac_exec_ext in '' $ac_executable_extensions; do
3657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3658 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3659 ac_prog_rejected=yes
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 if test $ac_prog_rejected = yes; then
3671 # We found a bogon in the path, so make sure we never use it.
3672 set dummy $ac_cv_prog_CC
3674 if test $# != 0; then
3675 # We chose a different compiler from the bogus one.
3676 # However, it has the same basename, so the bogon will be chosen
3677 # first if we set CC to just the basename; use the full file name.
3679 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3685 if test -n "$CC"; then
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3687 $as_echo "$CC" >&6; }
3689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3690 $as_echo "no" >&6; }
3695 if test -z "$CC"; then
3696 if test -n "$ac_tool_prefix"; then
3697 for ac_prog in cl.exe
3699 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3700 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702 $as_echo_n "checking for $ac_word... " >&6; }
3703 if test "${ac_cv_prog_CC+set}" = set; then :
3704 $as_echo_n "(cached) " >&6
3706 if test -n "$CC"; then
3707 ac_cv_prog_CC="$CC" # Let the user override the test.
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 test -z "$as_dir" && as_dir=.
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3716 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3727 if test -n "$CC"; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3729 $as_echo "$CC" >&6; }
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3732 $as_echo "no" >&6; }
3736 test -n "$CC" && break
3739 if test -z "$CC"; then
3741 for ac_prog in cl.exe
3743 # Extract the first word of "$ac_prog", so it can be a program name with args.
3744 set dummy $ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3750 if test -n "$ac_ct_CC"; then
3751 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_ac_ct_CC="$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3770 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3771 if test -n "$ac_ct_CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3773 $as_echo "$ac_ct_CC" >&6; }
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3780 test -n "$ac_ct_CC" && break
3783 if test "x$ac_ct_CC" = x; then
3786 case $cross_compiling:$ac_tool_warned in
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3790 ac_tool_warned=yes ;;
3799 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3801 as_fn_error "no acceptable C compiler found in \$PATH
3802 See \`config.log' for more details." "$LINENO" 5; }
3804 # Provide some information about the compiler.
3805 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3808 for ac_option in --version -v -V -qversion; do
3809 { { ac_try="$ac_compiler $ac_option >&5"
3811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3812 *) ac_try_echo=$ac_try;;
3814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3815 $as_echo "$ac_try_echo"; } >&5
3816 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3818 if test -s conftest.err; then
3820 ... rest of stderr output deleted ...
3821 10q' conftest.err >conftest.er1
3822 cat conftest.er1 >&5
3823 rm -f conftest.er1 conftest.err
3825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3826 test $ac_status = 0; }
3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830 /* end confdefs.h. */
3841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3842 (eval $ac_link) 2>&5
3844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3845 test $ac_status = 0; }; then :
3850 if test x$gcc_no_link = xyes; then
3851 # Setting cross_compile will disable run tests; it will
3852 # also disable AC_CHECK_FILE but that's generally
3853 # correct if we can't link.
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3868 ac_clean_files_save=$ac_clean_files
3869 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3870 # Try to create an executable without -o first, disregard a.out.
3871 # It will help us diagnose broken compilers, and finding out an intuition
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3874 $as_echo_n "checking for C compiler default output file name... " >&6; }
3875 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3877 # The possible output files:
3878 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3881 for ac_file in $ac_files
3884 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3885 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3890 if { { ac_try="$ac_link_default"
3892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_link_default") 2>&5
3899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3900 test $ac_status = 0; }; then :
3901 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3902 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3903 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3904 # so that the user can short-circuit this test for compilers unknown to
3906 for ac_file in $ac_files ''
3908 test -f "$ac_file" || continue
3910 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3913 # We found the default executable, but exeext='' is most
3917 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3919 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3921 # We set ac_cv_exeext here because the later test for it is not
3922 # safe: cross compilers may not add the suffix if given an `-o'
3923 # argument, so we may need to know it at that point already.
3924 # Even if this section looks crufty: it has the advantage of
3931 test "$ac_cv_exeext" = no && ac_cv_exeext=
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3937 $as_echo "$ac_file" >&6; }
3938 if test -z "$ac_file"; then :
3939 $as_echo "$as_me: failed program was:" >&5
3940 sed 's/^/| /' conftest.$ac_ext >&5
3942 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3943 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3944 { as_fn_set_status 77
3945 as_fn_error "C compiler cannot create executables
3946 See \`config.log' for more details." "$LINENO" 5; }; }
3948 ac_exeext=$ac_cv_exeext
3950 # Check that the compiler produces executables we can run. If not, either
3951 # the compiler is broken, or we cross compile.
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3953 $as_echo_n "checking whether the C compiler works... " >&6; }
3954 # If not cross compiling, check that we can run a simple program.
3955 if test "$cross_compiling" != yes; then
3956 if { ac_try='./$ac_file'
3957 { { case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3962 $as_echo "$ac_try_echo"; } >&5
3963 (eval "$ac_try") 2>&5
3965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3966 test $ac_status = 0; }; }; then
3969 if test "$cross_compiling" = maybe; then
3972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3973 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3974 as_fn_error "cannot run C compiled programs.
3975 If you meant to cross compile, use \`--host'.
3976 See \`config.log' for more details." "$LINENO" 5; }
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3981 $as_echo "yes" >&6; }
3983 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3984 ac_clean_files=$ac_clean_files_save
3985 # Check that the compiler produces executables we can run. If not, either
3986 # the compiler is broken, or we cross compile.
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3988 $as_echo_n "checking whether we are cross compiling... " >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3990 $as_echo "$cross_compiling" >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3993 $as_echo_n "checking for suffix of executables... " >&6; }
3994 if { { ac_try="$ac_link"
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4000 $as_echo "$ac_try_echo"; } >&5
4001 (eval "$ac_link") 2>&5
4003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4004 test $ac_status = 0; }; then :
4005 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4006 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4007 # work properly (i.e., refer to `conftest.exe'), while it won't with
4009 for ac_file in conftest.exe conftest conftest.*; do
4010 test -f "$ac_file" || continue
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4013 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4020 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4021 as_fn_error "cannot compute suffix of executables: cannot compile and link
4022 See \`config.log' for more details." "$LINENO" 5; }
4024 rm -f conftest$ac_cv_exeext
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4026 $as_echo "$ac_cv_exeext" >&6; }
4028 rm -f conftest.$ac_ext
4029 EXEEXT=$ac_cv_exeext
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4033 $as_echo_n "checking for suffix of object files... " >&6; }
4034 if test "${ac_cv_objext+set}" = set; then :
4035 $as_echo_n "(cached) " >&6
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4048 rm -f conftest.o conftest.obj
4049 if { { ac_try="$ac_compile"
4051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4052 *) ac_try_echo=$ac_try;;
4054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4055 $as_echo "$ac_try_echo"; } >&5
4056 (eval "$ac_compile") 2>&5
4058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4059 test $ac_status = 0; }; then :
4060 for ac_file in conftest.o conftest.obj conftest.*; do
4061 test -f "$ac_file" || continue;
4063 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4064 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4069 $as_echo "$as_me: failed program was:" >&5
4070 sed 's/^/| /' conftest.$ac_ext >&5
4072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4073 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4074 as_fn_error "cannot compute suffix of object files: cannot compile
4075 See \`config.log' for more details." "$LINENO" 5; }
4077 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4080 $as_echo "$ac_cv_objext" >&6; }
4081 OBJEXT=$ac_cv_objext
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4084 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4085 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4102 if ac_fn_c_try_compile "$LINENO"; then :
4107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4112 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4113 if test $ac_compiler_gnu = yes; then
4118 ac_test_CFLAGS=${CFLAGS+set}
4119 ac_save_CFLAGS=$CFLAGS
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4121 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4122 if test "${ac_cv_prog_cc_g+set}" = set; then :
4123 $as_echo_n "(cached) " >&6
4125 ac_save_c_werror_flag=$ac_c_werror_flag
4126 ac_c_werror_flag=yes
4129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4130 /* end confdefs.h. */
4140 if ac_fn_c_try_compile "$LINENO"; then :
4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4155 if ac_fn_c_try_compile "$LINENO"; then :
4158 ac_c_werror_flag=$ac_save_c_werror_flag
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4171 if ac_fn_c_try_compile "$LINENO"; then :
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 ac_c_werror_flag=$ac_save_c_werror_flag
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4182 $as_echo "$ac_cv_prog_cc_g" >&6; }
4183 if test "$ac_test_CFLAGS" = set; then
4184 CFLAGS=$ac_save_CFLAGS
4185 elif test $ac_cv_prog_cc_g = yes; then
4186 if test "$GCC" = yes; then
4192 if test "$GCC" = yes; then
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4199 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4200 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4201 $as_echo_n "(cached) " >&6
4203 ac_cv_prog_cc_c89=no
4205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4206 /* end confdefs.h. */
4209 #include <sys/types.h>
4210 #include <sys/stat.h>
4211 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4212 struct buf { int x; };
4213 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4214 static char *e (p, i)
4220 static char *f (char * (*g) (char **, int), char **p, ...)
4225 s = g (p, va_arg (v,int));
4230 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4231 function prototypes and stuff, but not '\xHH' hex character constants.
4232 These don't provoke an error unfortunately, instead are silently treated
4233 as 'x'. The following induces an error, until -std is added to get
4234 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4235 array size at least. It's necessary to write '\x00'==0 to get something
4236 that's true only with -std. */
4237 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4239 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4240 inside strings and character constants. */
4242 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4244 int test (int i, double x);
4245 struct s1 {int (*f) (int a);};
4246 struct s2 {int (*f) (double a);};
4247 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4253 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4258 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4259 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4261 CC="$ac_save_CC $ac_arg"
4262 if ac_fn_c_try_compile "$LINENO"; then :
4263 ac_cv_prog_cc_c89=$ac_arg
4265 rm -f core conftest.err conftest.$ac_objext
4266 test "x$ac_cv_prog_cc_c89" != "xno" && break
4268 rm -f conftest.$ac_ext
4273 case "x$ac_cv_prog_cc_c89" in
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4276 $as_echo "none needed" >&6; } ;;
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4279 $as_echo "unsupported" >&6; } ;;
4281 CC="$CC $ac_cv_prog_cc_c89"
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4283 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4285 if test "x$ac_cv_prog_cc_c89" != xno; then :
4290 ac_cpp='$CPP $CPPFLAGS'
4291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4296 ac_cpp='$CXXCPP $CPPFLAGS'
4297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4300 if test -z "$CXX"; then
4301 if test -n "$CCC"; then
4304 if test -n "$ac_tool_prefix"; then
4305 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4307 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4308 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4310 $as_echo_n "checking for $ac_word... " >&6; }
4311 if test "${ac_cv_prog_CXX+set}" = set; then :
4312 $as_echo_n "(cached) " >&6
4314 if test -n "$CXX"; then
4315 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 test -z "$as_dir" && as_dir=.
4322 for ac_exec_ext in '' $ac_executable_extensions; do
4323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4324 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 if test -n "$CXX"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4337 $as_echo "$CXX" >&6; }
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4344 test -n "$CXX" && break
4347 if test -z "$CXX"; then
4349 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4351 # Extract the first word of "$ac_prog", so it can be a program name with args.
4352 set dummy $ac_prog; ac_word=$2
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4354 $as_echo_n "checking for $ac_word... " >&6; }
4355 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4356 $as_echo_n "(cached) " >&6
4358 if test -n "$ac_ct_CXX"; then
4359 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4365 test -z "$as_dir" && as_dir=.
4366 for ac_exec_ext in '' $ac_executable_extensions; do
4367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4368 ac_cv_prog_ac_ct_CXX="$ac_prog"
4369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4378 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4379 if test -n "$ac_ct_CXX"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4381 $as_echo "$ac_ct_CXX" >&6; }
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4388 test -n "$ac_ct_CXX" && break
4391 if test "x$ac_ct_CXX" = x; then
4394 case $cross_compiling:$ac_tool_warned in
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4398 ac_tool_warned=yes ;;
4406 # Provide some information about the compiler.
4407 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4410 for ac_option in --version -v -V -qversion; do
4411 { { ac_try="$ac_compiler $ac_option >&5"
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4420 if test -s conftest.err; then
4422 ... rest of stderr output deleted ...
4423 10q' conftest.err >conftest.er1
4424 cat conftest.er1 >&5
4425 rm -f conftest.er1 conftest.err
4427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4428 test $ac_status = 0; }
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4432 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4433 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4434 $as_echo_n "(cached) " >&6
4436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h. */
4450 if ac_fn_cxx_try_compile "$LINENO"; then :
4455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4456 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4460 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4461 if test $ac_compiler_gnu = yes; then
4466 ac_test_CXXFLAGS=${CXXFLAGS+set}
4467 ac_save_CXXFLAGS=$CXXFLAGS
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4469 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4470 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
4473 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4474 ac_cxx_werror_flag=yes
4477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* end confdefs.h. */
4488 if ac_fn_cxx_try_compile "$LINENO"; then :
4489 ac_cv_prog_cxx_g=yes
4492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4493 /* end confdefs.h. */
4503 if ac_fn_cxx_try_compile "$LINENO"; then :
4506 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4509 /* end confdefs.h. */
4519 if ac_fn_cxx_try_compile "$LINENO"; then :
4520 ac_cv_prog_cxx_g=yes
4522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4530 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4531 if test "$ac_test_CXXFLAGS" = set; then
4532 CXXFLAGS=$ac_save_CXXFLAGS
4533 elif test $ac_cv_prog_cxx_g = yes; then
4534 if test "$GXX" = yes; then
4540 if test "$GXX" = yes; then
4547 ac_cpp='$CPP $CPPFLAGS'
4548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4552 CXXFLAGS="$save_CXXFLAGS"
4558 am__api_version='1.11'
4560 # Find a good install program. We prefer a C program (faster),
4561 # so one script is as good as another. But avoid the broken or
4562 # incompatible versions:
4563 # SysV /etc/install, /usr/sbin/install
4564 # SunOS /usr/etc/install
4565 # IRIX /sbin/install
4567 # AmigaOS /C/install, which installs bootblocks on floppy discs
4568 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4569 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4570 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4571 # OS/2's system install, which has a completely different semantic
4572 # ./install, which can be erroneously created by make from ./install.sh.
4573 # Reject install programs that cannot install multiple files.
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4575 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4576 if test -z "$INSTALL"; then
4577 if test "${ac_cv_path_install+set}" = set; then :
4578 $as_echo_n "(cached) " >&6
4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4584 test -z "$as_dir" && as_dir=.
4585 # Account for people who put trailing slashes in PATH elements.
4586 case $as_dir/ in #((
4587 ./ | .// | /[cC]/* | \
4588 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4589 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4592 # OSF1 and SCO ODT 3.0 have their own names for install.
4593 # Don't use installbsd from OSF since it installs stuff as root
4595 for ac_prog in ginstall scoinst install; do
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4598 if test $ac_prog = install &&
4599 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4600 # AIX install. It has an incompatible calling convention.
4602 elif test $ac_prog = install &&
4603 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4604 # program-specific install script used by HP pwplus--don't use.
4607 rm -rf conftest.one conftest.two conftest.dir
4608 echo one > conftest.one
4609 echo two > conftest.two
4611 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4612 test -s conftest.one && test -s conftest.two &&
4613 test -s conftest.dir/conftest.one &&
4614 test -s conftest.dir/conftest.two
4616 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4629 rm -rf conftest.one conftest.two conftest.dir
4632 if test "${ac_cv_path_install+set}" = set; then
4633 INSTALL=$ac_cv_path_install
4635 # As a last resort, use the slow shell script. Don't cache a
4636 # value for INSTALL within a source directory, because that will
4637 # break other packages using the cache if that directory is
4638 # removed, or if the value is a relative name.
4639 INSTALL=$ac_install_sh
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4643 $as_echo "$INSTALL" >&6; }
4645 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4646 # It thinks the first close brace ends the variable substitution.
4647 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4649 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4651 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4654 $as_echo_n "checking whether build environment is sane... " >&6; }
4657 echo timestamp > conftest.file
4658 # Reject unsafe characters in $srcdir or the absolute working directory
4659 # name. Accept space and tab only in the latter.
4663 *[\\\"\#\$\&\'\`$am_lf]*)
4664 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4667 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4668 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4671 # Do `set' in a subshell so we don't clobber the current shell's
4672 # arguments. Must try -L first in case configure is actually a
4673 # symlink; some systems play weird games with the mod time of symlinks
4674 # (eg FreeBSD returns the mod time of the symlink's containing
4677 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4678 if test "$*" = "X"; then
4680 set X `ls -t "$srcdir/configure" conftest.file`
4683 if test "$*" != "X $srcdir/configure conftest.file" \
4684 && test "$*" != "X conftest.file $srcdir/configure"; then
4686 # If neither matched, then we have a broken ls. This can happen
4687 # if, for instance, CONFIG_SHELL is bash and it inherits a
4688 # broken ls alias from the environment. This has actually
4689 # happened. Such a system could not be considered "sane".
4690 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4691 alias in your environment" "$LINENO" 5
4694 test "$2" = conftest.file
4700 as_fn_error "newly created file is older than distributed files!
4701 Check your system clock" "$LINENO" 5
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4704 $as_echo "yes" >&6; }
4705 test "$program_prefix" != NONE &&
4706 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4707 # Use a double $ so make ignores it.
4708 test "$program_suffix" != NONE &&
4709 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4710 # Double any \ or $.
4711 # By default was `s,x,x', remove it if useless.
4712 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4713 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4715 # expand $ac_aux_dir to an absolute path
4716 am_aux_dir=`cd $ac_aux_dir && pwd`
4718 if test x"${MISSING+set}" != xset; then
4721 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4723 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4726 # Use eval to expand $SHELL
4727 if eval "$MISSING --run true"; then
4728 am_missing_run="$MISSING --run "
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4732 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4735 if test x"${install_sh}" != xset; then
4738 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4740 install_sh="\${SHELL} $am_aux_dir/install-sh"
4744 # Installed binaries are usually stripped using `strip' when the user
4745 # run `make install-strip'. However `strip' might not be the right
4746 # tool to use in cross-compilation environments, therefore Automake
4747 # will honor the `STRIP' environment variable to overrule this program.
4748 if test "$cross_compiling" != no; then
4749 if test -n "$ac_tool_prefix"; then
4750 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4751 set dummy ${ac_tool_prefix}strip; ac_word=$2
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4753 $as_echo_n "checking for $ac_word... " >&6; }
4754 if test "${ac_cv_prog_STRIP+set}" = set; then :
4755 $as_echo_n "(cached) " >&6
4757 if test -n "$STRIP"; then
4758 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 test -z "$as_dir" && as_dir=.
4765 for ac_exec_ext in '' $ac_executable_extensions; do
4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4767 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4777 STRIP=$ac_cv_prog_STRIP
4778 if test -n "$STRIP"; then
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4780 $as_echo "$STRIP" >&6; }
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4783 $as_echo "no" >&6; }
4788 if test -z "$ac_cv_prog_STRIP"; then
4790 # Extract the first word of "strip", so it can be a program name with args.
4791 set dummy strip; ac_word=$2
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4793 $as_echo_n "checking for $ac_word... " >&6; }
4794 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4795 $as_echo_n "(cached) " >&6
4797 if test -n "$ac_ct_STRIP"; then
4798 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 test -z "$as_dir" && as_dir=.
4805 for ac_exec_ext in '' $ac_executable_extensions; do
4806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4807 ac_cv_prog_ac_ct_STRIP="strip"
4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4817 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4818 if test -n "$ac_ct_STRIP"; then
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4820 $as_echo "$ac_ct_STRIP" >&6; }
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4823 $as_echo "no" >&6; }
4826 if test "x$ac_ct_STRIP" = x; then
4829 case $cross_compiling:$ac_tool_warned in
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4833 ac_tool_warned=yes ;;
4838 STRIP="$ac_cv_prog_STRIP"
4842 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4845 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4846 if test -z "$MKDIR_P"; then
4847 if test "${ac_cv_path_mkdir+set}" = set; then :
4848 $as_echo_n "(cached) " >&6
4850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4851 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4854 test -z "$as_dir" && as_dir=.
4855 for ac_prog in mkdir gmkdir; do
4856 for ac_exec_ext in '' $ac_executable_extensions; do
4857 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4858 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4859 'mkdir (GNU coreutils) '* | \
4860 'mkdir (coreutils) '* | \
4861 'mkdir (fileutils) '4.1*)
4862 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4872 if test "${ac_cv_path_mkdir+set}" = set; then
4873 MKDIR_P="$ac_cv_path_mkdir -p"
4875 # As a last resort, use the slow shell script. Don't cache a
4876 # value for MKDIR_P within a source directory, because that will
4877 # break other packages using the cache if that directory is
4878 # removed, or if the value is a relative name.
4879 test -d ./--version && rmdir ./--version
4880 MKDIR_P="$ac_install_sh -d"
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4884 $as_echo "$MKDIR_P" >&6; }
4888 [\\/$]* | ?:[\\/]*) ;;
4889 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4892 for ac_prog in gawk mawk nawk awk
4894 # Extract the first word of "$ac_prog", so it can be a program name with args.
4895 set dummy $ac_prog; ac_word=$2
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4897 $as_echo_n "checking for $ac_word... " >&6; }
4898 if test "${ac_cv_prog_AWK+set}" = set; then :
4899 $as_echo_n "(cached) " >&6
4901 if test -n "$AWK"; then
4902 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4908 test -z "$as_dir" && as_dir=.
4909 for ac_exec_ext in '' $ac_executable_extensions; do
4910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4911 ac_cv_prog_AWK="$ac_prog"
4912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 if test -n "$AWK"; then
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4924 $as_echo "$AWK" >&6; }
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 $as_echo "no" >&6; }
4931 test -n "$AWK" && break
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4935 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4937 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4938 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4939 $as_echo_n "(cached) " >&6
4941 cat >conftest.make <<\_ACEOF
4944 @echo '@@@%%%=$(MAKE)=@@@%%%'
4946 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4947 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4949 eval ac_cv_prog_make_${ac_make}_set=yes;;
4951 eval ac_cv_prog_make_${ac_make}_set=no;;
4955 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4957 $as_echo "yes" >&6; }
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4961 $as_echo "no" >&6; }
4962 SET_MAKE="MAKE=${MAKE-make}"
4965 rm -rf .tst 2>/dev/null
4966 mkdir .tst 2>/dev/null
4967 if test -d .tst; then
4972 rmdir .tst 2>/dev/null
4974 DEPDIR="${am__leading_dot}deps"
4976 ac_config_commands="$ac_config_commands depfiles"
4979 am_make=${MAKE-make}
4980 cat > confinc << 'END'
4982 @echo this is the am__doit target
4985 # If we don't find an include directive, just comment out the code.
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4987 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4991 # First try GNU make style include.
4992 echo "include confinc" > confmf
4993 # Ignore all kinds of additional output from `make'.
4994 case `$am_make -s -f confmf 2> /dev/null` in #(
4995 *the\ am__doit\ target*)
5001 # Now try BSD make style include.
5002 if test "$am__include" = "#"; then
5003 echo '.include "confinc"' > confmf
5004 case `$am_make -s -f confmf 2> /dev/null` in #(
5005 *the\ am__doit\ target*)
5006 am__include=.include
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5015 $as_echo "$_am_result" >&6; }
5016 rm -f confinc confmf
5018 # Check whether --enable-dependency-tracking was given.
5019 if test "${enable_dependency_tracking+set}" = set; then :
5020 enableval=$enable_dependency_tracking;
5023 if test "x$enable_dependency_tracking" != xno; then
5024 am_depcomp="$ac_aux_dir/depcomp"
5027 if test "x$enable_dependency_tracking" != xno; then
5036 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5037 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5038 # is not polluted with repeated "-I."
5039 am__isrc=' -I$(srcdir)'
5040 # test to see if srcdir already configured
5041 if test -f $srcdir/config.status; then
5042 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5046 # test whether we have cygpath
5047 if test -z "$CYGPATH_W"; then
5048 if (cygpath --version) >/dev/null 2>/dev/null; then
5049 CYGPATH_W='cygpath -w'
5056 # Define the identity of the package.
5058 VERSION='version-unused'
5061 cat >>confdefs.h <<_ACEOF
5062 #define PACKAGE "$PACKAGE"
5066 cat >>confdefs.h <<_ACEOF
5067 #define VERSION "$VERSION"
5070 # Some tools Automake needs.
5072 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5075 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5078 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5081 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5084 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5086 # We need awk for the "check" target. The system "awk" is bad on
5088 # Always define AMTAR for backward compatibility.
5090 AMTAR=${AMTAR-"${am_missing_run}tar"}
5092 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5097 depcc="$CC" am_compiler_list=
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5100 $as_echo_n "checking dependency style of $depcc... " >&6; }
5101 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5102 $as_echo_n "(cached) " >&6
5104 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5105 # We make a subdir and do the tests there. Otherwise we can end up
5106 # making bogus files that we don't know about and never remove. For
5107 # instance it was reported that on HP-UX the gcc test will end up
5108 # making a dummy file named `D' -- because `-MD' means `put the output
5111 # Copy depcomp to subdir because otherwise we won't find it if we're
5112 # using a relative directory.
5113 cp "$am_depcomp" conftest.dir
5115 # We will build objects and dependencies in a subdirectory because
5116 # it helps to detect inapplicable dependency modes. For instance
5117 # both Tru64's cc and ICC support -MD to output dependencies as a
5118 # side effect of compilation, but ICC will put the dependencies in
5119 # the current directory while Tru64 will put them in the object
5123 am_cv_CC_dependencies_compiler_type=none
5124 if test "$am_compiler_list" = ""; then
5125 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5128 case " $depcc " in #(
5129 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5132 for depmode in $am_compiler_list; do
5133 # Setup a source with many dependencies, because some compilers
5134 # like to wrap large dependency lists on column 80 (with \), and
5135 # we should not choose a depcomp mode which is confused by this.
5137 # We need to recreate these files for each test, as the compiler may
5138 # overwrite some of them when testing with obscure command lines.
5139 # This happens at least with the AIX C compiler.
5141 for i in 1 2 3 4 5 6; do
5142 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5143 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5144 # Solaris 8's {/usr,}/bin/sh.
5145 touch sub/conftst$i.h
5147 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5149 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5150 # mode. It turns out that the SunPro C++ compiler does not properly
5151 # handle `-M -o', and we need to detect this. Also, some Intel
5152 # versions had trouble with output in subdirs
5153 am__obj=sub/conftest.${OBJEXT-o}
5154 am__minus_obj="-o $am__obj"
5157 # This depmode causes a compiler race in universal mode.
5158 test "$am__universal" = false || continue
5161 # after this tag, mechanisms are not by side-effect, so they'll
5162 # only be used when explicitly requested
5163 if test "x$enable_dependency_tracking" = xyes; then
5169 msvisualcpp | msvcmsys)
5170 # This compiler won't grok `-c -o', but also, the minuso test has
5171 # not run yet. These depmodes are late enough in the game, and
5172 # so weak that their functioning should not be impacted.
5173 am__obj=conftest.${OBJEXT-o}
5178 if depmode=$depmode \
5179 source=sub/conftest.c object=$am__obj \
5180 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5181 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5182 >/dev/null 2>conftest.err &&
5183 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5184 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5185 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5186 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5187 # icc doesn't choke on unknown options, it will just issue warnings
5188 # or remarks (even with -Werror). So we grep stderr for any message
5189 # that says an option was ignored or not supported.
5190 # When given -MP, icc 7.0 and 7.1 complain thusly:
5191 # icc: Command line warning: ignoring option '-M'; no argument required
5192 # The diagnosis changed in icc 8.0:
5193 # icc: Command line remark: option '-MP' not supported
5194 if (grep 'ignoring option' conftest.err ||
5195 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5196 am_cv_CC_dependencies_compiler_type=$depmode
5205 am_cv_CC_dependencies_compiler_type=none
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5210 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5211 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5214 test "x$enable_dependency_tracking" != xno \
5215 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5217 am__fastdepCC_FALSE='#'
5219 am__fastdepCC_TRUE='#'
5220 am__fastdepCC_FALSE=
5224 depcc="$CXX" am_compiler_list=
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5227 $as_echo_n "checking dependency style of $depcc... " >&6; }
5228 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5229 $as_echo_n "(cached) " >&6
5231 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5232 # We make a subdir and do the tests there. Otherwise we can end up
5233 # making bogus files that we don't know about and never remove. For
5234 # instance it was reported that on HP-UX the gcc test will end up
5235 # making a dummy file named `D' -- because `-MD' means `put the output
5238 # Copy depcomp to subdir because otherwise we won't find it if we're
5239 # using a relative directory.
5240 cp "$am_depcomp" conftest.dir
5242 # We will build objects and dependencies in a subdirectory because
5243 # it helps to detect inapplicable dependency modes. For instance
5244 # both Tru64's cc and ICC support -MD to output dependencies as a
5245 # side effect of compilation, but ICC will put the dependencies in
5246 # the current directory while Tru64 will put them in the object
5250 am_cv_CXX_dependencies_compiler_type=none
5251 if test "$am_compiler_list" = ""; then
5252 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5255 case " $depcc " in #(
5256 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5259 for depmode in $am_compiler_list; do
5260 # Setup a source with many dependencies, because some compilers
5261 # like to wrap large dependency lists on column 80 (with \), and
5262 # we should not choose a depcomp mode which is confused by this.
5264 # We need to recreate these files for each test, as the compiler may
5265 # overwrite some of them when testing with obscure command lines.
5266 # This happens at least with the AIX C compiler.
5268 for i in 1 2 3 4 5 6; do
5269 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5270 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5271 # Solaris 8's {/usr,}/bin/sh.
5272 touch sub/conftst$i.h
5274 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5276 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5277 # mode. It turns out that the SunPro C++ compiler does not properly
5278 # handle `-M -o', and we need to detect this. Also, some Intel
5279 # versions had trouble with output in subdirs
5280 am__obj=sub/conftest.${OBJEXT-o}
5281 am__minus_obj="-o $am__obj"
5284 # This depmode causes a compiler race in universal mode.
5285 test "$am__universal" = false || continue
5288 # after this tag, mechanisms are not by side-effect, so they'll
5289 # only be used when explicitly requested
5290 if test "x$enable_dependency_tracking" = xyes; then
5296 msvisualcpp | msvcmsys)
5297 # This compiler won't grok `-c -o', but also, the minuso test has
5298 # not run yet. These depmodes are late enough in the game, and
5299 # so weak that their functioning should not be impacted.
5300 am__obj=conftest.${OBJEXT-o}
5305 if depmode=$depmode \
5306 source=sub/conftest.c object=$am__obj \
5307 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5308 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5309 >/dev/null 2>conftest.err &&
5310 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5311 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5312 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5313 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5314 # icc doesn't choke on unknown options, it will just issue warnings
5315 # or remarks (even with -Werror). So we grep stderr for any message
5316 # that says an option was ignored or not supported.
5317 # When given -MP, icc 7.0 and 7.1 complain thusly:
5318 # icc: Command line warning: ignoring option '-M'; no argument required
5319 # The diagnosis changed in icc 8.0:
5320 # icc: Command line remark: option '-MP' not supported
5321 if (grep 'ignoring option' conftest.err ||
5322 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5323 am_cv_CXX_dependencies_compiler_type=$depmode
5332 am_cv_CXX_dependencies_compiler_type=none
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5337 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5338 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5341 test "x$enable_dependency_tracking" != xno \
5342 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5343 am__fastdepCXX_TRUE=
5344 am__fastdepCXX_FALSE='#'
5346 am__fastdepCXX_TRUE='#'
5347 am__fastdepCXX_FALSE=
5353 if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5355 set dummy ${ac_tool_prefix}as; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5357 $as_echo_n "checking for $ac_word... " >&6; }
5358 if test "${ac_cv_prog_AS+set}" = set; then :
5359 $as_echo_n "(cached) " >&6
5361 if test -n "$AS"; then
5362 ac_cv_prog_AS="$AS" # Let the user override the test.
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5371 ac_cv_prog_AS="${ac_tool_prefix}as"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 if test -n "$AS"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5384 $as_echo "$AS" >&6; }
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 $as_echo "no" >&6; }
5392 if test -z "$ac_cv_prog_AS"; then
5394 # Extract the first word of "as", so it can be a program name with args.
5395 set dummy as; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397 $as_echo_n "checking for $ac_word... " >&6; }
5398 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5399 $as_echo_n "(cached) " >&6
5401 if test -n "$ac_ct_AS"; then
5402 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5411 ac_cv_prog_ac_ct_AS="as"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5421 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5422 if test -n "$ac_ct_AS"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5424 $as_echo "$ac_ct_AS" >&6; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427 $as_echo "no" >&6; }
5430 if test "x$ac_ct_AS" = x; then
5433 case $cross_compiling:$ac_tool_warned in
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5437 ac_tool_warned=yes ;;
5445 if test -n "$ac_tool_prefix"; then
5446 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5447 set dummy ${ac_tool_prefix}ld; ac_word=$2
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5449 $as_echo_n "checking for $ac_word... " >&6; }
5450 if test "${ac_cv_prog_LD+set}" = set; then :
5451 $as_echo_n "(cached) " >&6
5453 if test -n "$LD"; then
5454 ac_cv_prog_LD="$LD" # Let the user override the test.
5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5460 test -z "$as_dir" && as_dir=.
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463 ac_cv_prog_LD="${ac_tool_prefix}ld"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 if test -n "$LD"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5476 $as_echo "$LD" >&6; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5484 if test -z "$ac_cv_prog_LD"; then
5486 # Extract the first word of "ld", so it can be a program name with args.
5487 set dummy ld; ac_word=$2
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 $as_echo_n "checking for $ac_word... " >&6; }
5490 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5491 $as_echo_n "(cached) " >&6
5493 if test -n "$ac_ct_LD"; then
5494 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5503 ac_cv_prog_ac_ct_LD="ld"
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5513 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5514 if test -n "$ac_ct_LD"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5516 $as_echo "$ac_ct_LD" >&6; }
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5522 if test "x$ac_ct_LD" = x; then
5525 case $cross_compiling:$ac_tool_warned in
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5528 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5529 ac_tool_warned=yes ;;
5537 if test -n "$ac_tool_prefix"; then
5538 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5539 set dummy ${ac_tool_prefix}ar; ac_word=$2
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5541 $as_echo_n "checking for $ac_word... " >&6; }
5542 if test "${ac_cv_prog_AR+set}" = set; then :
5543 $as_echo_n "(cached) " >&6
5545 if test -n "$AR"; then
5546 ac_cv_prog_AR="$AR" # Let the user override the test.
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5552 test -z "$as_dir" && as_dir=.
5553 for ac_exec_ext in '' $ac_executable_extensions; do
5554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5555 ac_cv_prog_AR="${ac_tool_prefix}ar"
5556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566 if test -n "$AR"; then
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5568 $as_echo "$AR" >&6; }
5570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5571 $as_echo "no" >&6; }
5576 if test -z "$ac_cv_prog_AR"; then
5578 # Extract the first word of "ar", so it can be a program name with args.
5579 set dummy ar; ac_word=$2
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581 $as_echo_n "checking for $ac_word... " >&6; }
5582 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5583 $as_echo_n "(cached) " >&6
5585 if test -n "$ac_ct_AR"; then
5586 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5595 ac_cv_prog_ac_ct_AR="ar"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5605 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5606 if test -n "$ac_ct_AR"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5608 $as_echo "$ac_ct_AR" >&6; }
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611 $as_echo "no" >&6; }
5614 if test "x$ac_ct_AR" = x; then
5617 case $cross_compiling:$ac_tool_warned in
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5621 ac_tool_warned=yes ;;
5629 if test -n "$ac_tool_prefix"; then
5630 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5631 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5633 $as_echo_n "checking for $ac_word... " >&6; }
5634 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5635 $as_echo_n "(cached) " >&6
5637 if test -n "$RANLIB"; then
5638 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5644 test -z "$as_dir" && as_dir=.
5645 for ac_exec_ext in '' $ac_executable_extensions; do
5646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5647 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5657 RANLIB=$ac_cv_prog_RANLIB
5658 if test -n "$RANLIB"; then
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5660 $as_echo "$RANLIB" >&6; }
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5663 $as_echo "no" >&6; }
5668 if test -z "$ac_cv_prog_RANLIB"; then
5669 ac_ct_RANLIB=$RANLIB
5670 # Extract the first word of "ranlib", so it can be a program name with args.
5671 set dummy ranlib; ac_word=$2
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5673 $as_echo_n "checking for $ac_word... " >&6; }
5674 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5675 $as_echo_n "(cached) " >&6
5677 if test -n "$ac_ct_RANLIB"; then
5678 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5684 test -z "$as_dir" && as_dir=.
5685 for ac_exec_ext in '' $ac_executable_extensions; do
5686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5687 ac_cv_prog_ac_ct_RANLIB="ranlib"
5688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5698 if test -n "$ac_ct_RANLIB"; then
5699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5700 $as_echo "$ac_ct_RANLIB" >&6; }
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5703 $as_echo "no" >&6; }
5706 if test "x$ac_ct_RANLIB" = x; then
5709 case $cross_compiling:$ac_tool_warned in
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5712 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5713 ac_tool_warned=yes ;;
5715 RANLIB=$ac_ct_RANLIB
5718 RANLIB="$ac_cv_prog_RANLIB"
5721 for ac_prog in gawk mawk nawk awk
5723 # Extract the first word of "$ac_prog", so it can be a program name with args.
5724 set dummy $ac_prog; ac_word=$2
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5726 $as_echo_n "checking for $ac_word... " >&6; }
5727 if test "${ac_cv_prog_AWK+set}" = set; then :
5728 $as_echo_n "(cached) " >&6
5730 if test -n "$AWK"; then
5731 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 test -z "$as_dir" && as_dir=.
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5740 ac_cv_prog_AWK="$ac_prog"
5741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751 if test -n "$AWK"; then
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5753 $as_echo "$AWK" >&6; }
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5756 $as_echo "no" >&6; }
5760 test -n "$AWK" && break
5763 for ac_prog in jar fastjar gjar
5765 # Extract the first word of "$ac_prog", so it can be a program name with args.
5766 set dummy $ac_prog; ac_word=$2
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5768 $as_echo_n "checking for $ac_word... " >&6; }
5769 if test "${ac_cv_prog_JAR+set}" = set; then :
5770 $as_echo_n "(cached) " >&6
5772 if test -n "$JAR"; then
5773 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 test -z "$as_dir" && as_dir=.
5780 for ac_exec_ext in '' $ac_executable_extensions; do
5781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5782 ac_cv_prog_JAR="$ac_prog"
5783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5793 if test -n "$JAR"; then
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5795 $as_echo "$JAR" >&6; }
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5802 test -n "$JAR" && break
5804 test -n "$JAR" || JAR="no"
5806 # Extract the first word of "zip", so it can be a program name with args.
5807 set dummy zip; ac_word=$2
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5809 $as_echo_n "checking for $ac_word... " >&6; }
5810 if test "${ac_cv_path_ZIP+set}" = set; then :
5811 $as_echo_n "(cached) " >&6
5815 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 test -z "$as_dir" && as_dir=.
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5825 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5838 if test -n "$ZIP"; then
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5840 $as_echo "$ZIP" >&6; }
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5843 $as_echo "no" >&6; }
5847 # Extract the first word of "unzip", so it can be a program name with args.
5848 set dummy unzip; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_path_UNZIP+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5856 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5878 UNZIP=$ac_cv_path_UNZIP
5879 if test -n "$UNZIP"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5881 $as_echo "$UNZIP" >&6; }
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5889 # We need a jar that supports -@. This is a GNU extension.
5890 if test "$JAR" != no; then
5891 rm -f config-test.jar
5892 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5893 if test -f config-test.jar; then
5894 rm -f config-test.jar
5900 # Prefer the jar we found, but fall back to our jar script.
5901 if test "$JAR" = no; then
5902 if test "$ZIP" = no; then
5903 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5905 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5906 JAR=`pwd`/scripts/jar
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5914 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5915 # Check whether --enable-maintainer-mode was given.
5916 if test "${enable_maintainer_mode+set}" = set; then :
5917 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5919 USE_MAINTAINER_MODE=no
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5923 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5924 if test $USE_MAINTAINER_MODE = yes; then
5925 MAINTAINER_MODE_TRUE=
5926 MAINTAINER_MODE_FALSE='#'
5928 MAINTAINER_MODE_TRUE='#'
5929 MAINTAINER_MODE_FALSE=
5932 MAINT=$MAINTAINER_MODE_TRUE
5938 # configure.host sets the following important variables
5939 # libgcj_cflags - host specific C compiler flags
5940 # libgcj_cxxflags - host specific C++ compiler flags
5941 # libgcj_javaflags - host specific Java compiler flags
5942 # and a number of others; see the list at the start of the file.
5948 . ${srcdir}/configure.host
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5951 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5952 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5955 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5956 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5957 acl_cv_prog_gnu_ld=yes
5959 acl_cv_prog_gnu_ld=no
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5963 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5964 with_gnu_ld=$acl_cv_prog_gnu_ld
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5967 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5968 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5969 $as_echo_n "(cached) " >&6
5972 acl_cv_prog_gnu_ld_symbolic=no
5974 if test x"$with_gnu_ld" = x"yes"; then
5975 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5976 acl_cv_prog_gnu_ld_symbolic=yes
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5981 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5982 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5983 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5988 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5989 if test -z "$libgcj_ld_symbolic"; then
5990 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5993 LIBGCJ_CFLAGS="${libgcj_cflags}"
5994 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5995 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5996 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5997 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
6004 # Only use libltdl for non-newlib builds.
6005 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
6007 $as_echo_n "checking dynamic linker characteristics... " >&6; }
6009 libname_spec='lib$name'
6017 shlibpath_overrides_runpath=unknown
6019 dynamic_linker="$host_os ld.so"
6020 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6021 if test "$GCC" = yes; then
6022 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6023 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6024 # if the path contains ";" then we assume it to be the separator
6025 # otherwise default to the standard path separator (i.e. ":") - it is
6026 # assumed that no part of a normal pathname contains ";" but that should
6027 # okay in the real world where ";" in dirpaths is itself problematic.
6028 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6030 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6033 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6035 need_lib_prefix=unknown
6036 hardcode_into_libs=no
6038 # when you set need_version to no, make sure it does not cause -set_version
6039 # flags to be left without arguments
6040 need_version=unknown
6045 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6046 shlibpath_var=LIBPATH
6048 # AIX 3 has no versioning support, so we append a major version to the name.
6049 soname_spec='${libname}${release}${shared_ext}$major'
6056 hardcode_into_libs=yes
6057 if test "$host_cpu" = ia64; then
6058 # AIX 5 supports IA64
6059 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6060 shlibpath_var=LD_LIBRARY_PATH
6062 # With GCC up to 2.95.x, collect2 would create an import file
6063 # for dependence libraries. The import file would start with
6064 # the line `#! .'. This would cause the generated library to
6065 # depend on `.', always an invalid library. This was fixed in
6066 # development snapshots of GCC prior to 3.0.
6068 aix4 | aix4.[01] | aix4.[01].*)
6069 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6071 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6078 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6079 # soname into executable. Probably we can add versioning support to
6080 # collect2, so additional links can be useful in future.
6081 if test "$aix_use_runtimelinking" = yes; then
6082 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6083 # instead of lib<name>.a to let people know that these are not
6084 # typical AIX shared libraries.
6085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6087 # We preserve .a as extension for shared libraries through AIX4.2
6088 # and later when we are not doing run time linking.
6089 library_names_spec='${libname}${release}.a $libname.a'
6090 soname_spec='${libname}${release}${shared_ext}$major'
6092 shlibpath_var=LIBPATH
6097 library_names_spec='$libname.ixlibrary $libname.a'
6098 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6099 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'
6103 library_names_spec='${libname}${shared_ext}'
6104 dynamic_linker="$host_os ld.so"
6105 shlibpath_var=LIBRARY_PATH
6111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6112 soname_spec='${libname}${release}${shared_ext}$major'
6113 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6114 shlibpath_var=LD_LIBRARY_PATH
6115 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6116 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6117 # the default ld.so.conf also contains /usr/contrib/lib and
6118 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6119 # libtool to hard-code these into programs
6122 cygwin* | mingw* | pw32*)
6123 version_type=windows
6128 case $GCC,$host_os in
6129 yes,cygwin* | yes,mingw* | yes,pw32*)
6130 library_names_spec='$libname.dll.a'
6131 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6132 postinstall_cmds='base_file=`basename \${file}`~
6133 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6134 dldir=$destdir/`dirname \$dlpath`~
6135 test -d \$dldir || mkdir -p \$dldir~
6136 $install_prog $dir/$dlname \$dldir/$dlname'
6137 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6138 dlpath=$dir/\$dldll~
6140 shlibpath_overrides_runpath=yes
6144 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6145 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6146 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6149 # MinGW DLLs use traditional 'lib' prefix
6150 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6151 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6152 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6153 # It is most probably a Windows format PATH printed by
6154 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6155 # path with ; separators, and with drive letters. We can handle the
6156 # drive letters (cygwin fileutils understands them), so leave them,
6157 # especially as we might pass files found there to a mingw objdump,
6158 # which wouldn't understand a cygwinified path. Ahh.
6159 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6161 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6165 # pw32 DLLs use 'pw' prefix rather than 'lib'
6166 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6172 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6175 dynamic_linker='Win32 ld.exe'
6176 # FIXME: first we should search . and the directory the executable is in
6180 darwin* | rhapsody*)
6181 dynamic_linker="$host_os dyld"
6185 # FIXME: Relying on posixy $() will cause problems for
6186 # cross-compilation, but unfortunately the echo tests do not
6187 # yet detect zsh echo's removal of \ escapes.
6188 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6189 soname_spec='${libname}${release}${major}$shared_ext'
6190 shlibpath_overrides_runpath=yes
6191 shlibpath_var=DYLD_LIBRARY_PATH
6192 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6193 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6194 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6195 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"`
6197 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6205 soname_spec='${libname}${release}${shared_ext}$major'
6206 shlibpath_var=LD_LIBRARY_PATH
6214 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6215 version_type=freebsd-$objformat
6216 case $version_type in
6218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6223 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6227 shlibpath_var=LD_LIBRARY_PATH
6230 shlibpath_overrides_runpath=yes
6232 freebsd3.01* | freebsdelf3.01*)
6233 shlibpath_overrides_runpath=yes
6234 hardcode_into_libs=yes
6237 shlibpath_overrides_runpath=no
6238 hardcode_into_libs=yes
6247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6248 soname_spec='${libname}${release}${shared_ext}$major'
6249 shlibpath_var=LD_LIBRARY_PATH
6250 hardcode_into_libs=yes
6253 hpux9* | hpux10* | hpux11*)
6254 # Give a soname corresponding to the major version so that dld.sl refuses to
6255 # link against other versions.
6262 hardcode_into_libs=yes
6263 dynamic_linker="$host_os dld.so"
6264 shlibpath_var=LD_LIBRARY_PATH
6265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6267 soname_spec='${libname}${release}${shared_ext}$major'
6268 if test "X$HPUX_IA64_MODE" = X32; then
6269 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6271 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6273 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6277 hardcode_into_libs=yes
6278 dynamic_linker="$host_os dld.sl"
6279 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6280 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6282 soname_spec='${libname}${release}${shared_ext}$major'
6283 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6284 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6288 dynamic_linker="$host_os dld.sl"
6289 shlibpath_var=SHLIB_PATH
6290 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6292 soname_spec='${libname}${release}${shared_ext}$major'
6295 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6296 postinstall_cmds='chmod 555 $lib'
6299 irix5* | irix6* | nonstopux*)
6301 nonstopux*) version_type=nonstopux ;;
6303 if test "$lt_cv_prog_gnu_ld" = yes; then
6311 soname_spec='${libname}${release}${shared_ext}$major'
6312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6314 irix5* | nonstopux*)
6318 case $LD in # libtool.m4 will add one of these switches to LD
6319 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6320 libsuff= shlibsuff= libmagic=32-bit;;
6321 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6322 libsuff=32 shlibsuff=N32 libmagic=N32;;
6323 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6324 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6325 *) libsuff= shlibsuff= libmagic=never-match;;
6329 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6330 shlibpath_overrides_runpath=no
6331 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6332 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6333 hardcode_into_libs=yes
6336 # No shared lib support for Linux oldld, aout, or coff.
6337 linux*oldld* | linux*aout* | linux*coff*)
6341 # This must be Linux ELF.
6346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6347 soname_spec='${libname}${release}${shared_ext}$major'
6348 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6349 shlibpath_var=LD_LIBRARY_PATH
6350 shlibpath_overrides_runpath=no
6351 # This implies no fast_install, which is unacceptable.
6352 # Some rework will be needed to allow for fast_install
6353 # before this can be enabled.
6354 hardcode_into_libs=yes
6356 # We used to test for /lib/ld.so.1 and disable shared libraries on
6357 # powerpc, because MkLinux only supported shared libraries with the
6358 # GNU dynamic linker. Since this was broken with cross compilers,
6359 # most powerpc-linux boxes support dynamic linking these days and
6360 # people can always --disable-shared, the test was removed, and we
6361 # assume the GNU/Linux dynamic linker is in use.
6362 dynamic_linker='GNU/Linux ld.so'
6369 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6371 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6372 dynamic_linker='NetBSD (a.out) ld.so'
6374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6375 soname_spec='${libname}${release}${shared_ext}$major'
6376 dynamic_linker='NetBSD ld.elf_so'
6378 shlibpath_var=LD_LIBRARY_PATH
6379 shlibpath_overrides_runpath=yes
6380 hardcode_into_libs=yes
6385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6386 shlibpath_var=LD_LIBRARY_PATH
6387 shlibpath_overrides_runpath=yes
6394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6395 soname_spec='${libname}${release}${shared_ext}$major'
6396 shlibpath_var=LD_LIBRARY_PATH
6397 shlibpath_overrides_runpath=yes
6404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6405 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6406 shlibpath_var=LD_LIBRARY_PATH
6407 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6409 openbsd2.[89] | openbsd2.[89].*)
6410 shlibpath_overrides_runpath=no
6413 shlibpath_overrides_runpath=yes
6417 shlibpath_overrides_runpath=yes
6422 libname_spec='$name'
6425 library_names_spec='$libname${shared_ext} $libname.a'
6426 dynamic_linker='OS/2 ld.exe'
6427 shlibpath_var=LIBPATH
6430 osf3* | osf4* | osf5*)
6434 soname_spec='${libname}${release}${shared_ext}$major'
6435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6436 shlibpath_var=LD_LIBRARY_PATH
6437 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6438 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6443 soname_spec='${libname}${release}${shared_ext}$major'
6444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6445 shlibpath_var=LD_LIBRARY_PATH
6452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6453 soname_spec='${libname}${release}${shared_ext}$major'
6454 shlibpath_var=LD_LIBRARY_PATH
6455 shlibpath_overrides_runpath=yes
6456 hardcode_into_libs=yes
6457 # ldd complains unless libraries are executable
6458 postinstall_cmds='chmod +x $lib'
6463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6464 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6465 shlibpath_var=LD_LIBRARY_PATH
6466 shlibpath_overrides_runpath=yes
6467 if test "$with_gnu_ld" = yes; then
6473 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6476 soname_spec='${libname}${release}${shared_ext}$major'
6477 shlibpath_var=LD_LIBRARY_PATH
6478 case $host_vendor in
6480 shlibpath_overrides_runpath=no
6482 export_dynamic_flag_spec='${wl}-Blargedynsym'
6483 runpath_var=LD_RUN_PATH
6491 shlibpath_overrides_runpath=no
6492 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6498 if test -d /usr/nec ;then
6500 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6501 soname_spec='$libname${shared_ext}.$major'
6502 shlibpath_var=LD_LIBRARY_PATH
6508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6509 soname_spec='${libname}${release}${shared_ext}$major'
6510 shlibpath_var=LD_LIBRARY_PATH
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6518 $as_echo "$dynamic_linker" >&6; }
6519 test "$dynamic_linker" = no && can_build_shared=no
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6523 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6524 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6525 $as_echo_n "(cached) " >&6
6527 libltdl_cv_shlibpath_var="$shlibpath_var"
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6530 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6531 if test -n "$libltdl_cv_shlibpath_var"; then
6533 cat >>confdefs.h <<_ACEOF
6534 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6541 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6544 # Possibly build libgcj as many sub-libraries.
6545 # Check whether --enable-libgcj-sublibs was given.
6546 if test "${enable_libgcj_sublibs+set}" = set; then :
6547 enableval=$enable_libgcj_sublibs;
6551 if test -z "$enable_libgcj_sublibs"; then
6552 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6554 if test "$enable_libgcj_sublibs" = yes; then
6556 BUILD_SUBLIBS_FALSE='#'
6558 BUILD_SUBLIBS_TRUE='#'
6559 BUILD_SUBLIBS_FALSE=
6562 if test "$enable_libgcj_sublibs" = yes ; then
6563 # In theory we could make do with only one override and simply
6564 # tag "_bc" onto the end of it when we use it to generate the
6565 # spec, but that's an ugly thing to do when there are multiple
6566 # words in the string and you're relying on the ordering to
6567 # append the correct one.
6568 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6569 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6573 # See if the user has requested runtime debugging.
6574 LIBGCJDEBUG="disable"
6576 # Check whether --enable-libgcj-debug was given.
6577 if test "${enable_libgcj_debug+set}" = set; then :
6578 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6580 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6582 LIBGCJDEBUG="enable"
6588 # Check whether --with-escher was given.
6589 if test "${with_escher+set}" = set; then :
6590 withval=$with_escher;
6593 case "$with_escher" in
6601 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6608 # Determine which AWT peer libraries to build
6609 # Check whether --enable-java-awt was given.
6610 if test "${enable_java_awt+set}" = set; then :
6611 enableval=$enable_java_awt;
6615 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6620 # The default toolkit to use is the first one specified.
6624 for peer in $peerlibs ; do
6627 if test "$no_x" = yes; then
6628 echo "*** xlib peers requested but no X library available" 1>&2
6632 if test -z "$TOOLKIT"; then
6633 TOOLKIT=gnu.awt.xlib.XToolkit
6638 if test "$no_x" = yes; then
6639 echo "*** gtk peers requested but no X library available" 1>&2
6643 if test -z "$TOOLKIT"; then
6644 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6649 if test "$no_x" = yes; then
6650 # Perhaps we should admit the possibility of embedded Qt.
6651 echo "*** Qt peers requested but no X library available" 1>&2
6655 if test -z "$TOOLKIT"; then
6656 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6662 if test -z "$TOOLKIT"; then
6663 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6674 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6679 if test "$use_xlib_awt" = yes; then
6687 if test "$use_x_awt" = yes; then
6697 cat >>confdefs.h <<_ACEOF
6698 #define AWT_TOOLKIT "$TOOLKIT"
6703 cat >>confdefs.h <<_ACEOF
6704 #define LIBGCJ_PREFIX "$prefix"
6708 # Create standard.omit based on decisions we just made.
6709 cp $srcdir/standard.omit.in standard.omit
6710 if test "$use_xlib_awt" != yes; then
6711 echo gnu/awt/xlib >> standard.omit
6712 echo gnu/gcj/xlib >> standard.omit
6714 if test "$use_x_awt" != yes; then
6715 echo gnu/java/awt/peer/x >> standard.omit
6718 # Tools that need to be compiled against classpath's tools classes
6719 : > vm-tools-packages
6720 for package in gnu/gcj/tools/gc_analyze ; do
6721 echo $package >> standard.omit
6722 echo $package >> vm-tools-packages
6725 if test -z "${with_multisubdir}"; then
6728 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6733 # Which gcj and host gcj (for ecjx) do we use?
6735 host_exeext=${ac_exeext}
6737 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6738 if test -n "${with_cross_host}"; then
6739 # We are being configured with a cross compiler. We can't
6740 # use ac_exeext, because that is for the target platform.
6743 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6744 case "${with_cross_host}" in
6746 cross_host_exeext=.exe
6749 host_exeext=${cross_host_exeext}
6750 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6751 if test x"$build_noncanonical" = x"$with_cross_host"; then
6752 # Ordinary cross (host!=target and host=build)
6755 # Canadian cross (host!=target and host!=build)
6762 # We are being configured with a native or crossed-native compiler
6763 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6764 if test x"$build" = x"$host"; then
6765 # True native build (host=target and host=build)
6768 # Crossed-native build (host=target and host!=build)
6775 libgcjdir=`${PWDCMD-pwd}`
6778 # Just in case there is a comma in the build dir, quote it for the
6779 # sed command below.
6781 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6782 *) qlibgcjdir=$libgcjdir;;
6784 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6787 GCJ=$GCJ" -B$libgcjdir/"
6790 case "${which_gcj}" in
6792 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6795 if test "x${with_newlib}" = "xyes"; then
6796 # FIXME (comment): Why is this needed?
6799 GCJH='$(target_noncanonical)-gcjh'
6812 # Create it, so that compile/link tests don't fail
6813 test -f libgcj.spec || touch libgcj.spec
6817 # Set up to configure Classpath.
6818 # FIXME: no supported way to pass args in autoconf.
6819 # Disable tool wrappers to avoid ltdl.h configure check.
6820 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6821 ac_configure_args="$ac_configure_args --disable-load-library"
6822 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6823 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6824 dir1=`cd $srcdir && pwd`
6826 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6827 ac_configure_args="$ac_configure_args --disable-core-jni"
6828 ac_configure_args="$ac_configure_args --disable-examples"
6829 ac_configure_args="$ac_configure_args --with-glibj=build"
6830 if test "$plugin_enabled" != yes; then
6831 ac_configure_args="$ac_configure_args --disable-plugin"
6833 if test "$gconf_enabled" != yes; then
6834 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6835 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6837 if test "$use_gtk_awt" != yes; then
6838 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6840 if test "$use_qt_awt" != yes; then
6841 ac_configure_args="$ac_configure_args --disable-qt-peer"
6843 # We need this as qt is disabled by default in classpath.
6844 ac_configure_args="$ac_configure_args --enable-qt-peer"
6846 if test "$use_x_awt" != yes; then
6847 ac_configure_args="$ac_configure_args --without-escher"
6849 # We need this as escher is disabled by default in classpath.
6850 if test "$use_escher" != true; then
6851 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6853 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6856 if test "x$BUILD_GJDOC" = xno; then
6857 ac_configure_args="$ac_configure_args --disable-gjdoc"
6859 # -Werror causes unavoidable problems in code using alsa.
6860 ac_configure_args="$ac_configure_args --disable-regen-headers"
6861 ac_configure_args="$ac_configure_args --disable-Werror"
6863 # Only use libltdl for non-newlib builds.
6864 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6865 case $enable_ltdl_convenience in
6866 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6867 "") enable_ltdl_convenience=yes
6868 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6870 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6871 LTDLINCL='-I${top_srcdir}/''libltdl'
6872 # For backwards non-gettext consistent compatibility...
6881 $as_echo "#define USE_LTDL 1" >>confdefs.h
6883 # Sigh. Libtool's macro doesn't do the right thing.
6884 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6885 # FIXME: this is a hack.
6886 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6887 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6895 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6900 macro_version='2.2.6'
6901 macro_revision='1.3012'
6915 ltmain="$ac_aux_dir/ltmain.sh"
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6918 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6919 if test "${ac_cv_path_SED+set}" = set; then :
6920 $as_echo_n "(cached) " >&6
6922 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6923 for ac_i in 1 2 3 4 5 6 7; do
6924 ac_script="$ac_script$as_nl$ac_script"
6926 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6927 { ac_script=; unset ac_script;}
6928 if test -z "$SED"; then
6929 ac_path_SED_found=false
6930 # Loop through the user's path and test for each of PROGNAME-LIST
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir=.
6936 for ac_prog in sed gsed; do
6937 for ac_exec_ext in '' $ac_executable_extensions; do
6938 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6939 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6940 # Check for GNU ac_path_SED and select it if it is found.
6941 # Check for GNU $ac_path_SED
6942 case `"$ac_path_SED" --version 2>&1` in
6944 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6947 $as_echo_n 0123456789 >"conftest.in"
6950 cat "conftest.in" "conftest.in" >"conftest.tmp"
6951 mv "conftest.tmp" "conftest.in"
6952 cp "conftest.in" "conftest.nl"
6953 $as_echo '' >> "conftest.nl"
6954 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6955 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6956 as_fn_arith $ac_count + 1 && ac_count=$as_val
6957 if test $ac_count -gt ${ac_path_SED_max-0}; then
6958 # Best one so far, save it but keep looking for a better one
6959 ac_cv_path_SED="$ac_path_SED"
6960 ac_path_SED_max=$ac_count
6962 # 10*(2^10) chars as input seems more than enough
6963 test $ac_count -gt 10 && break
6965 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6968 $ac_path_SED_found && break 3
6973 if test -z "$ac_cv_path_SED"; then
6974 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6982 $as_echo "$ac_cv_path_SED" >&6; }
6983 SED="$ac_cv_path_SED"
6986 test -z "$SED" && SED=sed
6987 Xsed="$SED -e 1s/^X//"
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7000 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7001 if test "${ac_cv_path_GREP+set}" = set; then :
7002 $as_echo_n "(cached) " >&6
7004 if test -z "$GREP"; then
7005 ac_path_GREP_found=false
7006 # Loop through the user's path and test for each of PROGNAME-LIST
7007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7008 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7011 test -z "$as_dir" && as_dir=.
7012 for ac_prog in grep ggrep; do
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7015 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7016 # Check for GNU ac_path_GREP and select it if it is found.
7017 # Check for GNU $ac_path_GREP
7018 case `"$ac_path_GREP" --version 2>&1` in
7020 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7023 $as_echo_n 0123456789 >"conftest.in"
7026 cat "conftest.in" "conftest.in" >"conftest.tmp"
7027 mv "conftest.tmp" "conftest.in"
7028 cp "conftest.in" "conftest.nl"
7029 $as_echo 'GREP' >> "conftest.nl"
7030 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7031 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7032 as_fn_arith $ac_count + 1 && ac_count=$as_val
7033 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7034 # Best one so far, save it but keep looking for a better one
7035 ac_cv_path_GREP="$ac_path_GREP"
7036 ac_path_GREP_max=$ac_count
7038 # 10*(2^10) chars as input seems more than enough
7039 test $ac_count -gt 10 && break
7041 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7044 $ac_path_GREP_found && break 3
7049 if test -z "$ac_cv_path_GREP"; then
7050 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7053 ac_cv_path_GREP=$GREP
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7058 $as_echo "$ac_cv_path_GREP" >&6; }
7059 GREP="$ac_cv_path_GREP"
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7063 $as_echo_n "checking for egrep... " >&6; }
7064 if test "${ac_cv_path_EGREP+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7067 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7068 then ac_cv_path_EGREP="$GREP -E"
7070 if test -z "$EGREP"; then
7071 ac_path_EGREP_found=false
7072 # Loop through the user's path and test for each of PROGNAME-LIST
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7077 test -z "$as_dir" && as_dir=.
7078 for ac_prog in egrep; do
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7081 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7082 # Check for GNU ac_path_EGREP and select it if it is found.
7083 # Check for GNU $ac_path_EGREP
7084 case `"$ac_path_EGREP" --version 2>&1` in
7086 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7089 $as_echo_n 0123456789 >"conftest.in"
7092 cat "conftest.in" "conftest.in" >"conftest.tmp"
7093 mv "conftest.tmp" "conftest.in"
7094 cp "conftest.in" "conftest.nl"
7095 $as_echo 'EGREP' >> "conftest.nl"
7096 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7098 as_fn_arith $ac_count + 1 && ac_count=$as_val
7099 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7100 # Best one so far, save it but keep looking for a better one
7101 ac_cv_path_EGREP="$ac_path_EGREP"
7102 ac_path_EGREP_max=$ac_count
7104 # 10*(2^10) chars as input seems more than enough
7105 test $ac_count -gt 10 && break
7107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7110 $ac_path_EGREP_found && break 3
7115 if test -z "$ac_cv_path_EGREP"; then
7116 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7119 ac_cv_path_EGREP=$EGREP
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7125 $as_echo "$ac_cv_path_EGREP" >&6; }
7126 EGREP="$ac_cv_path_EGREP"
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7130 $as_echo_n "checking for fgrep... " >&6; }
7131 if test "${ac_cv_path_FGREP+set}" = set; then :
7132 $as_echo_n "(cached) " >&6
7134 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7135 then ac_cv_path_FGREP="$GREP -F"
7137 if test -z "$FGREP"; then
7138 ac_path_FGREP_found=false
7139 # Loop through the user's path and test for each of PROGNAME-LIST
7140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7144 test -z "$as_dir" && as_dir=.
7145 for ac_prog in fgrep; do
7146 for ac_exec_ext in '' $ac_executable_extensions; do
7147 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7148 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7149 # Check for GNU ac_path_FGREP and select it if it is found.
7150 # Check for GNU $ac_path_FGREP
7151 case `"$ac_path_FGREP" --version 2>&1` in
7153 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7156 $as_echo_n 0123456789 >"conftest.in"
7159 cat "conftest.in" "conftest.in" >"conftest.tmp"
7160 mv "conftest.tmp" "conftest.in"
7161 cp "conftest.in" "conftest.nl"
7162 $as_echo 'FGREP' >> "conftest.nl"
7163 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7164 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7165 as_fn_arith $ac_count + 1 && ac_count=$as_val
7166 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7167 # Best one so far, save it but keep looking for a better one
7168 ac_cv_path_FGREP="$ac_path_FGREP"
7169 ac_path_FGREP_max=$ac_count
7171 # 10*(2^10) chars as input seems more than enough
7172 test $ac_count -gt 10 && break
7174 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7177 $ac_path_FGREP_found && break 3
7182 if test -z "$ac_cv_path_FGREP"; then
7183 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7186 ac_cv_path_FGREP=$FGREP
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7192 $as_echo "$ac_cv_path_FGREP" >&6; }
7193 FGREP="$ac_cv_path_FGREP"
7196 test -z "$GREP" && GREP=grep
7216 # Check whether --with-gnu-ld was given.
7217 if test "${with_gnu_ld+set}" = set; then :
7218 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7224 if test "$GCC" = yes; then
7225 # Check if gcc -print-prog-name=ld gives a path.
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7227 $as_echo_n "checking for ld used by $CC... " >&6; }
7230 # gcc leaves a trailing carriage return which upsets mingw
7231 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7233 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7236 # Accept absolute paths.
7238 re_direlt='/[^/][^/]*/\.\./'
7239 # Canonicalize the pathname of ld
7240 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7241 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7242 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7244 test -z "$LD" && LD="$ac_prog"
7247 # If it fails, then pretend we aren't using GCC.
7251 # If it is relative, then search for the first ld in PATH.
7255 elif test "$with_gnu_ld" = yes; then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7257 $as_echo_n "checking for GNU ld... " >&6; }
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7260 $as_echo_n "checking for non-GNU ld... " >&6; }
7262 if test "${lt_cv_path_LD+set}" = set; then :
7263 $as_echo_n "(cached) " >&6
7265 if test -z "$LD"; then
7266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7267 for ac_dir in $PATH; do
7269 test -z "$ac_dir" && ac_dir=.
7270 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7271 lt_cv_path_LD="$ac_dir/$ac_prog"
7272 # Check to see if the program is GNU ld. I'd rather use --version,
7273 # but apparently some variants of GNU ld only accept -v.
7274 # Break only if it was the GNU/non-GNU ld that we prefer.
7275 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7276 *GNU* | *'with BFD'*)
7277 test "$with_gnu_ld" != no && break
7280 test "$with_gnu_ld" != yes && break
7287 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7292 if test -n "$LD"; then
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7294 $as_echo "$LD" >&6; }
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7297 $as_echo "no" >&6; }
7299 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7301 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7302 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7303 $as_echo_n "(cached) " >&6
7305 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7306 case `$LD -v 2>&1 </dev/null` in
7307 *GNU* | *'with BFD'*)
7308 lt_cv_prog_gnu_ld=yes
7311 lt_cv_prog_gnu_ld=no
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7316 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7317 with_gnu_ld=$lt_cv_prog_gnu_ld
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7328 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7329 if test "${lt_cv_path_NM+set}" = set; then :
7330 $as_echo_n "(cached) " >&6
7332 if test -n "$NM"; then
7333 # Let the user override the test.
7336 lt_nm_to_check="${ac_tool_prefix}nm"
7337 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7338 lt_nm_to_check="$lt_nm_to_check nm"
7340 for lt_tmp_nm in $lt_nm_to_check; do
7341 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7342 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7344 test -z "$ac_dir" && ac_dir=.
7345 tmp_nm="$ac_dir/$lt_tmp_nm"
7346 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7347 # Check to see if the nm accepts a BSD-compat flag.
7348 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7349 # nm: unknown option "B" ignored
7350 # Tru64's nm complains that /dev/null is an invalid object file
7351 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7352 */dev/null* | *'Invalid file or object type'*)
7353 lt_cv_path_NM="$tmp_nm -B"
7357 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7359 lt_cv_path_NM="$tmp_nm -p"
7363 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7364 continue # so that we can try to find one that supports BSD flags
7373 : ${lt_cv_path_NM=no}
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7377 $as_echo "$lt_cv_path_NM" >&6; }
7378 if test "$lt_cv_path_NM" != "no"; then
7381 # Didn't find any BSD compatible name lister, look for dumpbin.
7382 if test -n "$ac_tool_prefix"; then
7383 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7385 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7386 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7388 $as_echo_n "checking for $ac_word... " >&6; }
7389 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7390 $as_echo_n "(cached) " >&6
7392 if test -n "$DUMPBIN"; then
7393 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7399 test -z "$as_dir" && as_dir=.
7400 for ac_exec_ext in '' $ac_executable_extensions; do
7401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7402 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7412 DUMPBIN=$ac_cv_prog_DUMPBIN
7413 if test -n "$DUMPBIN"; then
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7415 $as_echo "$DUMPBIN" >&6; }
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7418 $as_echo "no" >&6; }
7422 test -n "$DUMPBIN" && break
7425 if test -z "$DUMPBIN"; then
7426 ac_ct_DUMPBIN=$DUMPBIN
7427 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7429 # Extract the first word of "$ac_prog", so it can be a program name with args.
7430 set dummy $ac_prog; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7434 $as_echo_n "(cached) " >&6
7436 if test -n "$ac_ct_DUMPBIN"; then
7437 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7457 if test -n "$ac_ct_DUMPBIN"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7459 $as_echo "$ac_ct_DUMPBIN" >&6; }
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7466 test -n "$ac_ct_DUMPBIN" && break
7469 if test "x$ac_ct_DUMPBIN" = x; then
7472 case $cross_compiling:$ac_tool_warned in
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7475 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7476 ac_tool_warned=yes ;;
7478 DUMPBIN=$ac_ct_DUMPBIN
7483 if test "$DUMPBIN" != ":"; then
7487 test -z "$NM" && NM=nm
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7495 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7496 if test "${lt_cv_nm_interface+set}" = set; then :
7497 $as_echo_n "(cached) " >&6
7499 lt_cv_nm_interface="BSD nm"
7500 echo "int some_variable = 0;" > conftest.$ac_ext
7501 (eval echo "\"\$as_me:7501: $ac_compile\"" >&5)
7502 (eval "$ac_compile" 2>conftest.err)
7503 cat conftest.err >&5
7504 (eval echo "\"\$as_me:7504: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7505 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7506 cat conftest.err >&5
7507 (eval echo "\"\$as_me:7507: output\"" >&5)
7508 cat conftest.out >&5
7509 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7510 lt_cv_nm_interface="MS dumpbin"
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7515 $as_echo "$lt_cv_nm_interface" >&6; }
7517 # find the maximum length of command line arguments
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7519 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7520 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7521 $as_echo_n "(cached) " >&6
7528 # On DJGPP, this test can blow up pretty badly due to problems in libc
7529 # (any single argument exceeding 2000 bytes causes a buffer overrun
7530 # during glob expansion). Even if it were fixed, the result of this
7531 # check would be larger than it should be.
7532 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7536 # Under GNU Hurd, this test is not required because there is
7537 # no limit to the length of command line arguments.
7538 # Libtool will interpret -1 as no limit whatsoever
7539 lt_cv_sys_max_cmd_len=-1;
7542 cygwin* | mingw* | cegcc*)
7543 # On Win9x/ME, this test blows up -- it succeeds, but takes
7544 # about 5 minutes as the teststring grows exponentially.
7545 # Worse, since 9x/ME are not pre-emptively multitasking,
7546 # you end up with a "frozen" computer, even though with patience
7547 # the test eventually succeeds (with a max line length of 256k).
7548 # Instead, let's just punt: use the minimum linelength reported by
7549 # all of the supported platforms: 8192 (on NT/2K/XP).
7550 lt_cv_sys_max_cmd_len=8192;
7554 # On AmigaOS with pdksh, this test takes hours, literally.
7555 # So we just punt and use a minimum line length of 8192.
7556 lt_cv_sys_max_cmd_len=8192;
7559 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7560 # This has been around since 386BSD, at least. Likely further.
7561 if test -x /sbin/sysctl; then
7562 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7563 elif test -x /usr/sbin/sysctl; then
7564 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7566 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7568 # And add a safety zone
7569 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7570 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7574 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7575 lt_cv_sys_max_cmd_len=196608
7579 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7580 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7581 # nice to cause kernel panics so lets avoid the loop below.
7582 # First set a reasonable default.
7583 lt_cv_sys_max_cmd_len=16384
7585 if test -x /sbin/sysconfig; then
7586 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7587 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7592 lt_cv_sys_max_cmd_len=102400
7594 sysv5* | sco5v6* | sysv4.2uw2*)
7595 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7596 if test -n "$kargmax"; then
7597 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7599 lt_cv_sys_max_cmd_len=32768
7603 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7604 if test -n "$lt_cv_sys_max_cmd_len"; then
7605 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7606 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7608 # Make teststring a little bigger before we do anything with it.
7609 # a 1K string should be a reasonable start.
7610 for i in 1 2 3 4 5 6 7 8 ; do
7611 teststring=$teststring$teststring
7613 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7614 # If test is not a shell built-in, we'll probably end up computing a
7615 # maximum length that is only half of the actual maximum length, but
7617 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7618 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7619 test $i != 17 # 1/2 MB should be enough
7622 teststring=$teststring$teststring
7624 # Only check the string length outside the loop.
7625 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7627 # Add a significant safety factor because C++ compilers can tack on
7628 # massive amounts of additional arguments before passing them to the
7629 # linker. It appears as though 1/2 is a usable value.
7630 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7637 if test -n $lt_cv_sys_max_cmd_len ; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7639 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7642 $as_echo "none" >&6; }
7644 max_cmd_len=$lt_cv_sys_max_cmd_len
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7656 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7657 # Try some XSI features
7660 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7662 && eval 'test $(( 1 + 1 )) -eq 2 \
7663 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7666 $as_echo "$xsi_shell" >&6; }
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7670 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7672 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7674 && lt_shell_append=yes
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7676 $as_echo "$lt_shell_append" >&6; }
7679 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7689 # test EBCDIC or ASCII
7690 case `echo X|tr X '\101'` in
7691 A) # ASCII based system
7692 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7693 lt_SP2NL='tr \040 \012'
7694 lt_NL2SP='tr \015\012 \040\040'
7696 *) # EBCDIC based system
7697 lt_SP2NL='tr \100 \n'
7698 lt_NL2SP='tr \r\n \100\100'
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7711 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7712 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7713 $as_echo_n "(cached) " >&6
7715 lt_cv_ld_reload_flag='-r'
7717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7718 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7719 reload_flag=$lt_cv_ld_reload_flag
7720 case $reload_flag in
7722 *) reload_flag=" $reload_flag" ;;
7724 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7727 if test "$GCC" = yes; then
7728 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7730 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7743 if test -n "$ac_tool_prefix"; then
7744 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7745 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7749 $as_echo_n "(cached) " >&6
7751 if test -n "$OBJDUMP"; then
7752 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7761 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7771 OBJDUMP=$ac_cv_prog_OBJDUMP
7772 if test -n "$OBJDUMP"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7774 $as_echo "$OBJDUMP" >&6; }
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7782 if test -z "$ac_cv_prog_OBJDUMP"; then
7783 ac_ct_OBJDUMP=$OBJDUMP
7784 # Extract the first word of "objdump", so it can be a program name with args.
7785 set dummy objdump; ac_word=$2
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7787 $as_echo_n "checking for $ac_word... " >&6; }
7788 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7789 $as_echo_n "(cached) " >&6
7791 if test -n "$ac_ct_OBJDUMP"; then
7792 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7798 test -z "$as_dir" && as_dir=.
7799 for ac_exec_ext in '' $ac_executable_extensions; do
7800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7801 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7811 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7812 if test -n "$ac_ct_OBJDUMP"; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7814 $as_echo "$ac_ct_OBJDUMP" >&6; }
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7817 $as_echo "no" >&6; }
7820 if test "x$ac_ct_OBJDUMP" = x; then
7823 case $cross_compiling:$ac_tool_warned in
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7826 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7827 ac_tool_warned=yes ;;
7829 OBJDUMP=$ac_ct_OBJDUMP
7832 OBJDUMP="$ac_cv_prog_OBJDUMP"
7835 test -z "$OBJDUMP" && OBJDUMP=objdump
7845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7846 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7847 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7848 $as_echo_n "(cached) " >&6
7850 lt_cv_file_magic_cmd='$MAGIC_CMD'
7851 lt_cv_file_magic_test_file=
7852 lt_cv_deplibs_check_method='unknown'
7853 # Need to set the preceding variable on all platforms that support
7854 # interlibrary dependencies.
7855 # 'none' -- dependencies not supported.
7856 # `unknown' -- same as none, but documents that we really don't know.
7857 # 'pass_all' -- all dependencies passed with no checks.
7858 # 'test_compile' -- check by making test program.
7859 # 'file_magic [[regex]]' -- check by looking for files in library path
7860 # which responds to the $file_magic_cmd with a given extended regex.
7861 # If you have `file' or equivalent on your system and you're not sure
7862 # whether `pass_all' will *always* work, you probably want this one.
7866 lt_cv_deplibs_check_method=pass_all
7870 lt_cv_deplibs_check_method=pass_all
7874 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7875 lt_cv_file_magic_cmd='/usr/bin/file -L'
7876 lt_cv_file_magic_test_file=/shlib/libc.so
7880 # func_win32_libid is a shell function defined in ltmain.sh
7881 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7882 lt_cv_file_magic_cmd='func_win32_libid'
7886 # Base MSYS/MinGW do not provide the 'file' command needed by
7887 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7888 # unless we find 'file', for example because we are cross-compiling.
7889 if ( file / ) >/dev/null 2>&1; then
7890 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7891 lt_cv_file_magic_cmd='func_win32_libid'
7893 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7894 lt_cv_file_magic_cmd='$OBJDUMP -f'
7899 # use the weaker test based on 'objdump'. See mingw*.
7900 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7901 lt_cv_file_magic_cmd='$OBJDUMP -f'
7904 darwin* | rhapsody*)
7905 lt_cv_deplibs_check_method=pass_all
7908 freebsd* | dragonfly*)
7909 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7912 # Not sure whether the presence of OpenBSD here was a mistake.
7913 # Let's accept both of them until this is cleared up.
7914 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7915 lt_cv_file_magic_cmd=/usr/bin/file
7916 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7920 lt_cv_deplibs_check_method=pass_all
7925 lt_cv_deplibs_check_method=pass_all
7928 hpux10.20* | hpux11*)
7929 lt_cv_file_magic_cmd=/usr/bin/file
7932 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7933 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7936 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
7937 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7940 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7941 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7947 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7948 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7951 irix5* | irix6* | nonstopux*)
7953 *-32|*"-32 ") libmagic=32-bit;;
7954 *-n32|*"-n32 ") libmagic=N32;;
7955 *-64|*"-64 ") libmagic=64-bit;;
7956 *) libmagic=never-match;;
7958 lt_cv_deplibs_check_method=pass_all
7961 # This must be Linux ELF.
7962 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7963 lt_cv_deplibs_check_method=pass_all
7967 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7968 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7970 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7975 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7976 lt_cv_file_magic_cmd=/usr/bin/file
7977 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7981 lt_cv_deplibs_check_method=pass_all
7985 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7986 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7988 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7992 osf3* | osf4* | osf5*)
7993 lt_cv_deplibs_check_method=pass_all
7997 lt_cv_deplibs_check_method=pass_all
8001 lt_cv_deplibs_check_method=pass_all
8004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8005 lt_cv_deplibs_check_method=pass_all
8009 case $host_vendor in
8011 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]'
8012 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8015 lt_cv_deplibs_check_method=pass_all
8018 lt_cv_file_magic_cmd='/bin/file'
8019 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8022 lt_cv_file_magic_cmd='/bin/file'
8023 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8024 lt_cv_file_magic_test_file=/lib/libc.so
8027 lt_cv_deplibs_check_method=pass_all
8030 lt_cv_deplibs_check_method=pass_all
8036 lt_cv_deplibs_check_method=pass_all
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8042 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8043 file_magic_cmd=$lt_cv_file_magic_cmd
8044 deplibs_check_method=$lt_cv_deplibs_check_method
8045 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8058 if test -n "$ac_tool_prefix"; then
8059 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8060 set dummy ${ac_tool_prefix}ar; ac_word=$2
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062 $as_echo_n "checking for $ac_word... " >&6; }
8063 if test "${ac_cv_prog_AR+set}" = set; then :
8064 $as_echo_n "(cached) " >&6
8066 if test -n "$AR"; then
8067 ac_cv_prog_AR="$AR" # Let the user override the test.
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8076 ac_cv_prog_AR="${ac_tool_prefix}ar"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 if test -n "$AR"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8089 $as_echo "$AR" >&6; }
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 $as_echo "no" >&6; }
8097 if test -z "$ac_cv_prog_AR"; then
8099 # Extract the first word of "ar", so it can be a program name with args.
8100 set dummy ar; ac_word=$2
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8102 $as_echo_n "checking for $ac_word... " >&6; }
8103 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8104 $as_echo_n "(cached) " >&6
8106 if test -n "$ac_ct_AR"; then
8107 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8116 ac_cv_prog_ac_ct_AR="ar"
8117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8126 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8127 if test -n "$ac_ct_AR"; then
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8129 $as_echo "$ac_ct_AR" >&6; }
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8132 $as_echo "no" >&6; }
8135 if test "x$ac_ct_AR" = x; then
8138 case $cross_compiling:$ac_tool_warned in
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8141 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8142 ac_tool_warned=yes ;;
8150 test -z "$AR" && AR=ar
8151 test -z "$AR_FLAGS" && AR_FLAGS=cru
8163 if test -n "$ac_tool_prefix"; then
8164 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8165 set dummy ${ac_tool_prefix}strip; ac_word=$2
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8167 $as_echo_n "checking for $ac_word... " >&6; }
8168 if test "${ac_cv_prog_STRIP+set}" = set; then :
8169 $as_echo_n "(cached) " >&6
8171 if test -n "$STRIP"; then
8172 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 test -z "$as_dir" && as_dir=.
8179 for ac_exec_ext in '' $ac_executable_extensions; do
8180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8181 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8191 STRIP=$ac_cv_prog_STRIP
8192 if test -n "$STRIP"; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8194 $as_echo "$STRIP" >&6; }
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8197 $as_echo "no" >&6; }
8202 if test -z "$ac_cv_prog_STRIP"; then
8204 # Extract the first word of "strip", so it can be a program name with args.
8205 set dummy strip; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8211 if test -n "$ac_ct_STRIP"; then
8212 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221 ac_cv_prog_ac_ct_STRIP="strip"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8232 if test -n "$ac_ct_STRIP"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8234 $as_echo "$ac_ct_STRIP" >&6; }
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8240 if test "x$ac_ct_STRIP" = x; then
8243 case $cross_compiling:$ac_tool_warned in
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8247 ac_tool_warned=yes ;;
8252 STRIP="$ac_cv_prog_STRIP"
8255 test -z "$STRIP" && STRIP=:
8262 if test -n "$ac_tool_prefix"; then
8263 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8264 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8266 $as_echo_n "checking for $ac_word... " >&6; }
8267 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8268 $as_echo_n "(cached) " >&6
8270 if test -n "$RANLIB"; then
8271 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8277 test -z "$as_dir" && as_dir=.
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8280 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8290 RANLIB=$ac_cv_prog_RANLIB
8291 if test -n "$RANLIB"; then
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8293 $as_echo "$RANLIB" >&6; }
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }
8301 if test -z "$ac_cv_prog_RANLIB"; then
8302 ac_ct_RANLIB=$RANLIB
8303 # Extract the first word of "ranlib", so it can be a program name with args.
8304 set dummy ranlib; ac_word=$2
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8306 $as_echo_n "checking for $ac_word... " >&6; }
8307 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8308 $as_echo_n "(cached) " >&6
8310 if test -n "$ac_ct_RANLIB"; then
8311 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8317 test -z "$as_dir" && as_dir=.
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8320 ac_cv_prog_ac_ct_RANLIB="ranlib"
8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8330 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8331 if test -n "$ac_ct_RANLIB"; then
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8333 $as_echo "$ac_ct_RANLIB" >&6; }
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8336 $as_echo "no" >&6; }
8339 if test "x$ac_ct_RANLIB" = x; then
8342 case $cross_compiling:$ac_tool_warned in
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8346 ac_tool_warned=yes ;;
8348 RANLIB=$ac_ct_RANLIB
8351 RANLIB="$ac_cv_prog_RANLIB"
8354 test -z "$RANLIB" && RANLIB=:
8361 # Determine commands to create old-style static archives.
8362 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8363 old_postinstall_cmds='chmod 644 $oldlib'
8364 old_postuninstall_cmds=
8366 if test -n "$RANLIB"; then
8369 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8372 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8375 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8411 # If no C compiler was specified, use CC.
8414 # If no C compiler flags were specified, use CFLAGS.
8415 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8417 # Allow CC to be a program name with arguments.
8421 # Check for command to grab the raw symbol name followed by C symbol from nm.
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8423 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8424 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8425 $as_echo_n "(cached) " >&6
8428 # These are sane defaults that work on at least a few old systems.
8429 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8431 # Character class describing NM global symbol codes.
8432 symcode='[BCDEGRST]'
8434 # Regexp to match symbols that can be accessed directly from C.
8435 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8437 # Define system-specific variables.
8442 cygwin* | mingw* | pw32* | cegcc*)
8443 symcode='[ABCDGISTW]'
8446 if test "$host_cpu" = ia64; then
8447 symcode='[ABCDEGRST]'
8451 symcode='[BCDEGRST]'
8454 symcode='[BCDEGQRST]'
8465 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8473 # If we're using GNU nm, then use its standard symbol codes.
8474 case `$NM -V 2>&1` in
8475 *GNU* | *'with BFD'*)
8476 symcode='[ABCDGIRSTW]' ;;
8479 # Transform an extracted symbol line into a proper C declaration.
8480 # Some systems (esp. on ia64) link data and code symbols differently,
8481 # so use this general approach.
8482 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8484 # Transform an extracted symbol line into symbol name and symbol address
8485 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8486 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'"
8488 # Handle CRLF in mingw tool chain
8492 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8496 # Try without a prefix underscore, then with it.
8497 for ac_symprfx in "" "_"; do
8499 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8500 symxfrm="\\1 $ac_symprfx\\2 \\2"
8502 # Write the raw and C identifiers.
8503 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8504 # Fake it for dumpbin and say T for any non-static function
8505 # and D for any global variable.
8506 # Also find C++ and __fastcall symbols from MSVC++,
8507 # which start with @ or ?.
8508 lt_cv_sys_global_symbol_pipe="$AWK '"\
8509 " {last_section=section; section=\$ 3};"\
8510 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8511 " \$ 0!~/External *\|/{next};"\
8512 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8513 " {if(hide[section]) next};"\
8514 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8515 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8516 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8517 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8518 " ' prfx=^$ac_symprfx"
8520 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8523 # Check to see that the pipe works correctly.
8527 cat > conftest.$ac_ext <<_LT_EOF
8532 void nm_test_func(void);
8533 void nm_test_func(void){}
8537 int main(){nm_test_var='a';nm_test_func();return(0);}
8540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8541 (eval $ac_compile) 2>&5
8543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8544 test $ac_status = 0; }; then
8545 # Now try to grab the symbols.
8547 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8548 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8551 test $ac_status = 0; } && test -s "$nlist"; then
8552 # Try sorting and uniquifying the output.
8553 if sort "$nlist" | uniq > "$nlist"T; then
8554 mv -f "$nlist"T "$nlist"
8559 # Make sure that we snagged all the symbols we need.
8560 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8561 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8562 cat <<_LT_EOF > conftest.$ac_ext
8568 # Now generate the symbol file.
8569 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8571 cat <<_LT_EOF >> conftest.$ac_ext
8573 /* The mapping between symbol names and symbols. */
8578 lt__PROGRAM__LTX_preloaded_symbols[] =
8580 { "@PROGRAM@", (void *) 0 },
8582 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8583 cat <<\_LT_EOF >> conftest.$ac_ext
8587 /* This works around a problem in FreeBSD linker */
8588 #ifdef FREEBSD_WORKAROUND
8589 static const void *lt_preloaded_setup() {
8590 return lt__PROGRAM__LTX_preloaded_symbols;
8598 # Now try linking the two files.
8599 mv conftest.$ac_objext conftstm.$ac_objext
8600 lt_save_LIBS="$LIBS"
8601 lt_save_CFLAGS="$CFLAGS"
8602 LIBS="conftstm.$ac_objext"
8603 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8604 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8605 (eval $ac_link) 2>&5
8607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8608 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8611 LIBS="$lt_save_LIBS"
8612 CFLAGS="$lt_save_CFLAGS"
8614 echo "cannot find nm_test_func in $nlist" >&5
8617 echo "cannot find nm_test_var in $nlist" >&5
8620 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8623 echo "$progname: failed program was:" >&5
8624 cat conftest.$ac_ext >&5
8626 rm -rf conftest* conftst*
8628 # Do not use the global_symbol_pipe unless it works.
8629 if test "$pipe_works" = yes; then
8632 lt_cv_sys_global_symbol_pipe=
8638 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8639 lt_cv_sys_global_symbol_to_cdecl=
8641 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8643 $as_echo "failed" >&6; }
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8646 $as_echo "ok" >&6; }
8671 # Check whether --enable-libtool-lock was given.
8672 if test "${enable_libtool_lock+set}" = set; then :
8673 enableval=$enable_libtool_lock;
8676 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8678 # Some flags need to be propagated to the compiler or linker for good
8682 # Find out which ABI we are using.
8683 echo 'int i;' > conftest.$ac_ext
8684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8685 (eval $ac_compile) 2>&5
8687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8688 test $ac_status = 0; }; then
8689 case `/usr/bin/file conftest.$ac_objext` in
8701 # Find out which ABI we are using.
8702 echo '#line 8702 "configure"' > conftest.$ac_ext
8703 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8704 (eval $ac_compile) 2>&5
8706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8707 test $ac_status = 0; }; then
8708 if test "$lt_cv_prog_gnu_ld" = yes; then
8709 case `/usr/bin/file conftest.$ac_objext` in
8711 LD="${LD-ld} -melf32bsmip"
8714 LD="${LD-ld} -melf32bmipn32"
8717 LD="${LD-ld} -melf64bmip"
8721 case `/usr/bin/file conftest.$ac_objext` in
8737 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8738 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8739 # Find out which ABI we are using.
8740 echo 'int i;' > conftest.$ac_ext
8741 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8742 (eval $ac_compile) 2>&5
8744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8745 test $ac_status = 0; }; then
8746 case `/usr/bin/file conftest.o` in
8749 x86_64-*kfreebsd*-gnu)
8750 LD="${LD-ld} -m elf_i386_fbsd"
8753 LD="${LD-ld} -m elf_i386"
8755 ppc64-*linux*|powerpc64-*linux*)
8756 LD="${LD-ld} -m elf32ppclinux"
8759 LD="${LD-ld} -m elf_s390"
8762 LD="${LD-ld} -m elf32_sparc"
8768 x86_64-*kfreebsd*-gnu)
8769 LD="${LD-ld} -m elf_x86_64_fbsd"
8772 LD="${LD-ld} -m elf_x86_64"
8774 ppc*-*linux*|powerpc*-*linux*)
8775 LD="${LD-ld} -m elf64ppc"
8777 s390*-*linux*|s390*-*tpf*)
8778 LD="${LD-ld} -m elf64_s390"
8781 LD="${LD-ld} -m elf64_sparc"
8791 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8792 SAVE_CFLAGS="$CFLAGS"
8793 CFLAGS="$CFLAGS -belf"
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8795 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8796 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8797 $as_echo_n "(cached) " >&6
8800 ac_cpp='$CPP $CPPFLAGS'
8801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8805 if test x$gcc_no_link = xyes; then
8806 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8819 if ac_fn_c_try_link "$LINENO"; then :
8820 lt_cv_cc_needs_belf=yes
8822 lt_cv_cc_needs_belf=no
8824 rm -f core conftest.err conftest.$ac_objext \
8825 conftest$ac_exeext conftest.$ac_ext
8827 ac_cpp='$CPP $CPPFLAGS'
8828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8834 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8835 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8836 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8837 CFLAGS="$SAVE_CFLAGS"
8841 # Find out which ABI we are using.
8842 echo 'int i;' > conftest.$ac_ext
8843 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8844 (eval $ac_compile) 2>&5
8846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8847 test $ac_status = 0; }; then
8848 case `/usr/bin/file conftest.o` in
8850 case $lt_cv_prog_gnu_ld in
8851 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8853 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8865 need_locks="$enable_libtool_lock"
8869 rhapsody* | darwin*)
8870 if test -n "$ac_tool_prefix"; then
8871 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8872 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8876 $as_echo_n "(cached) " >&6
8878 if test -n "$DSYMUTIL"; then
8879 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8888 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8898 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8899 if test -n "$DSYMUTIL"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8901 $as_echo "$DSYMUTIL" >&6; }
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8909 if test -z "$ac_cv_prog_DSYMUTIL"; then
8910 ac_ct_DSYMUTIL=$DSYMUTIL
8911 # Extract the first word of "dsymutil", so it can be a program name with args.
8912 set dummy dsymutil; ac_word=$2
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914 $as_echo_n "checking for $ac_word... " >&6; }
8915 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8916 $as_echo_n "(cached) " >&6
8918 if test -n "$ac_ct_DSYMUTIL"; then
8919 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925 test -z "$as_dir" && as_dir=.
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8928 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8938 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8939 if test -n "$ac_ct_DSYMUTIL"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8941 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 $as_echo "no" >&6; }
8947 if test "x$ac_ct_DSYMUTIL" = x; then
8950 case $cross_compiling:$ac_tool_warned in
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8954 ac_tool_warned=yes ;;
8956 DSYMUTIL=$ac_ct_DSYMUTIL
8959 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8962 if test -n "$ac_tool_prefix"; then
8963 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8964 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8966 $as_echo_n "checking for $ac_word... " >&6; }
8967 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8968 $as_echo_n "(cached) " >&6
8970 if test -n "$NMEDIT"; then
8971 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977 test -z "$as_dir" && as_dir=.
8978 for ac_exec_ext in '' $ac_executable_extensions; do
8979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8980 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8990 NMEDIT=$ac_cv_prog_NMEDIT
8991 if test -n "$NMEDIT"; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8993 $as_echo "$NMEDIT" >&6; }
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
9001 if test -z "$ac_cv_prog_NMEDIT"; then
9002 ac_ct_NMEDIT=$NMEDIT
9003 # Extract the first word of "nmedit", so it can be a program name with args.
9004 set dummy nmedit; ac_word=$2
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006 $as_echo_n "checking for $ac_word... " >&6; }
9007 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9008 $as_echo_n "(cached) " >&6
9010 if test -n "$ac_ct_NMEDIT"; then
9011 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9017 test -z "$as_dir" && as_dir=.
9018 for ac_exec_ext in '' $ac_executable_extensions; do
9019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9020 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9030 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9031 if test -n "$ac_ct_NMEDIT"; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9033 $as_echo "$ac_ct_NMEDIT" >&6; }
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }
9039 if test "x$ac_ct_NMEDIT" = x; then
9042 case $cross_compiling:$ac_tool_warned in
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9046 ac_tool_warned=yes ;;
9048 NMEDIT=$ac_ct_NMEDIT
9051 NMEDIT="$ac_cv_prog_NMEDIT"
9054 if test -n "$ac_tool_prefix"; then
9055 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9056 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if test "${ac_cv_prog_LIPO+set}" = set; then :
9060 $as_echo_n "(cached) " >&6
9062 if test -n "$LIPO"; then
9063 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9072 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9082 LIPO=$ac_cv_prog_LIPO
9083 if test -n "$LIPO"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9085 $as_echo "$LIPO" >&6; }
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9093 if test -z "$ac_cv_prog_LIPO"; then
9095 # Extract the first word of "lipo", so it can be a program name with args.
9096 set dummy lipo; ac_word=$2
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9098 $as_echo_n "checking for $ac_word... " >&6; }
9099 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9100 $as_echo_n "(cached) " >&6
9102 if test -n "$ac_ct_LIPO"; then
9103 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9109 test -z "$as_dir" && as_dir=.
9110 for ac_exec_ext in '' $ac_executable_extensions; do
9111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9112 ac_cv_prog_ac_ct_LIPO="lipo"
9113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9122 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9123 if test -n "$ac_ct_LIPO"; then
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9125 $as_echo "$ac_ct_LIPO" >&6; }
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9128 $as_echo "no" >&6; }
9131 if test "x$ac_ct_LIPO" = x; then
9134 case $cross_compiling:$ac_tool_warned in
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9138 ac_tool_warned=yes ;;
9143 LIPO="$ac_cv_prog_LIPO"
9146 if test -n "$ac_tool_prefix"; then
9147 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9148 set dummy ${ac_tool_prefix}otool; ac_word=$2
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9150 $as_echo_n "checking for $ac_word... " >&6; }
9151 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9152 $as_echo_n "(cached) " >&6
9154 if test -n "$OTOOL"; then
9155 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161 test -z "$as_dir" && as_dir=.
9162 for ac_exec_ext in '' $ac_executable_extensions; do
9163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9164 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9174 OTOOL=$ac_cv_prog_OTOOL
9175 if test -n "$OTOOL"; then
9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9177 $as_echo "$OTOOL" >&6; }
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9180 $as_echo "no" >&6; }
9185 if test -z "$ac_cv_prog_OTOOL"; then
9187 # Extract the first word of "otool", so it can be a program name with args.
9188 set dummy otool; ac_word=$2
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9190 $as_echo_n "checking for $ac_word... " >&6; }
9191 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9192 $as_echo_n "(cached) " >&6
9194 if test -n "$ac_ct_OTOOL"; then
9195 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9201 test -z "$as_dir" && as_dir=.
9202 for ac_exec_ext in '' $ac_executable_extensions; do
9203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9204 ac_cv_prog_ac_ct_OTOOL="otool"
9205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9214 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9215 if test -n "$ac_ct_OTOOL"; then
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9217 $as_echo "$ac_ct_OTOOL" >&6; }
9219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9220 $as_echo "no" >&6; }
9223 if test "x$ac_ct_OTOOL" = x; then
9226 case $cross_compiling:$ac_tool_warned in
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9230 ac_tool_warned=yes ;;
9235 OTOOL="$ac_cv_prog_OTOOL"
9238 if test -n "$ac_tool_prefix"; then
9239 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9240 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9242 $as_echo_n "checking for $ac_word... " >&6; }
9243 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9244 $as_echo_n "(cached) " >&6
9246 if test -n "$OTOOL64"; then
9247 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253 test -z "$as_dir" && as_dir=.
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9256 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9266 OTOOL64=$ac_cv_prog_OTOOL64
9267 if test -n "$OTOOL64"; then
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9269 $as_echo "$OTOOL64" >&6; }
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272 $as_echo "no" >&6; }
9277 if test -z "$ac_cv_prog_OTOOL64"; then
9278 ac_ct_OTOOL64=$OTOOL64
9279 # Extract the first word of "otool64", so it can be a program name with args.
9280 set dummy otool64; ac_word=$2
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9282 $as_echo_n "checking for $ac_word... " >&6; }
9283 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9284 $as_echo_n "(cached) " >&6
9286 if test -n "$ac_ct_OTOOL64"; then
9287 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9293 test -z "$as_dir" && as_dir=.
9294 for ac_exec_ext in '' $ac_executable_extensions; do
9295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9296 ac_cv_prog_ac_ct_OTOOL64="otool64"
9297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9307 if test -n "$ac_ct_OTOOL64"; then
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9309 $as_echo "$ac_ct_OTOOL64" >&6; }
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9312 $as_echo "no" >&6; }
9315 if test "x$ac_ct_OTOOL64" = x; then
9318 case $cross_compiling:$ac_tool_warned in
9320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9321 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9322 ac_tool_warned=yes ;;
9324 OTOOL64=$ac_ct_OTOOL64
9327 OTOOL64="$ac_cv_prog_OTOOL64"
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9357 $as_echo_n "checking for -single_module linker flag... " >&6; }
9358 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9359 $as_echo_n "(cached) " >&6
9361 lt_cv_apple_cc_single_mod=no
9362 if test -z "${LT_MULTI_MODULE}"; then
9363 # By default we will add the -single_module flag. You can override
9364 # by either setting the environment variable LT_MULTI_MODULE
9365 # non-empty at configure time, or by adding -multi_module to the
9367 rm -rf libconftest.dylib*
9368 echo "int foo(void){return 1;}" > conftest.c
9369 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9370 -dynamiclib -Wl,-single_module conftest.c" >&5
9371 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9372 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9374 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9375 lt_cv_apple_cc_single_mod=yes
9377 cat conftest.err >&5
9379 rm -rf libconftest.dylib*
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9384 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9386 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9387 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9388 $as_echo_n "(cached) " >&6
9390 lt_cv_ld_exported_symbols_list=no
9391 save_LDFLAGS=$LDFLAGS
9392 echo "_main" > conftest.sym
9393 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9394 if test x$gcc_no_link = xyes; then
9395 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9408 if ac_fn_c_try_link "$LINENO"; then :
9409 lt_cv_ld_exported_symbols_list=yes
9411 lt_cv_ld_exported_symbols_list=no
9413 rm -f core conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
9415 LDFLAGS="$save_LDFLAGS"
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9419 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9421 rhapsody* | darwin1.[012])
9422 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9424 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9425 darwin*) # darwin 5.x on
9426 # if running on 10.5 or later, the deployment target defaults
9427 # to the OS version, if on x86, and 10.4, the deployment
9428 # target defaults to 10.4. Don't you love it?
9429 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9430 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9431 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9433 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9435 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9439 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9440 _lt_dar_single_mod='$single_module'
9442 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9443 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9445 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9447 if test "$DSYMUTIL" != ":"; then
9448 _lt_dsymutil='~$DSYMUTIL $lib || :'
9456 ac_cpp='$CPP $CPPFLAGS'
9457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9461 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9462 # On Suns, sometimes $CPP names a directory.
9463 if test -n "$CPP" && test -d "$CPP"; then
9466 if test -z "$CPP"; then
9467 if test "${ac_cv_prog_CPP+set}" = set; then :
9468 $as_echo_n "(cached) " >&6
9470 # Double quotes because CPP needs to be expanded
9471 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9474 for ac_c_preproc_warn_flag in '' yes
9476 # Use a header file that comes with gcc, so configuring glibc
9477 # with a fresh cross-compiler works.
9478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9479 # <limits.h> exists even on freestanding compilers.
9480 # On the NeXT, cc -E runs the code through the compiler's parser,
9481 # not just through cpp. "Syntax error" is here to catch this case.
9482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9483 /* end confdefs.h. */
9485 # include <limits.h>
9487 # include <assert.h>
9491 if ac_fn_c_try_cpp "$LINENO"; then :
9494 # Broken: fails on valid input.
9497 rm -f conftest.err conftest.$ac_ext
9499 # OK, works on sane cases. Now check whether nonexistent headers
9500 # can be detected and how.
9501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9502 /* end confdefs.h. */
9503 #include <ac_nonexistent.h>
9505 if ac_fn_c_try_cpp "$LINENO"; then :
9506 # Broken: success on invalid input.
9509 # Passes both tests.
9513 rm -f conftest.err conftest.$ac_ext
9516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9517 rm -f conftest.err conftest.$ac_ext
9518 if $ac_preproc_ok; then :
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9531 $as_echo "$CPP" >&6; }
9533 for ac_c_preproc_warn_flag in '' yes
9535 # Use a header file that comes with gcc, so configuring glibc
9536 # with a fresh cross-compiler works.
9537 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9538 # <limits.h> exists even on freestanding compilers.
9539 # On the NeXT, cc -E runs the code through the compiler's parser,
9540 # not just through cpp. "Syntax error" is here to catch this case.
9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9542 /* end confdefs.h. */
9544 # include <limits.h>
9546 # include <assert.h>
9550 if ac_fn_c_try_cpp "$LINENO"; then :
9553 # Broken: fails on valid input.
9556 rm -f conftest.err conftest.$ac_ext
9558 # OK, works on sane cases. Now check whether nonexistent headers
9559 # can be detected and how.
9560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* end confdefs.h. */
9562 #include <ac_nonexistent.h>
9564 if ac_fn_c_try_cpp "$LINENO"; then :
9565 # Broken: success on invalid input.
9568 # Passes both tests.
9572 rm -f conftest.err conftest.$ac_ext
9575 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9576 rm -f conftest.err conftest.$ac_ext
9577 if $ac_preproc_ok; then :
9580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9582 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9583 See \`config.log' for more details." "$LINENO" 5; }
9587 ac_cpp='$CPP $CPPFLAGS'
9588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9594 $as_echo_n "checking for ANSI C header files... " >&6; }
9595 if test "${ac_cv_header_stdc+set}" = set; then :
9596 $as_echo_n "(cached) " >&6
9598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9599 /* end confdefs.h. */
9613 if ac_fn_c_try_compile "$LINENO"; then :
9614 ac_cv_header_stdc=yes
9616 ac_cv_header_stdc=no
9618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9620 if test $ac_cv_header_stdc = yes; then
9621 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9623 /* end confdefs.h. */
9627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9628 $EGREP "memchr" >/dev/null 2>&1; then :
9631 ac_cv_header_stdc=no
9637 if test $ac_cv_header_stdc = yes; then
9638 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9640 /* end confdefs.h. */
9644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9645 $EGREP "free" >/dev/null 2>&1; then :
9648 ac_cv_header_stdc=no
9654 if test $ac_cv_header_stdc = yes; then
9655 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9656 if test "$cross_compiling" = yes; then :
9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660 /* end confdefs.h. */
9663 #if ((' ' & 0x0FF) == 0x020)
9664 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9665 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9667 # define ISLOWER(c) \
9668 (('a' <= (c) && (c) <= 'i') \
9669 || ('j' <= (c) && (c) <= 'r') \
9670 || ('s' <= (c) && (c) <= 'z'))
9671 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9674 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9679 for (i = 0; i < 256; i++)
9680 if (XOR (islower (i), ISLOWER (i))
9681 || toupper (i) != TOUPPER (i))
9686 if ac_fn_c_try_run "$LINENO"; then :
9689 ac_cv_header_stdc=no
9691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9692 conftest.$ac_objext conftest.beam conftest.$ac_ext
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9698 $as_echo "$ac_cv_header_stdc" >&6; }
9699 if test $ac_cv_header_stdc = yes; then
9701 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9705 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9706 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9707 inttypes.h stdint.h unistd.h
9709 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9710 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9712 eval as_val=\$$as_ac_Header
9713 if test "x$as_val" = x""yes; then :
9714 cat >>confdefs.h <<_ACEOF
9715 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9723 for ac_header in dlfcn.h
9725 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9727 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9728 cat >>confdefs.h <<_ACEOF
9729 #define HAVE_DLFCN_H 1
9739 ac_cpp='$CXXCPP $CPPFLAGS'
9740 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9741 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9742 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9743 if test -z "$CXX"; then
9744 if test -n "$CCC"; then
9747 if test -n "$ac_tool_prefix"; then
9748 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9750 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9751 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9753 $as_echo_n "checking for $ac_word... " >&6; }
9754 if test "${ac_cv_prog_CXX+set}" = set; then :
9755 $as_echo_n "(cached) " >&6
9757 if test -n "$CXX"; then
9758 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9764 test -z "$as_dir" && as_dir=.
9765 for ac_exec_ext in '' $ac_executable_extensions; do
9766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9767 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9778 if test -n "$CXX"; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9780 $as_echo "$CXX" >&6; }
9782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9783 $as_echo "no" >&6; }
9787 test -n "$CXX" && break
9790 if test -z "$CXX"; then
9792 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9794 # Extract the first word of "$ac_prog", so it can be a program name with args.
9795 set dummy $ac_prog; ac_word=$2
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9797 $as_echo_n "checking for $ac_word... " >&6; }
9798 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9799 $as_echo_n "(cached) " >&6
9801 if test -n "$ac_ct_CXX"; then
9802 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9808 test -z "$as_dir" && as_dir=.
9809 for ac_exec_ext in '' $ac_executable_extensions; do
9810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9811 ac_cv_prog_ac_ct_CXX="$ac_prog"
9812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9821 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9822 if test -n "$ac_ct_CXX"; then
9823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9824 $as_echo "$ac_ct_CXX" >&6; }
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9827 $as_echo "no" >&6; }
9831 test -n "$ac_ct_CXX" && break
9834 if test "x$ac_ct_CXX" = x; then
9837 case $cross_compiling:$ac_tool_warned in
9839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9840 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9841 ac_tool_warned=yes ;;
9849 # Provide some information about the compiler.
9850 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9853 for ac_option in --version -v -V -qversion; do
9854 { { ac_try="$ac_compiler $ac_option >&5"
9856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9857 *) ac_try_echo=$ac_try;;
9859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9860 $as_echo "$ac_try_echo"; } >&5
9861 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9863 if test -s conftest.err; then
9865 ... rest of stderr output deleted ...
9866 10q' conftest.err >conftest.er1
9867 cat conftest.er1 >&5
9868 rm -f conftest.er1 conftest.err
9870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9871 test $ac_status = 0; }
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9875 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9876 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9877 $as_echo_n "(cached) " >&6
9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880 /* end confdefs.h. */
9893 if ac_fn_cxx_try_compile "$LINENO"; then :
9898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9899 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9903 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9904 if test $ac_compiler_gnu = yes; then
9909 ac_test_CXXFLAGS=${CXXFLAGS+set}
9910 ac_save_CXXFLAGS=$CXXFLAGS
9911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9912 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9913 if test "${ac_cv_prog_cxx_g+set}" = set; then :
9914 $as_echo_n "(cached) " >&6
9916 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9917 ac_cxx_werror_flag=yes
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9931 if ac_fn_cxx_try_compile "$LINENO"; then :
9932 ac_cv_prog_cxx_g=yes
9935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9936 /* end confdefs.h. */
9946 if ac_fn_cxx_try_compile "$LINENO"; then :
9949 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952 /* end confdefs.h. */
9962 if ac_fn_cxx_try_compile "$LINENO"; then :
9963 ac_cv_prog_cxx_g=yes
9965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9970 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9973 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9974 if test "$ac_test_CXXFLAGS" = set; then
9975 CXXFLAGS=$ac_save_CXXFLAGS
9976 elif test $ac_cv_prog_cxx_g = yes; then
9977 if test "$GXX" = yes; then
9983 if test "$GXX" = yes; then
9990 ac_cpp='$CPP $CPPFLAGS'
9991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9995 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9996 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9997 (test "X$CXX" != "Xg++"))) ; then
9999 ac_cpp='$CXXCPP $CPPFLAGS'
10000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10004 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10005 if test -z "$CXXCPP"; then
10006 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10007 $as_echo_n "(cached) " >&6
10009 # Double quotes because CXXCPP needs to be expanded
10010 for CXXCPP in "$CXX -E" "/lib/cpp"
10012 ac_preproc_ok=false
10013 for ac_cxx_preproc_warn_flag in '' yes
10015 # Use a header file that comes with gcc, so configuring glibc
10016 # with a fresh cross-compiler works.
10017 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018 # <limits.h> exists even on freestanding compilers.
10019 # On the NeXT, cc -E runs the code through the compiler's parser,
10020 # not just through cpp. "Syntax error" is here to catch this case.
10021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10022 /* end confdefs.h. */
10024 # include <limits.h>
10026 # include <assert.h>
10030 if ac_fn_cxx_try_cpp "$LINENO"; then :
10033 # Broken: fails on valid input.
10036 rm -f conftest.err conftest.$ac_ext
10038 # OK, works on sane cases. Now check whether nonexistent headers
10039 # can be detected and how.
10040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10041 /* end confdefs.h. */
10042 #include <ac_nonexistent.h>
10044 if ac_fn_cxx_try_cpp "$LINENO"; then :
10045 # Broken: success on invalid input.
10048 # Passes both tests.
10052 rm -f conftest.err conftest.$ac_ext
10055 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10056 rm -f conftest.err conftest.$ac_ext
10057 if $ac_preproc_ok; then :
10062 ac_cv_prog_CXXCPP=$CXXCPP
10065 CXXCPP=$ac_cv_prog_CXXCPP
10067 ac_cv_prog_CXXCPP=$CXXCPP
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10070 $as_echo "$CXXCPP" >&6; }
10071 ac_preproc_ok=false
10072 for ac_cxx_preproc_warn_flag in '' yes
10074 # Use a header file that comes with gcc, so configuring glibc
10075 # with a fresh cross-compiler works.
10076 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10077 # <limits.h> exists even on freestanding compilers.
10078 # On the NeXT, cc -E runs the code through the compiler's parser,
10079 # not just through cpp. "Syntax error" is here to catch this case.
10080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10081 /* end confdefs.h. */
10083 # include <limits.h>
10085 # include <assert.h>
10089 if ac_fn_cxx_try_cpp "$LINENO"; then :
10092 # Broken: fails on valid input.
10095 rm -f conftest.err conftest.$ac_ext
10097 # OK, works on sane cases. Now check whether nonexistent headers
10098 # can be detected and how.
10099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10100 /* end confdefs.h. */
10101 #include <ac_nonexistent.h>
10103 if ac_fn_cxx_try_cpp "$LINENO"; then :
10104 # Broken: success on invalid input.
10107 # Passes both tests.
10111 rm -f conftest.err conftest.$ac_ext
10114 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10115 rm -f conftest.err conftest.$ac_ext
10116 if $ac_preproc_ok; then :
10119 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10121 _lt_caught_CXX_error=yes; }
10125 ac_cpp='$CPP $CPPFLAGS'
10126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10131 _lt_caught_CXX_error=yes
10143 enable_win32_dll=no
10146 # Check whether --enable-shared was given.
10147 if test "${enable_shared+set}" = set; then :
10148 enableval=$enable_shared; p=${PACKAGE-default}
10150 yes) enable_shared=yes ;;
10151 no) enable_shared=no ;;
10154 # Look at the argument we got. We use all the common list separators.
10155 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10156 for pkg in $enableval; do
10158 if test "X$pkg" = "X$p"; then
10177 # Check whether --enable-static was given.
10178 if test "${enable_static+set}" = set; then :
10179 enableval=$enable_static; p=${PACKAGE-default}
10181 yes) enable_static=yes ;;
10182 no) enable_static=no ;;
10185 # Look at the argument we got. We use all the common list separators.
10186 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10187 for pkg in $enableval; do
10189 if test "X$pkg" = "X$p"; then
10209 # Check whether --with-pic was given.
10210 if test "${with_pic+set}" = set; then :
10211 withval=$with_pic; pic_mode="$withval"
10217 test -z "$pic_mode" && pic_mode=default
10225 # Check whether --enable-fast-install was given.
10226 if test "${enable_fast_install+set}" = set; then :
10227 enableval=$enable_fast_install; p=${PACKAGE-default}
10229 yes) enable_fast_install=yes ;;
10230 no) enable_fast_install=no ;;
10232 enable_fast_install=no
10233 # Look at the argument we got. We use all the common list separators.
10234 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10235 for pkg in $enableval; do
10237 if test "X$pkg" = "X$p"; then
10238 enable_fast_install=yes
10245 enable_fast_install=yes
10258 # This can be used to rebuild libtool when needed
10259 LIBTOOL_DEPS="$ltmain"
10261 # Always use our own libtool.
10262 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10288 test -z "$LN_S" && LN_S="ln -s"
10303 if test -n "${ZSH_VERSION+set}" ; then
10304 setopt NO_GLOB_SUBST
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10308 $as_echo_n "checking for objdir... " >&6; }
10309 if test "${lt_cv_objdir+set}" = set; then :
10310 $as_echo_n "(cached) " >&6
10312 rm -f .libs 2>/dev/null
10313 mkdir .libs 2>/dev/null
10314 if test -d .libs; then
10317 # MS-DOS does not allow filenames that begin with a dot.
10320 rmdir .libs 2>/dev/null
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10323 $as_echo "$lt_cv_objdir" >&6; }
10324 objdir=$lt_cv_objdir
10330 cat >>confdefs.h <<_ACEOF
10331 #define LT_OBJDIR "$lt_cv_objdir/"
10352 # AIX sometimes has problems with the GCC collect2 program. For some
10353 # reason, if we set the COLLECT_NAMES environment variable, the problems
10354 # vanish in a puff of smoke.
10355 if test "X${COLLECT_NAMES+set}" != Xset; then
10357 export COLLECT_NAMES
10362 # Sed substitution that helps us do robust quoting. It backslashifies
10363 # metacharacters that are still active within double-quoted strings.
10364 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10366 # Same as above, but do not quote variable references.
10367 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10369 # Sed substitution to delay expansion of an escaped shell variable in a
10370 # double_quote_subst'ed string.
10371 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10373 # Sed substitution to delay expansion of an escaped single quote.
10374 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10376 # Sed substitution to avoid accidental globbing in evaled expressions
10377 no_glob_subst='s/\*/\\\*/g'
10379 # Global variables:
10381 can_build_shared=yes
10383 # All known linkers require a `.a' archive for static linking (except MSVC,
10384 # which needs '.lib').
10387 with_gnu_ld="$lt_cv_prog_gnu_ld"
10390 old_CFLAGS="$CFLAGS"
10392 # Set sane defaults for various variables
10393 test -z "$CC" && CC=cc
10394 test -z "$LTCC" && LTCC=$CC
10395 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10396 test -z "$LD" && LD=ld
10397 test -z "$ac_objext" && ac_objext=o
10399 for cc_temp in $compiler""; do
10401 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10402 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10407 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10410 # Only perform the check for file, if the check method requires it
10411 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10412 case $deplibs_check_method in
10414 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10416 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10417 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10418 $as_echo_n "(cached) " >&6
10422 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10425 lt_save_MAGIC_CMD="$MAGIC_CMD"
10426 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10427 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10428 for ac_dir in $ac_dummy; do
10430 test -z "$ac_dir" && ac_dir=.
10431 if test -f $ac_dir/${ac_tool_prefix}file; then
10432 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10433 if test -n "$file_magic_test_file"; then
10434 case $deplibs_check_method in
10436 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10437 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10438 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10439 $EGREP "$file_magic_regex" > /dev/null; then
10444 *** Warning: the command libtool uses to detect shared libraries,
10445 *** $file_magic_cmd, produces output that libtool cannot recognize.
10446 *** The result is that libtool may fail to recognize shared libraries
10447 *** as such. This will affect the creation of libtool libraries that
10448 *** depend on shared libraries, but programs linked with such libtool
10449 *** libraries will work regardless of this problem. Nevertheless, you
10450 *** may want to report the problem to your system manager and/or to
10451 *** bug-libtool@gnu.org
10461 MAGIC_CMD="$lt_save_MAGIC_CMD"
10466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10467 if test -n "$MAGIC_CMD"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10469 $as_echo "$MAGIC_CMD" >&6; }
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10472 $as_echo "no" >&6; }
10479 if test -z "$lt_cv_path_MAGIC_CMD"; then
10480 if test -n "$ac_tool_prefix"; then
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10482 $as_echo_n "checking for file... " >&6; }
10483 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10484 $as_echo_n "(cached) " >&6
10488 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10491 lt_save_MAGIC_CMD="$MAGIC_CMD"
10492 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10493 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10494 for ac_dir in $ac_dummy; do
10496 test -z "$ac_dir" && ac_dir=.
10497 if test -f $ac_dir/file; then
10498 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10499 if test -n "$file_magic_test_file"; then
10500 case $deplibs_check_method in
10502 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10503 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10504 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10505 $EGREP "$file_magic_regex" > /dev/null; then
10510 *** Warning: the command libtool uses to detect shared libraries,
10511 *** $file_magic_cmd, produces output that libtool cannot recognize.
10512 *** The result is that libtool may fail to recognize shared libraries
10513 *** as such. This will affect the creation of libtool libraries that
10514 *** depend on shared libraries, but programs linked with such libtool
10515 *** libraries will work regardless of this problem. Nevertheless, you
10516 *** may want to report the problem to your system manager and/or to
10517 *** bug-libtool@gnu.org
10527 MAGIC_CMD="$lt_save_MAGIC_CMD"
10532 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10533 if test -n "$MAGIC_CMD"; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10535 $as_echo "$MAGIC_CMD" >&6; }
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10538 $as_echo "no" >&6; }
10551 # Use C for the default configuration in the libtool script
10555 ac_cpp='$CPP $CPPFLAGS'
10556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10561 # Source file extension for C test sources.
10564 # Object file extension for compiled C test sources.
10568 # Code to be used in simple compile tests
10569 lt_simple_compile_test_code="int some_variable = 0;"
10571 # Code to be used in simple link tests
10572 lt_simple_link_test_code='int main(){return(0);}'
10580 # If no C compiler was specified, use CC.
10583 # If no C compiler flags were specified, use CFLAGS.
10584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10586 # Allow CC to be a program name with arguments.
10589 # Save the default compiler, since it gets overwritten when the other
10590 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10591 compiler_DEFAULT=$CC
10593 # save warnings/boilerplate of simple test code
10594 ac_outfile=conftest.$ac_objext
10595 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10596 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10597 _lt_compiler_boilerplate=`cat conftest.err`
10600 ac_outfile=conftest.$ac_objext
10601 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10602 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10603 _lt_linker_boilerplate=`cat conftest.err`
10608 ## There is no encapsulation within the following macros, do not change
10609 ## the running order or otherwise move them around unless you know exactly
10610 ## what you are doing...
10611 if test -n "$compiler"; then
10613 lt_prog_compiler_no_builtin_flag=
10615 if test "$GCC" = yes; then
10616 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10619 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10620 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10621 $as_echo_n "(cached) " >&6
10623 lt_cv_prog_compiler_rtti_exceptions=no
10624 ac_outfile=conftest.$ac_objext
10625 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10626 lt_compiler_flag="-fno-rtti -fno-exceptions"
10627 # Insert the option either (1) after the last *FLAGS variable, or
10628 # (2) before a word containing "conftest.", or (3) at the end.
10629 # Note that $ac_compile itself does not contain backslashes and begins
10630 # with a dollar sign (not a hyphen), so the echo should work correctly.
10631 # The option is referenced via a variable to avoid confusing sed.
10632 lt_compile=`echo "$ac_compile" | $SED \
10633 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10634 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10635 -e 's:$: $lt_compiler_flag:'`
10636 (eval echo "\"\$as_me:10636: $lt_compile\"" >&5)
10637 (eval "$lt_compile" 2>conftest.err)
10639 cat conftest.err >&5
10640 echo "$as_me:10640: \$? = $ac_status" >&5
10641 if (exit $ac_status) && test -s "$ac_outfile"; then
10642 # The compiler can only warn and ignore the option if not recognized
10643 # So say no if there are warnings other than the usual output.
10644 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10645 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10646 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10647 lt_cv_prog_compiler_rtti_exceptions=yes
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10654 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10656 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10657 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10669 lt_prog_compiler_wl=
10670 lt_prog_compiler_pic=
10671 lt_prog_compiler_static=
10673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10674 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10676 if test "$GCC" = yes; then
10677 lt_prog_compiler_wl='-Wl,'
10678 lt_prog_compiler_static='-static'
10682 # All AIX code is PIC.
10683 if test "$host_cpu" = ia64; then
10684 # AIX 5 now supports IA64 processor
10685 lt_prog_compiler_static='-Bstatic'
10692 # see comment about AmigaOS4 .so support
10693 lt_prog_compiler_pic='-fPIC'
10696 # FIXME: we need at least 68020 code to build shared libraries, but
10697 # adding the `-m68020' flag to GCC prevents building anything better,
10699 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10704 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10705 # PIC is the default for these OSes.
10708 mingw* | cygwin* | pw32* | os2* | cegcc*)
10709 # This hack is so that the source file can tell whether it is being
10710 # built for inclusion in a dll (and should export symbols for example).
10711 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10712 # (--disable-auto-import) libraries
10713 lt_prog_compiler_pic='-DDLL_EXPORT'
10716 darwin* | rhapsody*)
10717 # PIC is the default on this platform
10718 # Common symbols not allowed in MH_DYLIB files
10719 lt_prog_compiler_pic='-fno-common'
10723 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10724 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10725 # sets the default TLS model and affects inlining.
10731 lt_prog_compiler_pic='-fPIC'
10737 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10738 # Instead, we relocate shared libraries at runtime.
10742 # Just because we use GCC doesn't mean we suddenly get shared libraries
10743 # on systems that don't support them.
10744 lt_prog_compiler_can_build_shared=no
10749 # QNX uses GNU C++, but need to define -shared option too, otherwise
10750 # it will coredump.
10751 lt_prog_compiler_pic='-fPIC -shared'
10755 if test -d /usr/nec; then
10756 lt_prog_compiler_pic=-Kconform_pic
10761 lt_prog_compiler_pic='-fPIC'
10765 # PORTME Check for flag to pass linker flags through the system compiler.
10768 lt_prog_compiler_wl='-Wl,'
10769 if test "$host_cpu" = ia64; then
10770 # AIX 5 now supports IA64 processor
10771 lt_prog_compiler_static='-Bstatic'
10773 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10777 mingw* | cygwin* | pw32* | os2* | cegcc*)
10778 # This hack is so that the source file can tell whether it is being
10779 # built for inclusion in a dll (and should export symbols for example).
10780 lt_prog_compiler_pic='-DDLL_EXPORT'
10783 hpux9* | hpux10* | hpux11*)
10784 lt_prog_compiler_wl='-Wl,'
10785 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10786 # not for PA HP-UX.
10792 lt_prog_compiler_pic='+Z'
10795 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10796 lt_prog_compiler_static='${wl}-a ${wl}archive'
10799 irix5* | irix6* | nonstopux*)
10800 lt_prog_compiler_wl='-Wl,'
10801 # PIC (with -KPIC) is the default.
10802 lt_prog_compiler_static='-non_shared'
10805 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10806 case $cc_basename in
10807 # old Intel for x86_64 which still supported -KPIC.
10809 lt_prog_compiler_wl='-Wl,'
10810 lt_prog_compiler_pic='-KPIC'
10811 lt_prog_compiler_static='-static'
10813 # icc used to be incompatible with GCC.
10814 # ICC 10 doesn't accept -KPIC any more.
10816 lt_prog_compiler_wl='-Wl,'
10817 lt_prog_compiler_pic='-fPIC'
10818 lt_prog_compiler_static='-static'
10820 # Lahey Fortran 8.1.
10822 lt_prog_compiler_wl='-Wl,'
10823 lt_prog_compiler_pic='--shared'
10824 lt_prog_compiler_static='--static'
10826 pgcc* | pgf77* | pgf90* | pgf95*)
10827 # Portland Group compilers (*not* the Pentium gcc compiler,
10828 # which looks to be a dead project)
10829 lt_prog_compiler_wl='-Wl,'
10830 lt_prog_compiler_pic='-fpic'
10831 lt_prog_compiler_static='-Bstatic'
10834 lt_prog_compiler_wl='-Wl,'
10835 # All Alpha code is PIC.
10836 lt_prog_compiler_static='-non_shared'
10839 # IBM XL C 8.0/Fortran 10.1 on PPC
10840 lt_prog_compiler_wl='-Wl,'
10841 lt_prog_compiler_pic='-qpic'
10842 lt_prog_compiler_static='-qstaticlink'
10845 case `$CC -V 2>&1 | sed 5q` in
10848 lt_prog_compiler_pic='-KPIC'
10849 lt_prog_compiler_static='-Bstatic'
10850 lt_prog_compiler_wl='-Wl,'
10853 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10854 lt_prog_compiler_pic='-KPIC'
10855 lt_prog_compiler_static='-Bstatic'
10856 lt_prog_compiler_wl=''
10864 lt_prog_compiler_pic='-KPIC'
10865 lt_prog_compiler_static='-Bstatic'
10869 # QNX uses GNU C++, but need to define -shared option too, otherwise
10870 # it will coredump.
10871 lt_prog_compiler_pic='-fPIC -shared'
10874 osf3* | osf4* | osf5*)
10875 lt_prog_compiler_wl='-Wl,'
10876 # All OSF/1 code is PIC.
10877 lt_prog_compiler_static='-non_shared'
10881 lt_prog_compiler_static='-non_shared'
10885 lt_prog_compiler_pic='-KPIC'
10886 lt_prog_compiler_static='-Bstatic'
10887 case $cc_basename in
10888 f77* | f90* | f95*)
10889 lt_prog_compiler_wl='-Qoption ld ';;
10891 lt_prog_compiler_wl='-Wl,';;
10896 lt_prog_compiler_wl='-Qoption ld '
10897 lt_prog_compiler_pic='-PIC'
10898 lt_prog_compiler_static='-Bstatic'
10901 sysv4 | sysv4.2uw2* | sysv4.3*)
10902 lt_prog_compiler_wl='-Wl,'
10903 lt_prog_compiler_pic='-KPIC'
10904 lt_prog_compiler_static='-Bstatic'
10908 if test -d /usr/nec ;then
10909 lt_prog_compiler_pic='-Kconform_pic'
10910 lt_prog_compiler_static='-Bstatic'
10914 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10915 lt_prog_compiler_wl='-Wl,'
10916 lt_prog_compiler_pic='-KPIC'
10917 lt_prog_compiler_static='-Bstatic'
10921 lt_prog_compiler_wl='-Wl,'
10922 lt_prog_compiler_can_build_shared=no
10926 lt_prog_compiler_pic='-pic'
10927 lt_prog_compiler_static='-Bstatic'
10931 lt_prog_compiler_can_build_shared=no
10937 # For platforms which do not support PIC, -DPIC is meaningless:
10939 lt_prog_compiler_pic=
10942 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10946 $as_echo "$lt_prog_compiler_pic" >&6; }
10954 # Check to make sure the PIC flag actually works.
10956 if test -n "$lt_prog_compiler_pic"; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10958 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10959 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10960 $as_echo_n "(cached) " >&6
10962 lt_cv_prog_compiler_pic_works=no
10963 ac_outfile=conftest.$ac_objext
10964 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10965 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10966 # Insert the option either (1) after the last *FLAGS variable, or
10967 # (2) before a word containing "conftest.", or (3) at the end.
10968 # Note that $ac_compile itself does not contain backslashes and begins
10969 # with a dollar sign (not a hyphen), so the echo should work correctly.
10970 # The option is referenced via a variable to avoid confusing sed.
10971 lt_compile=`echo "$ac_compile" | $SED \
10972 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10973 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10974 -e 's:$: $lt_compiler_flag:'`
10975 (eval echo "\"\$as_me:10975: $lt_compile\"" >&5)
10976 (eval "$lt_compile" 2>conftest.err)
10978 cat conftest.err >&5
10979 echo "$as_me:10979: \$? = $ac_status" >&5
10980 if (exit $ac_status) && test -s "$ac_outfile"; then
10981 # The compiler can only warn and ignore the option if not recognized
10982 # So say no if there are warnings other than the usual output.
10983 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10984 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10985 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10986 lt_cv_prog_compiler_pic_works=yes
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10993 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10995 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10996 case $lt_prog_compiler_pic in
10998 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11001 lt_prog_compiler_pic=
11002 lt_prog_compiler_can_build_shared=no
11013 # Check to make sure the static flag actually works.
11015 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11017 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11018 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11021 lt_cv_prog_compiler_static_works=no
11022 save_LDFLAGS="$LDFLAGS"
11023 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11024 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11025 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11026 # The linker can only warn and ignore the option if not recognized
11027 # So say no if there are warnings
11028 if test -s conftest.err; then
11029 # Append any errors to the config.log.
11030 cat conftest.err 1>&5
11031 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11033 if diff conftest.exp conftest.er2 >/dev/null; then
11034 lt_cv_prog_compiler_static_works=yes
11037 lt_cv_prog_compiler_static_works=yes
11041 LDFLAGS="$save_LDFLAGS"
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11045 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11047 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11050 lt_prog_compiler_static=
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11060 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11061 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11062 $as_echo_n "(cached) " >&6
11064 lt_cv_prog_compiler_c_o=no
11065 $RM -r conftest 2>/dev/null
11069 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11071 lt_compiler_flag="-o out/conftest2.$ac_objext"
11072 # Insert the option either (1) after the last *FLAGS variable, or
11073 # (2) before a word containing "conftest.", or (3) at the end.
11074 # Note that $ac_compile itself does not contain backslashes and begins
11075 # with a dollar sign (not a hyphen), so the echo should work correctly.
11076 lt_compile=`echo "$ac_compile" | $SED \
11077 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11078 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11079 -e 's:$: $lt_compiler_flag:'`
11080 (eval echo "\"\$as_me:11080: $lt_compile\"" >&5)
11081 (eval "$lt_compile" 2>out/conftest.err)
11083 cat out/conftest.err >&5
11084 echo "$as_me:11084: \$? = $ac_status" >&5
11085 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11087 # The compiler can only warn and ignore the option if not recognized
11088 # So say no if there are warnings
11089 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11090 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11091 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11092 lt_cv_prog_compiler_c_o=yes
11097 # SGI C++ compiler will create directory out/ii_files/ for
11098 # template instantiation
11099 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11100 $RM out/* && rmdir out
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11107 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11115 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11116 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11117 $as_echo_n "(cached) " >&6
11119 lt_cv_prog_compiler_c_o=no
11120 $RM -r conftest 2>/dev/null
11124 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11126 lt_compiler_flag="-o out/conftest2.$ac_objext"
11127 # Insert the option either (1) after the last *FLAGS variable, or
11128 # (2) before a word containing "conftest.", or (3) at the end.
11129 # Note that $ac_compile itself does not contain backslashes and begins
11130 # with a dollar sign (not a hyphen), so the echo should work correctly.
11131 lt_compile=`echo "$ac_compile" | $SED \
11132 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11133 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11134 -e 's:$: $lt_compiler_flag:'`
11135 (eval echo "\"\$as_me:11135: $lt_compile\"" >&5)
11136 (eval "$lt_compile" 2>out/conftest.err)
11138 cat out/conftest.err >&5
11139 echo "$as_me:11139: \$? = $ac_status" >&5
11140 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11142 # The compiler can only warn and ignore the option if not recognized
11143 # So say no if there are warnings
11144 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11145 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11146 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11147 lt_cv_prog_compiler_c_o=yes
11152 # SGI C++ compiler will create directory out/ii_files/ for
11153 # template instantiation
11154 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11155 $RM out/* && rmdir out
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11162 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11167 hard_links="nottested"
11168 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11169 # do not overwrite the value of need_locks provided by the user
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11171 $as_echo_n "checking if we can lock with hard links... " >&6; }
11174 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11176 ln conftest.a conftest.b 2>&5 || hard_links=no
11177 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11179 $as_echo "$hard_links" >&6; }
11180 if test "$hard_links" = no; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11182 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11195 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11198 allow_undefined_flag=
11199 always_export_symbols=no
11201 archive_expsym_cmds=
11202 compiler_needs_object=no
11203 enable_shared_with_static_runtimes=no
11204 export_dynamic_flag_spec=
11205 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11206 hardcode_automatic=no
11208 hardcode_direct_absolute=no
11209 hardcode_libdir_flag_spec=
11210 hardcode_libdir_flag_spec_ld=
11211 hardcode_libdir_separator=
11212 hardcode_minus_L=no
11213 hardcode_shlibpath_var=unsupported
11215 link_all_deplibs=unknown
11217 module_expsym_cmds=
11218 old_archive_from_new_cmds=
11219 old_archive_from_expsyms_cmds=
11220 thread_safe_flag_spec=
11221 whole_archive_flag_spec=
11222 # include_expsyms should be a list of space-separated symbols to be *always*
11223 # included in the symbol list
11225 # exclude_expsyms can be an extended regexp of symbols to exclude
11226 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11227 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11228 # as well as any symbol that contains `d'.
11229 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11230 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11231 # platforms (ab)use it in PIC code, but their linkers get confused if
11232 # the symbol is explicitly referenced. Since portable code cannot
11233 # rely on this symbol name, it's probably fine to never include it in
11234 # preloaded symbol tables.
11235 # Exclude shared library initialization/finalization symbols.
11236 extract_expsyms_cmds=
11239 cygwin* | mingw* | pw32* | cegcc*)
11240 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11241 # When not using gcc, we currently assume that we are using
11242 # Microsoft Visual C++.
11243 if test "$GCC" != yes; then
11248 # we just hope/assume this is gcc and not c89 (= MSVC++)
11257 if test "$with_gnu_ld" = yes; then
11258 # If archive_cmds runs LD, not CC, wlarc should be empty
11261 # Set some defaults for GNU ld with shared library support. These
11262 # are reset later if shared libraries are not supported. Putting them
11263 # here allows them to be overridden if necessary.
11264 runpath_var=LD_RUN_PATH
11265 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11266 export_dynamic_flag_spec='${wl}--export-dynamic'
11267 # ancient GNU ld didn't support --whole-archive et. al.
11268 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11269 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11271 whole_archive_flag_spec=
11273 supports_anon_versioning=no
11274 case `$LD -v 2>&1` in
11275 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11276 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11277 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11278 *\ 2.11.*) ;; # other 2.11 versions
11279 *) supports_anon_versioning=yes ;;
11282 # See if GNU ld supports shared libraries.
11285 # On AIX/PPC, the GNU linker is very broken
11286 if test "$host_cpu" != ia64; then
11290 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11291 *** to be unable to reliably create shared libraries on AIX.
11292 *** Therefore, libtool is disabling shared libraries support. If you
11293 *** really care for shared libraries, you may want to modify your PATH
11294 *** so that a non-GNU linker is found, and then restart.
11303 # see comment about AmigaOS4 .so support
11304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11305 archive_expsym_cmds=''
11308 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)'
11309 hardcode_libdir_flag_spec='-L$libdir'
11310 hardcode_minus_L=yes
11316 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11317 allow_undefined_flag=unsupported
11318 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11319 # support --undefined. This deserves some investigation. FIXME
11320 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11326 cygwin* | mingw* | pw32* | cegcc*)
11327 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11328 # as there is no search path for DLLs.
11329 hardcode_libdir_flag_spec='-L$libdir'
11330 allow_undefined_flag=unsupported
11331 always_export_symbols=no
11332 enable_shared_with_static_runtimes=yes
11333 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11335 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11336 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11337 # If the export-symbols file already is a .def file (1st line
11338 # is EXPORTS), use it as is; otherwise, prepend...
11339 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11340 cp $export_symbols $output_objdir/$soname.def;
11342 echo EXPORTS > $output_objdir/$soname.def;
11343 cat $export_symbols >> $output_objdir/$soname.def;
11345 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11353 hardcode_shlibpath_var=no
11354 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11355 export_dynamic_flag_spec='${wl}-E'
11356 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11357 # Instead, shared libraries are loaded at an image base (0x10000000 by
11358 # default) and relocated if they conflict, which is a slow very memory
11359 # consuming and fragmenting process. To avoid this, we pick a random,
11360 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11361 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11362 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11363 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'
11366 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11368 if test "$host_os" = linux-dietlibc; then
11369 case $cc_basename in
11370 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11373 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11374 && test "$tmp_diet" = no
11377 tmp_sharedflag='-shared'
11378 case $cc_basename,$host_cpu in
11379 pgcc*) # Portland Group C compiler
11380 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11381 tmp_addflag=' $pic_flag'
11383 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11384 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11385 tmp_addflag=' $pic_flag -Mnomain' ;;
11386 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11387 tmp_addflag=' -i_dynamic' ;;
11388 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11389 tmp_addflag=' -i_dynamic -nofor_main' ;;
11390 ifc* | ifort*) # Intel Fortran compiler
11391 tmp_addflag=' -nofor_main' ;;
11392 lf95*) # Lahey Fortran 8.1
11393 whole_archive_flag_spec=
11394 tmp_sharedflag='--shared' ;;
11395 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11396 tmp_sharedflag='-qmkshrobj'
11399 case `$CC -V 2>&1 | sed 5q` in
11400 *Sun\ C*) # Sun C 5.9
11401 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
11402 compiler_needs_object=yes
11403 tmp_sharedflag='-G' ;;
11404 *Sun\ F*) # Sun Fortran 8.3
11405 tmp_sharedflag='-G' ;;
11407 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11409 if test "x$supports_anon_versioning" = xyes; then
11410 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11411 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11412 echo "local: *; };" >> $output_objdir/$libname.ver~
11413 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11416 case $cc_basename in
11418 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11419 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11420 hardcode_libdir_flag_spec=
11421 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11422 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11423 if test "x$supports_anon_versioning" = xyes; then
11424 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11426 echo "local: *; };" >> $output_objdir/$libname.ver~
11427 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11437 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11438 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11441 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11442 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11447 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11451 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11452 *** create shared libraries on Solaris systems. Therefore, libtool
11453 *** is disabling shared libraries support. We urge you to upgrade GNU
11454 *** binutils to release 2.9.1 or newer. Another option is to modify
11455 *** your PATH or compiler configuration so that the native linker is
11456 *** used, and then restart.
11459 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11460 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11461 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11467 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11468 case `$LD -v 2>&1` in
11469 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11473 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11474 *** reliably create shared libraries on SCO systems. Therefore, libtool
11475 *** is disabling shared libraries support. We urge you to upgrade GNU
11476 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11477 *** your PATH or compiler configuration so that the native linker is
11478 *** used, and then restart.
11483 # For security reasons, it is highly recommended that you always
11484 # use absolute paths for naming shared libraries, and exclude the
11485 # DT_RUNPATH tag from executables and libraries. But doing so
11486 # requires that you compile everything twice, which is a pain.
11487 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11488 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11490 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11499 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11501 hardcode_direct=yes
11502 hardcode_shlibpath_var=no
11506 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11508 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11515 if test "$ld_shlibs" = no; then
11517 hardcode_libdir_flag_spec=
11518 export_dynamic_flag_spec=
11519 whole_archive_flag_spec=
11522 # PORTME fill in a description of your system's linker (not GNU ld)
11525 allow_undefined_flag=unsupported
11526 always_export_symbols=yes
11527 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'
11528 # Note: this linker hardcodes the directories in LIBPATH if there
11529 # are no directories specified by -L.
11530 hardcode_minus_L=yes
11531 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11532 # Neither direct hardcoding nor static linking is supported with a
11534 hardcode_direct=unsupported
11539 if test "$host_cpu" = ia64; then
11540 # On IA64, the linker does run time linking by default, so we don't
11541 # have to do anything special.
11542 aix_use_runtimelinking=no
11543 exp_sym_flag='-Bexport'
11546 # If we're using GNU nm, then we don't want the "-C" option.
11547 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11548 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11549 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11551 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'
11553 aix_use_runtimelinking=no
11555 # Test if we are trying to use run time linking or normal
11556 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11557 # need to do runtime linking.
11558 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11559 for ld_flag in $LDFLAGS; do
11560 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11561 aix_use_runtimelinking=yes
11568 exp_sym_flag='-bexport'
11569 no_entry_flag='-bnoentry'
11572 # When large executables or shared objects are built, AIX ld can
11573 # have problems creating the table of contents. If linking a library
11574 # or program results in "error TOC overflow" add -mminimal-toc to
11575 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11576 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11579 hardcode_direct=yes
11580 hardcode_direct_absolute=yes
11581 hardcode_libdir_separator=':'
11582 link_all_deplibs=yes
11583 file_list_spec='${wl}-f,'
11585 if test "$GCC" = yes; then
11586 case $host_os in aix4.[012]|aix4.[012].*)
11587 # We only want to do this on AIX 4.2 and lower, the check
11588 # below for broken collect2 doesn't work under 4.3+
11589 collect2name=`${CC} -print-prog-name=collect2`
11590 if test -f "$collect2name" &&
11591 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11593 # We have reworked collect2
11596 # We have old collect2
11597 hardcode_direct=unsupported
11598 # It fails to find uninstalled libraries when the uninstalled
11599 # path is not listed in the libpath. Setting hardcode_minus_L
11600 # to unsupported forces relinking
11601 hardcode_minus_L=yes
11602 hardcode_libdir_flag_spec='-L$libdir'
11603 hardcode_libdir_separator=
11607 shared_flag='-shared'
11608 if test "$aix_use_runtimelinking" = yes; then
11609 shared_flag="$shared_flag "'${wl}-G'
11613 if test "$host_cpu" = ia64; then
11614 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11615 # chokes on -Wl,-G. The following line is correct:
11618 if test "$aix_use_runtimelinking" = yes; then
11619 shared_flag='${wl}-G'
11621 shared_flag='${wl}-bM:SRE'
11626 export_dynamic_flag_spec='${wl}-bexpall'
11627 # It seems that -bexpall does not export symbols beginning with
11628 # underscore (_), so it is better to generate a list of symbols to export.
11629 always_export_symbols=yes
11630 if test "$aix_use_runtimelinking" = yes; then
11631 # Warning - without using the other runtime loading flags (-brtl),
11632 # -berok will link without error, but may produce a broken library.
11633 allow_undefined_flag='-berok'
11634 # Determine the default libpath from the value encoded in an
11635 # empty executable.
11636 if test x$gcc_no_link = xyes; then
11637 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11640 /* end confdefs.h. */
11650 if ac_fn_c_try_link "$LINENO"; then :
11652 lt_aix_libpath_sed='
11653 /Import File Strings/,/^$/ {
11659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11660 # Check for a 64-bit object if we didn't find anything.
11661 if test -z "$aix_libpath"; then
11662 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11665 rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11669 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11670 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11672 if test "$host_cpu" = ia64; then
11673 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11674 allow_undefined_flag="-z nodefs"
11675 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"
11677 # Determine the default libpath from the value encoded in an
11678 # empty executable.
11679 if test x$gcc_no_link = xyes; then
11680 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11693 if ac_fn_c_try_link "$LINENO"; then :
11695 lt_aix_libpath_sed='
11696 /Import File Strings/,/^$/ {
11702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11703 # Check for a 64-bit object if we didn't find anything.
11704 if test -z "$aix_libpath"; then
11705 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11708 rm -f core conftest.err conftest.$ac_objext \
11709 conftest$ac_exeext conftest.$ac_ext
11710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11712 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11713 # Warning - without using the other run time loading flags,
11714 # -berok will link without error, but may produce a broken library.
11715 no_undefined_flag=' ${wl}-bernotok'
11716 allow_undefined_flag=' ${wl}-berok'
11717 # Exported symbols can be pulled into shared objects from archives
11718 whole_archive_flag_spec='$convenience'
11719 archive_cmds_need_lc=yes
11720 # This is similar to how AIX traditionally builds its shared libraries.
11721 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'
11729 # see comment about AmigaOS4 .so support
11730 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11731 archive_expsym_cmds=''
11734 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)'
11735 hardcode_libdir_flag_spec='-L$libdir'
11736 hardcode_minus_L=yes
11742 export_dynamic_flag_spec=-rdynamic
11745 cygwin* | mingw* | pw32* | cegcc*)
11746 # When not using gcc, we currently assume that we are using
11747 # Microsoft Visual C++.
11748 # hardcode_libdir_flag_spec is actually meaningless, as there is
11749 # no search path for DLLs.
11750 hardcode_libdir_flag_spec=' '
11751 allow_undefined_flag=unsupported
11752 # Tell ltmain to make .lib files, not .a files.
11754 # Tell ltmain to make .dll files, not .so files.
11756 # FIXME: Setting linknames here is a bad hack.
11757 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11758 # The linker will automatically build a .lib file if we build a DLL.
11759 old_archive_from_new_cmds='true'
11760 # FIXME: Should let the user specify the lib program.
11761 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11762 fix_srcfile_path='`cygpath -w "$srcfile"`'
11763 enable_shared_with_static_runtimes=yes
11766 darwin* | rhapsody*)
11769 archive_cmds_need_lc=no
11771 hardcode_automatic=yes
11772 hardcode_shlibpath_var=unsupported
11773 whole_archive_flag_spec=''
11774 link_all_deplibs=yes
11775 allow_undefined_flag="$_lt_dar_allow_undefined"
11776 case $cc_basename in
11777 ifort*) _lt_dar_can_shared=yes ;;
11778 *) _lt_dar_can_shared=$GCC ;;
11780 if test "$_lt_dar_can_shared" = "yes"; then
11781 output_verbose_link_cmd=echo
11782 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11783 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11784 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}"
11785 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}"
11794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11795 hardcode_libdir_flag_spec='-L$libdir'
11796 hardcode_shlibpath_var=no
11803 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11804 # support. Future versions do this automatically, but an explicit c++rt0.o
11805 # does not break anything, and helps significantly (at the cost of a little
11808 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11809 hardcode_libdir_flag_spec='-R$libdir'
11810 hardcode_direct=yes
11811 hardcode_shlibpath_var=no
11814 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11816 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11817 hardcode_direct=yes
11818 hardcode_minus_L=yes
11819 hardcode_shlibpath_var=no
11822 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11823 freebsd* | dragonfly*)
11824 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11825 hardcode_libdir_flag_spec='-R$libdir'
11826 hardcode_direct=yes
11827 hardcode_shlibpath_var=no
11831 if test "$GCC" = yes; then
11832 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'
11834 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'
11836 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11837 hardcode_libdir_separator=:
11838 hardcode_direct=yes
11840 # hardcode_minus_L: Not really in the search PATH,
11841 # but as the default location of the library.
11842 hardcode_minus_L=yes
11843 export_dynamic_flag_spec='${wl}-E'
11847 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11848 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11850 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11852 if test "$with_gnu_ld" = no; then
11853 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11854 hardcode_libdir_flag_spec_ld='+b $libdir'
11855 hardcode_libdir_separator=:
11856 hardcode_direct=yes
11857 hardcode_direct_absolute=yes
11858 export_dynamic_flag_spec='${wl}-E'
11859 # hardcode_minus_L: Not really in the search PATH,
11860 # but as the default location of the library.
11861 hardcode_minus_L=yes
11866 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11869 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11872 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11875 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11881 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11884 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11887 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11891 if test "$with_gnu_ld" = no; then
11892 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11893 hardcode_libdir_separator=:
11898 hardcode_shlibpath_var=no
11901 hardcode_direct=yes
11902 hardcode_direct_absolute=yes
11903 export_dynamic_flag_spec='${wl}-E'
11905 # hardcode_minus_L: Not really in the search PATH,
11906 # but as the default location of the library.
11907 hardcode_minus_L=yes
11913 irix5* | irix6* | nonstopux*)
11914 if test "$GCC" = yes; then
11915 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11916 # Try to use the -exported_symbol ld option, if it does not
11917 # work, assume that -exports_file does not work either and
11918 # implicitly export all symbols.
11919 save_LDFLAGS="$LDFLAGS"
11920 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11921 if test x$gcc_no_link = xyes; then
11922 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11928 if ac_fn_c_try_link "$LINENO"; then :
11929 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11932 rm -f core conftest.err conftest.$ac_objext \
11933 conftest$ac_exeext conftest.$ac_ext
11934 LDFLAGS="$save_LDFLAGS"
11936 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
11937 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11939 archive_cmds_need_lc='no'
11940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11941 hardcode_libdir_separator=:
11943 link_all_deplibs=yes
11947 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11948 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11950 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11952 hardcode_libdir_flag_spec='-R$libdir'
11953 hardcode_direct=yes
11954 hardcode_shlibpath_var=no
11958 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11959 hardcode_direct=yes
11960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11961 hardcode_libdir_separator=:
11962 hardcode_shlibpath_var=no
11969 if test -f /usr/libexec/ld.so; then
11970 hardcode_direct=yes
11971 hardcode_shlibpath_var=no
11972 hardcode_direct_absolute=yes
11973 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11974 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11975 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11976 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11977 export_dynamic_flag_spec='${wl}-E'
11980 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11981 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11982 hardcode_libdir_flag_spec='-R$libdir'
11985 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11986 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11996 hardcode_libdir_flag_spec='-L$libdir'
11997 hardcode_minus_L=yes
11998 allow_undefined_flag=unsupported
11999 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'
12000 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12004 if test "$GCC" = yes; then
12005 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12006 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12008 allow_undefined_flag=' -expect_unresolved \*'
12009 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12011 archive_cmds_need_lc='no'
12012 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12013 hardcode_libdir_separator=:
12016 osf4* | osf5*) # as osf3* with the addition of -msym flag
12017 if test "$GCC" = yes; then
12018 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12019 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12020 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12022 allow_undefined_flag=' -expect_unresolved \*'
12023 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12024 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~
12025 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12027 # Both c and cxx compiler support -rpath directly
12028 hardcode_libdir_flag_spec='-rpath $libdir'
12030 archive_cmds_need_lc='no'
12031 hardcode_libdir_separator=:
12035 no_undefined_flag=' -z defs'
12036 if test "$GCC" = yes; then
12038 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12039 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12040 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12042 case `$CC -V 2>&1` in
12045 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12046 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12047 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12051 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12052 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12053 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12057 hardcode_libdir_flag_spec='-R$libdir'
12058 hardcode_shlibpath_var=no
12060 solaris2.[0-5] | solaris2.[0-5].*) ;;
12062 # The compiler driver will combine and reorder linker options,
12063 # but understands `-z linker_flag'. GCC discards it without `$wl',
12064 # but is careful enough not to reorder.
12065 # Supported since Solaris 2.6 (maybe 2.5.1?)
12066 if test "$GCC" = yes; then
12067 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12069 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12073 link_all_deplibs=yes
12077 if test "x$host_vendor" = xsequent; then
12078 # Use $CC to link under sequent, because it throws in some extra .o
12079 # files that make .init and .fini sections work.
12080 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12082 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12084 hardcode_libdir_flag_spec='-L$libdir'
12085 hardcode_direct=yes
12086 hardcode_minus_L=yes
12087 hardcode_shlibpath_var=no
12091 case $host_vendor in
12093 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12094 hardcode_direct=yes # is this really true???
12097 ## LD is ld it makes a PLAMLIB
12098 ## CC just makes a GrossModule.
12099 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12100 reload_cmds='$CC -r -o $output$reload_objs'
12104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12105 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12108 runpath_var='LD_RUN_PATH'
12109 hardcode_shlibpath_var=no
12113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12114 hardcode_shlibpath_var=no
12115 export_dynamic_flag_spec='-Bexport'
12119 if test -d /usr/nec; then
12120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12121 hardcode_shlibpath_var=no
12122 runpath_var=LD_RUN_PATH
12123 hardcode_runpath_var=yes
12128 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12129 no_undefined_flag='${wl}-z,text'
12130 archive_cmds_need_lc=no
12131 hardcode_shlibpath_var=no
12132 runpath_var='LD_RUN_PATH'
12134 if test "$GCC" = yes; then
12135 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12136 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12138 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12139 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12143 sysv5* | sco3.2v5* | sco5v6*)
12144 # Note: We can NOT use -z defs as we might desire, because we do not
12145 # link with -lc, and that would cause any symbols used from libc to
12146 # always be unresolved, which means just about no library would
12147 # ever link correctly. If we're not using GNU ld we use -z text
12148 # though, which does catch some bad symbols but isn't as heavy-handed
12150 no_undefined_flag='${wl}-z,text'
12151 allow_undefined_flag='${wl}-z,nodefs'
12152 archive_cmds_need_lc=no
12153 hardcode_shlibpath_var=no
12154 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12155 hardcode_libdir_separator=':'
12156 link_all_deplibs=yes
12157 export_dynamic_flag_spec='${wl}-Bexport'
12158 runpath_var='LD_RUN_PATH'
12160 if test "$GCC" = yes; then
12161 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12162 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12164 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12165 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12170 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12171 hardcode_libdir_flag_spec='-L$libdir'
12172 hardcode_shlibpath_var=no
12180 if test x$host_vendor = xsni; then
12182 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12183 export_dynamic_flag_spec='${wl}-Blargedynsym'
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12190 $as_echo "$ld_shlibs" >&6; }
12191 test "$ld_shlibs" = no && can_build_shared=no
12193 with_gnu_ld=$with_gnu_ld
12210 # Do we need to explicitly link libc?
12212 case "x$archive_cmds_need_lc" in
12214 # Assume -lc should be added
12215 archive_cmds_need_lc=yes
12217 if test "$enable_shared" = yes && test "$GCC" = yes; then
12218 case $archive_cmds in
12220 # FIXME: we may have to deal with multi-command sequences.
12223 # Test whether the compiler implicitly links with -lc since on some
12224 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12225 # to ld, don't add -lc before -lgcc.
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12227 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12228 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12229 $as_echo_n "(cached) " >&6
12232 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12234 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12235 (eval $ac_compile) 2>&5
12237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12238 test $ac_status = 0; } 2>conftest.err; then
12241 libobjs=conftest.$ac_objext
12243 wl=$lt_prog_compiler_wl
12244 pic_flag=$lt_prog_compiler_pic
12250 lt_save_allow_undefined_flag=$allow_undefined_flag
12251 allow_undefined_flag=
12252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12253 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12256 test $ac_status = 0; }
12258 lt_cv_archive_cmds_need_lc=no
12260 lt_cv_archive_cmds_need_lc=yes
12262 allow_undefined_flag=$lt_save_allow_undefined_flag
12264 cat conftest.err 1>&5
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12270 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12271 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12435 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12437 if test "$GCC" = yes; then
12439 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12440 *) lt_awk_arg="/^libraries:/" ;;
12442 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12443 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12444 # if the path contains ";" then we assume it to be the separator
12445 # otherwise default to the standard path separator (i.e. ":") - it is
12446 # assumed that no part of a normal pathname contains ";" but that should
12447 # okay in the real world where ";" in dirpaths is itself problematic.
12448 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12450 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12452 # Ok, now we have the path, separated by spaces, we can step through it
12453 # and add multilib dir if necessary.
12454 lt_tmp_lt_search_path_spec=
12455 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12456 for lt_sys_path in $lt_search_path_spec; do
12457 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12458 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12460 test -d "$lt_sys_path" && \
12461 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12464 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12465 BEGIN {RS=" "; FS="/|\n";} {
12468 for (lt_i = NF; lt_i > 0; lt_i--) {
12469 if ($lt_i != "" && $lt_i != ".") {
12470 if ($lt_i == "..") {
12473 if (lt_count == 0) {
12474 lt_foo="/" $lt_i lt_foo;
12481 if (lt_foo != "") { lt_freq[lt_foo]++; }
12482 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12484 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12486 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12488 library_names_spec=
12489 libname_spec='lib$name'
12493 postuninstall_cmds=
12497 shlibpath_overrides_runpath=unknown
12499 dynamic_linker="$host_os ld.so"
12500 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12501 need_lib_prefix=unknown
12502 hardcode_into_libs=no
12504 # when you set need_version to no, make sure it does not cause -set_version
12505 # flags to be left without arguments
12506 need_version=unknown
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12512 shlibpath_var=LIBPATH
12514 # AIX 3 has no versioning support, so we append a major version to the name.
12515 soname_spec='${libname}${release}${shared_ext}$major'
12522 hardcode_into_libs=yes
12523 if test "$host_cpu" = ia64; then
12524 # AIX 5 supports IA64
12525 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12526 shlibpath_var=LD_LIBRARY_PATH
12528 # With GCC up to 2.95.x, collect2 would create an import file
12529 # for dependence libraries. The import file would start with
12530 # the line `#! .'. This would cause the generated library to
12531 # depend on `.', always an invalid library. This was fixed in
12532 # development snapshots of GCC prior to 3.0.
12534 aix4 | aix4.[01] | aix4.[01].*)
12535 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12537 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12540 can_build_shared=no
12544 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12545 # soname into executable. Probably we can add versioning support to
12546 # collect2, so additional links can be useful in future.
12547 if test "$aix_use_runtimelinking" = yes; then
12548 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12549 # instead of lib<name>.a to let people know that these are not
12550 # typical AIX shared libraries.
12551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12553 # We preserve .a as extension for shared libraries through AIX4.2
12554 # and later when we are not doing run time linking.
12555 library_names_spec='${libname}${release}.a $libname.a'
12556 soname_spec='${libname}${release}${shared_ext}$major'
12558 shlibpath_var=LIBPATH
12565 # Since July 2007 AmigaOS4 officially supports .so libraries.
12566 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12570 library_names_spec='$libname.ixlibrary $libname.a'
12571 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12572 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'
12578 library_names_spec='${libname}${shared_ext}'
12579 dynamic_linker="$host_os ld.so"
12580 shlibpath_var=LIBRARY_PATH
12586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12587 soname_spec='${libname}${release}${shared_ext}$major'
12588 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12589 shlibpath_var=LD_LIBRARY_PATH
12590 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12591 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12592 # the default ld.so.conf also contains /usr/contrib/lib and
12593 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12594 # libtool to hard-code these into programs
12597 cygwin* | mingw* | pw32* | cegcc*)
12598 version_type=windows
12603 case $GCC,$host_os in
12604 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12605 library_names_spec='$libname.dll.a'
12606 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12607 postinstall_cmds='base_file=`basename \${file}`~
12608 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12609 dldir=$destdir/`dirname \$dlpath`~
12610 test -d \$dldir || mkdir -p \$dldir~
12611 $install_prog $dir/$dlname \$dldir/$dlname~
12612 chmod a+x \$dldir/$dlname~
12613 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12614 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12616 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12617 dlpath=$dir/\$dldll~
12619 shlibpath_overrides_runpath=yes
12623 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12624 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12625 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12628 # MinGW DLLs use traditional 'lib' prefix
12629 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12630 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12631 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12632 # It is most probably a Windows format PATH printed by
12633 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12634 # path with ; separators, and with drive letters. We can handle the
12635 # drive letters (cygwin fileutils understands them), so leave them,
12636 # especially as we might pass files found there to a mingw objdump,
12637 # which wouldn't understand a cygwinified path. Ahh.
12638 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12640 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12644 # pw32 DLLs use 'pw' prefix rather than 'lib'
12645 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12651 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12654 dynamic_linker='Win32 ld.exe'
12655 # FIXME: first we should search . and the directory the executable is in
12659 darwin* | rhapsody*)
12660 dynamic_linker="$host_os dyld"
12661 version_type=darwin
12664 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12665 soname_spec='${libname}${release}${major}$shared_ext'
12666 shlibpath_overrides_runpath=yes
12667 shlibpath_var=DYLD_LIBRARY_PATH
12668 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12670 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12671 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12679 soname_spec='${libname}${release}${shared_ext}$major'
12680 shlibpath_var=LD_LIBRARY_PATH
12687 freebsd* | dragonfly*)
12688 # DragonFly does not have aout. When/if they implement a new
12689 # versioning mechanism, adjust this.
12690 if test -x /usr/bin/objformat; then
12691 objformat=`/usr/bin/objformat`
12694 freebsd[123]*) objformat=aout ;;
12695 *) objformat=elf ;;
12698 version_type=freebsd-$objformat
12699 case $version_type in
12701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12706 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12710 shlibpath_var=LD_LIBRARY_PATH
12713 shlibpath_overrides_runpath=yes
12715 freebsd3.[01]* | freebsdelf3.[01]*)
12716 shlibpath_overrides_runpath=yes
12717 hardcode_into_libs=yes
12719 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12720 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12721 shlibpath_overrides_runpath=no
12722 hardcode_into_libs=yes
12724 *) # from 4.6 on, and DragonFly
12725 shlibpath_overrides_runpath=yes
12726 hardcode_into_libs=yes
12735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12736 soname_spec='${libname}${release}${shared_ext}$major'
12737 shlibpath_var=LD_LIBRARY_PATH
12738 hardcode_into_libs=yes
12741 hpux9* | hpux10* | hpux11*)
12742 # Give a soname corresponding to the major version so that dld.sl refuses to
12743 # link against other versions.
12750 hardcode_into_libs=yes
12751 dynamic_linker="$host_os dld.so"
12752 shlibpath_var=LD_LIBRARY_PATH
12753 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12755 soname_spec='${libname}${release}${shared_ext}$major'
12756 if test "X$HPUX_IA64_MODE" = X32; then
12757 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12759 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12761 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12765 hardcode_into_libs=yes
12766 dynamic_linker="$host_os dld.sl"
12767 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12768 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12770 soname_spec='${libname}${release}${shared_ext}$major'
12771 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12776 dynamic_linker="$host_os dld.sl"
12777 shlibpath_var=SHLIB_PATH
12778 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12780 soname_spec='${libname}${release}${shared_ext}$major'
12783 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12784 postinstall_cmds='chmod 555 $lib'
12791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12792 soname_spec='${libname}${release}${shared_ext}$major'
12793 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12794 shlibpath_var=LD_LIBRARY_PATH
12795 shlibpath_overrides_runpath=no
12796 hardcode_into_libs=yes
12799 irix5* | irix6* | nonstopux*)
12801 nonstopux*) version_type=nonstopux ;;
12803 if test "$lt_cv_prog_gnu_ld" = yes; then
12811 soname_spec='${libname}${release}${shared_ext}$major'
12812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12814 irix5* | nonstopux*)
12815 libsuff= shlibsuff=
12818 case $LD in # libtool.m4 will add one of these switches to LD
12819 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12820 libsuff= shlibsuff= libmagic=32-bit;;
12821 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12822 libsuff=32 shlibsuff=N32 libmagic=N32;;
12823 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12824 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12825 *) libsuff= shlibsuff= libmagic=never-match;;
12829 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12830 shlibpath_overrides_runpath=no
12831 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12832 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12833 hardcode_into_libs=yes
12836 # No shared lib support for Linux oldld, aout, or coff.
12837 linux*oldld* | linux*aout* | linux*coff*)
12841 # This must be Linux ELF.
12842 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12847 soname_spec='${libname}${release}${shared_ext}$major'
12848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12849 shlibpath_var=LD_LIBRARY_PATH
12850 shlibpath_overrides_runpath=no
12852 # Some binutils ld are patched to set DT_RUNPATH
12853 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12854 $as_echo_n "(cached) " >&6
12856 lt_cv_shlibpath_overrides_runpath=no
12857 save_LDFLAGS=$LDFLAGS
12858 save_libdir=$libdir
12859 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12860 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12861 if test x$gcc_no_link = xyes; then
12862 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12865 /* end confdefs.h. */
12875 if ac_fn_c_try_link "$LINENO"; then :
12876 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12877 lt_cv_shlibpath_overrides_runpath=yes
12880 rm -f core conftest.err conftest.$ac_objext \
12881 conftest$ac_exeext conftest.$ac_ext
12882 LDFLAGS=$save_LDFLAGS
12883 libdir=$save_libdir
12887 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12889 # This implies no fast_install, which is unacceptable.
12890 # Some rework will be needed to allow for fast_install
12891 # before this can be enabled.
12892 hardcode_into_libs=yes
12894 # Append ld.so.conf contents to the search path
12895 if test -f /etc/ld.so.conf; then
12896 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12897 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12900 # We used to test for /lib/ld.so.1 and disable shared libraries on
12901 # powerpc, because MkLinux only supported shared libraries with the
12902 # GNU dynamic linker. Since this was broken with cross compilers,
12903 # most powerpc-linux boxes support dynamic linking these days and
12904 # people can always --disable-shared, the test was removed, and we
12905 # assume the GNU/Linux dynamic linker is in use.
12906 dynamic_linker='GNU/Linux ld.so'
12913 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12916 dynamic_linker='NetBSD (a.out) ld.so'
12918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12919 soname_spec='${libname}${release}${shared_ext}$major'
12920 dynamic_linker='NetBSD ld.elf_so'
12922 shlibpath_var=LD_LIBRARY_PATH
12923 shlibpath_overrides_runpath=yes
12924 hardcode_into_libs=yes
12929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12930 shlibpath_var=LD_LIBRARY_PATH
12931 shlibpath_overrides_runpath=yes
12938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12939 soname_spec='${libname}${release}${shared_ext}$major'
12940 shlibpath_var=LD_LIBRARY_PATH
12941 shlibpath_overrides_runpath=no
12942 hardcode_into_libs=yes
12943 dynamic_linker='ldqnx.so'
12948 sys_lib_dlsearch_path_spec="/usr/lib"
12950 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12952 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12953 *) need_version=no ;;
12955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12956 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12957 shlibpath_var=LD_LIBRARY_PATH
12958 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12960 openbsd2.[89] | openbsd2.[89].*)
12961 shlibpath_overrides_runpath=no
12964 shlibpath_overrides_runpath=yes
12968 shlibpath_overrides_runpath=yes
12973 libname_spec='$name'
12976 library_names_spec='$libname${shared_ext} $libname.a'
12977 dynamic_linker='OS/2 ld.exe'
12978 shlibpath_var=LIBPATH
12981 osf3* | osf4* | osf5*)
12985 soname_spec='${libname}${release}${shared_ext}$major'
12986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12987 shlibpath_var=LD_LIBRARY_PATH
12988 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12989 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13001 soname_spec='${libname}${release}${shared_ext}$major'
13002 shlibpath_var=LD_LIBRARY_PATH
13003 shlibpath_overrides_runpath=yes
13004 hardcode_into_libs=yes
13005 # ldd complains unless libraries are executable
13006 postinstall_cmds='chmod +x $lib'
13011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13012 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13013 shlibpath_var=LD_LIBRARY_PATH
13014 shlibpath_overrides_runpath=yes
13015 if test "$with_gnu_ld" = yes; then
13023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13024 soname_spec='${libname}${release}${shared_ext}$major'
13025 shlibpath_var=LD_LIBRARY_PATH
13026 case $host_vendor in
13028 shlibpath_overrides_runpath=no
13030 runpath_var=LD_RUN_PATH
13038 shlibpath_overrides_runpath=no
13039 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13045 if test -d /usr/nec ;then
13047 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13048 soname_spec='$libname${shared_ext}.$major'
13049 shlibpath_var=LD_LIBRARY_PATH
13053 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13054 version_type=freebsd-elf
13057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13058 soname_spec='${libname}${release}${shared_ext}$major'
13059 shlibpath_var=LD_LIBRARY_PATH
13060 shlibpath_overrides_runpath=yes
13061 hardcode_into_libs=yes
13062 if test "$with_gnu_ld" = yes; then
13063 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13065 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13068 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13072 sys_lib_dlsearch_path_spec='/usr/lib'
13076 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13081 shlibpath_var=LD_LIBRARY_PATH
13082 shlibpath_overrides_runpath=no
13083 hardcode_into_libs=yes
13088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13089 soname_spec='${libname}${release}${shared_ext}$major'
13090 shlibpath_var=LD_LIBRARY_PATH
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13098 $as_echo "$dynamic_linker" >&6; }
13099 test "$dynamic_linker" = no && can_build_shared=no
13101 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13102 if test "$GCC" = yes; then
13103 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13106 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13107 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13109 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13110 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13200 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13202 if test -n "$hardcode_libdir_flag_spec" ||
13203 test -n "$runpath_var" ||
13204 test "X$hardcode_automatic" = "Xyes" ; then
13206 # We can hardcode non-existent directories.
13207 if test "$hardcode_direct" != no &&
13208 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13209 # have to relink, otherwise we might link with an installed library
13210 # when we should be linking with a yet-to-be-installed one
13211 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13212 test "$hardcode_minus_L" != no; then
13213 # Linking always hardcodes the temporary library directory.
13214 hardcode_action=relink
13216 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13217 hardcode_action=immediate
13220 # We cannot hardcode anything, or else we can only hardcode existing
13222 hardcode_action=unsupported
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13225 $as_echo "$hardcode_action" >&6; }
13227 if test "$hardcode_action" = relink ||
13228 test "$inherit_rpath" = yes; then
13229 # Fast installation is not supported
13230 enable_fast_install=no
13231 elif test "$shlibpath_overrides_runpath" = yes ||
13232 test "$enable_shared" = no; then
13233 # Fast installation is not necessary
13234 enable_fast_install=needless
13242 if test "x$enable_dlopen" != xyes; then
13243 enable_dlopen=unknown
13244 enable_dlopen_self=unknown
13245 enable_dlopen_self_static=unknown
13252 lt_cv_dlopen="load_add_on"
13254 lt_cv_dlopen_self=yes
13257 mingw* | pw32* | cegcc*)
13258 lt_cv_dlopen="LoadLibrary"
13263 lt_cv_dlopen="dlopen"
13268 # if libdl is installed we need to link against it
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13270 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13271 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13272 $as_echo_n "(cached) " >&6
13274 ac_check_lib_save_LIBS=$LIBS
13276 if test x$gcc_no_link = xyes; then
13277 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280 /* end confdefs.h. */
13282 /* Override any GCC internal prototype to avoid an error.
13283 Use char because int might match the return type of a GCC
13284 builtin and then its argument prototype would still apply. */
13297 if ac_fn_c_try_link "$LINENO"; then :
13298 ac_cv_lib_dl_dlopen=yes
13300 ac_cv_lib_dl_dlopen=no
13302 rm -f core conftest.err conftest.$ac_objext \
13303 conftest$ac_exeext conftest.$ac_ext
13304 LIBS=$ac_check_lib_save_LIBS
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13307 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13308 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13309 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13312 lt_cv_dlopen="dyld"
13314 lt_cv_dlopen_self=yes
13321 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13322 if test "x$ac_cv_func_shl_load" = x""yes; then :
13323 lt_cv_dlopen="shl_load"
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13326 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13327 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13328 $as_echo_n "(cached) " >&6
13330 ac_check_lib_save_LIBS=$LIBS
13332 if test x$gcc_no_link = xyes; then
13333 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h. */
13338 /* Override any GCC internal prototype to avoid an error.
13339 Use char because int might match the return type of a GCC
13340 builtin and then its argument prototype would still apply. */
13348 return shl_load ();
13353 if ac_fn_c_try_link "$LINENO"; then :
13354 ac_cv_lib_dld_shl_load=yes
13356 ac_cv_lib_dld_shl_load=no
13358 rm -f core conftest.err conftest.$ac_objext \
13359 conftest$ac_exeext conftest.$ac_ext
13360 LIBS=$ac_check_lib_save_LIBS
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13363 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13364 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13365 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13367 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13368 if test "x$ac_cv_func_dlopen" = x""yes; then :
13369 lt_cv_dlopen="dlopen"
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13372 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13373 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13374 $as_echo_n "(cached) " >&6
13376 ac_check_lib_save_LIBS=$LIBS
13378 if test x$gcc_no_link = xyes; then
13379 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13382 /* end confdefs.h. */
13384 /* Override any GCC internal prototype to avoid an error.
13385 Use char because int might match the return type of a GCC
13386 builtin and then its argument prototype would still apply. */
13399 if ac_fn_c_try_link "$LINENO"; then :
13400 ac_cv_lib_dl_dlopen=yes
13402 ac_cv_lib_dl_dlopen=no
13404 rm -f core conftest.err conftest.$ac_objext \
13405 conftest$ac_exeext conftest.$ac_ext
13406 LIBS=$ac_check_lib_save_LIBS
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13409 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13410 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13411 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13414 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13415 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13416 $as_echo_n "(cached) " >&6
13418 ac_check_lib_save_LIBS=$LIBS
13419 LIBS="-lsvld $LIBS"
13420 if test x$gcc_no_link = xyes; then
13421 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13424 /* end confdefs.h. */
13426 /* Override any GCC internal prototype to avoid an error.
13427 Use char because int might match the return type of a GCC
13428 builtin and then its argument prototype would still apply. */
13441 if ac_fn_c_try_link "$LINENO"; then :
13442 ac_cv_lib_svld_dlopen=yes
13444 ac_cv_lib_svld_dlopen=no
13446 rm -f core conftest.err conftest.$ac_objext \
13447 conftest$ac_exeext conftest.$ac_ext
13448 LIBS=$ac_check_lib_save_LIBS
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13451 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13452 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13453 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13456 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13457 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13458 $as_echo_n "(cached) " >&6
13460 ac_check_lib_save_LIBS=$LIBS
13462 if test x$gcc_no_link = xyes; then
13463 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13466 /* end confdefs.h. */
13468 /* Override any GCC internal prototype to avoid an error.
13469 Use char because int might match the return type of a GCC
13470 builtin and then its argument prototype would still apply. */
13478 return dld_link ();
13483 if ac_fn_c_try_link "$LINENO"; then :
13484 ac_cv_lib_dld_dld_link=yes
13486 ac_cv_lib_dld_dld_link=no
13488 rm -f core conftest.err conftest.$ac_objext \
13489 conftest$ac_exeext conftest.$ac_ext
13490 LIBS=$ac_check_lib_save_LIBS
13492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13493 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13494 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13495 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13516 if test "x$lt_cv_dlopen" != xno; then
13522 case $lt_cv_dlopen in
13524 save_CPPFLAGS="$CPPFLAGS"
13525 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13527 save_LDFLAGS="$LDFLAGS"
13528 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13531 LIBS="$lt_cv_dlopen_libs $LIBS"
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13534 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13535 if test "${lt_cv_dlopen_self+set}" = set; then :
13536 $as_echo_n "(cached) " >&6
13538 if test "$cross_compiling" = yes; then :
13539 lt_cv_dlopen_self=cross
13541 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13542 lt_status=$lt_dlunknown
13543 cat > conftest.$ac_ext <<_LT_EOF
13544 #line 13544 "configure"
13545 #include "confdefs.h"
13554 # define LT_DLGLOBAL RTLD_GLOBAL
13557 # define LT_DLGLOBAL DL_GLOBAL
13559 # define LT_DLGLOBAL 0
13563 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13564 find out it does not work in some platform. */
13565 #ifndef LT_DLLAZY_OR_NOW
13567 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13570 # define LT_DLLAZY_OR_NOW DL_LAZY
13573 # define LT_DLLAZY_OR_NOW RTLD_NOW
13576 # define LT_DLLAZY_OR_NOW DL_NOW
13578 # define LT_DLLAZY_OR_NOW 0
13585 void fnord() { int i=42;}
13588 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13589 int status = $lt_dlunknown;
13593 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13594 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13595 /* dlclose (self); */
13603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13604 (eval $ac_link) 2>&5
13606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13607 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13608 (./conftest; exit; ) >&5 2>/dev/null
13610 case x$lt_status in
13611 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13612 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13613 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13616 # compilation failed
13617 lt_cv_dlopen_self=no
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13625 $as_echo "$lt_cv_dlopen_self" >&6; }
13627 if test "x$lt_cv_dlopen_self" = xyes; then
13628 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13630 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13631 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13632 $as_echo_n "(cached) " >&6
13634 if test "$cross_compiling" = yes; then :
13635 lt_cv_dlopen_self_static=cross
13637 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13638 lt_status=$lt_dlunknown
13639 cat > conftest.$ac_ext <<_LT_EOF
13640 #line 13640 "configure"
13641 #include "confdefs.h"
13650 # define LT_DLGLOBAL RTLD_GLOBAL
13653 # define LT_DLGLOBAL DL_GLOBAL
13655 # define LT_DLGLOBAL 0
13659 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13660 find out it does not work in some platform. */
13661 #ifndef LT_DLLAZY_OR_NOW
13663 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13666 # define LT_DLLAZY_OR_NOW DL_LAZY
13669 # define LT_DLLAZY_OR_NOW RTLD_NOW
13672 # define LT_DLLAZY_OR_NOW DL_NOW
13674 # define LT_DLLAZY_OR_NOW 0
13681 void fnord() { int i=42;}
13684 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13685 int status = $lt_dlunknown;
13689 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13690 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13691 /* dlclose (self); */
13699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13700 (eval $ac_link) 2>&5
13702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13703 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13704 (./conftest; exit; ) >&5 2>/dev/null
13706 case x$lt_status in
13707 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13708 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13709 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13712 # compilation failed
13713 lt_cv_dlopen_self_static=no
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13721 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13724 CPPFLAGS="$save_CPPFLAGS"
13725 LDFLAGS="$save_LDFLAGS"
13730 case $lt_cv_dlopen_self in
13731 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13732 *) enable_dlopen_self=unknown ;;
13735 case $lt_cv_dlopen_self_static in
13736 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13737 *) enable_dlopen_self_static=unknown ;;
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13760 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13761 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13762 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13763 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13765 $as_echo "yes" >&6; }
13767 # FIXME - insert some real tests, host_os isn't really good enough
13770 if test -n "$STRIP" ; then
13771 striplib="$STRIP -x"
13772 old_striplib="$STRIP -S"
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13774 $as_echo "yes" >&6; }
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777 $as_echo "no" >&6; }
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13782 $as_echo "no" >&6; }
13798 # Report which library types will actually be built
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13800 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13802 $as_echo "$can_build_shared" >&6; }
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13805 $as_echo_n "checking whether to build shared libraries... " >&6; }
13806 test "$can_build_shared" = "no" && enable_shared=no
13808 # On AIX, shared libraries and static libraries use the same namespace, and
13809 # are all built from PIC.
13812 test "$enable_shared" = yes && enable_static=no
13813 if test -n "$RANLIB"; then
13814 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13815 postinstall_cmds='$RANLIB $lib'
13820 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13821 test "$enable_shared" = yes && enable_static=no
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13826 $as_echo "$enable_shared" >&6; }
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13829 $as_echo_n "checking whether to build static libraries... " >&6; }
13830 # Make sure either enable_shared or enable_static is yes.
13831 test "$enable_shared" = yes || enable_static=yes
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13833 $as_echo "$enable_static" >&6; }
13840 ac_cpp='$CPP $CPPFLAGS'
13841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13849 ac_cpp='$CXXCPP $CPPFLAGS'
13850 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13851 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13852 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13854 archive_cmds_need_lc_CXX=no
13855 allow_undefined_flag_CXX=
13856 always_export_symbols_CXX=no
13857 archive_expsym_cmds_CXX=
13858 compiler_needs_object_CXX=no
13859 export_dynamic_flag_spec_CXX=
13860 hardcode_direct_CXX=no
13861 hardcode_direct_absolute_CXX=no
13862 hardcode_libdir_flag_spec_CXX=
13863 hardcode_libdir_flag_spec_ld_CXX=
13864 hardcode_libdir_separator_CXX=
13865 hardcode_minus_L_CXX=no
13866 hardcode_shlibpath_var_CXX=unsupported
13867 hardcode_automatic_CXX=no
13868 inherit_rpath_CXX=no
13870 module_expsym_cmds_CXX=
13871 link_all_deplibs_CXX=unknown
13872 old_archive_cmds_CXX=$old_archive_cmds
13873 no_undefined_flag_CXX=
13874 whole_archive_flag_spec_CXX=
13875 enable_shared_with_static_runtimes_CXX=no
13877 # Source file extension for C++ test sources.
13880 # Object file extension for compiled C++ test sources.
13884 # No sense in running all these tests if we already determined that
13885 # the CXX compiler isn't working. Some variables (like enable_shared)
13886 # are currently assumed to apply to all compilers on this platform,
13887 # and will be corrupted by setting them based on a non-working compiler.
13888 if test "$_lt_caught_CXX_error" != yes; then
13889 # Code to be used in simple compile tests
13890 lt_simple_compile_test_code="int some_variable = 0;"
13892 # Code to be used in simple link tests
13893 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13895 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13902 # If no C compiler was specified, use CC.
13905 # If no C compiler flags were specified, use CFLAGS.
13906 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13908 # Allow CC to be a program name with arguments.
13912 # save warnings/boilerplate of simple test code
13913 ac_outfile=conftest.$ac_objext
13914 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13915 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13916 _lt_compiler_boilerplate=`cat conftest.err`
13919 ac_outfile=conftest.$ac_objext
13920 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13921 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13922 _lt_linker_boilerplate=`cat conftest.err`
13926 # Allow CC to be a program name with arguments.
13931 lt_save_with_gnu_ld=$with_gnu_ld
13932 lt_save_path_LD=$lt_cv_path_LD
13933 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13934 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13936 $as_unset lt_cv_prog_gnu_ld
13938 if test -n "${lt_cv_path_LDCXX+set}"; then
13939 lt_cv_path_LD=$lt_cv_path_LDCXX
13941 $as_unset lt_cv_path_LD
13943 test -z "${LDCXX+set}" || LD=$LDCXX
13947 for cc_temp in $compiler""; do
13949 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13950 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13955 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13958 if test -n "$compiler"; then
13959 # We don't want -fno-exception when compiling C++ code, so set the
13960 # no_builtin_flag separately
13961 if test "$GXX" = yes; then
13962 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13964 lt_prog_compiler_no_builtin_flag_CXX=
13967 if test "$GXX" = yes; then
13968 # Set up default GNU C++ configuration
13972 # Check whether --with-gnu-ld was given.
13973 if test "${with_gnu_ld+set}" = set; then :
13974 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13980 if test "$GCC" = yes; then
13981 # Check if gcc -print-prog-name=ld gives a path.
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13983 $as_echo_n "checking for ld used by $CC... " >&6; }
13986 # gcc leaves a trailing carriage return which upsets mingw
13987 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13989 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13992 # Accept absolute paths.
13994 re_direlt='/[^/][^/]*/\.\./'
13995 # Canonicalize the pathname of ld
13996 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13997 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13998 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14000 test -z "$LD" && LD="$ac_prog"
14003 # If it fails, then pretend we aren't using GCC.
14007 # If it is relative, then search for the first ld in PATH.
14008 with_gnu_ld=unknown
14011 elif test "$with_gnu_ld" = yes; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14013 $as_echo_n "checking for GNU ld... " >&6; }
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14016 $as_echo_n "checking for non-GNU ld... " >&6; }
14018 if test "${lt_cv_path_LD+set}" = set; then :
14019 $as_echo_n "(cached) " >&6
14021 if test -z "$LD"; then
14022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14023 for ac_dir in $PATH; do
14025 test -z "$ac_dir" && ac_dir=.
14026 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14027 lt_cv_path_LD="$ac_dir/$ac_prog"
14028 # Check to see if the program is GNU ld. I'd rather use --version,
14029 # but apparently some variants of GNU ld only accept -v.
14030 # Break only if it was the GNU/non-GNU ld that we prefer.
14031 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14032 *GNU* | *'with BFD'*)
14033 test "$with_gnu_ld" != no && break
14036 test "$with_gnu_ld" != yes && break
14043 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14047 LD="$lt_cv_path_LD"
14048 if test -n "$LD"; then
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14050 $as_echo "$LD" >&6; }
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14053 $as_echo "no" >&6; }
14055 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14057 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14058 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14059 $as_echo_n "(cached) " >&6
14061 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14062 case `$LD -v 2>&1 </dev/null` in
14063 *GNU* | *'with BFD'*)
14064 lt_cv_prog_gnu_ld=yes
14067 lt_cv_prog_gnu_ld=no
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14072 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14073 with_gnu_ld=$lt_cv_prog_gnu_ld
14081 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14082 # archiving commands below assume that GNU ld is being used.
14083 if test "$with_gnu_ld" = yes; then
14084 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14085 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'
14087 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14088 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14090 # If archive_cmds runs LD, not CC, wlarc should be empty
14091 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14092 # investigate it a little bit more. (MM)
14095 # ancient GNU ld didn't support --whole-archive et. al.
14096 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14097 $GREP 'no-whole-archive' > /dev/null; then
14098 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14100 whole_archive_flag_spec_CXX=
14106 # A generic and very simple default shared library creation
14107 # command for GNU C++ for the case where it uses the native
14108 # linker, instead of GNU ld. If possible, this setting should
14109 # overridden to take advantage of the native linker features on
14110 # the platform it is being used on.
14111 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14114 # Commands to make compiler produce verbose output that lists
14115 # what "hidden" libraries, object files and flags are used when
14116 # linking a shared library.
14117 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14125 # PORTME: fill in a description of your system's C++ link characteristics
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14127 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14131 # FIXME: insert proper C++ library support
14135 if test "$host_cpu" = ia64; then
14136 # On IA64, the linker does run time linking by default, so we don't
14137 # have to do anything special.
14138 aix_use_runtimelinking=no
14139 exp_sym_flag='-Bexport'
14142 aix_use_runtimelinking=no
14144 # Test if we are trying to use run time linking or normal
14145 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14146 # need to do runtime linking.
14147 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14148 for ld_flag in $LDFLAGS; do
14151 aix_use_runtimelinking=yes
14159 exp_sym_flag='-bexport'
14160 no_entry_flag='-bnoentry'
14163 # When large executables or shared objects are built, AIX ld can
14164 # have problems creating the table of contents. If linking a library
14165 # or program results in "error TOC overflow" add -mminimal-toc to
14166 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14167 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14169 archive_cmds_CXX=''
14170 hardcode_direct_CXX=yes
14171 hardcode_direct_absolute_CXX=yes
14172 hardcode_libdir_separator_CXX=':'
14173 link_all_deplibs_CXX=yes
14174 file_list_spec_CXX='${wl}-f,'
14176 if test "$GXX" = yes; then
14177 case $host_os in aix4.[012]|aix4.[012].*)
14178 # We only want to do this on AIX 4.2 and lower, the check
14179 # below for broken collect2 doesn't work under 4.3+
14180 collect2name=`${CC} -print-prog-name=collect2`
14181 if test -f "$collect2name" &&
14182 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14184 # We have reworked collect2
14187 # We have old collect2
14188 hardcode_direct_CXX=unsupported
14189 # It fails to find uninstalled libraries when the uninstalled
14190 # path is not listed in the libpath. Setting hardcode_minus_L
14191 # to unsupported forces relinking
14192 hardcode_minus_L_CXX=yes
14193 hardcode_libdir_flag_spec_CXX='-L$libdir'
14194 hardcode_libdir_separator_CXX=
14197 shared_flag='-shared'
14198 if test "$aix_use_runtimelinking" = yes; then
14199 shared_flag="$shared_flag "'${wl}-G'
14203 if test "$host_cpu" = ia64; then
14204 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14205 # chokes on -Wl,-G. The following line is correct:
14208 if test "$aix_use_runtimelinking" = yes; then
14209 shared_flag='${wl}-G'
14211 shared_flag='${wl}-bM:SRE'
14216 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14217 # It seems that -bexpall does not export symbols beginning with
14218 # underscore (_), so it is better to generate a list of symbols to
14220 always_export_symbols_CXX=yes
14221 if test "$aix_use_runtimelinking" = yes; then
14222 # Warning - without using the other runtime loading flags (-brtl),
14223 # -berok will link without error, but may produce a broken library.
14224 allow_undefined_flag_CXX='-berok'
14225 # Determine the default libpath from the value encoded in an empty
14227 if test x$gcc_no_link = xyes; then
14228 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14231 /* end confdefs.h. */
14241 if ac_fn_cxx_try_link "$LINENO"; then :
14243 lt_aix_libpath_sed='
14244 /Import File Strings/,/^$/ {
14250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14251 # Check for a 64-bit object if we didn't find anything.
14252 if test -z "$aix_libpath"; then
14253 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14256 rm -f core conftest.err conftest.$ac_objext \
14257 conftest$ac_exeext conftest.$ac_ext
14258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14260 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14262 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 $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14264 if test "$host_cpu" = ia64; then
14265 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14266 allow_undefined_flag_CXX="-z nodefs"
14267 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"
14269 # Determine the default libpath from the value encoded in an
14270 # empty executable.
14271 if test x$gcc_no_link = xyes; then
14272 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14275 /* end confdefs.h. */
14285 if ac_fn_cxx_try_link "$LINENO"; then :
14287 lt_aix_libpath_sed='
14288 /Import File Strings/,/^$/ {
14294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14295 # Check for a 64-bit object if we didn't find anything.
14296 if test -z "$aix_libpath"; then
14297 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14300 rm -f core conftest.err conftest.$ac_objext \
14301 conftest$ac_exeext conftest.$ac_ext
14302 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14304 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14305 # Warning - without using the other run time loading flags,
14306 # -berok will link without error, but may produce a broken library.
14307 no_undefined_flag_CXX=' ${wl}-bernotok'
14308 allow_undefined_flag_CXX=' ${wl}-berok'
14309 # Exported symbols can be pulled into shared objects from archives
14310 whole_archive_flag_spec_CXX='$convenience'
14311 archive_cmds_need_lc_CXX=yes
14312 # This is similar to how AIX traditionally builds its shared
14314 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'
14320 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14321 allow_undefined_flag_CXX=unsupported
14322 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14323 # support --undefined. This deserves some investigation. FIXME
14324 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14331 case $cc_basename in
14333 # FIXME: insert proper C++ library support
14339 cygwin* | mingw* | pw32* | cegcc*)
14340 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14341 # as there is no search path for DLLs.
14342 hardcode_libdir_flag_spec_CXX='-L$libdir'
14343 allow_undefined_flag_CXX=unsupported
14344 always_export_symbols_CXX=no
14345 enable_shared_with_static_runtimes_CXX=yes
14347 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14348 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'
14349 # If the export-symbols file already is a .def file (1st line
14350 # is EXPORTS), use it as is; otherwise, prepend...
14351 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14352 cp $export_symbols $output_objdir/$soname.def;
14354 echo EXPORTS > $output_objdir/$soname.def;
14355 cat $export_symbols >> $output_objdir/$soname.def;
14357 $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'
14362 darwin* | rhapsody*)
14365 archive_cmds_need_lc_CXX=no
14366 hardcode_direct_CXX=no
14367 hardcode_automatic_CXX=yes
14368 hardcode_shlibpath_var_CXX=unsupported
14369 whole_archive_flag_spec_CXX=''
14370 link_all_deplibs_CXX=yes
14371 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14372 case $cc_basename in
14373 ifort*) _lt_dar_can_shared=yes ;;
14374 *) _lt_dar_can_shared=$GCC ;;
14376 if test "$_lt_dar_can_shared" = "yes"; then
14377 output_verbose_link_cmd=echo
14378 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}"
14379 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14380 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}"
14381 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}"
14382 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14383 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}"
14384 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}"
14394 case $cc_basename in
14396 # FIXME: insert proper C++ library support
14400 # Green Hills C++ Compiler
14401 # FIXME: insert proper C++ library support
14405 # FIXME: insert proper C++ library support
14412 # C++ shared libraries reported to be fairly broken before
14418 archive_cmds_need_lc_CXX=no
14421 freebsd* | dragonfly*)
14422 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14431 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14432 hardcode_libdir_separator_CXX=:
14433 export_dynamic_flag_spec_CXX='${wl}-E'
14434 hardcode_direct_CXX=yes
14435 hardcode_minus_L_CXX=yes # Not in the search PATH,
14436 # but as the default
14437 # location of the library.
14439 case $cc_basename in
14441 # FIXME: insert proper C++ library support
14445 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'
14446 # Commands to make compiler produce verbose output that lists
14447 # what "hidden" libraries, object files and flags are used when
14448 # linking a shared library.
14450 # There doesn't appear to be a way to prevent this compiler from
14451 # explicitly linking system object files so we need to strip them
14452 # from the output so that they don't get included in the library
14454 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; $ECHO "X$list" | $Xsed'
14457 if test "$GXX" = yes; then
14458 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'
14460 # FIXME: insert proper C++ library support
14468 if test $with_gnu_ld = no; then
14469 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14470 hardcode_libdir_separator_CXX=:
14476 export_dynamic_flag_spec_CXX='${wl}-E'
14482 hardcode_direct_CXX=no
14483 hardcode_shlibpath_var_CXX=no
14486 hardcode_direct_CXX=yes
14487 hardcode_direct_absolute_CXX=yes
14488 hardcode_minus_L_CXX=yes # Not in the search PATH,
14489 # but as the default
14490 # location of the library.
14494 case $cc_basename in
14496 # FIXME: insert proper C++ library support
14502 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14505 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14508 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14511 # Commands to make compiler produce verbose output that lists
14512 # what "hidden" libraries, object files and flags are used when
14513 # linking a shared library.
14515 # There doesn't appear to be a way to prevent this compiler from
14516 # explicitly linking system object files so we need to strip them
14517 # from the output so that they don't get included in the library
14519 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; $ECHO "X$list" | $Xsed'
14522 if test "$GXX" = yes; then
14523 if test $with_gnu_ld = no; then
14526 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14529 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14532 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'
14537 # FIXME: insert proper C++ library support
14545 hardcode_direct_CXX=no
14546 hardcode_shlibpath_var_CXX=no
14547 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14548 export_dynamic_flag_spec_CXX='${wl}-E'
14549 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14550 # Instead, shared libraries are loaded at an image base (0x10000000 by
14551 # default) and relocated if they conflict, which is a slow very memory
14552 # consuming and fragmenting process. To avoid this, we pick a random,
14553 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14554 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14555 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'
14556 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'
14559 case $cc_basename in
14562 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14564 # Archives containing C++ object files must be created using
14565 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14566 # necessary to make sure instantiated templates are included
14568 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14571 if test "$GXX" = yes; then
14572 if test "$with_gnu_ld" = no; then
14573 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14575 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
14578 link_all_deplibs_CXX=yes
14581 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14582 hardcode_libdir_separator_CXX=:
14583 inherit_rpath_CXX=yes
14586 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14587 case $cc_basename in
14589 # Kuck and Associates, Inc. (KAI) C++ Compiler
14591 # KCC will only create a shared library if the output file
14592 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14593 # to its proper name (with version) after linking.
14594 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'
14595 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'
14596 # Commands to make compiler produce verbose output that lists
14597 # what "hidden" libraries, object files and flags are used when
14598 # linking a shared library.
14600 # There doesn't appear to be a way to prevent this compiler from
14601 # explicitly linking system object files so we need to strip them
14602 # from the output so that they don't get included in the library
14604 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; $ECHO "X$list" | $Xsed'
14606 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14607 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14609 # Archives containing C++ object files must be created using
14610 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14611 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14616 # version 8.0 and above of icpc choke on multiply defined symbols
14617 # if we add $predep_objects and $postdep_objects, however 7.1 and
14618 # earlier do not add the objects themselves.
14619 case `$CC -V 2>&1` in
14621 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14622 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'
14624 *) # Version 8.0 or newer
14627 ia64*) tmp_idyn=' -i_dynamic';;
14629 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14630 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'
14633 archive_cmds_need_lc_CXX=no
14634 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14635 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14636 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14639 # Portland Group C++ compiler
14641 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14642 prelink_cmds_CXX='tpldir=Template.dir~
14644 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14645 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14646 old_archive_cmds_CXX='tpldir=Template.dir~
14648 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14649 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14651 archive_cmds_CXX='tpldir=Template.dir~
14653 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14654 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14655 archive_expsym_cmds_CXX='tpldir=Template.dir~
14657 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14658 $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'
14660 *) # Version 6 will use weak symbols
14661 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14662 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'
14666 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14667 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14668 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14672 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14673 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'
14675 runpath_var=LD_RUN_PATH
14676 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14677 hardcode_libdir_separator_CXX=:
14679 # Commands to make compiler produce verbose output that lists
14680 # what "hidden" libraries, object files and flags are used when
14681 # linking a shared library.
14683 # There doesn't appear to be a way to prevent this compiler from
14684 # explicitly linking system object files so we need to strip them
14685 # from the output so that they don't get included in the library
14687 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14690 # IBM XL 8.0 on PPC, with GNU ld
14691 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14692 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14693 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14694 if test "x$supports_anon_versioning" = xyes; then
14695 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14696 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14697 echo "local: *; };" >> $output_objdir/$libname.ver~
14698 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14702 case `$CC -V 2>&1 | sed 5q` in
14705 no_undefined_flag_CXX=' -zdefs'
14706 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14707 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'
14708 hardcode_libdir_flag_spec_CXX='-R$libdir'
14709 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
14710 compiler_needs_object_CXX=yes
14712 # Not sure whether something based on
14713 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14715 output_verbose_link_cmd='echo'
14717 # Archives containing C++ object files must be created using
14718 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14719 # necessary to make sure instantiated templates are included
14721 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14729 # FIXME: insert proper C++ library support
14734 # FIXME: insert proper C++ library support
14739 case $cc_basename in
14741 # FIXME: insert proper C++ library support
14745 # FIXME: insert proper C++ library support
14752 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14753 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14755 hardcode_libdir_flag_spec_CXX='-R$libdir'
14756 hardcode_direct_CXX=yes
14757 hardcode_shlibpath_var_CXX=no
14759 # Workaround some broken pre-1.5 toolchains
14760 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14768 # C++ shared libraries are fairly broken
14773 if test -f /usr/libexec/ld.so; then
14774 hardcode_direct_CXX=yes
14775 hardcode_shlibpath_var_CXX=no
14776 hardcode_direct_absolute_CXX=yes
14777 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14778 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14779 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14780 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14781 export_dynamic_flag_spec_CXX='${wl}-E'
14782 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14784 output_verbose_link_cmd=echo
14790 osf3* | osf4* | osf5*)
14791 case $cc_basename in
14793 # Kuck and Associates, Inc. (KAI) C++ Compiler
14795 # KCC will only create a shared library if the output file
14796 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14797 # to its proper name (with version) after linking.
14798 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'
14800 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14801 hardcode_libdir_separator_CXX=:
14803 # Archives containing C++ object files must be created using
14804 # the KAI C++ compiler.
14806 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14807 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14811 # Rational C++ 2.4.1
14812 # FIXME: insert proper C++ library support
14818 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14819 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14820 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14823 allow_undefined_flag_CXX=' -expect_unresolved \*'
14824 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
14825 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14826 echo "-hidden">> $lib.exp~
14827 $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 "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
14829 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14833 hardcode_libdir_separator_CXX=:
14835 # Commands to make compiler produce verbose output that lists
14836 # what "hidden" libraries, object files and flags are used when
14837 # linking a shared library.
14839 # There doesn't appear to be a way to prevent this compiler from
14840 # explicitly linking system object files so we need to strip them
14841 # from the output so that they don't get included in the library
14843 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
14846 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14847 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14850 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14853 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" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14857 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14858 hardcode_libdir_separator_CXX=:
14860 # Commands to make compiler produce verbose output that lists
14861 # what "hidden" libraries, object files and flags are used when
14862 # linking a shared library.
14863 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14866 # FIXME: insert proper C++ library support
14874 # FIXME: insert proper C++ library support
14879 case $cc_basename in
14882 # FIXME: insert proper C++ library support
14887 # FIXME: insert proper C++ library support
14891 # FIXME: insert proper C++ library support
14898 case $cc_basename in
14900 # Sun C++ 4.2, 5.x and Centerline C++
14901 archive_cmds_need_lc_CXX=yes
14902 no_undefined_flag_CXX=' -zdefs'
14903 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14904 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14905 $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'
14907 hardcode_libdir_flag_spec_CXX='-R$libdir'
14908 hardcode_shlibpath_var_CXX=no
14910 solaris2.[0-5] | solaris2.[0-5].*) ;;
14912 # The compiler driver will combine and reorder linker options,
14913 # but understands `-z linker_flag'.
14914 # Supported since Solaris 2.6 (maybe 2.5.1?)
14915 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14918 link_all_deplibs_CXX=yes
14920 output_verbose_link_cmd='echo'
14922 # Archives containing C++ object files must be created using
14923 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14924 # necessary to make sure instantiated templates are included
14926 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14929 # Green Hills C++ Compiler
14930 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14932 # The C++ compiler must be used to create the archive.
14933 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14936 # GNU C++ compiler with Solaris linker
14937 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14938 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14939 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14940 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14941 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14942 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14944 # Commands to make compiler produce verbose output that lists
14945 # what "hidden" libraries, object files and flags are used when
14946 # linking a shared library.
14947 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14949 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14951 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14952 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14953 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14955 # Commands to make compiler produce verbose output that lists
14956 # what "hidden" libraries, object files and flags are used when
14957 # linking a shared library.
14958 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14961 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14963 solaris2.[0-5] | solaris2.[0-5].*) ;;
14965 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14973 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14974 no_undefined_flag_CXX='${wl}-z,text'
14975 archive_cmds_need_lc_CXX=no
14976 hardcode_shlibpath_var_CXX=no
14977 runpath_var='LD_RUN_PATH'
14979 case $cc_basename in
14981 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14982 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14985 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14986 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14991 sysv5* | sco3.2v5* | sco5v6*)
14992 # Note: We can NOT use -z defs as we might desire, because we do not
14993 # link with -lc, and that would cause any symbols used from libc to
14994 # always be unresolved, which means just about no library would
14995 # ever link correctly. If we're not using GNU ld we use -z text
14996 # though, which does catch some bad symbols but isn't as heavy-handed
14998 no_undefined_flag_CXX='${wl}-z,text'
14999 allow_undefined_flag_CXX='${wl}-z,nodefs'
15000 archive_cmds_need_lc_CXX=no
15001 hardcode_shlibpath_var_CXX=no
15002 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15003 hardcode_libdir_separator_CXX=':'
15004 link_all_deplibs_CXX=yes
15005 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15006 runpath_var='LD_RUN_PATH'
15008 case $cc_basename in
15010 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15011 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15014 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15015 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15021 case $cc_basename in
15023 # NonStop-UX NCC 3.20
15024 # FIXME: insert proper C++ library support
15028 # FIXME: insert proper C++ library support
15035 # FIXME: insert proper C++ library support
15040 # FIXME: insert proper C++ library support
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15046 $as_echo "$ld_shlibs_CXX" >&6; }
15047 test "$ld_shlibs_CXX" = no && can_build_shared=no
15053 ## There is no encapsulation within the following macros, do not change
15054 ## the running order or otherwise move them around unless you know exactly
15055 ## what you are doing...
15056 # Dependencies to place before and after the object being linked:
15057 predep_objects_CXX=
15058 postdep_objects_CXX=
15061 compiler_lib_search_path_CXX=
15063 cat > conftest.$ac_ext <<_LT_EOF
15067 Foo (void) { a = 0; }
15073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15074 (eval $ac_compile) 2>&5
15076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15077 test $ac_status = 0; }; then
15078 # Parse the compiler output and extract the necessary
15079 # objects, libraries and library flags.
15081 # Sentinel used to keep track of whether or not we are before
15082 # the conftest object file.
15083 pre_test_object_deps_done=no
15085 for p in `eval "$output_verbose_link_cmd"`; do
15089 # Some compilers place space between "-{L,R}" and the path.
15090 # Remove the space.
15091 if test $p = "-L" ||
15092 test $p = "-R"; then
15099 if test "$pre_test_object_deps_done" = no; then
15102 # Internal compiler library paths should come after those
15103 # provided the user. The postdeps already come after the
15104 # user supplied libs so there is no need to process them.
15105 if test -z "$compiler_lib_search_path_CXX"; then
15106 compiler_lib_search_path_CXX="${prev}${p}"
15108 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15111 # The "-l" case would never come before the object being
15112 # linked, so don't bother handling this case.
15115 if test -z "$postdeps_CXX"; then
15116 postdeps_CXX="${prev}${p}"
15118 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15124 # This assumes that the test object file only shows up
15125 # once in the compiler output.
15126 if test "$p" = "conftest.$objext"; then
15127 pre_test_object_deps_done=yes
15131 if test "$pre_test_object_deps_done" = no; then
15132 if test -z "$predep_objects_CXX"; then
15133 predep_objects_CXX="$p"
15135 predep_objects_CXX="$predep_objects_CXX $p"
15138 if test -z "$postdep_objects_CXX"; then
15139 postdep_objects_CXX="$p"
15141 postdep_objects_CXX="$postdep_objects_CXX $p"
15146 *) ;; # Ignore the rest.
15154 echo "libtool.m4: error: problem compiling CXX test program"
15157 $RM -f confest.$objext
15159 # PORTME: override above test on systems where it is broken
15162 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15163 # hack all around it, let's just trust "g++" to DTRT.
15164 predep_objects_CXX=
15165 postdep_objects_CXX=
15170 case `$CC -V 2>&1 | sed 5q` in
15174 # The more standards-conforming stlport4 library is
15175 # incompatible with the Cstd library. Avoid specifying
15176 # it if it's in CXXFLAGS. Ignore libCrun as
15177 # -library=stlport4 depends on it.
15178 case " $CXX $CXXFLAGS " in
15179 *" -library=stlport4 "*)
15180 solaris_use_stlport4=yes
15184 if test "$solaris_use_stlport4" != yes; then
15185 postdeps_CXX='-library=Cstd -library=Crun'
15192 case $cc_basename in
15194 # The more standards-conforming stlport4 library is
15195 # incompatible with the Cstd library. Avoid specifying
15196 # it if it's in CXXFLAGS. Ignore libCrun as
15197 # -library=stlport4 depends on it.
15198 case " $CXX $CXXFLAGS " in
15199 *" -library=stlport4 "*)
15200 solaris_use_stlport4=yes
15204 # Adding this requires a known-good setup of shared libraries for
15205 # Sun compiler versions before 5.6, else PIC objects from an old
15206 # archive will be linked into the output, leading to subtle bugs.
15207 if test "$solaris_use_stlport4" != yes; then
15208 postdeps_CXX='-library=Cstd -library=Crun'
15216 case " $postdeps_CXX " in
15217 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15219 compiler_lib_search_dirs_CXX=
15220 if test -n "${compiler_lib_search_path_CXX}"; then
15221 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15254 lt_prog_compiler_wl_CXX=
15255 lt_prog_compiler_pic_CXX=
15256 lt_prog_compiler_static_CXX=
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15259 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15261 # C++ specific cases for pic, static, wl, etc.
15262 if test "$GXX" = yes; then
15263 lt_prog_compiler_wl_CXX='-Wl,'
15264 lt_prog_compiler_static_CXX='-static'
15268 # All AIX code is PIC.
15269 if test "$host_cpu" = ia64; then
15270 # AIX 5 now supports IA64 processor
15271 lt_prog_compiler_static_CXX='-Bstatic'
15278 # see comment about AmigaOS4 .so support
15279 lt_prog_compiler_pic_CXX='-fPIC'
15282 # FIXME: we need at least 68020 code to build shared libraries, but
15283 # adding the `-m68020' flag to GCC prevents building anything better,
15285 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15290 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15291 # PIC is the default for these OSes.
15293 mingw* | cygwin* | os2* | pw32* | cegcc*)
15294 # This hack is so that the source file can tell whether it is being
15295 # built for inclusion in a dll (and should export symbols for example).
15296 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15297 # (--disable-auto-import) libraries
15298 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15300 darwin* | rhapsody*)
15301 # PIC is the default on this platform
15302 # Common symbols not allowed in MH_DYLIB files
15303 lt_prog_compiler_pic_CXX='-fno-common'
15306 # DJGPP does not support shared libraries at all
15307 lt_prog_compiler_pic_CXX=
15310 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15311 # Instead, we relocate shared libraries at runtime.
15314 if test -d /usr/nec; then
15315 lt_prog_compiler_pic_CXX=-Kconform_pic
15319 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15320 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15321 # sets the default TLS model and affects inlining.
15326 lt_prog_compiler_pic_CXX='-fPIC'
15331 # QNX uses GNU C++, but need to define -shared option too, otherwise
15332 # it will coredump.
15333 lt_prog_compiler_pic_CXX='-fPIC -shared'
15336 lt_prog_compiler_pic_CXX='-fPIC'
15342 # All AIX code is PIC.
15343 if test "$host_cpu" = ia64; then
15344 # AIX 5 now supports IA64 processor
15345 lt_prog_compiler_static_CXX='-Bstatic'
15347 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15351 case $cc_basename in
15353 # Green Hills C++ Compiler
15354 # _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"
15359 case $cc_basename in
15361 lt_prog_compiler_pic_CXX='-KPIC'
15364 # Green Hills C++ Compiler
15365 lt_prog_compiler_pic_CXX='-pic'
15371 freebsd* | dragonfly*)
15372 # FreeBSD uses GNU C++
15374 hpux9* | hpux10* | hpux11*)
15375 case $cc_basename in
15377 lt_prog_compiler_wl_CXX='-Wl,'
15378 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15379 if test "$host_cpu" != ia64; then
15380 lt_prog_compiler_pic_CXX='+Z'
15384 lt_prog_compiler_wl_CXX='-Wl,'
15385 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15391 lt_prog_compiler_pic_CXX='+Z'
15400 # This is c89, which is MS Visual C++ (no shared libs)
15401 # Anyone wants to do a port?
15403 irix5* | irix6* | nonstopux*)
15404 case $cc_basename in
15406 lt_prog_compiler_wl_CXX='-Wl,'
15407 lt_prog_compiler_static_CXX='-non_shared'
15408 # CC pic flag -KPIC is the default.
15414 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15415 case $cc_basename in
15418 lt_prog_compiler_wl_CXX='--backend -Wl,'
15419 lt_prog_compiler_pic_CXX='-fPIC'
15422 # old Intel C++ for x86_64 which still supported -KPIC.
15423 lt_prog_compiler_wl_CXX='-Wl,'
15424 lt_prog_compiler_pic_CXX='-KPIC'
15425 lt_prog_compiler_static_CXX='-static'
15428 # Intel C++, used to be incompatible with GCC.
15429 # ICC 10 doesn't accept -KPIC any more.
15430 lt_prog_compiler_wl_CXX='-Wl,'
15431 lt_prog_compiler_pic_CXX='-fPIC'
15432 lt_prog_compiler_static_CXX='-static'
15435 # Portland Group C++ compiler
15436 lt_prog_compiler_wl_CXX='-Wl,'
15437 lt_prog_compiler_pic_CXX='-fpic'
15438 lt_prog_compiler_static_CXX='-Bstatic'
15442 # Make sure the PIC flag is empty. It appears that all Alpha
15443 # Linux and Compaq Tru64 Unix objects are PIC.
15444 lt_prog_compiler_pic_CXX=
15445 lt_prog_compiler_static_CXX='-non_shared'
15448 # IBM XL 8.0 on PPC
15449 lt_prog_compiler_wl_CXX='-Wl,'
15450 lt_prog_compiler_pic_CXX='-qpic'
15451 lt_prog_compiler_static_CXX='-qstaticlink'
15454 case `$CC -V 2>&1 | sed 5q` in
15457 lt_prog_compiler_pic_CXX='-KPIC'
15458 lt_prog_compiler_static_CXX='-Bstatic'
15459 lt_prog_compiler_wl_CXX='-Qoption ld '
15470 case $cc_basename in
15472 lt_prog_compiler_pic_CXX='-W c,exportall'
15481 # QNX uses GNU C++, but need to define -shared option too, otherwise
15482 # it will coredump.
15483 lt_prog_compiler_pic_CXX='-fPIC -shared'
15485 osf3* | osf4* | osf5*)
15486 case $cc_basename in
15488 lt_prog_compiler_wl_CXX='--backend -Wl,'
15491 # Rational C++ 2.4.1
15492 lt_prog_compiler_pic_CXX='-pic'
15495 # Digital/Compaq C++
15496 lt_prog_compiler_wl_CXX='-Wl,'
15497 # Make sure the PIC flag is empty. It appears that all Alpha
15498 # Linux and Compaq Tru64 Unix objects are PIC.
15499 lt_prog_compiler_pic_CXX=
15500 lt_prog_compiler_static_CXX='-non_shared'
15509 case $cc_basename in
15511 # Sun C++ 4.2, 5.x and Centerline C++
15512 lt_prog_compiler_pic_CXX='-KPIC'
15513 lt_prog_compiler_static_CXX='-Bstatic'
15514 lt_prog_compiler_wl_CXX='-Qoption ld '
15517 # Green Hills C++ Compiler
15518 lt_prog_compiler_pic_CXX='-PIC'
15525 case $cc_basename in
15528 lt_prog_compiler_pic_CXX='-pic'
15529 lt_prog_compiler_static_CXX='-Bstatic'
15533 lt_prog_compiler_pic_CXX='-pic'
15539 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15540 case $cc_basename in
15542 lt_prog_compiler_wl_CXX='-Wl,'
15543 lt_prog_compiler_pic_CXX='-KPIC'
15544 lt_prog_compiler_static_CXX='-Bstatic'
15549 case $cc_basename in
15551 # NonStop-UX NCC 3.20
15552 lt_prog_compiler_pic_CXX='-KPIC'
15561 lt_prog_compiler_can_build_shared_CXX=no
15567 # For platforms which do not support PIC, -DPIC is meaningless:
15569 lt_prog_compiler_pic_CXX=
15572 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15576 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15581 # Check to make sure the PIC flag actually works.
15583 if test -n "$lt_prog_compiler_pic_CXX"; then
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15585 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15586 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15587 $as_echo_n "(cached) " >&6
15589 lt_cv_prog_compiler_pic_works_CXX=no
15590 ac_outfile=conftest.$ac_objext
15591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15592 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15593 # Insert the option either (1) after the last *FLAGS variable, or
15594 # (2) before a word containing "conftest.", or (3) at the end.
15595 # Note that $ac_compile itself does not contain backslashes and begins
15596 # with a dollar sign (not a hyphen), so the echo should work correctly.
15597 # The option is referenced via a variable to avoid confusing sed.
15598 lt_compile=`echo "$ac_compile" | $SED \
15599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15601 -e 's:$: $lt_compiler_flag:'`
15602 (eval echo "\"\$as_me:15602: $lt_compile\"" >&5)
15603 (eval "$lt_compile" 2>conftest.err)
15605 cat conftest.err >&5
15606 echo "$as_me:15606: \$? = $ac_status" >&5
15607 if (exit $ac_status) && test -s "$ac_outfile"; then
15608 # The compiler can only warn and ignore the option if not recognized
15609 # So say no if there are warnings other than the usual output.
15610 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15612 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15613 lt_cv_prog_compiler_pic_works_CXX=yes
15619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15620 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15622 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15623 case $lt_prog_compiler_pic_CXX in
15625 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15628 lt_prog_compiler_pic_CXX=
15629 lt_prog_compiler_can_build_shared_CXX=no
15637 # Check to make sure the static flag actually works.
15639 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15641 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15642 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15643 $as_echo_n "(cached) " >&6
15645 lt_cv_prog_compiler_static_works_CXX=no
15646 save_LDFLAGS="$LDFLAGS"
15647 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15648 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15649 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15650 # The linker can only warn and ignore the option if not recognized
15651 # So say no if there are warnings
15652 if test -s conftest.err; then
15653 # Append any errors to the config.log.
15654 cat conftest.err 1>&5
15655 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15656 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15657 if diff conftest.exp conftest.er2 >/dev/null; then
15658 lt_cv_prog_compiler_static_works_CXX=yes
15661 lt_cv_prog_compiler_static_works_CXX=yes
15665 LDFLAGS="$save_LDFLAGS"
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15669 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15671 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15674 lt_prog_compiler_static_CXX=
15680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15681 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15682 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15683 $as_echo_n "(cached) " >&6
15685 lt_cv_prog_compiler_c_o_CXX=no
15686 $RM -r conftest 2>/dev/null
15690 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15692 lt_compiler_flag="-o out/conftest2.$ac_objext"
15693 # Insert the option either (1) after the last *FLAGS variable, or
15694 # (2) before a word containing "conftest.", or (3) at the end.
15695 # Note that $ac_compile itself does not contain backslashes and begins
15696 # with a dollar sign (not a hyphen), so the echo should work correctly.
15697 lt_compile=`echo "$ac_compile" | $SED \
15698 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15699 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15700 -e 's:$: $lt_compiler_flag:'`
15701 (eval echo "\"\$as_me:15701: $lt_compile\"" >&5)
15702 (eval "$lt_compile" 2>out/conftest.err)
15704 cat out/conftest.err >&5
15705 echo "$as_me:15705: \$? = $ac_status" >&5
15706 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15708 # The compiler can only warn and ignore the option if not recognized
15709 # So say no if there are warnings
15710 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15711 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15712 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15713 lt_cv_prog_compiler_c_o_CXX=yes
15718 # SGI C++ compiler will create directory out/ii_files/ for
15719 # template instantiation
15720 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15721 $RM out/* && rmdir out
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15728 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15733 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15734 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15735 $as_echo_n "(cached) " >&6
15737 lt_cv_prog_compiler_c_o_CXX=no
15738 $RM -r conftest 2>/dev/null
15742 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15744 lt_compiler_flag="-o out/conftest2.$ac_objext"
15745 # Insert the option either (1) after the last *FLAGS variable, or
15746 # (2) before a word containing "conftest.", or (3) at the end.
15747 # Note that $ac_compile itself does not contain backslashes and begins
15748 # with a dollar sign (not a hyphen), so the echo should work correctly.
15749 lt_compile=`echo "$ac_compile" | $SED \
15750 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15751 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15752 -e 's:$: $lt_compiler_flag:'`
15753 (eval echo "\"\$as_me:15753: $lt_compile\"" >&5)
15754 (eval "$lt_compile" 2>out/conftest.err)
15756 cat out/conftest.err >&5
15757 echo "$as_me:15757: \$? = $ac_status" >&5
15758 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15760 # The compiler can only warn and ignore the option if not recognized
15761 # So say no if there are warnings
15762 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15763 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15764 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15765 lt_cv_prog_compiler_c_o_CXX=yes
15770 # SGI C++ compiler will create directory out/ii_files/ for
15771 # template instantiation
15772 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15773 $RM out/* && rmdir out
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15780 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15785 hard_links="nottested"
15786 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15787 # do not overwrite the value of need_locks provided by the user
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15789 $as_echo_n "checking if we can lock with hard links... " >&6; }
15792 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15794 ln conftest.a conftest.b 2>&5 || hard_links=no
15795 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15797 $as_echo "$hard_links" >&6; }
15798 if test "$hard_links" = no; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15800 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15810 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15812 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15815 # If we're using GNU nm, then we don't want the "-C" option.
15816 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15817 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15818 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15820 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'
15824 export_symbols_cmds_CXX="$ltdll_cmds"
15826 cygwin* | mingw* | cegcc*)
15827 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'
15830 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15833 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15836 $as_echo "$ld_shlibs_CXX" >&6; }
15837 test "$ld_shlibs_CXX" = no && can_build_shared=no
15839 with_gnu_ld_CXX=$with_gnu_ld
15847 # Do we need to explicitly link libc?
15849 case "x$archive_cmds_need_lc_CXX" in
15851 # Assume -lc should be added
15852 archive_cmds_need_lc_CXX=yes
15854 if test "$enable_shared" = yes && test "$GCC" = yes; then
15855 case $archive_cmds_CXX in
15857 # FIXME: we may have to deal with multi-command sequences.
15860 # Test whether the compiler implicitly links with -lc since on some
15861 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15862 # to ld, don't add -lc before -lgcc.
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15864 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15865 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15866 $as_echo_n "(cached) " >&6
15869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15872 (eval $ac_compile) 2>&5
15874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15875 test $ac_status = 0; } 2>conftest.err; then
15878 libobjs=conftest.$ac_objext
15880 wl=$lt_prog_compiler_wl_CXX
15881 pic_flag=$lt_prog_compiler_pic_CXX
15887 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15888 allow_undefined_flag_CXX=
15889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15890 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15893 test $ac_status = 0; }
15895 lt_cv_archive_cmds_need_lc_CXX=no
15897 lt_cv_archive_cmds_need_lc_CXX=yes
15899 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15901 cat conftest.err 1>&5
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15907 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15908 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15979 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15981 library_names_spec=
15982 libname_spec='lib$name'
15986 postuninstall_cmds=
15990 shlibpath_overrides_runpath=unknown
15992 dynamic_linker="$host_os ld.so"
15993 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15994 need_lib_prefix=unknown
15995 hardcode_into_libs=no
15997 # when you set need_version to no, make sure it does not cause -set_version
15998 # flags to be left without arguments
15999 need_version=unknown
16004 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16005 shlibpath_var=LIBPATH
16007 # AIX 3 has no versioning support, so we append a major version to the name.
16008 soname_spec='${libname}${release}${shared_ext}$major'
16015 hardcode_into_libs=yes
16016 if test "$host_cpu" = ia64; then
16017 # AIX 5 supports IA64
16018 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16019 shlibpath_var=LD_LIBRARY_PATH
16021 # With GCC up to 2.95.x, collect2 would create an import file
16022 # for dependence libraries. The import file would start with
16023 # the line `#! .'. This would cause the generated library to
16024 # depend on `.', always an invalid library. This was fixed in
16025 # development snapshots of GCC prior to 3.0.
16027 aix4 | aix4.[01] | aix4.[01].*)
16028 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16030 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16033 can_build_shared=no
16037 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16038 # soname into executable. Probably we can add versioning support to
16039 # collect2, so additional links can be useful in future.
16040 if test "$aix_use_runtimelinking" = yes; then
16041 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16042 # instead of lib<name>.a to let people know that these are not
16043 # typical AIX shared libraries.
16044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16046 # We preserve .a as extension for shared libraries through AIX4.2
16047 # and later when we are not doing run time linking.
16048 library_names_spec='${libname}${release}.a $libname.a'
16049 soname_spec='${libname}${release}${shared_ext}$major'
16051 shlibpath_var=LIBPATH
16058 # Since July 2007 AmigaOS4 officially supports .so libraries.
16059 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16063 library_names_spec='$libname.ixlibrary $libname.a'
16064 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16065 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'
16071 library_names_spec='${libname}${shared_ext}'
16072 dynamic_linker="$host_os ld.so"
16073 shlibpath_var=LIBRARY_PATH
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080 soname_spec='${libname}${release}${shared_ext}$major'
16081 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16082 shlibpath_var=LD_LIBRARY_PATH
16083 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16084 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16085 # the default ld.so.conf also contains /usr/contrib/lib and
16086 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16087 # libtool to hard-code these into programs
16090 cygwin* | mingw* | pw32* | cegcc*)
16091 version_type=windows
16096 case $GCC,$host_os in
16097 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16098 library_names_spec='$libname.dll.a'
16099 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16100 postinstall_cmds='base_file=`basename \${file}`~
16101 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16102 dldir=$destdir/`dirname \$dlpath`~
16103 test -d \$dldir || mkdir -p \$dldir~
16104 $install_prog $dir/$dlname \$dldir/$dlname~
16105 chmod a+x \$dldir/$dlname~
16106 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16107 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16109 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16110 dlpath=$dir/\$dldll~
16112 shlibpath_overrides_runpath=yes
16116 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16117 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16118 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16121 # MinGW DLLs use traditional 'lib' prefix
16122 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16123 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16124 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16125 # It is most probably a Windows format PATH printed by
16126 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16127 # path with ; separators, and with drive letters. We can handle the
16128 # drive letters (cygwin fileutils understands them), so leave them,
16129 # especially as we might pass files found there to a mingw objdump,
16130 # which wouldn't understand a cygwinified path. Ahh.
16131 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16133 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16137 # pw32 DLLs use 'pw' prefix rather than 'lib'
16138 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16144 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16147 dynamic_linker='Win32 ld.exe'
16148 # FIXME: first we should search . and the directory the executable is in
16152 darwin* | rhapsody*)
16153 dynamic_linker="$host_os dyld"
16154 version_type=darwin
16157 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16158 soname_spec='${libname}${release}${major}$shared_ext'
16159 shlibpath_overrides_runpath=yes
16160 shlibpath_var=DYLD_LIBRARY_PATH
16161 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16163 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16171 soname_spec='${libname}${release}${shared_ext}$major'
16172 shlibpath_var=LD_LIBRARY_PATH
16179 freebsd* | dragonfly*)
16180 # DragonFly does not have aout. When/if they implement a new
16181 # versioning mechanism, adjust this.
16182 if test -x /usr/bin/objformat; then
16183 objformat=`/usr/bin/objformat`
16186 freebsd[123]*) objformat=aout ;;
16187 *) objformat=elf ;;
16190 version_type=freebsd-$objformat
16191 case $version_type in
16193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16202 shlibpath_var=LD_LIBRARY_PATH
16205 shlibpath_overrides_runpath=yes
16207 freebsd3.[01]* | freebsdelf3.[01]*)
16208 shlibpath_overrides_runpath=yes
16209 hardcode_into_libs=yes
16211 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16212 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16213 shlibpath_overrides_runpath=no
16214 hardcode_into_libs=yes
16216 *) # from 4.6 on, and DragonFly
16217 shlibpath_overrides_runpath=yes
16218 hardcode_into_libs=yes
16227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16228 soname_spec='${libname}${release}${shared_ext}$major'
16229 shlibpath_var=LD_LIBRARY_PATH
16230 hardcode_into_libs=yes
16233 hpux9* | hpux10* | hpux11*)
16234 # Give a soname corresponding to the major version so that dld.sl refuses to
16235 # link against other versions.
16242 hardcode_into_libs=yes
16243 dynamic_linker="$host_os dld.so"
16244 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then
16249 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16251 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16257 hardcode_into_libs=yes
16258 dynamic_linker="$host_os dld.sl"
16259 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16262 soname_spec='${libname}${release}${shared_ext}$major'
16263 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16268 dynamic_linker="$host_os dld.sl"
16269 shlibpath_var=SHLIB_PATH
16270 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16272 soname_spec='${libname}${release}${shared_ext}$major'
16275 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16276 postinstall_cmds='chmod 555 $lib'
16283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16284 soname_spec='${libname}${release}${shared_ext}$major'
16285 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16286 shlibpath_var=LD_LIBRARY_PATH
16287 shlibpath_overrides_runpath=no
16288 hardcode_into_libs=yes
16291 irix5* | irix6* | nonstopux*)
16293 nonstopux*) version_type=nonstopux ;;
16295 if test "$lt_cv_prog_gnu_ld" = yes; then
16303 soname_spec='${libname}${release}${shared_ext}$major'
16304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16306 irix5* | nonstopux*)
16307 libsuff= shlibsuff=
16310 case $LD in # libtool.m4 will add one of these switches to LD
16311 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16312 libsuff= shlibsuff= libmagic=32-bit;;
16313 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16314 libsuff=32 shlibsuff=N32 libmagic=N32;;
16315 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16316 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16317 *) libsuff= shlibsuff= libmagic=never-match;;
16321 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16322 shlibpath_overrides_runpath=no
16323 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16324 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16325 hardcode_into_libs=yes
16328 # No shared lib support for Linux oldld, aout, or coff.
16329 linux*oldld* | linux*aout* | linux*coff*)
16333 # This must be Linux ELF.
16334 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16339 soname_spec='${libname}${release}${shared_ext}$major'
16340 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16341 shlibpath_var=LD_LIBRARY_PATH
16342 shlibpath_overrides_runpath=no
16344 # Some binutils ld are patched to set DT_RUNPATH
16345 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16346 $as_echo_n "(cached) " >&6
16348 lt_cv_shlibpath_overrides_runpath=no
16349 save_LDFLAGS=$LDFLAGS
16350 save_libdir=$libdir
16351 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16352 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16353 if test x$gcc_no_link = xyes; then
16354 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16357 /* end confdefs.h. */
16367 if ac_fn_cxx_try_link "$LINENO"; then :
16368 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16369 lt_cv_shlibpath_overrides_runpath=yes
16372 rm -f core conftest.err conftest.$ac_objext \
16373 conftest$ac_exeext conftest.$ac_ext
16374 LDFLAGS=$save_LDFLAGS
16375 libdir=$save_libdir
16379 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16381 # This implies no fast_install, which is unacceptable.
16382 # Some rework will be needed to allow for fast_install
16383 # before this can be enabled.
16384 hardcode_into_libs=yes
16386 # Append ld.so.conf contents to the search path
16387 if test -f /etc/ld.so.conf; then
16388 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16389 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16392 # We used to test for /lib/ld.so.1 and disable shared libraries on
16393 # powerpc, because MkLinux only supported shared libraries with the
16394 # GNU dynamic linker. Since this was broken with cross compilers,
16395 # most powerpc-linux boxes support dynamic linking these days and
16396 # people can always --disable-shared, the test was removed, and we
16397 # assume the GNU/Linux dynamic linker is in use.
16398 dynamic_linker='GNU/Linux ld.so'
16405 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16408 dynamic_linker='NetBSD (a.out) ld.so'
16410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16411 soname_spec='${libname}${release}${shared_ext}$major'
16412 dynamic_linker='NetBSD ld.elf_so'
16414 shlibpath_var=LD_LIBRARY_PATH
16415 shlibpath_overrides_runpath=yes
16416 hardcode_into_libs=yes
16421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 shlibpath_overrides_runpath=yes
16430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16431 soname_spec='${libname}${release}${shared_ext}$major'
16432 shlibpath_var=LD_LIBRARY_PATH
16433 shlibpath_overrides_runpath=no
16434 hardcode_into_libs=yes
16435 dynamic_linker='ldqnx.so'
16440 sys_lib_dlsearch_path_spec="/usr/lib"
16442 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16444 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16445 *) need_version=no ;;
16447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16449 shlibpath_var=LD_LIBRARY_PATH
16450 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16452 openbsd2.[89] | openbsd2.[89].*)
16453 shlibpath_overrides_runpath=no
16456 shlibpath_overrides_runpath=yes
16460 shlibpath_overrides_runpath=yes
16465 libname_spec='$name'
16468 library_names_spec='$libname${shared_ext} $libname.a'
16469 dynamic_linker='OS/2 ld.exe'
16470 shlibpath_var=LIBPATH
16473 osf3* | osf4* | osf5*)
16477 soname_spec='${libname}${release}${shared_ext}$major'
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16479 shlibpath_var=LD_LIBRARY_PATH
16480 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16481 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16493 soname_spec='${libname}${release}${shared_ext}$major'
16494 shlibpath_var=LD_LIBRARY_PATH
16495 shlibpath_overrides_runpath=yes
16496 hardcode_into_libs=yes
16497 # ldd complains unless libraries are executable
16498 postinstall_cmds='chmod +x $lib'
16503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16504 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16505 shlibpath_var=LD_LIBRARY_PATH
16506 shlibpath_overrides_runpath=yes
16507 if test "$with_gnu_ld" = yes; then
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516 soname_spec='${libname}${release}${shared_ext}$major'
16517 shlibpath_var=LD_LIBRARY_PATH
16518 case $host_vendor in
16520 shlibpath_overrides_runpath=no
16522 runpath_var=LD_RUN_PATH
16530 shlibpath_overrides_runpath=no
16531 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16537 if test -d /usr/nec ;then
16539 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16540 soname_spec='$libname${shared_ext}.$major'
16541 shlibpath_var=LD_LIBRARY_PATH
16545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16546 version_type=freebsd-elf
16549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16550 soname_spec='${libname}${release}${shared_ext}$major'
16551 shlibpath_var=LD_LIBRARY_PATH
16552 shlibpath_overrides_runpath=yes
16553 hardcode_into_libs=yes
16554 if test "$with_gnu_ld" = yes; then
16555 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16557 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16560 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16564 sys_lib_dlsearch_path_spec='/usr/lib'
16568 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16573 shlibpath_var=LD_LIBRARY_PATH
16574 shlibpath_overrides_runpath=no
16575 hardcode_into_libs=yes
16580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16581 soname_spec='${libname}${release}${shared_ext}$major'
16582 shlibpath_var=LD_LIBRARY_PATH
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16590 $as_echo "$dynamic_linker" >&6; }
16591 test "$dynamic_linker" = no && can_build_shared=no
16593 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16594 if test "$GCC" = yes; then
16595 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16598 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16599 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16601 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16602 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16641 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16642 hardcode_action_CXX=
16643 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16644 test -n "$runpath_var_CXX" ||
16645 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16647 # We can hardcode non-existent directories.
16648 if test "$hardcode_direct_CXX" != no &&
16649 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16650 # have to relink, otherwise we might link with an installed library
16651 # when we should be linking with a yet-to-be-installed one
16652 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16653 test "$hardcode_minus_L_CXX" != no; then
16654 # Linking always hardcodes the temporary library directory.
16655 hardcode_action_CXX=relink
16657 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16658 hardcode_action_CXX=immediate
16661 # We cannot hardcode anything, or else we can only hardcode existing
16663 hardcode_action_CXX=unsupported
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16666 $as_echo "$hardcode_action_CXX" >&6; }
16668 if test "$hardcode_action_CXX" = relink ||
16669 test "$inherit_rpath_CXX" = yes; then
16670 # Fast installation is not supported
16671 enable_fast_install=no
16672 elif test "$shlibpath_overrides_runpath" = yes ||
16673 test "$enable_shared" = no; then
16674 # Fast installation is not necessary
16675 enable_fast_install=needless
16684 fi # test -n "$compiler"
16690 with_gnu_ld=$lt_save_with_gnu_ld
16691 lt_cv_path_LDCXX=$lt_cv_path_LD
16692 lt_cv_path_LD=$lt_save_path_LD
16693 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16694 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16695 fi # test "$_lt_caught_CXX_error" != yes
16698 ac_cpp='$CPP $CPPFLAGS'
16699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16715 ac_config_commands="$ac_config_commands libtool"
16720 # Only expand once:
16726 # Extract the first word of "$ac_prog", so it can be a program name with args.
16727 set dummy $ac_prog; ac_word=$2
16728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16729 $as_echo_n "checking for $ac_word... " >&6; }
16730 if test "${ac_cv_prog_GCJ+set}" = set; then :
16731 $as_echo_n "(cached) " >&6
16733 if test -n "$GCJ"; then
16734 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16737 for as_dir in $PATH
16740 test -z "$as_dir" && as_dir=.
16741 for ac_exec_ext in '' $ac_executable_extensions; do
16742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16743 ac_cv_prog_GCJ="$ac_prog"
16744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16753 GCJ=$ac_cv_prog_GCJ
16754 if test -n "$GCJ"; then
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16756 $as_echo "$GCJ" >&6; }
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16759 $as_echo "no" >&6; }
16763 test -n "$GCJ" && break
16765 test -n "$GCJ" || GCJ="gcj"
16767 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16768 if test "x${GCJFLAGS-unset}" = xunset; then
16773 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16776 $as_echo_n "checking dependency style of $depcc... " >&6; }
16777 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16778 $as_echo_n "(cached) " >&6
16780 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16781 # We make a subdir and do the tests there. Otherwise we can end up
16782 # making bogus files that we don't know about and never remove. For
16783 # instance it was reported that on HP-UX the gcc test will end up
16784 # making a dummy file named `D' -- because `-MD' means `put the output
16787 # Copy depcomp to subdir because otherwise we won't find it if we're
16788 # using a relative directory.
16789 cp "$am_depcomp" conftest.dir
16791 # We will build objects and dependencies in a subdirectory because
16792 # it helps to detect inapplicable dependency modes. For instance
16793 # both Tru64's cc and ICC support -MD to output dependencies as a
16794 # side effect of compilation, but ICC will put the dependencies in
16795 # the current directory while Tru64 will put them in the object
16799 am_cv_GCJ_dependencies_compiler_type=none
16800 if test "$am_compiler_list" = ""; then
16801 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16803 am__universal=false
16806 for depmode in $am_compiler_list; do
16807 # Setup a source with many dependencies, because some compilers
16808 # like to wrap large dependency lists on column 80 (with \), and
16809 # we should not choose a depcomp mode which is confused by this.
16811 # We need to recreate these files for each test, as the compiler may
16812 # overwrite some of them when testing with obscure command lines.
16813 # This happens at least with the AIX C compiler.
16815 for i in 1 2 3 4 5 6; do
16816 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16817 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16818 # Solaris 8's {/usr,}/bin/sh.
16819 touch sub/conftst$i.h
16821 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16823 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16824 # mode. It turns out that the SunPro C++ compiler does not properly
16825 # handle `-M -o', and we need to detect this. Also, some Intel
16826 # versions had trouble with output in subdirs
16827 am__obj=sub/conftest.${OBJEXT-o}
16828 am__minus_obj="-o $am__obj"
16831 # This depmode causes a compiler race in universal mode.
16832 test "$am__universal" = false || continue
16835 # after this tag, mechanisms are not by side-effect, so they'll
16836 # only be used when explicitly requested
16837 if test "x$enable_dependency_tracking" = xyes; then
16843 msvisualcpp | msvcmsys)
16844 # This compiler won't grok `-c -o', but also, the minuso test has
16845 # not run yet. These depmodes are late enough in the game, and
16846 # so weak that their functioning should not be impacted.
16847 am__obj=conftest.${OBJEXT-o}
16852 if depmode=$depmode \
16853 source=sub/conftest.c object=$am__obj \
16854 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16855 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16856 >/dev/null 2>conftest.err &&
16857 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16858 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16859 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16860 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16861 # icc doesn't choke on unknown options, it will just issue warnings
16862 # or remarks (even with -Werror). So we grep stderr for any message
16863 # that says an option was ignored or not supported.
16864 # When given -MP, icc 7.0 and 7.1 complain thusly:
16865 # icc: Command line warning: ignoring option '-M'; no argument required
16866 # The diagnosis changed in icc 8.0:
16867 # icc: Command line remark: option '-MP' not supported
16868 if (grep 'ignoring option' conftest.err ||
16869 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16870 am_cv_GCJ_dependencies_compiler_type=$depmode
16877 rm -rf conftest.dir
16879 am_cv_GCJ_dependencies_compiler_type=none
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16884 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16885 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16888 test "x$enable_dependency_tracking" != xno \
16889 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16890 am__fastdepGCJ_TRUE=
16891 am__fastdepGCJ_FALSE='#'
16893 am__fastdepGCJ_TRUE='#'
16894 am__fastdepGCJ_FALSE=
16901 # Extract the first word of "$ac_prog", so it can be a program name with args.
16902 set dummy $ac_prog; ac_word=$2
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16904 $as_echo_n "checking for $ac_word... " >&6; }
16905 if test "${ac_cv_prog_GCJ+set}" = set; then :
16906 $as_echo_n "(cached) " >&6
16908 if test -n "$GCJ"; then
16909 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16912 for as_dir in $PATH
16915 test -z "$as_dir" && as_dir=.
16916 for ac_exec_ext in '' $ac_executable_extensions; do
16917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16918 ac_cv_prog_GCJ="$ac_prog"
16919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16928 GCJ=$ac_cv_prog_GCJ
16929 if test -n "$GCJ"; then
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16931 $as_echo "$GCJ" >&6; }
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16934 $as_echo "no" >&6; }
16938 test -n "$GCJ" && break
16940 test -n "$GCJ" || GCJ="gcj"
16942 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16943 if test "x${GCJFLAGS-unset}" = xunset; then
16948 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16951 $as_echo_n "checking dependency style of $depcc... " >&6; }
16952 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16953 $as_echo_n "(cached) " >&6
16955 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16956 # We make a subdir and do the tests there. Otherwise we can end up
16957 # making bogus files that we don't know about and never remove. For
16958 # instance it was reported that on HP-UX the gcc test will end up
16959 # making a dummy file named `D' -- because `-MD' means `put the output
16962 # Copy depcomp to subdir because otherwise we won't find it if we're
16963 # using a relative directory.
16964 cp "$am_depcomp" conftest.dir
16966 # We will build objects and dependencies in a subdirectory because
16967 # it helps to detect inapplicable dependency modes. For instance
16968 # both Tru64's cc and ICC support -MD to output dependencies as a
16969 # side effect of compilation, but ICC will put the dependencies in
16970 # the current directory while Tru64 will put them in the object
16974 am_cv_GCJ_dependencies_compiler_type=none
16975 if test "$am_compiler_list" = ""; then
16976 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16978 am__universal=false
16981 for depmode in $am_compiler_list; do
16982 # Setup a source with many dependencies, because some compilers
16983 # like to wrap large dependency lists on column 80 (with \), and
16984 # we should not choose a depcomp mode which is confused by this.
16986 # We need to recreate these files for each test, as the compiler may
16987 # overwrite some of them when testing with obscure command lines.
16988 # This happens at least with the AIX C compiler.
16990 for i in 1 2 3 4 5 6; do
16991 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16992 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16993 # Solaris 8's {/usr,}/bin/sh.
16994 touch sub/conftst$i.h
16996 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16998 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16999 # mode. It turns out that the SunPro C++ compiler does not properly
17000 # handle `-M -o', and we need to detect this. Also, some Intel
17001 # versions had trouble with output in subdirs
17002 am__obj=sub/conftest.${OBJEXT-o}
17003 am__minus_obj="-o $am__obj"
17006 # This depmode causes a compiler race in universal mode.
17007 test "$am__universal" = false || continue
17010 # after this tag, mechanisms are not by side-effect, so they'll
17011 # only be used when explicitly requested
17012 if test "x$enable_dependency_tracking" = xyes; then
17018 msvisualcpp | msvcmsys)
17019 # This compiler won't grok `-c -o', but also, the minuso test has
17020 # not run yet. These depmodes are late enough in the game, and
17021 # so weak that their functioning should not be impacted.
17022 am__obj=conftest.${OBJEXT-o}
17027 if depmode=$depmode \
17028 source=sub/conftest.c object=$am__obj \
17029 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17030 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17031 >/dev/null 2>conftest.err &&
17032 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17033 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17034 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17035 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17036 # icc doesn't choke on unknown options, it will just issue warnings
17037 # or remarks (even with -Werror). So we grep stderr for any message
17038 # that says an option was ignored or not supported.
17039 # When given -MP, icc 7.0 and 7.1 complain thusly:
17040 # icc: Command line warning: ignoring option '-M'; no argument required
17041 # The diagnosis changed in icc 8.0:
17042 # icc: Command line remark: option '-MP' not supported
17043 if (grep 'ignoring option' conftest.err ||
17044 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17045 am_cv_GCJ_dependencies_compiler_type=$depmode
17052 rm -rf conftest.dir
17054 am_cv_GCJ_dependencies_compiler_type=none
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17059 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17060 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17063 test "x$enable_dependency_tracking" != xno \
17064 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17065 am__fastdepGCJ_TRUE=
17066 am__fastdepGCJ_FALSE='#'
17068 am__fastdepGCJ_TRUE='#'
17069 am__fastdepGCJ_FALSE=
17076 # Source file extension for Java test sources.
17079 # Object file extension for compiled Java test sources.
17083 # Code to be used in simple compile tests
17084 lt_simple_compile_test_code="int some_variable = 0;"
17086 # Code to be used in simple link tests
17087 lt_simple_link_test_code='int main(){return(0);}'
17089 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17096 # If no C compiler was specified, use CC.
17099 # If no C compiler flags were specified, use CFLAGS.
17100 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17102 # Allow CC to be a program name with arguments.
17106 # save warnings/boilerplate of simple test code
17107 ac_outfile=conftest.$ac_objext
17108 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17109 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17110 _lt_compiler_boilerplate=`cat conftest.err`
17113 ac_outfile=conftest.$ac_objext
17114 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17115 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17116 _lt_linker_boilerplate=`cat conftest.err`
17120 # Allow CC to be a program name with arguments.
17124 for cc_temp in $compiler""; do
17126 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17127 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17132 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17135 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17136 archive_cmds_need_lc_GCJ=no
17138 old_archive_cmds_GCJ=$old_archive_cmds
17141 ## There is no encapsulation within the following macros, do not change
17142 ## the running order or otherwise move them around unless you know exactly
17143 ## what you are doing...
17144 if test -n "$compiler"; then
17146 lt_prog_compiler_no_builtin_flag_GCJ=
17148 if test "$GCC" = yes; then
17149 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17152 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17153 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17154 $as_echo_n "(cached) " >&6
17156 lt_cv_prog_compiler_rtti_exceptions=no
17157 ac_outfile=conftest.$ac_objext
17158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17159 lt_compiler_flag="-fno-rtti -fno-exceptions"
17160 # Insert the option either (1) after the last *FLAGS variable, or
17161 # (2) before a word containing "conftest.", or (3) at the end.
17162 # Note that $ac_compile itself does not contain backslashes and begins
17163 # with a dollar sign (not a hyphen), so the echo should work correctly.
17164 # The option is referenced via a variable to avoid confusing sed.
17165 lt_compile=`echo "$ac_compile" | $SED \
17166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17168 -e 's:$: $lt_compiler_flag:'`
17169 (eval echo "\"\$as_me:17169: $lt_compile\"" >&5)
17170 (eval "$lt_compile" 2>conftest.err)
17172 cat conftest.err >&5
17173 echo "$as_me:17173: \$? = $ac_status" >&5
17174 if (exit $ac_status) && test -s "$ac_outfile"; then
17175 # The compiler can only warn and ignore the option if not recognized
17176 # So say no if there are warnings other than the usual output.
17177 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17179 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17180 lt_cv_prog_compiler_rtti_exceptions=yes
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17187 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17189 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17190 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17199 lt_prog_compiler_wl_GCJ=
17200 lt_prog_compiler_pic_GCJ=
17201 lt_prog_compiler_static_GCJ=
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17204 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17206 if test "$GCC" = yes; then
17207 lt_prog_compiler_wl_GCJ='-Wl,'
17208 lt_prog_compiler_static_GCJ='-static'
17212 # All AIX code is PIC.
17213 if test "$host_cpu" = ia64; then
17214 # AIX 5 now supports IA64 processor
17215 lt_prog_compiler_static_GCJ='-Bstatic'
17222 # see comment about AmigaOS4 .so support
17223 lt_prog_compiler_pic_GCJ='-fPIC'
17226 # FIXME: we need at least 68020 code to build shared libraries, but
17227 # adding the `-m68020' flag to GCC prevents building anything better,
17229 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17234 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17235 # PIC is the default for these OSes.
17238 mingw* | cygwin* | pw32* | os2* | cegcc*)
17239 # This hack is so that the source file can tell whether it is being
17240 # built for inclusion in a dll (and should export symbols for example).
17241 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17242 # (--disable-auto-import) libraries
17246 darwin* | rhapsody*)
17247 # PIC is the default on this platform
17248 # Common symbols not allowed in MH_DYLIB files
17249 lt_prog_compiler_pic_GCJ='-fno-common'
17253 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17254 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17255 # sets the default TLS model and affects inlining.
17261 lt_prog_compiler_pic_GCJ='-fPIC'
17267 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17268 # Instead, we relocate shared libraries at runtime.
17272 # Just because we use GCC doesn't mean we suddenly get shared libraries
17273 # on systems that don't support them.
17274 lt_prog_compiler_can_build_shared_GCJ=no
17279 # QNX uses GNU C++, but need to define -shared option too, otherwise
17280 # it will coredump.
17281 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17285 if test -d /usr/nec; then
17286 lt_prog_compiler_pic_GCJ=-Kconform_pic
17291 lt_prog_compiler_pic_GCJ='-fPIC'
17295 # PORTME Check for flag to pass linker flags through the system compiler.
17298 lt_prog_compiler_wl_GCJ='-Wl,'
17299 if test "$host_cpu" = ia64; then
17300 # AIX 5 now supports IA64 processor
17301 lt_prog_compiler_static_GCJ='-Bstatic'
17303 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17307 mingw* | cygwin* | pw32* | os2* | cegcc*)
17308 # This hack is so that the source file can tell whether it is being
17309 # built for inclusion in a dll (and should export symbols for example).
17313 hpux9* | hpux10* | hpux11*)
17314 lt_prog_compiler_wl_GCJ='-Wl,'
17315 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17316 # not for PA HP-UX.
17322 lt_prog_compiler_pic_GCJ='+Z'
17325 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17326 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17329 irix5* | irix6* | nonstopux*)
17330 lt_prog_compiler_wl_GCJ='-Wl,'
17331 # PIC (with -KPIC) is the default.
17332 lt_prog_compiler_static_GCJ='-non_shared'
17335 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17336 case $cc_basename in
17337 # old Intel for x86_64 which still supported -KPIC.
17339 lt_prog_compiler_wl_GCJ='-Wl,'
17340 lt_prog_compiler_pic_GCJ='-KPIC'
17341 lt_prog_compiler_static_GCJ='-static'
17343 # icc used to be incompatible with GCC.
17344 # ICC 10 doesn't accept -KPIC any more.
17346 lt_prog_compiler_wl_GCJ='-Wl,'
17347 lt_prog_compiler_pic_GCJ='-fPIC'
17348 lt_prog_compiler_static_GCJ='-static'
17350 # Lahey Fortran 8.1.
17352 lt_prog_compiler_wl_GCJ='-Wl,'
17353 lt_prog_compiler_pic_GCJ='--shared'
17354 lt_prog_compiler_static_GCJ='--static'
17356 pgcc* | pgf77* | pgf90* | pgf95*)
17357 # Portland Group compilers (*not* the Pentium gcc compiler,
17358 # which looks to be a dead project)
17359 lt_prog_compiler_wl_GCJ='-Wl,'
17360 lt_prog_compiler_pic_GCJ='-fpic'
17361 lt_prog_compiler_static_GCJ='-Bstatic'
17364 lt_prog_compiler_wl_GCJ='-Wl,'
17365 # All Alpha code is PIC.
17366 lt_prog_compiler_static_GCJ='-non_shared'
17369 # IBM XL C 8.0/Fortran 10.1 on PPC
17370 lt_prog_compiler_wl_GCJ='-Wl,'
17371 lt_prog_compiler_pic_GCJ='-qpic'
17372 lt_prog_compiler_static_GCJ='-qstaticlink'
17375 case `$CC -V 2>&1 | sed 5q` in
17378 lt_prog_compiler_pic_GCJ='-KPIC'
17379 lt_prog_compiler_static_GCJ='-Bstatic'
17380 lt_prog_compiler_wl_GCJ='-Wl,'
17383 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17384 lt_prog_compiler_pic_GCJ='-KPIC'
17385 lt_prog_compiler_static_GCJ='-Bstatic'
17386 lt_prog_compiler_wl_GCJ=''
17394 lt_prog_compiler_pic_GCJ='-KPIC'
17395 lt_prog_compiler_static_GCJ='-Bstatic'
17399 # QNX uses GNU C++, but need to define -shared option too, otherwise
17400 # it will coredump.
17401 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17404 osf3* | osf4* | osf5*)
17405 lt_prog_compiler_wl_GCJ='-Wl,'
17406 # All OSF/1 code is PIC.
17407 lt_prog_compiler_static_GCJ='-non_shared'
17411 lt_prog_compiler_static_GCJ='-non_shared'
17415 lt_prog_compiler_pic_GCJ='-KPIC'
17416 lt_prog_compiler_static_GCJ='-Bstatic'
17417 case $cc_basename in
17418 f77* | f90* | f95*)
17419 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17421 lt_prog_compiler_wl_GCJ='-Wl,';;
17426 lt_prog_compiler_wl_GCJ='-Qoption ld '
17427 lt_prog_compiler_pic_GCJ='-PIC'
17428 lt_prog_compiler_static_GCJ='-Bstatic'
17431 sysv4 | sysv4.2uw2* | sysv4.3*)
17432 lt_prog_compiler_wl_GCJ='-Wl,'
17433 lt_prog_compiler_pic_GCJ='-KPIC'
17434 lt_prog_compiler_static_GCJ='-Bstatic'
17438 if test -d /usr/nec ;then
17439 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17440 lt_prog_compiler_static_GCJ='-Bstatic'
17444 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17445 lt_prog_compiler_wl_GCJ='-Wl,'
17446 lt_prog_compiler_pic_GCJ='-KPIC'
17447 lt_prog_compiler_static_GCJ='-Bstatic'
17451 lt_prog_compiler_wl_GCJ='-Wl,'
17452 lt_prog_compiler_can_build_shared_GCJ=no
17456 lt_prog_compiler_pic_GCJ='-pic'
17457 lt_prog_compiler_static_GCJ='-Bstatic'
17461 lt_prog_compiler_can_build_shared_GCJ=no
17467 # For platforms which do not support PIC, -DPIC is meaningless:
17469 lt_prog_compiler_pic_GCJ=
17472 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17476 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17481 # Check to make sure the PIC flag actually works.
17483 if test -n "$lt_prog_compiler_pic_GCJ"; then
17484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17485 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17486 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17487 $as_echo_n "(cached) " >&6
17489 lt_cv_prog_compiler_pic_works_GCJ=no
17490 ac_outfile=conftest.$ac_objext
17491 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17492 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17493 # Insert the option either (1) after the last *FLAGS variable, or
17494 # (2) before a word containing "conftest.", or (3) at the end.
17495 # Note that $ac_compile itself does not contain backslashes and begins
17496 # with a dollar sign (not a hyphen), so the echo should work correctly.
17497 # The option is referenced via a variable to avoid confusing sed.
17498 lt_compile=`echo "$ac_compile" | $SED \
17499 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17500 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17501 -e 's:$: $lt_compiler_flag:'`
17502 (eval echo "\"\$as_me:17502: $lt_compile\"" >&5)
17503 (eval "$lt_compile" 2>conftest.err)
17505 cat conftest.err >&5
17506 echo "$as_me:17506: \$? = $ac_status" >&5
17507 if (exit $ac_status) && test -s "$ac_outfile"; then
17508 # The compiler can only warn and ignore the option if not recognized
17509 # So say no if there are warnings other than the usual output.
17510 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17511 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17512 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17513 lt_cv_prog_compiler_pic_works_GCJ=yes
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17520 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17522 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17523 case $lt_prog_compiler_pic_GCJ in
17525 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17528 lt_prog_compiler_pic_GCJ=
17529 lt_prog_compiler_can_build_shared_GCJ=no
17537 # Check to make sure the static flag actually works.
17539 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17541 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17542 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17543 $as_echo_n "(cached) " >&6
17545 lt_cv_prog_compiler_static_works_GCJ=no
17546 save_LDFLAGS="$LDFLAGS"
17547 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17548 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17549 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17550 # The linker can only warn and ignore the option if not recognized
17551 # So say no if there are warnings
17552 if test -s conftest.err; then
17553 # Append any errors to the config.log.
17554 cat conftest.err 1>&5
17555 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17557 if diff conftest.exp conftest.er2 >/dev/null; then
17558 lt_cv_prog_compiler_static_works_GCJ=yes
17561 lt_cv_prog_compiler_static_works_GCJ=yes
17565 LDFLAGS="$save_LDFLAGS"
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17569 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17571 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17574 lt_prog_compiler_static_GCJ=
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17581 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17582 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17583 $as_echo_n "(cached) " >&6
17585 lt_cv_prog_compiler_c_o_GCJ=no
17586 $RM -r conftest 2>/dev/null
17590 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17592 lt_compiler_flag="-o out/conftest2.$ac_objext"
17593 # Insert the option either (1) after the last *FLAGS variable, or
17594 # (2) before a word containing "conftest.", or (3) at the end.
17595 # Note that $ac_compile itself does not contain backslashes and begins
17596 # with a dollar sign (not a hyphen), so the echo should work correctly.
17597 lt_compile=`echo "$ac_compile" | $SED \
17598 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17600 -e 's:$: $lt_compiler_flag:'`
17601 (eval echo "\"\$as_me:17601: $lt_compile\"" >&5)
17602 (eval "$lt_compile" 2>out/conftest.err)
17604 cat out/conftest.err >&5
17605 echo "$as_me:17605: \$? = $ac_status" >&5
17606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17608 # The compiler can only warn and ignore the option if not recognized
17609 # So say no if there are warnings
17610 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17611 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17612 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17613 lt_cv_prog_compiler_c_o_GCJ=yes
17618 # SGI C++ compiler will create directory out/ii_files/ for
17619 # template instantiation
17620 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17621 $RM out/* && rmdir out
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17628 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17633 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17634 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17635 $as_echo_n "(cached) " >&6
17637 lt_cv_prog_compiler_c_o_GCJ=no
17638 $RM -r conftest 2>/dev/null
17642 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17644 lt_compiler_flag="-o out/conftest2.$ac_objext"
17645 # Insert the option either (1) after the last *FLAGS variable, or
17646 # (2) before a word containing "conftest.", or (3) at the end.
17647 # Note that $ac_compile itself does not contain backslashes and begins
17648 # with a dollar sign (not a hyphen), so the echo should work correctly.
17649 lt_compile=`echo "$ac_compile" | $SED \
17650 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17651 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17652 -e 's:$: $lt_compiler_flag:'`
17653 (eval echo "\"\$as_me:17653: $lt_compile\"" >&5)
17654 (eval "$lt_compile" 2>out/conftest.err)
17656 cat out/conftest.err >&5
17657 echo "$as_me:17657: \$? = $ac_status" >&5
17658 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17660 # The compiler can only warn and ignore the option if not recognized
17661 # So say no if there are warnings
17662 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17663 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17664 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17665 lt_cv_prog_compiler_c_o_GCJ=yes
17670 # SGI C++ compiler will create directory out/ii_files/ for
17671 # template instantiation
17672 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17673 $RM out/* && rmdir out
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17680 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17685 hard_links="nottested"
17686 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17687 # do not overwrite the value of need_locks provided by the user
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17689 $as_echo_n "checking if we can lock with hard links... " >&6; }
17692 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17694 ln conftest.a conftest.b 2>&5 || hard_links=no
17695 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17697 $as_echo "$hard_links" >&6; }
17698 if test "$hard_links" = no; then
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17700 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17710 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17713 allow_undefined_flag_GCJ=
17714 always_export_symbols_GCJ=no
17716 archive_expsym_cmds_GCJ=
17717 compiler_needs_object_GCJ=no
17718 enable_shared_with_static_runtimes_GCJ=no
17719 export_dynamic_flag_spec_GCJ=
17720 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17721 hardcode_automatic_GCJ=no
17722 hardcode_direct_GCJ=no
17723 hardcode_direct_absolute_GCJ=no
17724 hardcode_libdir_flag_spec_GCJ=
17725 hardcode_libdir_flag_spec_ld_GCJ=
17726 hardcode_libdir_separator_GCJ=
17727 hardcode_minus_L_GCJ=no
17728 hardcode_shlibpath_var_GCJ=unsupported
17729 inherit_rpath_GCJ=no
17730 link_all_deplibs_GCJ=unknown
17732 module_expsym_cmds_GCJ=
17733 old_archive_from_new_cmds_GCJ=
17734 old_archive_from_expsyms_cmds_GCJ=
17735 thread_safe_flag_spec_GCJ=
17736 whole_archive_flag_spec_GCJ=
17737 # include_expsyms should be a list of space-separated symbols to be *always*
17738 # included in the symbol list
17739 include_expsyms_GCJ=
17740 # exclude_expsyms can be an extended regexp of symbols to exclude
17741 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17742 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17743 # as well as any symbol that contains `d'.
17744 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17745 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17746 # platforms (ab)use it in PIC code, but their linkers get confused if
17747 # the symbol is explicitly referenced. Since portable code cannot
17748 # rely on this symbol name, it's probably fine to never include it in
17749 # preloaded symbol tables.
17750 # Exclude shared library initialization/finalization symbols.
17751 extract_expsyms_cmds=
17754 cygwin* | mingw* | pw32* | cegcc*)
17755 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17756 # When not using gcc, we currently assume that we are using
17757 # Microsoft Visual C++.
17758 if test "$GCC" != yes; then
17763 # we just hope/assume this is gcc and not c89 (= MSVC++)
17772 if test "$with_gnu_ld" = yes; then
17773 # If archive_cmds runs LD, not CC, wlarc should be empty
17776 # Set some defaults for GNU ld with shared library support. These
17777 # are reset later if shared libraries are not supported. Putting them
17778 # here allows them to be overridden if necessary.
17779 runpath_var=LD_RUN_PATH
17780 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17781 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17782 # ancient GNU ld didn't support --whole-archive et. al.
17783 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17784 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17786 whole_archive_flag_spec_GCJ=
17788 supports_anon_versioning=no
17789 case `$LD -v 2>&1` in
17790 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17791 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17792 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17793 *\ 2.11.*) ;; # other 2.11 versions
17794 *) supports_anon_versioning=yes ;;
17797 # See if GNU ld supports shared libraries.
17800 # On AIX/PPC, the GNU linker is very broken
17801 if test "$host_cpu" != ia64; then
17805 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17806 *** to be unable to reliably create shared libraries on AIX.
17807 *** Therefore, libtool is disabling shared libraries support. If you
17808 *** really care for shared libraries, you may want to modify your PATH
17809 *** so that a non-GNU linker is found, and then restart.
17818 # see comment about AmigaOS4 .so support
17819 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17820 archive_expsym_cmds_GCJ=''
17823 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)'
17824 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17825 hardcode_minus_L_GCJ=yes
17831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17832 allow_undefined_flag_GCJ=unsupported
17833 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17834 # support --undefined. This deserves some investigation. FIXME
17835 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17841 cygwin* | mingw* | pw32* | cegcc*)
17842 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17843 # as there is no search path for DLLs.
17844 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17845 allow_undefined_flag_GCJ=unsupported
17846 always_export_symbols_GCJ=no
17847 enable_shared_with_static_runtimes_GCJ=yes
17848 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17850 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17851 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17852 # If the export-symbols file already is a .def file (1st line
17853 # is EXPORTS), use it as is; otherwise, prepend...
17854 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17855 cp $export_symbols $output_objdir/$soname.def;
17857 echo EXPORTS > $output_objdir/$soname.def;
17858 cat $export_symbols >> $output_objdir/$soname.def;
17860 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17867 hardcode_direct_GCJ=no
17868 hardcode_shlibpath_var_GCJ=no
17869 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17870 export_dynamic_flag_spec_GCJ='${wl}-E'
17871 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17872 # Instead, shared libraries are loaded at an image base (0x10000000 by
17873 # default) and relocated if they conflict, which is a slow very memory
17874 # consuming and fragmenting process. To avoid this, we pick a random,
17875 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17876 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17877 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'
17878 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'
17881 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17883 if test "$host_os" = linux-dietlibc; then
17884 case $cc_basename in
17885 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17888 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17889 && test "$tmp_diet" = no
17892 tmp_sharedflag='-shared'
17893 case $cc_basename,$host_cpu in
17894 pgcc*) # Portland Group C compiler
17895 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17896 tmp_addflag=' $pic_flag'
17898 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17899 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17900 tmp_addflag=' $pic_flag -Mnomain' ;;
17901 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17902 tmp_addflag=' -i_dynamic' ;;
17903 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17904 tmp_addflag=' -i_dynamic -nofor_main' ;;
17905 ifc* | ifort*) # Intel Fortran compiler
17906 tmp_addflag=' -nofor_main' ;;
17907 lf95*) # Lahey Fortran 8.1
17908 whole_archive_flag_spec_GCJ=
17909 tmp_sharedflag='--shared' ;;
17910 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17911 tmp_sharedflag='-qmkshrobj'
17914 case `$CC -V 2>&1 | sed 5q` in
17915 *Sun\ C*) # Sun C 5.9
17916 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
17917 compiler_needs_object_GCJ=yes
17918 tmp_sharedflag='-G' ;;
17919 *Sun\ F*) # Sun Fortran 8.3
17920 tmp_sharedflag='-G' ;;
17922 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17924 if test "x$supports_anon_versioning" = xyes; then
17925 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17926 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17927 echo "local: *; };" >> $output_objdir/$libname.ver~
17928 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17931 case $cc_basename in
17933 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17934 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17935 hardcode_libdir_flag_spec_GCJ=
17936 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17937 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17938 if test "x$supports_anon_versioning" = xyes; then
17939 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17940 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17941 echo "local: *; };" >> $output_objdir/$libname.ver~
17942 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17952 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17953 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17956 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17957 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17962 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17966 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17967 *** create shared libraries on Solaris systems. Therefore, libtool
17968 *** is disabling shared libraries support. We urge you to upgrade GNU
17969 *** binutils to release 2.9.1 or newer. Another option is to modify
17970 *** your PATH or compiler configuration so that the native linker is
17971 *** used, and then restart.
17974 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17975 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17976 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17982 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17983 case `$LD -v 2>&1` in
17984 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17988 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17989 *** reliably create shared libraries on SCO systems. Therefore, libtool
17990 *** is disabling shared libraries support. We urge you to upgrade GNU
17991 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17992 *** your PATH or compiler configuration so that the native linker is
17993 *** used, and then restart.
17998 # For security reasons, it is highly recommended that you always
17999 # use absolute paths for naming shared libraries, and exclude the
18000 # DT_RUNPATH tag from executables and libraries. But doing so
18001 # requires that you compile everything twice, which is a pain.
18002 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18003 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18004 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18005 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18014 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18016 hardcode_direct_GCJ=yes
18017 hardcode_shlibpath_var_GCJ=no
18021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18022 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18023 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18030 if test "$ld_shlibs_GCJ" = no; then
18032 hardcode_libdir_flag_spec_GCJ=
18033 export_dynamic_flag_spec_GCJ=
18034 whole_archive_flag_spec_GCJ=
18037 # PORTME fill in a description of your system's linker (not GNU ld)
18040 allow_undefined_flag_GCJ=unsupported
18041 always_export_symbols_GCJ=yes
18042 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'
18043 # Note: this linker hardcodes the directories in LIBPATH if there
18044 # are no directories specified by -L.
18045 hardcode_minus_L_GCJ=yes
18046 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18047 # Neither direct hardcoding nor static linking is supported with a
18049 hardcode_direct_GCJ=unsupported
18054 if test "$host_cpu" = ia64; then
18055 # On IA64, the linker does run time linking by default, so we don't
18056 # have to do anything special.
18057 aix_use_runtimelinking=no
18058 exp_sym_flag='-Bexport'
18061 # If we're using GNU nm, then we don't want the "-C" option.
18062 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18063 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18064 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18066 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'
18068 aix_use_runtimelinking=no
18070 # Test if we are trying to use run time linking or normal
18071 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18072 # need to do runtime linking.
18073 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18074 for ld_flag in $LDFLAGS; do
18075 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18076 aix_use_runtimelinking=yes
18083 exp_sym_flag='-bexport'
18084 no_entry_flag='-bnoentry'
18087 # When large executables or shared objects are built, AIX ld can
18088 # have problems creating the table of contents. If linking a library
18089 # or program results in "error TOC overflow" add -mminimal-toc to
18090 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18091 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18093 archive_cmds_GCJ=''
18094 hardcode_direct_GCJ=yes
18095 hardcode_direct_absolute_GCJ=yes
18096 hardcode_libdir_separator_GCJ=':'
18097 link_all_deplibs_GCJ=yes
18098 file_list_spec_GCJ='${wl}-f,'
18100 if test "$GCC" = yes; then
18101 case $host_os in aix4.[012]|aix4.[012].*)
18102 # We only want to do this on AIX 4.2 and lower, the check
18103 # below for broken collect2 doesn't work under 4.3+
18104 collect2name=`${CC} -print-prog-name=collect2`
18105 if test -f "$collect2name" &&
18106 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18108 # We have reworked collect2
18111 # We have old collect2
18112 hardcode_direct_GCJ=unsupported
18113 # It fails to find uninstalled libraries when the uninstalled
18114 # path is not listed in the libpath. Setting hardcode_minus_L
18115 # to unsupported forces relinking
18116 hardcode_minus_L_GCJ=yes
18117 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18118 hardcode_libdir_separator_GCJ=
18122 shared_flag='-shared'
18123 if test "$aix_use_runtimelinking" = yes; then
18124 shared_flag="$shared_flag "'${wl}-G'
18128 if test "$host_cpu" = ia64; then
18129 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18130 # chokes on -Wl,-G. The following line is correct:
18133 if test "$aix_use_runtimelinking" = yes; then
18134 shared_flag='${wl}-G'
18136 shared_flag='${wl}-bM:SRE'
18141 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18142 # It seems that -bexpall does not export symbols beginning with
18143 # underscore (_), so it is better to generate a list of symbols to export.
18144 always_export_symbols_GCJ=yes
18145 if test "$aix_use_runtimelinking" = yes; then
18146 # Warning - without using the other runtime loading flags (-brtl),
18147 # -berok will link without error, but may produce a broken library.
18148 allow_undefined_flag_GCJ='-berok'
18149 # Determine the default libpath from the value encoded in an
18150 # empty executable.
18151 if test x$gcc_no_link = xyes; then
18152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18155 /* end confdefs.h. */
18165 if ac_fn_c_try_link "$LINENO"; then :
18167 lt_aix_libpath_sed='
18168 /Import File Strings/,/^$/ {
18174 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18175 # Check for a 64-bit object if we didn't find anything.
18176 if test -z "$aix_libpath"; then
18177 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18180 rm -f core conftest.err conftest.$ac_objext \
18181 conftest$ac_exeext conftest.$ac_ext
18182 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18184 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18185 archive_expsym_cmds_GCJ='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18187 if test "$host_cpu" = ia64; then
18188 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18189 allow_undefined_flag_GCJ="-z nodefs"
18190 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"
18192 # Determine the default libpath from the value encoded in an
18193 # empty executable.
18194 if test x$gcc_no_link = xyes; then
18195 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18198 /* end confdefs.h. */
18208 if ac_fn_c_try_link "$LINENO"; then :
18210 lt_aix_libpath_sed='
18211 /Import File Strings/,/^$/ {
18217 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18218 # Check for a 64-bit object if we didn't find anything.
18219 if test -z "$aix_libpath"; then
18220 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18223 rm -f core conftest.err conftest.$ac_objext \
18224 conftest$ac_exeext conftest.$ac_ext
18225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18227 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18228 # Warning - without using the other run time loading flags,
18229 # -berok will link without error, but may produce a broken library.
18230 no_undefined_flag_GCJ=' ${wl}-bernotok'
18231 allow_undefined_flag_GCJ=' ${wl}-berok'
18232 # Exported symbols can be pulled into shared objects from archives
18233 whole_archive_flag_spec_GCJ='$convenience'
18234 archive_cmds_need_lc_GCJ=yes
18235 # This is similar to how AIX traditionally builds its shared libraries.
18236 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'
18244 # see comment about AmigaOS4 .so support
18245 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18246 archive_expsym_cmds_GCJ=''
18249 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)'
18250 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18251 hardcode_minus_L_GCJ=yes
18257 export_dynamic_flag_spec_GCJ=-rdynamic
18260 cygwin* | mingw* | pw32* | cegcc*)
18261 # When not using gcc, we currently assume that we are using
18262 # Microsoft Visual C++.
18263 # hardcode_libdir_flag_spec is actually meaningless, as there is
18264 # no search path for DLLs.
18265 hardcode_libdir_flag_spec_GCJ=' '
18266 allow_undefined_flag_GCJ=unsupported
18267 # Tell ltmain to make .lib files, not .a files.
18269 # Tell ltmain to make .dll files, not .so files.
18271 # FIXME: Setting linknames here is a bad hack.
18272 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18273 # The linker will automatically build a .lib file if we build a DLL.
18274 old_archive_from_new_cmds_GCJ='true'
18275 # FIXME: Should let the user specify the lib program.
18276 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18277 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18278 enable_shared_with_static_runtimes_GCJ=yes
18281 darwin* | rhapsody*)
18284 archive_cmds_need_lc_GCJ=no
18285 hardcode_direct_GCJ=no
18286 hardcode_automatic_GCJ=yes
18287 hardcode_shlibpath_var_GCJ=unsupported
18288 whole_archive_flag_spec_GCJ=''
18289 link_all_deplibs_GCJ=yes
18290 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18291 case $cc_basename in
18292 ifort*) _lt_dar_can_shared=yes ;;
18293 *) _lt_dar_can_shared=$GCC ;;
18295 if test "$_lt_dar_can_shared" = "yes"; then
18296 output_verbose_link_cmd=echo
18297 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}"
18298 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18299 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}"
18300 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}"
18309 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18310 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18311 hardcode_shlibpath_var_GCJ=no
18318 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18319 # support. Future versions do this automatically, but an explicit c++rt0.o
18320 # does not break anything, and helps significantly (at the cost of a little
18323 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18324 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18325 hardcode_direct_GCJ=yes
18326 hardcode_shlibpath_var_GCJ=no
18329 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18331 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18332 hardcode_direct_GCJ=yes
18333 hardcode_minus_L_GCJ=yes
18334 hardcode_shlibpath_var_GCJ=no
18337 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18338 freebsd* | dragonfly*)
18339 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18340 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18341 hardcode_direct_GCJ=yes
18342 hardcode_shlibpath_var_GCJ=no
18346 if test "$GCC" = yes; then
18347 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'
18349 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'
18351 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18352 hardcode_libdir_separator_GCJ=:
18353 hardcode_direct_GCJ=yes
18355 # hardcode_minus_L: Not really in the search PATH,
18356 # but as the default location of the library.
18357 hardcode_minus_L_GCJ=yes
18358 export_dynamic_flag_spec_GCJ='${wl}-E'
18362 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18363 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18365 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18367 if test "$with_gnu_ld" = no; then
18368 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18369 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18370 hardcode_libdir_separator_GCJ=:
18371 hardcode_direct_GCJ=yes
18372 hardcode_direct_absolute_GCJ=yes
18373 export_dynamic_flag_spec_GCJ='${wl}-E'
18374 # hardcode_minus_L: Not really in the search PATH,
18375 # but as the default location of the library.
18376 hardcode_minus_L_GCJ=yes
18381 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18384 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18387 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18390 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18396 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18399 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18402 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18406 if test "$with_gnu_ld" = no; then
18407 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18408 hardcode_libdir_separator_GCJ=:
18412 hardcode_direct_GCJ=no
18413 hardcode_shlibpath_var_GCJ=no
18416 hardcode_direct_GCJ=yes
18417 hardcode_direct_absolute_GCJ=yes
18418 export_dynamic_flag_spec_GCJ='${wl}-E'
18420 # hardcode_minus_L: Not really in the search PATH,
18421 # but as the default location of the library.
18422 hardcode_minus_L_GCJ=yes
18428 irix5* | irix6* | nonstopux*)
18429 if test "$GCC" = yes; then
18430 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18431 # Try to use the -exported_symbol ld option, if it does not
18432 # work, assume that -exports_file does not work either and
18433 # implicitly export all symbols.
18434 save_LDFLAGS="$LDFLAGS"
18435 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18436 if test x$gcc_no_link = xyes; then
18437 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18440 /* end confdefs.h. */
18443 if ac_fn_c_try_link "$LINENO"; then :
18444 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
18447 rm -f core conftest.err conftest.$ac_objext \
18448 conftest$ac_exeext conftest.$ac_ext
18449 LDFLAGS="$save_LDFLAGS"
18451 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18452 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
18454 archive_cmds_need_lc_GCJ='no'
18455 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18456 hardcode_libdir_separator_GCJ=:
18457 inherit_rpath_GCJ=yes
18458 link_all_deplibs_GCJ=yes
18462 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18463 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18465 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18467 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18468 hardcode_direct_GCJ=yes
18469 hardcode_shlibpath_var_GCJ=no
18473 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18474 hardcode_direct_GCJ=yes
18475 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18476 hardcode_libdir_separator_GCJ=:
18477 hardcode_shlibpath_var_GCJ=no
18484 if test -f /usr/libexec/ld.so; then
18485 hardcode_direct_GCJ=yes
18486 hardcode_shlibpath_var_GCJ=no
18487 hardcode_direct_absolute_GCJ=yes
18488 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18489 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18490 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18491 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18492 export_dynamic_flag_spec_GCJ='${wl}-E'
18495 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18496 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18497 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18500 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18501 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18511 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18512 hardcode_minus_L_GCJ=yes
18513 allow_undefined_flag_GCJ=unsupported
18514 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'
18515 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18519 if test "$GCC" = yes; then
18520 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18521 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18523 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18524 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18526 archive_cmds_need_lc_GCJ='no'
18527 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18528 hardcode_libdir_separator_GCJ=:
18531 osf4* | osf5*) # as osf3* with the addition of -msym flag
18532 if test "$GCC" = yes; then
18533 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18534 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18535 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18537 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18538 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
18539 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~
18540 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
18542 # Both c and cxx compiler support -rpath directly
18543 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18545 archive_cmds_need_lc_GCJ='no'
18546 hardcode_libdir_separator_GCJ=:
18550 no_undefined_flag_GCJ=' -z defs'
18551 if test "$GCC" = yes; then
18553 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18554 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18555 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18557 case `$CC -V 2>&1` in
18560 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18561 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18562 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18566 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18567 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18568 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18572 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18573 hardcode_shlibpath_var_GCJ=no
18575 solaris2.[0-5] | solaris2.[0-5].*) ;;
18577 # The compiler driver will combine and reorder linker options,
18578 # but understands `-z linker_flag'. GCC discards it without `$wl',
18579 # but is careful enough not to reorder.
18580 # Supported since Solaris 2.6 (maybe 2.5.1?)
18581 if test "$GCC" = yes; then
18582 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18584 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18588 link_all_deplibs_GCJ=yes
18592 if test "x$host_vendor" = xsequent; then
18593 # Use $CC to link under sequent, because it throws in some extra .o
18594 # files that make .init and .fini sections work.
18595 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18597 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18599 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18600 hardcode_direct_GCJ=yes
18601 hardcode_minus_L_GCJ=yes
18602 hardcode_shlibpath_var_GCJ=no
18606 case $host_vendor in
18608 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18609 hardcode_direct_GCJ=yes # is this really true???
18612 ## LD is ld it makes a PLAMLIB
18613 ## CC just makes a GrossModule.
18614 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18615 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18616 hardcode_direct_GCJ=no
18619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18620 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18623 runpath_var='LD_RUN_PATH'
18624 hardcode_shlibpath_var_GCJ=no
18628 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18629 hardcode_shlibpath_var_GCJ=no
18630 export_dynamic_flag_spec_GCJ='-Bexport'
18634 if test -d /usr/nec; then
18635 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18636 hardcode_shlibpath_var_GCJ=no
18637 runpath_var=LD_RUN_PATH
18638 hardcode_runpath_var=yes
18643 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18644 no_undefined_flag_GCJ='${wl}-z,text'
18645 archive_cmds_need_lc_GCJ=no
18646 hardcode_shlibpath_var_GCJ=no
18647 runpath_var='LD_RUN_PATH'
18649 if test "$GCC" = yes; then
18650 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18651 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18653 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18654 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18658 sysv5* | sco3.2v5* | sco5v6*)
18659 # Note: We can NOT use -z defs as we might desire, because we do not
18660 # link with -lc, and that would cause any symbols used from libc to
18661 # always be unresolved, which means just about no library would
18662 # ever link correctly. If we're not using GNU ld we use -z text
18663 # though, which does catch some bad symbols but isn't as heavy-handed
18665 no_undefined_flag_GCJ='${wl}-z,text'
18666 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18667 archive_cmds_need_lc_GCJ=no
18668 hardcode_shlibpath_var_GCJ=no
18669 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18670 hardcode_libdir_separator_GCJ=':'
18671 link_all_deplibs_GCJ=yes
18672 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18673 runpath_var='LD_RUN_PATH'
18675 if test "$GCC" = yes; then
18676 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18677 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18679 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18680 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18685 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18686 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18687 hardcode_shlibpath_var_GCJ=no
18695 if test x$host_vendor = xsni; then
18697 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18698 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18705 $as_echo "$ld_shlibs_GCJ" >&6; }
18706 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18708 with_gnu_ld_GCJ=$with_gnu_ld
18716 # Do we need to explicitly link libc?
18718 case "x$archive_cmds_need_lc_GCJ" in
18720 # Assume -lc should be added
18721 archive_cmds_need_lc_GCJ=yes
18723 if test "$enable_shared" = yes && test "$GCC" = yes; then
18724 case $archive_cmds_GCJ in
18726 # FIXME: we may have to deal with multi-command sequences.
18729 # Test whether the compiler implicitly links with -lc since on some
18730 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18731 # to ld, don't add -lc before -lgcc.
18732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18733 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18734 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18735 $as_echo_n "(cached) " >&6
18738 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18741 (eval $ac_compile) 2>&5
18743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18744 test $ac_status = 0; } 2>conftest.err; then
18747 libobjs=conftest.$ac_objext
18749 wl=$lt_prog_compiler_wl_GCJ
18750 pic_flag=$lt_prog_compiler_pic_GCJ
18756 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18757 allow_undefined_flag_GCJ=
18758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18759 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18762 test $ac_status = 0; }
18764 lt_cv_archive_cmds_need_lc_GCJ=no
18766 lt_cv_archive_cmds_need_lc_GCJ=yes
18768 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18770 cat conftest.err 1>&5
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18776 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18777 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18848 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18849 hardcode_action_GCJ=
18850 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18851 test -n "$runpath_var_GCJ" ||
18852 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18854 # We can hardcode non-existent directories.
18855 if test "$hardcode_direct_GCJ" != no &&
18856 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18857 # have to relink, otherwise we might link with an installed library
18858 # when we should be linking with a yet-to-be-installed one
18859 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18860 test "$hardcode_minus_L_GCJ" != no; then
18861 # Linking always hardcodes the temporary library directory.
18862 hardcode_action_GCJ=relink
18864 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18865 hardcode_action_GCJ=immediate
18868 # We cannot hardcode anything, or else we can only hardcode existing
18870 hardcode_action_GCJ=unsupported
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18873 $as_echo "$hardcode_action_GCJ" >&6; }
18875 if test "$hardcode_action_GCJ" = relink ||
18876 test "$inherit_rpath_GCJ" = yes; then
18877 # Fast installation is not supported
18878 enable_fast_install=no
18879 elif test "$shlibpath_overrides_runpath" = yes ||
18880 test "$enable_shared" = no; then
18881 # Fast installation is not necessary
18882 enable_fast_install=needless
18893 compiler_GCJ=${GCJ-gcj}
18895 ac_cpp='$CPP $CPPFLAGS'
18896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18901 if test "x$CC" != xcc; then
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
18903 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
18905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
18906 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
18908 set dummy $CC; ac_cc=`$as_echo "$2" |
18909 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18910 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
18911 $as_echo_n "(cached) " >&6
18913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18914 /* end confdefs.h. */
18924 # Make sure it works both with $CC and with simple cc.
18925 # We do the test twice because some compilers refuse to overwrite an
18926 # existing .o file with -o, though they will create one.
18927 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18929 if { { case "(($ac_try" in
18930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18931 *) ac_try_echo=$ac_try;;
18933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18934 $as_echo "$ac_try_echo"; } >&5
18935 (eval "$ac_try") 2>&5
18937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18938 test $ac_status = 0; } &&
18939 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18944 $as_echo "$ac_try_echo"; } >&5
18945 (eval "$ac_try") 2>&5
18947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18948 test $ac_status = 0; };
18950 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18951 if test "x$CC" != xcc; then
18952 # Test first that cc exists at all.
18953 if { ac_try='cc -c conftest.$ac_ext >&5'
18954 { { case "(($ac_try" in
18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18959 $as_echo "$ac_try_echo"; } >&5
18960 (eval "$ac_try") 2>&5
18962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18963 test $ac_status = 0; }; }; then
18964 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18966 if { { case "(($ac_try" in
18967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968 *) ac_try_echo=$ac_try;;
18970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18971 $as_echo "$ac_try_echo"; } >&5
18972 (eval "$ac_try") 2>&5
18974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18975 test $ac_status = 0; } &&
18976 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18980 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18981 $as_echo "$ac_try_echo"; } >&5
18982 (eval "$ac_try") 2>&5
18984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18985 test $ac_status = 0; };
18990 # cc exists but doesn't like -o.
18991 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18996 eval ac_cv_prog_cc_${ac_cc}_c_o=no
18998 rm -f core conftest*
19001 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19003 $as_echo "yes" >&6; }
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19006 $as_echo "no" >&6; }
19008 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19012 # FIXME: we rely on the cache variable name because
19013 # there is no other way.
19015 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19016 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19017 if test "$am_t" != yes; then
19018 # Losing compiler, so override with the script.
19019 # FIXME: It is wrong to rewrite CC.
19020 # But if we don't then we get into trouble of one sort or another.
19021 # A longer-term fix would be to have automake use am__CC in this case,
19022 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19023 CC="$am_aux_dir/compile $CC"
19030 subdirs="$subdirs classpath libltdl"
19033 # The -no-testsuite modules omit the test subdir.
19034 if test -d $srcdir/testsuite; then
19036 TESTSUBDIR_FALSE='#'
19038 TESTSUBDIR_TRUE='#'
19043 # Should the runtime set system properties by examining the
19044 # environment variable GCJ_PROPERTIES?
19045 # Check whether --enable-getenv-properties was given.
19046 if test "${enable_getenv_properties+set}" = set; then :
19047 enableval=$enable_getenv_properties;
19051 # Whether GCJ_PROPERTIES is used depends on the target.
19052 if test -z "$enable_getenv_properties"; then
19053 enable_getenv_properties=${enable_getenv_properties_default-yes}
19055 if test "$enable_getenv_properties" = no; then
19057 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19061 # Whether we should use arguments to main()
19062 if test -z "$enable_main_args"; then
19063 enable_main_args=${enable_main_args_default-yes}
19065 if test "$enable_main_args" = no; then
19067 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19072 # Should we use hashtable-based synchronization?
19073 # Currently works only for Linux X86/ia64
19074 # Typically faster and more space-efficient
19075 # Check whether --enable-hash-synchronization was given.
19076 if test "${enable_hash_synchronization+set}" = set; then :
19077 enableval=$enable_hash_synchronization;
19081 if test -z "$enable_hash_synchronization"; then
19082 enable_hash_synchronization=$enable_hash_synchronization_default
19090 # Check whether --with-ecj-jar was given.
19091 if test "${with_ecj_jar+set}" = set; then :
19092 withval=$with_ecj_jar; ECJ_JAR=$withval
19094 if test -f $multi_basedir/ecj.jar; then
19095 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19096 ECJ_JAR='$(jardir)/ecj.jar'
19097 install_ecj_jar=yes
19103 if test "$ECJ_JAR" != ""; then
19105 BUILD_ECJ1_FALSE='#'
19107 BUILD_ECJ1_TRUE='#'
19111 if test $install_ecj_jar = yes; then
19112 INSTALL_ECJ_JAR_TRUE=
19113 INSTALL_ECJ_JAR_FALSE='#'
19115 INSTALL_ECJ_JAR_TRUE='#'
19116 INSTALL_ECJ_JAR_FALSE=
19121 # Check whether --with-java-home was given.
19122 if test "${with_java_home+set}" = set; then :
19123 withval=$with_java_home; JAVA_HOME="${withval}"
19128 if test ! -z "$JAVA_HOME"; then
19129 JAVA_HOME_SET_TRUE=
19130 JAVA_HOME_SET_FALSE='#'
19132 JAVA_HOME_SET_TRUE='#'
19133 JAVA_HOME_SET_FALSE=
19138 suppress_libgcj_bc=no
19139 # Check whether --enable-libgcj-bc was given.
19140 if test "${enable_libgcj_bc+set}" = set; then :
19141 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19142 suppress_libgcj_bc=yes
19146 if test "$suppress_libgcj_bc" = "yes"; then
19147 SUPPRESS_LIBGCJ_BC_TRUE=
19148 SUPPRESS_LIBGCJ_BC_FALSE='#'
19150 SUPPRESS_LIBGCJ_BC_TRUE='#'
19151 SUPPRESS_LIBGCJ_BC_FALSE=
19155 build_libgcj_reduced_reflection=no
19156 # Check whether --enable-reduced-reflection was given.
19157 if test "${enable_reduced_reflection+set}" = set; then :
19158 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19159 build_libgcj_reduced_reflection=yes
19163 if test "$build_libgcj_reduced_reflection" = "yes"; then
19164 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19165 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19167 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19168 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19172 # What is the native OS API for MinGW?
19174 # Check whether --with-win32-nlsapi was given.
19175 if test "${with_win32_nlsapi+set}" = set; then :
19176 withval=$with_win32_nlsapi; case "${withval}" in
19177 ansi) with_win32_nlsapi=ansi ;;
19178 unicows) with_win32_nlsapi=unicows ;;
19179 unicode) with_win32_nlsapi=unicode ;;
19180 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19183 with_win32_nlsapi=ansi
19187 case "${with_win32_nlsapi}" in
19190 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19195 # configure.host sets slow_pthread_self if the synchronization code should
19196 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19197 if test "${slow_pthread_self}" = "yes"; then
19199 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19203 # Check for gc debugging. This option is handled both here and in the GC.
19204 # Check whether --enable-gc-debug was given.
19205 if test "${enable_gc_debug+set}" = set; then :
19206 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19208 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19214 # See if the user has the interpreter included.
19215 # Check whether --enable-interpreter was given.
19216 if test "${enable_interpreter+set}" = set; then :
19217 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19218 # This can also be set in configure.host.
19219 libgcj_interpreter=yes
19220 elif test "$enable_interpreter" = no; then
19221 libgcj_interpreter=no
19226 if test "$libgcj_interpreter" = yes; then
19228 $as_echo "#define INTERPRETER 1" >>confdefs.h
19231 INTERPRETER="$libgcj_interpreter"
19233 if test "$libgcj_interpreter" = yes; then
19235 INTERPRETER_FALSE='#'
19237 INTERPRETER_TRUE='#'
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19243 $as_echo_n "checking for exception model to use... " >&6; }
19245 ac_cpp='$CXXCPP $CPPFLAGS'
19246 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19247 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19248 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19250 # Check whether --enable-sjlj-exceptions was given.
19251 if test "${enable_sjlj_exceptions+set}" = set; then :
19252 enableval=$enable_sjlj_exceptions; :
19254 cat > conftest.$ac_ext << EOF
19255 #line 19255 "configure"
19256 struct S { ~S(); };
19264 old_CXXFLAGS="$CXXFLAGS"
19266 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19267 (eval $ac_compile) 2>&5
19269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19270 test $ac_status = 0; }; then
19271 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19272 enable_sjlj_exceptions=yes
19273 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19274 enable_sjlj_exceptions=no
19275 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19277 enable_sjlj_exceptions=no
19280 CXXFLAGS="$old_CXXFLAGS"
19284 if test x$enable_sjlj_exceptions = xyes; then
19286 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19288 ac_exception_model_name=sjlj
19289 elif test x$enable_sjlj_exceptions = xno; then
19290 ac_exception_model_name="call frame"
19292 as_fn_error "unable to detect exception model" "$LINENO" 5
19295 ac_cpp='$CPP $CPPFLAGS'
19296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19301 $as_echo "$ac_exception_model_name" >&6; }
19303 # If we are non using SJLJ exceptions, and this host does not have support
19304 # for unwinding from a signal handler, enable checked dereferences and divides.
19305 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19306 CHECKREFSPEC=-fcheck-references
19307 DIVIDESPEC=-fuse-divide-subroutine
19311 # See if the user wants to disable java.net. This is the mildly
19312 # ugly way that we admit that target-side configuration sucks.
19313 # Check whether --enable-java-net was given.
19314 if test "${enable_java_net+set}" = set; then :
19315 enableval=$enable_java_net;
19319 # Whether java.net is built by default can depend on the target.
19320 if test -z "$enable_java_net"; then
19321 enable_java_net=${enable_java_net_default-yes}
19323 if test "$enable_java_net" = no; then
19325 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19329 # See if the user wants to configure without libffi. Some
19330 # architectures don't support it, and default values are set in
19333 # Check whether --with-libffi was given.
19334 if test "${with_libffi+set}" = set; then :
19335 withval=$with_libffi; :
19337 with_libffi=${with_libffi_default-yes}
19343 if test "$with_libffi" != no; then
19345 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19347 LIBFFI=../libffi/libffi_convenience.la
19348 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19353 # See if the user wants to disable JVMPI support.
19354 # Check whether --enable-jvmpi was given.
19355 if test "${enable_jvmpi+set}" = set; then :
19356 enableval=$enable_jvmpi;
19360 if test "$enable_jvmpi" != no; then
19362 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19366 # If the target is an eCos system, use the appropriate eCos
19368 # FIXME: this should not be a local option but a global target
19369 # system; at present there is no eCos target.
19370 TARGET_ECOS=${PROCESS-"no"}
19372 # Check whether --with-ecos was given.
19373 if test "${with_ecos+set}" = set; then :
19374 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19379 case "$TARGET_ECOS" in
19380 no) case "$host" in
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19387 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19388 LD_PROG=`$CC --print-prog-name=ld`
19389 LD_VERSION=`$LD_PROG --version`
19390 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19391 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19392 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19395 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19399 if test "x$LD_OK" != x; then
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19401 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19404 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19406 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19408 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19423 $as_echo "#define ECOS 1" >>confdefs.h
19429 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h. */
19434 #include <stdint.h>
19437 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19438 $EGREP "uint32_t" >/dev/null 2>&1; then :
19440 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19446 /* end confdefs.h. */
19447 #include <inttypes.h>
19450 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19451 $EGREP "uint32_t" >/dev/null 2>&1; then :
19453 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19459 /* end confdefs.h. */
19460 #include <sys/types.h>
19463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19464 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19466 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19472 /* end confdefs.h. */
19473 #include <sys/config.h>
19476 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19477 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19479 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19485 if test "$PLATFORM" = Win32; then
19486 USING_WIN32_PLATFORM_TRUE=
19487 USING_WIN32_PLATFORM_FALSE='#'
19489 USING_WIN32_PLATFORM_TRUE='#'
19490 USING_WIN32_PLATFORM_FALSE=
19493 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19494 USING_POSIX_PLATFORM_TRUE=
19495 USING_POSIX_PLATFORM_FALSE='#'
19497 USING_POSIX_PLATFORM_TRUE='#'
19498 USING_POSIX_PLATFORM_FALSE=
19503 *-darwin*) DARWIN_CRT=true ;;
19504 *) DARWIN_CRT=false ;;
19506 if $DARWIN_CRT; then
19507 USING_DARWIN_CRT_TRUE=
19508 USING_DARWIN_CRT_FALSE='#'
19510 USING_DARWIN_CRT_TRUE='#'
19511 USING_DARWIN_CRT_FALSE=
19515 # This may not be defined in a non-ANS conformant embedded system.
19516 # FIXME: Should these case a runtime exception in that case?
19517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19518 /* end confdefs.h. */
19522 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19523 $EGREP "localtime" >/dev/null 2>&1; then :
19525 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19531 # Create the subdirectory for natFile.cc, or the attempt
19532 # to create the link will fail.
19533 test -d java || mkdir java
19534 test -d java/io || mkdir java/io
19535 test -d gnu || mkdir gnu
19536 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19539 # Likewise for natConcreteProcess.cc.
19540 test -d java/lang || mkdir java/lang
19541 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19544 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19545 test -d java/net || mkdir java/net
19546 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19548 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19551 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19552 test -d gnu/java || mkdir gnu/java
19553 test -d gnu/java/net || mkdir gnu/java/net
19554 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19556 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19559 # Likewise for natVMPipe.cc and natVMSelector.cc.
19560 test -d gnu/java/nio || mkdir gnu/java/nio
19561 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19563 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19566 # Likewise for natFileChannelImpl.cc
19567 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19568 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19571 # Likewise for natVMSecureRandom.cc
19572 test -d gnu/java/security || mkdir gnu/java/security
19573 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19574 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19575 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19580 SYSTEMSPEC="-lgdi32 -lws2_32"
19581 if test "${with_win32_nlsapi}" = "unicows"; then
19582 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19592 # Check whether --with-system-zlib was given.
19593 if test "${with_system_zlib+set}" = set; then :
19594 withval=$with_system_zlib;
19602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19603 $as_echo_n "checking for X... " >&6; }
19606 # Check whether --with-x was given.
19607 if test "${with_x+set}" = set; then :
19611 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19612 if test "x$with_x" = xno; then
19613 # The user explicitly disabled X.
19616 case $x_includes,$x_libraries in #(
19617 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19618 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19619 $as_echo_n "(cached) " >&6
19621 # One or both of the vars are not set, and there is no cached value.
19622 ac_x_includes=no ac_x_libraries=no
19623 rm -f -r conftest.dir
19624 if mkdir conftest.dir; then
19626 cat >Imakefile <<'_ACEOF'
19628 @echo incroot='${INCROOT}'
19630 @echo usrlibdir='${USRLIBDIR}'
19632 @echo libdir='${LIBDIR}'
19634 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19635 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19636 for ac_var in incroot usrlibdir libdir; do
19637 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19639 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19640 for ac_extension in a so sl dylib la dll; do
19641 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19642 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19643 ac_im_usrlibdir=$ac_im_libdir; break
19646 # Screen out bogus values from the imake configuration. They are
19647 # bogus both because they are the default anyway, and because
19648 # using them would break gcc on systems where it needs fixed includes.
19649 case $ac_im_incroot in
19650 /usr/include) ac_x_includes= ;;
19651 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19653 case $ac_im_usrlibdir in
19654 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19655 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19659 rm -f -r conftest.dir
19662 # Standard set of common directories for X headers.
19663 # Check X11 before X11Rn because it is often a symlink to the current release.
19677 /usr/local/X11/include
19678 /usr/local/X11R7/include
19679 /usr/local/X11R6/include
19680 /usr/local/X11R5/include
19681 /usr/local/X11R4/include
19683 /usr/local/include/X11
19684 /usr/local/include/X11R7
19685 /usr/local/include/X11R6
19686 /usr/local/include/X11R5
19687 /usr/local/include/X11R4
19691 /usr/XFree86/include/X11
19695 /usr/unsupported/include
19696 /usr/athena/include
19697 /usr/local/x11r5/include
19698 /usr/lpp/Xamples/include
19700 /usr/openwin/include
19701 /usr/openwin/share/include'
19703 if test "$ac_x_includes" = no; then
19704 # Guess where to find include files, by looking for Xlib.h.
19705 # First, try using that file with no special directory specified.
19706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19707 /* end confdefs.h. */
19708 #include <X11/Xlib.h>
19710 if ac_fn_c_try_cpp "$LINENO"; then :
19711 # We can compile using X headers with no special include directory.
19714 for ac_dir in $ac_x_header_dirs; do
19715 if test -r "$ac_dir/X11/Xlib.h"; then
19716 ac_x_includes=$ac_dir
19721 rm -f conftest.err conftest.$ac_ext
19722 fi # $ac_x_includes = no
19724 if test "$ac_x_libraries" = no; then
19725 # Check for the libraries.
19726 # See if we find them without any special options.
19727 # Don't add to $LIBS permanently.
19730 if test x$gcc_no_link = xyes; then
19731 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19734 /* end confdefs.h. */
19735 #include <X11/Xlib.h>
19744 if ac_fn_c_try_link "$LINENO"; then :
19746 # We can link X programs with no special library path.
19750 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19752 # Don't even attempt the hair of trying to link an X program!
19753 for ac_extension in a so sl dylib la dll; do
19754 if test -r "$ac_dir/libX11.$ac_extension"; then
19755 ac_x_libraries=$ac_dir
19761 rm -f core conftest.err conftest.$ac_objext \
19762 conftest$ac_exeext conftest.$ac_ext
19763 fi # $ac_x_libraries = no
19765 case $ac_x_includes,$ac_x_libraries in #(
19766 no,* | *,no | *\'*)
19767 # Didn't find X, or a directory has "'" in its name.
19768 ac_cv_have_x="have_x=no";; #(
19770 # Record where we found X for the cache.
19771 ac_cv_have_x="have_x=yes\
19772 ac_x_includes='$ac_x_includes'\
19773 ac_x_libraries='$ac_x_libraries'"
19779 eval "$ac_cv_have_x"
19782 if test "$have_x" != yes; then
19783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19784 $as_echo "$have_x" >&6; }
19787 # If each of the values was on the command line, it overrides each guess.
19788 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19789 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19790 # Update the cache value to reflect the command line values.
19791 ac_cv_have_x="have_x=yes\
19792 ac_x_includes='$x_includes'\
19793 ac_x_libraries='$x_libraries'"
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19795 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19798 if test "$no_x" = yes; then
19799 # Not all programs may use this symbol, but it does not hurt to define it.
19801 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19803 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19805 if test -n "$x_includes"; then
19806 X_CFLAGS="$X_CFLAGS -I$x_includes"
19809 # It would also be nice to do this for all -L options, not just this one.
19810 if test -n "$x_libraries"; then
19811 X_LIBS="$X_LIBS -L$x_libraries"
19812 # For Solaris; some versions of Sun CC require a space after -R and
19813 # others require no space. Words are not sufficient . . . .
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19815 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19816 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19817 ac_xsave_c_werror_flag=$ac_c_werror_flag
19818 ac_c_werror_flag=yes
19819 if test x$gcc_no_link = xyes; then
19820 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19823 /* end confdefs.h. */
19833 if ac_fn_c_try_link "$LINENO"; then :
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19835 $as_echo "no" >&6; }
19836 X_LIBS="$X_LIBS -R$x_libraries"
19838 LIBS="$ac_xsave_LIBS -R $x_libraries"
19839 if test x$gcc_no_link = xyes; then
19840 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19843 /* end confdefs.h. */
19853 if ac_fn_c_try_link "$LINENO"; then :
19854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19855 $as_echo "yes" >&6; }
19856 X_LIBS="$X_LIBS -R $x_libraries"
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19859 $as_echo "neither works" >&6; }
19861 rm -f core conftest.err conftest.$ac_objext \
19862 conftest$ac_exeext conftest.$ac_ext
19864 rm -f core conftest.err conftest.$ac_objext \
19865 conftest$ac_exeext conftest.$ac_ext
19866 ac_c_werror_flag=$ac_xsave_c_werror_flag
19867 LIBS=$ac_xsave_LIBS
19870 # Check for system-dependent libraries X programs must link with.
19871 # Do this before checking for the system-independent R6 libraries
19872 # (-lICE), since we may need -lsocket or whatever for X linking.
19874 if test "$ISC" = yes; then
19875 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19877 # Martyn Johnson says this is needed for Ultrix, if the X
19878 # libraries were built with DECnet support. And Karl Berry says
19879 # the Alpha needs dnet_stub (dnet does not exist).
19880 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19881 if test x$gcc_no_link = xyes; then
19882 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19885 /* end confdefs.h. */
19887 /* Override any GCC internal prototype to avoid an error.
19888 Use char because int might match the return type of a GCC
19889 builtin and then its argument prototype would still apply. */
19893 char XOpenDisplay ();
19897 return XOpenDisplay ();
19902 if ac_fn_c_try_link "$LINENO"; then :
19905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19906 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19907 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19908 $as_echo_n "(cached) " >&6
19910 ac_check_lib_save_LIBS=$LIBS
19911 LIBS="-ldnet $LIBS"
19912 if test x$gcc_no_link = xyes; then
19913 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19916 /* end confdefs.h. */
19918 /* Override any GCC internal prototype to avoid an error.
19919 Use char because int might match the return type of a GCC
19920 builtin and then its argument prototype would still apply. */
19928 return dnet_ntoa ();
19933 if ac_fn_c_try_link "$LINENO"; then :
19934 ac_cv_lib_dnet_dnet_ntoa=yes
19936 ac_cv_lib_dnet_dnet_ntoa=no
19938 rm -f core conftest.err conftest.$ac_objext \
19939 conftest$ac_exeext conftest.$ac_ext
19940 LIBS=$ac_check_lib_save_LIBS
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19943 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19944 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19945 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19948 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19950 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19951 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19952 $as_echo_n "(cached) " >&6
19954 ac_check_lib_save_LIBS=$LIBS
19955 LIBS="-ldnet_stub $LIBS"
19956 if test x$gcc_no_link = xyes; then
19957 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19960 /* end confdefs.h. */
19962 /* Override any GCC internal prototype to avoid an error.
19963 Use char because int might match the return type of a GCC
19964 builtin and then its argument prototype would still apply. */
19972 return dnet_ntoa ();
19977 if ac_fn_c_try_link "$LINENO"; then :
19978 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19980 ac_cv_lib_dnet_stub_dnet_ntoa=no
19982 rm -f core conftest.err conftest.$ac_objext \
19983 conftest$ac_exeext conftest.$ac_ext
19984 LIBS=$ac_check_lib_save_LIBS
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19987 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19988 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19989 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19994 rm -f core conftest.err conftest.$ac_objext \
19995 conftest$ac_exeext conftest.$ac_ext
19996 LIBS="$ac_xsave_LIBS"
19998 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19999 # to get the SysV transport functions.
20000 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20002 # The nsl library prevents programs from opening the X display
20003 # on Irix 5.2, according to T.E. Dickey.
20004 # The functions gethostbyname, getservbyname, and inet_addr are
20005 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20006 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20007 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20011 if test $ac_cv_func_gethostbyname = no; then
20012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20013 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20014 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20015 $as_echo_n "(cached) " >&6
20017 ac_check_lib_save_LIBS=$LIBS
20019 if test x$gcc_no_link = xyes; then
20020 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20023 /* end confdefs.h. */
20025 /* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply. */
20031 char gethostbyname ();
20035 return gethostbyname ();
20040 if ac_fn_c_try_link "$LINENO"; then :
20041 ac_cv_lib_nsl_gethostbyname=yes
20043 ac_cv_lib_nsl_gethostbyname=no
20045 rm -f core conftest.err conftest.$ac_objext \
20046 conftest$ac_exeext conftest.$ac_ext
20047 LIBS=$ac_check_lib_save_LIBS
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20050 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20051 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20052 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20055 if test $ac_cv_lib_nsl_gethostbyname = no; then
20056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20057 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20058 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20059 $as_echo_n "(cached) " >&6
20061 ac_check_lib_save_LIBS=$LIBS
20063 if test x$gcc_no_link = xyes; then
20064 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20067 /* end confdefs.h. */
20069 /* Override any GCC internal prototype to avoid an error.
20070 Use char because int might match the return type of a GCC
20071 builtin and then its argument prototype would still apply. */
20075 char gethostbyname ();
20079 return gethostbyname ();
20084 if ac_fn_c_try_link "$LINENO"; then :
20085 ac_cv_lib_bsd_gethostbyname=yes
20087 ac_cv_lib_bsd_gethostbyname=no
20089 rm -f core conftest.err conftest.$ac_objext \
20090 conftest$ac_exeext conftest.$ac_ext
20091 LIBS=$ac_check_lib_save_LIBS
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20094 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20095 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20096 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20102 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20103 # socket/setsockopt and other routines are undefined under SCO ODT
20104 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20105 # on later versions), says Simon Leinen: it contains gethostby*
20106 # variants that don't use the name server (or something). -lsocket
20107 # must be given before -lnsl if both are needed. We assume that
20108 # if connect needs -lnsl, so does gethostbyname.
20109 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20110 if test "x$ac_cv_func_connect" = x""yes; then :
20114 if test $ac_cv_func_connect = no; then
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20116 $as_echo_n "checking for connect in -lsocket... " >&6; }
20117 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20118 $as_echo_n "(cached) " >&6
20120 ac_check_lib_save_LIBS=$LIBS
20121 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20122 if test x$gcc_no_link = xyes; then
20123 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20126 /* end confdefs.h. */
20128 /* Override any GCC internal prototype to avoid an error.
20129 Use char because int might match the return type of a GCC
20130 builtin and then its argument prototype would still apply. */
20143 if ac_fn_c_try_link "$LINENO"; then :
20144 ac_cv_lib_socket_connect=yes
20146 ac_cv_lib_socket_connect=no
20148 rm -f core conftest.err conftest.$ac_objext \
20149 conftest$ac_exeext conftest.$ac_ext
20150 LIBS=$ac_check_lib_save_LIBS
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20153 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20154 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20155 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20160 # Guillermo Gomez says -lposix is necessary on A/UX.
20161 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20162 if test "x$ac_cv_func_remove" = x""yes; then :
20166 if test $ac_cv_func_remove = no; then
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20168 $as_echo_n "checking for remove in -lposix... " >&6; }
20169 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20170 $as_echo_n "(cached) " >&6
20172 ac_check_lib_save_LIBS=$LIBS
20173 LIBS="-lposix $LIBS"
20174 if test x$gcc_no_link = xyes; then
20175 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20178 /* end confdefs.h. */
20180 /* Override any GCC internal prototype to avoid an error.
20181 Use char because int might match the return type of a GCC
20182 builtin and then its argument prototype would still apply. */
20195 if ac_fn_c_try_link "$LINENO"; then :
20196 ac_cv_lib_posix_remove=yes
20198 ac_cv_lib_posix_remove=no
20200 rm -f core conftest.err conftest.$ac_objext \
20201 conftest$ac_exeext conftest.$ac_ext
20202 LIBS=$ac_check_lib_save_LIBS
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20205 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20206 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20207 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20212 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20213 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20214 if test "x$ac_cv_func_shmat" = x""yes; then :
20218 if test $ac_cv_func_shmat = no; then
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20220 $as_echo_n "checking for shmat in -lipc... " >&6; }
20221 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20222 $as_echo_n "(cached) " >&6
20224 ac_check_lib_save_LIBS=$LIBS
20226 if test x$gcc_no_link = xyes; then
20227 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20230 /* end confdefs.h. */
20232 /* Override any GCC internal prototype to avoid an error.
20233 Use char because int might match the return type of a GCC
20234 builtin and then its argument prototype would still apply. */
20247 if ac_fn_c_try_link "$LINENO"; then :
20248 ac_cv_lib_ipc_shmat=yes
20250 ac_cv_lib_ipc_shmat=no
20252 rm -f core conftest.err conftest.$ac_objext \
20253 conftest$ac_exeext conftest.$ac_ext
20254 LIBS=$ac_check_lib_save_LIBS
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20257 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20258 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20259 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20265 # Check for libraries that X11R6 Xt/Xaw programs need.
20266 ac_save_LDFLAGS=$LDFLAGS
20267 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20268 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20269 # check for ICE first), but we must link in the order -lSM -lICE or
20270 # we get undefined symbols. So assume we have SM if we have ICE.
20271 # These have to be linked with before -lX11, unlike the other
20272 # libraries we check for below, so use a different variable.
20273 # John Interrante, Karl Berry
20274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20275 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20276 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20277 $as_echo_n "(cached) " >&6
20279 ac_check_lib_save_LIBS=$LIBS
20280 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20281 if test x$gcc_no_link = xyes; then
20282 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20285 /* end confdefs.h. */
20287 /* Override any GCC internal prototype to avoid an error.
20288 Use char because int might match the return type of a GCC
20289 builtin and then its argument prototype would still apply. */
20293 char IceConnectionNumber ();
20297 return IceConnectionNumber ();
20302 if ac_fn_c_try_link "$LINENO"; then :
20303 ac_cv_lib_ICE_IceConnectionNumber=yes
20305 ac_cv_lib_ICE_IceConnectionNumber=no
20307 rm -f core conftest.err conftest.$ac_objext \
20308 conftest$ac_exeext conftest.$ac_ext
20309 LIBS=$ac_check_lib_save_LIBS
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20312 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20313 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20314 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20317 LDFLAGS=$ac_save_LDFLAGS
20322 # FIXME: this should be _libs on some hosts.
20325 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20328 # extra LD Flags which are required for targets
20331 # For now we have to disable it on darwin[8-9] because it slows down
20332 # the linking phase. A possible bug in ld?
20333 # on Darwin -single_module speeds up loading of the dynamic libraries.
20334 extra_ldflags_libjava=-Wl,-single_module
20337 extra_gij_ldflags=-Wl,-allow_stack_execute
20340 # Some of the ARM unwinder code is actually in libstdc++. We
20341 # could in principle replicate it in libgcj, but it's better to
20342 # have a dependency on libstdc++.
20343 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20344 LIBSTDCXXSPEC=-lstdc++
20345 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20348 extra_ldflags_libjava=-liconv
20358 # Allow the GC to be disabled. Can be useful when debugging.
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20360 $as_echo_n "checking for garbage collector to use... " >&6; }
20361 # Check whether --enable-java-gc was given.
20362 if test "${enable_java_gc+set}" = set; then :
20363 enableval=$enable_java_gc; GC=$enableval
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20377 $as_echo "boehm" >&6; }
20378 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20379 JC1GCSPEC='-fuse-boehm-gc'
20380 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20381 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20384 # The POSIX thread support needs to know this.
20386 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20391 $as_echo "none" >&6; }
20395 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20404 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20406 if test "$GC" = boehm; then
20407 USING_BOEHMGC_TRUE=
20408 USING_BOEHMGC_FALSE='#'
20410 USING_BOEHMGC_TRUE='#'
20411 USING_BOEHMGC_FALSE=
20414 if test "$GC" = no; then
20416 USING_NOGC_FALSE='#'
20418 USING_NOGC_TRUE='#'
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20425 $as_echo_n "checking for thread model used by GCC... " >&6; }
20426 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20428 $as_echo "$THREADS" >&6; }
20431 no | none | single)
20434 aix | posix | posix95 | pthreads)
20439 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20446 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20447 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20450 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20461 THREADSTARTFILESPEC=
20466 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20468 *-*-freebsd[1234]*)
20469 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20470 # merely adds pthread_* functions) but it does have a -pthread switch
20471 # which is required at link-time to select -lc_r *instead* of -lc.
20472 THREADLDFLAGS=-pthread
20473 # Don't set THREADSPEC here as might be expected since -pthread is
20474 # not processed when found within a spec file, it must come from
20475 # the command line. For now, the user must provide the -pthread
20476 # switch to link code compiled with gcj. In future, consider adding
20477 # support for weak references to pthread_* functions ala gthr.h API.
20478 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20481 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20482 # systems which support threads and -lpthread.
20483 THREADLDFLAGS=-pthread
20484 THREADSPEC=-lpthread
20486 alpha*-dec-osf* | hppa*-hp-hpux*)
20487 THREADCXXFLAGS=-pthread
20488 # boehm-gc needs some functions from librt, so link that too.
20489 THREADLIBS='-lpthread -lrt'
20490 THREADSPEC='-lpthread -lrt'
20493 THREADLIBS=-lpthread
20494 THREADSPEC=-lpthread
20497 THREADH=posix-threads.h
20498 # MIT pthreads doesn't seem to have the mutexattr functions.
20499 # But for now we don't check for it. We just assume you aren't
20500 # using MIT pthreads.
20502 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20505 # If we're using the Boehm GC, then we happen to know that it
20506 # defines _REENTRANT, so we don't bother. Eww.
20507 if test "$GC" != boehm; then
20509 $as_echo "#define _REENTRANT 1" >>confdefs.h
20513 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20518 THREADH=win32-threads.h
20519 THREADCXXFLAGS=-mthreads
20520 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20521 # But we do not want the executables created to be dependent on
20522 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20523 # exception handling contexts. The following kludge achieves this effect
20524 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20525 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20526 # A workaround is to explicitly use -mthreads while linking Java programs.
20527 # See PR libgcj/28263.
20529 # FIXME: In Java we are able to detect thread death at the end of
20530 # Thread.run() so we should be able to clean up the exception handling
20531 # contexts ourselves.
20532 THREADSTARTFILESPEC='crtmt%O%s'
20536 THREADH=no-threads.h
20539 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20548 if test "$THREADS" = posix; then
20549 USING_POSIX_THREADS_TRUE=
20550 USING_POSIX_THREADS_FALSE='#'
20552 USING_POSIX_THREADS_TRUE='#'
20553 USING_POSIX_THREADS_FALSE=
20556 if test "$THREADS" = win32; then
20557 USING_WIN32_THREADS_TRUE=
20558 USING_WIN32_THREADS_FALSE='#'
20560 USING_WIN32_THREADS_TRUE='#'
20561 USING_WIN32_THREADS_FALSE=
20564 if test "$THREADS" = none; then
20565 USING_NO_THREADS_TRUE=
20566 USING_NO_THREADS_FALSE='#'
20568 USING_NO_THREADS_TRUE='#'
20569 USING_NO_THREADS_FALSE=
20572 if test "$enable_shared" != yes; then
20575 if test "$use_libgcj_bc" = yes; then
20576 USE_LIBGCJ_BC_TRUE=
20577 USE_LIBGCJ_BC_FALSE='#'
20579 USE_LIBGCJ_BC_TRUE='#'
20580 USE_LIBGCJ_BC_FALSE=
20584 if test -d sysdep; then true; else mkdir sysdep; fi
20585 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20587 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20589 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20592 LIBGCJ_SPEC_LGCJ=-lgcj
20593 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20594 if test x"$libgcj_spec_lgcj_override" != x ; then
20595 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20597 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20598 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20600 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20601 if test "$use_libgcj_bc" = yes; then
20602 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20603 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20609 # Hash synchronization is only useful with posix threads right now.
20610 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20611 HASH_SYNC_SPEC=-fhash-synchronization
20613 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20618 if test "$GCC" = yes; then
20620 USING_GCC_FALSE='#'
20627 # We're in the tree with gcc, and need to include some of its headers.
20628 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20630 if test "x${with_newlib}" = "xyes"; then
20631 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20632 # may not work correctly, because the compiler may not be able to
20633 # link executables.
20635 # We assume newlib. This lets us hard-code the functions we know
20638 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20641 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20644 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20647 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20650 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20653 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20655 # This is only for POSIX threads.
20657 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20660 # Assume we do not have getuid and friends.
20662 $as_echo "#define NO_GETUID 1" >>confdefs.h
20666 for ac_func in strerror_r select fstat open fsync sleep opendir \
20667 localtime_r getpwuid_r getcwd \
20668 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20669 nl_langinfo setlocale \
20670 inet_pton uname inet_ntoa \
20671 getrlimit sigaction ftruncate mmap \
20674 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20675 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20676 eval as_val=\$$as_ac_var
20677 if test "x$as_val" = x""yes; then :
20678 cat >>confdefs.h <<_ACEOF
20679 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20685 for ac_func in inet_aton inet_addr
20687 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20688 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20689 eval as_val=\$$as_ac_var
20690 if test "x$as_val" = x""yes; then :
20691 cat >>confdefs.h <<_ACEOF
20692 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20698 for ac_header in unistd.h dlfcn.h sys/resource.h
20700 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20701 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20702 eval as_val=\$$as_ac_Header
20703 if test "x$as_val" = x""yes; then :
20704 cat >>confdefs.h <<_ACEOF
20705 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20712 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20714 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20715 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20716 $as_echo_n "(cached) " >&6
20718 ac_check_lib_save_LIBS=$LIBS
20720 if test x$gcc_no_link = xyes; then
20721 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20724 /* end confdefs.h. */
20726 /* Override any GCC internal prototype to avoid an error.
20727 Use char because int might match the return type of a GCC
20728 builtin and then its argument prototype would still apply. */
20741 if ac_fn_c_try_link "$LINENO"; then :
20742 ac_cv_lib_dl_dladdr=yes
20744 ac_cv_lib_dl_dladdr=no
20746 rm -f core conftest.err conftest.$ac_objext \
20747 conftest$ac_exeext conftest.$ac_ext
20748 LIBS=$ac_check_lib_save_LIBS
20750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20751 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20752 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20755 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20760 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20761 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20762 $as_echo_n "(cached) " >&6
20764 ac_check_lib_save_LIBS=$LIBS
20766 if test x$gcc_no_link = xyes; then
20767 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20770 /* end confdefs.h. */
20772 /* Override any GCC internal prototype to avoid an error.
20773 Use char because int might match the return type of a GCC
20774 builtin and then its argument prototype would still apply. */
20787 if ac_fn_c_try_link "$LINENO"; then :
20788 ac_cv_lib_dld_dladdr=yes
20790 ac_cv_lib_dld_dladdr=no
20792 rm -f core conftest.err conftest.$ac_objext \
20793 conftest$ac_exeext conftest.$ac_ext
20794 LIBS=$ac_check_lib_save_LIBS
20796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
20797 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
20798 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
20801 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20808 if test x"$cross_compiling" = x"no"; then
20809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
20810 $as_echo_n "checking for /proc/self/exe... " >&6; }
20811 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
20812 $as_echo_n "(cached) " >&6
20814 test "$cross_compiling" = yes &&
20815 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20816 if test -r "/proc/self/exe"; then
20817 ac_cv_file__proc_self_exe=yes
20819 ac_cv_file__proc_self_exe=no
20822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
20823 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
20824 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
20826 cat >>confdefs.h <<_ACEOF
20827 #define HAVE__PROC_SELF_EXE 1
20831 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
20836 $as_echo_n "checking for /proc/self/maps... " >&6; }
20837 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
20838 $as_echo_n "(cached) " >&6
20840 test "$cross_compiling" = yes &&
20841 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20842 if test -r "/proc/self/maps"; then
20843 ac_cv_file__proc_self_maps=yes
20845 ac_cv_file__proc_self_maps=no
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
20849 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
20850 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
20852 cat >>confdefs.h <<_ACEOF
20853 #define HAVE__PROC_SELF_MAPS 1
20857 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20865 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20868 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20875 if test "X$prefix" = "XNONE"; then
20876 acl_final_prefix="$ac_default_prefix"
20878 acl_final_prefix="$prefix"
20880 if test "X$exec_prefix" = "XNONE"; then
20881 acl_final_exec_prefix='${prefix}'
20883 acl_final_exec_prefix="$exec_prefix"
20885 acl_save_prefix="$prefix"
20886 prefix="$acl_final_prefix"
20887 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20888 prefix="$acl_save_prefix"
20891 # Check whether --with-gnu-ld was given.
20892 if test "${with_gnu_ld+set}" = set; then :
20893 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20898 # Prepare PATH_SEPARATOR.
20899 # The user is always right.
20900 if test "${PATH_SEPARATOR+set}" != set; then
20901 echo "#! /bin/sh" >conf$$.sh
20902 echo "exit 0" >>conf$$.sh
20904 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20912 if test "$GCC" = yes; then
20913 # Check if gcc -print-prog-name=ld gives a path.
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
20915 $as_echo_n "checking for ld used by GCC... " >&6; }
20918 # gcc leaves a trailing carriage return which upsets mingw
20919 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20921 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20924 # Accept absolute paths.
20925 [\\/]* | [A-Za-z]:[\\/]*)
20926 re_direlt='/[^/][^/]*/\.\./'
20927 # Canonicalize the path of ld
20928 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20929 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20930 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20932 test -z "$LD" && LD="$ac_prog"
20935 # If it fails, then pretend we aren't using GCC.
20939 # If it is relative, then search for the first ld in PATH.
20940 with_gnu_ld=unknown
20943 elif test "$with_gnu_ld" = yes; then
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20945 $as_echo_n "checking for GNU ld... " >&6; }
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20948 $as_echo_n "checking for non-GNU ld... " >&6; }
20950 if test "${acl_cv_path_LD+set}" = set; then :
20951 $as_echo_n "(cached) " >&6
20953 if test -z "$LD"; then
20954 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20955 for ac_dir in $PATH; do
20956 test -z "$ac_dir" && ac_dir=.
20957 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20958 acl_cv_path_LD="$ac_dir/$ac_prog"
20959 # Check to see if the program is GNU ld. I'd rather use --version,
20960 # but apparently some GNU ld's only accept -v.
20961 # Break only if it was the GNU/non-GNU ld that we prefer.
20962 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
20963 test "$with_gnu_ld" != no && break
20965 test "$with_gnu_ld" != yes && break
20971 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20975 LD="$acl_cv_path_LD"
20976 if test -n "$LD"; then
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20978 $as_echo "$LD" >&6; }
20980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20981 $as_echo "no" >&6; }
20983 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20985 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20986 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
20987 $as_echo_n "(cached) " >&6
20989 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20990 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
20991 acl_cv_prog_gnu_ld=yes
20993 acl_cv_prog_gnu_ld=no
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
20997 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
20998 with_gnu_ld=$acl_cv_prog_gnu_ld
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21003 $as_echo_n "checking for shared library run path origin... " >&6; }
21004 if test "${acl_cv_rpath+set}" = set; then :
21005 $as_echo_n "(cached) " >&6
21008 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21009 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21011 rm -f ./conftest.sh
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21016 $as_echo "$acl_cv_rpath" >&6; }
21018 libext="$acl_cv_libext"
21019 shlibext="$acl_cv_shlibext"
21020 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21021 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21022 hardcode_direct="$acl_cv_hardcode_direct"
21023 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21024 # Check whether --enable-rpath was given.
21025 if test "${enable_rpath+set}" = set; then :
21026 enableval=$enable_rpath; :
21040 acl_save_prefix="$prefix"
21041 prefix="$acl_final_prefix"
21042 acl_save_exec_prefix="$exec_prefix"
21043 exec_prefix="$acl_final_exec_prefix"
21045 eval additional_includedir=\"$includedir\"
21046 eval additional_libdir=\"$libdir\"
21048 exec_prefix="$acl_save_exec_prefix"
21049 prefix="$acl_save_prefix"
21052 # Check whether --with-libiconv-prefix was given.
21053 if test "${with_libiconv_prefix+set}" = set; then :
21054 withval=$with_libiconv_prefix;
21055 if test "X$withval" = "Xno"; then
21058 if test "X$withval" = "X"; then
21060 acl_save_prefix="$prefix"
21061 prefix="$acl_final_prefix"
21062 acl_save_exec_prefix="$exec_prefix"
21063 exec_prefix="$acl_final_exec_prefix"
21065 eval additional_includedir=\"$includedir\"
21066 eval additional_libdir=\"$libdir\"
21068 exec_prefix="$acl_save_exec_prefix"
21069 prefix="$acl_save_prefix"
21072 additional_includedir="$withval/include"
21073 additional_libdir="$withval/lib"
21084 names_already_handled=
21085 names_next_round='iconv '
21086 while test -n "$names_next_round"; do
21087 names_this_round="$names_next_round"
21089 for name in $names_this_round; do
21091 for n in $names_already_handled; do
21092 if test "$n" = "$name"; then
21093 already_handled=yes
21097 if test -z "$already_handled"; then
21098 names_already_handled="$names_already_handled $name"
21099 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21100 eval value=\"\$HAVE_LIB$uppername\"
21101 if test -n "$value"; then
21102 if test "$value" = yes; then
21103 eval value=\"\$LIB$uppername\"
21104 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21105 eval value=\"\$LTLIB$uppername\"
21106 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21115 if test $use_additional = yes; then
21116 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21117 found_dir="$additional_libdir"
21118 found_so="$additional_libdir/lib$name.$shlibext"
21119 if test -f "$additional_libdir/lib$name.la"; then
21120 found_la="$additional_libdir/lib$name.la"
21123 if test -f "$additional_libdir/lib$name.$libext"; then
21124 found_dir="$additional_libdir"
21125 found_a="$additional_libdir/lib$name.$libext"
21126 if test -f "$additional_libdir/lib$name.la"; then
21127 found_la="$additional_libdir/lib$name.la"
21132 if test "X$found_dir" = "X"; then
21133 for x in $LDFLAGS $LTLIBICONV; do
21135 acl_save_prefix="$prefix"
21136 prefix="$acl_final_prefix"
21137 acl_save_exec_prefix="$exec_prefix"
21138 exec_prefix="$acl_final_exec_prefix"
21140 exec_prefix="$acl_save_exec_prefix"
21141 prefix="$acl_save_prefix"
21145 dir=`echo "X$x" | sed -e 's/^X-L//'`
21146 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21148 found_so="$dir/lib$name.$shlibext"
21149 if test -f "$dir/lib$name.la"; then
21150 found_la="$dir/lib$name.la"
21153 if test -f "$dir/lib$name.$libext"; then
21155 found_a="$dir/lib$name.$libext"
21156 if test -f "$dir/lib$name.la"; then
21157 found_la="$dir/lib$name.la"
21163 if test "X$found_dir" != "X"; then
21168 if test "X$found_dir" != "X"; then
21169 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21170 if test "X$found_so" != "X"; then
21171 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21172 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21175 for x in $ltrpathdirs; do
21176 if test "X$x" = "X$found_dir"; then
21181 if test -z "$haveit"; then
21182 ltrpathdirs="$ltrpathdirs $found_dir"
21184 if test "$hardcode_direct" = yes; then
21185 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21187 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21188 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21190 for x in $rpathdirs; do
21191 if test "X$x" = "X$found_dir"; then
21196 if test -z "$haveit"; then
21197 rpathdirs="$rpathdirs $found_dir"
21201 for x in $LDFLAGS $LIBICONV; do
21203 acl_save_prefix="$prefix"
21204 prefix="$acl_final_prefix"
21205 acl_save_exec_prefix="$exec_prefix"
21206 exec_prefix="$acl_final_exec_prefix"
21208 exec_prefix="$acl_save_exec_prefix"
21209 prefix="$acl_save_prefix"
21211 if test "X$x" = "X-L$found_dir"; then
21216 if test -z "$haveit"; then
21217 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21219 if test "$hardcode_minus_L" != no; then
21220 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21222 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21228 if test "X$found_a" != "X"; then
21229 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21231 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21234 additional_includedir=
21235 case "$found_dir" in
21237 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21238 additional_includedir="$basedir/include"
21241 if test "X$additional_includedir" != "X"; then
21242 if test "X$additional_includedir" != "X/usr/include"; then
21244 if test "X$additional_includedir" = "X/usr/local/include"; then
21245 if test -n "$GCC"; then
21247 linux*) haveit=yes;;
21251 if test -z "$haveit"; then
21252 for x in $CPPFLAGS $INCICONV; do
21254 acl_save_prefix="$prefix"
21255 prefix="$acl_final_prefix"
21256 acl_save_exec_prefix="$exec_prefix"
21257 exec_prefix="$acl_final_exec_prefix"
21259 exec_prefix="$acl_save_exec_prefix"
21260 prefix="$acl_save_prefix"
21262 if test "X$x" = "X-I$additional_includedir"; then
21267 if test -z "$haveit"; then
21268 if test -d "$additional_includedir"; then
21269 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21275 if test -n "$found_la"; then
21276 save_libdir="$libdir"
21277 case "$found_la" in
21278 */* | *\\*) . "$found_la" ;;
21279 *) . "./$found_la" ;;
21281 libdir="$save_libdir"
21282 for dep in $dependency_libs; do
21285 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21286 if test "X$additional_libdir" != "X/usr/lib"; then
21288 if test "X$additional_libdir" = "X/usr/local/lib"; then
21289 if test -n "$GCC"; then
21291 linux*) haveit=yes;;
21295 if test -z "$haveit"; then
21297 for x in $LDFLAGS $LIBICONV; do
21299 acl_save_prefix="$prefix"
21300 prefix="$acl_final_prefix"
21301 acl_save_exec_prefix="$exec_prefix"
21302 exec_prefix="$acl_final_exec_prefix"
21304 exec_prefix="$acl_save_exec_prefix"
21305 prefix="$acl_save_prefix"
21307 if test "X$x" = "X-L$additional_libdir"; then
21312 if test -z "$haveit"; then
21313 if test -d "$additional_libdir"; then
21314 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21318 for x in $LDFLAGS $LTLIBICONV; do
21320 acl_save_prefix="$prefix"
21321 prefix="$acl_final_prefix"
21322 acl_save_exec_prefix="$exec_prefix"
21323 exec_prefix="$acl_final_exec_prefix"
21325 exec_prefix="$acl_save_exec_prefix"
21326 prefix="$acl_save_prefix"
21328 if test "X$x" = "X-L$additional_libdir"; then
21333 if test -z "$haveit"; then
21334 if test -d "$additional_libdir"; then
21335 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21342 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21343 if test "$enable_rpath" != no; then
21345 for x in $rpathdirs; do
21346 if test "X$x" = "X$dir"; then
21351 if test -z "$haveit"; then
21352 rpathdirs="$rpathdirs $dir"
21355 for x in $ltrpathdirs; do
21356 if test "X$x" = "X$dir"; then
21361 if test -z "$haveit"; then
21362 ltrpathdirs="$ltrpathdirs $dir"
21367 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21370 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21373 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21374 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21380 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21381 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21387 if test "X$rpathdirs" != "X"; then
21388 if test -n "$hardcode_libdir_separator"; then
21390 for found_dir in $rpathdirs; do
21391 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21393 acl_save_libdir="$libdir"
21395 eval flag=\"$hardcode_libdir_flag_spec\"
21396 libdir="$acl_save_libdir"
21397 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21399 for found_dir in $rpathdirs; do
21400 acl_save_libdir="$libdir"
21401 libdir="$found_dir"
21402 eval flag=\"$hardcode_libdir_flag_spec\"
21403 libdir="$acl_save_libdir"
21404 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21408 if test "X$ltrpathdirs" != "X"; then
21409 for found_dir in $ltrpathdirs; do
21410 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21420 am_save_CPPFLAGS="$CPPFLAGS"
21422 for element in $INCICONV; do
21424 for x in $CPPFLAGS; do
21426 acl_save_prefix="$prefix"
21427 prefix="$acl_final_prefix"
21428 acl_save_exec_prefix="$exec_prefix"
21429 exec_prefix="$acl_final_exec_prefix"
21431 exec_prefix="$acl_save_exec_prefix"
21432 prefix="$acl_save_prefix"
21434 if test "X$x" = "X$element"; then
21439 if test -z "$haveit"; then
21440 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21446 $as_echo_n "checking for iconv... " >&6; }
21447 if test "${am_cv_func_iconv+set}" = set; then :
21448 $as_echo_n "(cached) " >&6
21451 am_cv_func_iconv="no, consider installing GNU libiconv"
21453 if test x$gcc_no_link = xyes; then
21454 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21457 /* end confdefs.h. */
21458 #include <stdlib.h>
21463 iconv_t cd = iconv_open("","");
21464 iconv(cd,NULL,NULL,NULL,NULL);
21470 if ac_fn_c_try_link "$LINENO"; then :
21471 am_cv_func_iconv=yes
21473 rm -f core conftest.err conftest.$ac_objext \
21474 conftest$ac_exeext conftest.$ac_ext
21475 if test "$am_cv_func_iconv" != yes; then
21476 am_save_LIBS="$LIBS"
21477 LIBS="$LIBS $LIBICONV"
21478 if test x$gcc_no_link = xyes; then
21479 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21482 /* end confdefs.h. */
21483 #include <stdlib.h>
21488 iconv_t cd = iconv_open("","");
21489 iconv(cd,NULL,NULL,NULL,NULL);
21495 if ac_fn_c_try_link "$LINENO"; then :
21496 am_cv_lib_iconv=yes
21497 am_cv_func_iconv=yes
21499 rm -f core conftest.err conftest.$ac_objext \
21500 conftest$ac_exeext conftest.$ac_ext
21501 LIBS="$am_save_LIBS"
21505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21506 $as_echo "$am_cv_func_iconv" >&6; }
21507 if test "$am_cv_func_iconv" = yes; then
21509 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21512 if test "$am_cv_lib_iconv" = yes; then
21513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21514 $as_echo_n "checking how to link with libiconv... " >&6; }
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21516 $as_echo "$LIBICONV" >&6; }
21518 CPPFLAGS="$am_save_CPPFLAGS"
21525 if test "$am_cv_func_iconv" = yes; then
21526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21527 $as_echo_n "checking for iconv declaration... " >&6; }
21528 if test "${am_cv_proto_iconv+set}" = set; then :
21529 $as_echo_n "(cached) " >&6
21532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21533 /* end confdefs.h. */
21535 #include <stdlib.h>
21541 #if defined(__STDC__) || defined(__cplusplus)
21542 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21555 if ac_fn_c_try_compile "$LINENO"; then :
21556 am_cv_proto_iconv_arg1=""
21558 am_cv_proto_iconv_arg1="const"
21560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21561 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);"
21564 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21566 }$am_cv_proto_iconv" >&5
21568 }$am_cv_proto_iconv" >&6; }
21570 cat >>confdefs.h <<_ACEOF
21571 #define ICONV_CONST $am_cv_proto_iconv_arg1
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21578 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21579 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21580 $as_echo_n "(cached) " >&6
21582 if test x$gcc_no_link = xyes; then
21583 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21586 /* end confdefs.h. */
21587 #include <locale.h>
21596 if ac_fn_c_try_link "$LINENO"; then :
21597 am_cv_val_LC_MESSAGES=yes
21599 am_cv_val_LC_MESSAGES=no
21601 rm -f core conftest.err conftest.$ac_objext \
21602 conftest$ac_exeext conftest.$ac_ext
21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21605 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21606 if test $am_cv_val_LC_MESSAGES = yes; then
21608 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21613 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21614 if test "${ac_cv_struct_tm+set}" = set; then :
21615 $as_echo_n "(cached) " >&6
21617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21618 /* end confdefs.h. */
21619 #include <sys/types.h>
21626 int *p = &tm.tm_sec;
21632 if ac_fn_c_try_compile "$LINENO"; then :
21633 ac_cv_struct_tm=time.h
21635 ac_cv_struct_tm=sys/time.h
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21640 $as_echo "$ac_cv_struct_tm" >&6; }
21641 if test $ac_cv_struct_tm = sys/time.h; then
21643 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21647 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21648 #include <$ac_cv_struct_tm>
21651 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21653 cat >>confdefs.h <<_ACEOF
21654 #define HAVE_STRUCT_TM_TM_ZONE 1
21660 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21662 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21665 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21667 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21673 cat >>confdefs.h <<_ACEOF
21674 #define HAVE_DECL_TZNAME $ac_have_decl
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21678 $as_echo_n "checking for tzname... " >&6; }
21679 if test "${ac_cv_var_tzname+set}" = set; then :
21680 $as_echo_n "(cached) " >&6
21682 if test x$gcc_no_link = xyes; then
21683 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21686 /* end confdefs.h. */
21688 #if !HAVE_DECL_TZNAME
21689 extern char *tzname[];
21695 return tzname[0][0];
21700 if ac_fn_c_try_link "$LINENO"; then :
21701 ac_cv_var_tzname=yes
21703 ac_cv_var_tzname=no
21705 rm -f core conftest.err conftest.$ac_objext \
21706 conftest$ac_exeext conftest.$ac_ext
21708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21709 $as_echo "$ac_cv_var_tzname" >&6; }
21710 if test $ac_cv_var_tzname = yes; then
21712 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21718 for ac_func in gethostbyname_r
21720 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21721 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21722 cat >>confdefs.h <<_ACEOF
21723 #define HAVE_GETHOSTBYNAME_R 1
21727 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21729 # There are two different kinds of gethostbyname_r.
21730 # We look for the one that returns `int'.
21731 # Hopefully this check is robust enough.
21732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21733 /* end confdefs.h. */
21737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21738 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21741 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21747 case " $GCINCS " in
21748 *" -D_REENTRANT "*) ;;
21750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21751 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21752 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21753 $as_echo_n "(cached) " >&6
21756 ac_cpp='$CXXCPP $CPPFLAGS'
21757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21762 /* end confdefs.h. */
21767 gethostbyname_r("", 0, 0);
21772 if ac_fn_cxx_try_compile "$LINENO"; then :
21773 libjava_cv_gethostbyname_r_needs_reentrant=no
21775 CPPFLAGS_SAVE="$CPPFLAGS"
21776 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21778 /* end confdefs.h. */
21783 gethostbyname_r("", 0, 0);
21788 if ac_fn_cxx_try_compile "$LINENO"; then :
21789 libjava_cv_gethostbyname_r_needs_reentrant=yes
21791 libjava_cv_gethostbyname_r_needs_reentrant=fail
21793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21794 CPPFLAGS="$CPPFLAGS_SAVE"
21797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21799 ac_cpp='$CPP $CPPFLAGS'
21800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
21807 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
21808 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
21810 $as_echo "#define _REENTRANT 1" >>confdefs.h
21816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
21817 $as_echo_n "checking for struct hostent_data... " >&6; }
21818 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
21819 $as_echo_n "(cached) " >&6
21821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21822 /* end confdefs.h. */
21824 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
21825 # define _REENTRANT 1
21831 struct hostent_data data;
21836 if ac_fn_c_try_compile "$LINENO"; then :
21837 libjava_cv_struct_hostent_data=yes
21839 libjava_cv_struct_hostent_data=no
21841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
21844 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
21845 if test "x$libjava_cv_struct_hostent_data" = xyes; then
21847 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
21855 # FIXME: libjava source code expects to find a prototype for
21856 # gethostbyaddr_r in netdb.h. The outer check ensures that
21857 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
21858 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
21859 # linkage check is enough, yet C++ code requires proper prototypes.)
21860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21861 /* end confdefs.h. */
21865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21866 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
21868 for ac_func in gethostbyaddr_r
21870 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
21871 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
21872 cat >>confdefs.h <<_ACEOF
21873 #define HAVE_GETHOSTBYADDR_R 1
21877 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
21879 # There are two different kinds of gethostbyaddr_r.
21880 # We look for the one that returns `int'.
21881 # Hopefully this check is robust enough.
21882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21883 /* end confdefs.h. */
21887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21888 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
21891 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
21903 for ac_func in gethostname
21905 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
21906 if test "x$ac_cv_func_gethostname" = x""yes; then :
21907 cat >>confdefs.h <<_ACEOF
21908 #define HAVE_GETHOSTNAME 1
21912 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
21914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21915 /* end confdefs.h. */
21916 #include <unistd.h>
21919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21920 $EGREP "gethostname" >/dev/null 2>&1; then :
21923 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
21932 for ac_func in usleep
21934 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
21935 if test "x$ac_cv_func_usleep" = x""yes; then :
21936 cat >>confdefs.h <<_ACEOF
21937 #define HAVE_USLEEP 1
21940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21941 /* end confdefs.h. */
21942 #include <unistd.h>
21945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21946 $EGREP "usleep" >/dev/null 2>&1; then :
21949 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
21958 # Look for these functions in the thread library, but only bother
21959 # if using POSIX threads.
21960 if test "$THREADS" = posix; then
21962 LIBS="$LIBS $THREADLIBS"
21964 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
21965 # Solaris 7 the name librt is preferred.
21966 for ac_func in sched_yield
21968 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
21969 if test "x$ac_cv_func_sched_yield" = x""yes; then :
21970 cat >>confdefs.h <<_ACEOF
21971 #define HAVE_SCHED_YIELD 1
21976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
21977 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
21978 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
21979 $as_echo_n "(cached) " >&6
21981 ac_check_lib_save_LIBS=$LIBS
21983 if test x$gcc_no_link = xyes; then
21984 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21987 /* end confdefs.h. */
21989 /* Override any GCC internal prototype to avoid an error.
21990 Use char because int might match the return type of a GCC
21991 builtin and then its argument prototype would still apply. */
21995 char sched_yield ();
21999 return sched_yield ();
22004 if ac_fn_c_try_link "$LINENO"; then :
22005 ac_cv_lib_rt_sched_yield=yes
22007 ac_cv_lib_rt_sched_yield=no
22009 rm -f core conftest.err conftest.$ac_objext \
22010 conftest$ac_exeext conftest.$ac_ext
22011 LIBS=$ac_check_lib_save_LIBS
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22014 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22015 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22017 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22019 THREADLIBS="$THREADLIBS -lrt"
22020 THREADSPEC="$THREADSPEC -lrt"
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22024 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22025 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22026 $as_echo_n "(cached) " >&6
22028 ac_check_lib_save_LIBS=$LIBS
22029 LIBS="-lposix4 $LIBS"
22030 if test x$gcc_no_link = xyes; then
22031 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22034 /* end confdefs.h. */
22036 /* Override any GCC internal prototype to avoid an error.
22037 Use char because int might match the return type of a GCC
22038 builtin and then its argument prototype would still apply. */
22042 char sched_yield ();
22046 return sched_yield ();
22051 if ac_fn_c_try_link "$LINENO"; then :
22052 ac_cv_lib_posix4_sched_yield=yes
22054 ac_cv_lib_posix4_sched_yield=no
22056 rm -f core conftest.err conftest.$ac_objext \
22057 conftest$ac_exeext conftest.$ac_ext
22058 LIBS=$ac_check_lib_save_LIBS
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22061 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22062 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22064 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22066 THREADLIBS="$THREADLIBS -lposix4"
22067 THREADSPEC="$THREADSPEC -lposix4"
22076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22077 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22078 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22079 $as_echo_n "(cached) " >&6
22081 ac_check_lib_save_LIBS=$LIBS
22083 if test x$gcc_no_link = xyes; then
22084 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h. */
22089 /* Override any GCC internal prototype to avoid an error.
22090 Use char because int might match the return type of a GCC
22091 builtin and then its argument prototype would still apply. */
22095 char clock_gettime ();
22099 return clock_gettime ();
22104 if ac_fn_c_try_link "$LINENO"; then :
22105 ac_cv_lib_rt_clock_gettime=yes
22107 ac_cv_lib_rt_clock_gettime=no
22109 rm -f core conftest.err conftest.$ac_objext \
22110 conftest$ac_exeext conftest.$ac_ext
22111 LIBS=$ac_check_lib_save_LIBS
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22114 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22115 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22118 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22120 case "$THREADSPEC" in
22123 THREADSPEC="$THREADSPEC -lrt"
22124 THREADLIBS="$THREADLIBS -lrt"
22132 # We can save a little space at runtime if the mutex has m_count
22133 # or __m_count. This is a nice hack for Linux.
22134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22135 /* end confdefs.h. */
22136 #include <pthread.h>
22141 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22147 if ac_fn_c_try_compile "$LINENO"; then :
22149 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22154 /* end confdefs.h. */
22155 #include <pthread.h>
22160 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22166 if ac_fn_c_try_compile "$LINENO"; then :
22168 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22176 # We require a way to get the time.
22178 for ac_func in gettimeofday time ftime
22180 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22181 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22182 eval as_val=\$$as_ac_var
22183 if test "x$as_val" = x""yes; then :
22184 cat >>confdefs.h <<_ACEOF
22185 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22191 if test "$time_found" = no; then
22192 as_fn_error "no function found to get the time" "$LINENO" 5
22195 for ac_func in memmove
22197 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22198 if test "x$ac_cv_func_memmove" = x""yes; then :
22199 cat >>confdefs.h <<_ACEOF
22200 #define HAVE_MEMMOVE 1
22207 # We require memcpy.
22209 for ac_func in memcpy
22211 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22212 if test "x$ac_cv_func_memcpy" = x""yes; then :
22213 cat >>confdefs.h <<_ACEOF
22214 #define HAVE_MEMCPY 1
22220 if test "$memcpy_found" = no; then
22221 as_fn_error "memcpy is required" "$LINENO" 5
22223 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22225 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22227 $as_echo_n "(cached) " >&6
22229 ac_check_lib_save_LIBS=$LIBS
22231 if test x$gcc_no_link = xyes; then
22232 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22235 /* end confdefs.h. */
22237 /* Override any GCC internal prototype to avoid an error.
22238 Use char because int might match the return type of a GCC
22239 builtin and then its argument prototype would still apply. */
22252 if ac_fn_c_try_link "$LINENO"; then :
22253 ac_cv_lib_dl_dlopen=yes
22255 ac_cv_lib_dl_dlopen=no
22257 rm -f core conftest.err conftest.$ac_objext \
22258 conftest$ac_exeext conftest.$ac_ext
22259 LIBS=$ac_check_lib_save_LIBS
22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22262 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22263 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22266 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22271 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22272 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22273 $as_echo_n "(cached) " >&6
22275 ac_check_lib_save_LIBS=$LIBS
22277 if test x$gcc_no_link = xyes; then
22278 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22281 /* end confdefs.h. */
22283 /* Override any GCC internal prototype to avoid an error.
22284 Use char because int might match the return type of a GCC
22285 builtin and then its argument prototype would still apply. */
22298 if ac_fn_c_try_link "$LINENO"; then :
22299 ac_cv_lib_dld_dlopen=yes
22301 ac_cv_lib_dld_dlopen=no
22303 rm -f core conftest.err conftest.$ac_objext \
22304 conftest$ac_exeext conftest.$ac_ext
22305 LIBS=$ac_check_lib_save_LIBS
22307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22308 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22309 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22312 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22319 # Some library-finding code we stole from Tcl.
22320 #--------------------------------------------------------------------
22321 # Check for the existence of the -lsocket and -lnsl libraries.
22322 # The order here is important, so that they end up in the right
22323 # order in the command line generated by make. Here are some
22324 # special considerations:
22325 # 1. Use "connect" and "accept" to check for -lsocket, and
22326 # "gethostbyname" to check for -lnsl.
22327 # 2. Use each function name only once: can't redo a check because
22328 # autoconf caches the results of the last check and won't redo it.
22329 # 3. Use -lnsl and -lsocket only if they supply procedures that
22330 # aren't already present in the normal libraries. This is because
22331 # IRIX 5.2 has libraries, but they aren't needed and they're
22332 # bogus: they goof up name resolution if used.
22333 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22334 # To get around this problem, check for both libraries together
22335 # if -lsocket doesn't work by itself.
22336 #--------------------------------------------------------------------
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22339 $as_echo_n "checking for socket libraries... " >&6; }
22340 if test "${gcj_cv_lib_sockets+set}" = set; then :
22341 $as_echo_n "(cached) " >&6
22343 gcj_cv_lib_sockets=
22345 unset ac_cv_func_connect
22346 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22347 if test "x$ac_cv_func_connect" = x""yes; then :
22353 if test "$gcj_checkSocket" = 1; then
22354 unset ac_cv_func_connect
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22356 $as_echo_n "checking for main in -lsocket... " >&6; }
22357 if test "${ac_cv_lib_socket_main+set}" = set; then :
22358 $as_echo_n "(cached) " >&6
22360 ac_check_lib_save_LIBS=$LIBS
22361 LIBS="-lsocket $LIBS"
22362 if test x$gcc_no_link = xyes; then
22363 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22366 /* end confdefs.h. */
22377 if ac_fn_c_try_link "$LINENO"; then :
22378 ac_cv_lib_socket_main=yes
22380 ac_cv_lib_socket_main=no
22382 rm -f core conftest.err conftest.$ac_objext \
22383 conftest$ac_exeext conftest.$ac_ext
22384 LIBS=$ac_check_lib_save_LIBS
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22387 $as_echo "$ac_cv_lib_socket_main" >&6; }
22388 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22389 gcj_cv_lib_sockets="-lsocket"
22395 if test "$gcj_checkBoth" = 1; then
22397 LIBS="$LIBS -lsocket -lnsl"
22398 unset ac_cv_func_accept
22399 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22400 if test "x$ac_cv_func_accept" = x""yes; then :
22402 gcj_cv_lib_sockets="-lsocket -lnsl"
22405 unset ac_cv_func_accept
22408 unset ac_cv_func_gethostbyname
22410 LIBS="$LIBS $gcj_cv_lib_sockets"
22411 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22412 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22416 $as_echo_n "checking for main in -lnsl... " >&6; }
22417 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22418 $as_echo_n "(cached) " >&6
22420 ac_check_lib_save_LIBS=$LIBS
22422 if test x$gcc_no_link = xyes; then
22423 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22426 /* end confdefs.h. */
22437 if ac_fn_c_try_link "$LINENO"; then :
22438 ac_cv_lib_nsl_main=yes
22440 ac_cv_lib_nsl_main=no
22442 rm -f core conftest.err conftest.$ac_objext \
22443 conftest$ac_exeext conftest.$ac_ext
22444 LIBS=$ac_check_lib_save_LIBS
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22447 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22448 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22449 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22454 unset ac_cv_func_gethostbyname
22458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22459 $as_echo "$gcj_cv_lib_sockets" >&6; }
22460 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22462 if test "$with_system_zlib" = yes; then
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22464 $as_echo_n "checking for deflate in -lz... " >&6; }
22465 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22466 $as_echo_n "(cached) " >&6
22468 ac_check_lib_save_LIBS=$LIBS
22470 if test x$gcc_no_link = xyes; then
22471 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22474 /* end confdefs.h. */
22476 /* Override any GCC internal prototype to avoid an error.
22477 Use char because int might match the return type of a GCC
22478 builtin and then its argument prototype would still apply. */
22491 if ac_fn_c_try_link "$LINENO"; then :
22492 ac_cv_lib_z_deflate=yes
22494 ac_cv_lib_z_deflate=no
22496 rm -f core conftest.err conftest.$ac_objext \
22497 conftest$ac_exeext conftest.$ac_ext
22498 LIBS=$ac_check_lib_save_LIBS
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22501 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22502 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22510 # Test for Gtk stuff, if asked for.
22511 if test "$use_gtk_awt" = yes; then
22515 if test -z "$PKG_CONFIG"; then
22516 # Extract the first word of "pkg-config", so it can be a program name with args.
22517 set dummy pkg-config; ac_word=$2
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22519 $as_echo_n "checking for $ac_word... " >&6; }
22520 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22521 $as_echo_n "(cached) " >&6
22523 case $PKG_CONFIG in
22525 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22529 for as_dir in $PATH
22532 test -z "$as_dir" && as_dir=.
22533 for ac_exec_ext in '' $ac_executable_extensions; do
22534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22535 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22543 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22547 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22548 if test -n "$PKG_CONFIG"; then
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22550 $as_echo "$PKG_CONFIG" >&6; }
22552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22553 $as_echo "no" >&6; }
22559 if test "$PKG_CONFIG" = "no" ; then
22560 echo "*** The pkg-config script could not be found. Make sure it is"
22561 echo "*** in your path, or set the PKG_CONFIG environment variable"
22562 echo "*** to the full path to pkg-config."
22563 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22565 PKG_CONFIG_MIN_VERSION=0.9.0
22566 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22568 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22570 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22572 $as_echo "yes" >&6; }
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22576 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22577 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22579 $as_echo "$GTK_CFLAGS" >&6; }
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22582 $as_echo_n "checking GTK_LIBS... " >&6; }
22583 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22585 $as_echo "$GTK_LIBS" >&6; }
22589 ## If we have a custom action on failure, don't print errors, but
22590 ## do set a variable so people can do so.
22591 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22592 echo $GTK_PKG_ERRORS
22598 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22599 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22603 if test $succeeded = yes; then
22606 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
22615 if test -z "$PKG_CONFIG"; then
22616 # Extract the first word of "pkg-config", so it can be a program name with args.
22617 set dummy pkg-config; ac_word=$2
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22619 $as_echo_n "checking for $ac_word... " >&6; }
22620 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22621 $as_echo_n "(cached) " >&6
22623 case $PKG_CONFIG in
22625 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22629 for as_dir in $PATH
22632 test -z "$as_dir" && as_dir=.
22633 for ac_exec_ext in '' $ac_executable_extensions; do
22634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22635 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22643 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22647 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22648 if test -n "$PKG_CONFIG"; then
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22650 $as_echo "$PKG_CONFIG" >&6; }
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22653 $as_echo "no" >&6; }
22659 if test "$PKG_CONFIG" = "no" ; then
22660 echo "*** The pkg-config script could not be found. Make sure it is"
22661 echo "*** in your path, or set the PKG_CONFIG environment variable"
22662 echo "*** to the full path to pkg-config."
22663 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22665 PKG_CONFIG_MIN_VERSION=0.9.0
22666 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22668 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22670 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22672 $as_echo "yes" >&6; }
22675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22676 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22677 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22679 $as_echo "$GLIB_CFLAGS" >&6; }
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22682 $as_echo_n "checking GLIB_LIBS... " >&6; }
22683 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22685 $as_echo "$GLIB_LIBS" >&6; }
22689 ## If we have a custom action on failure, don't print errors, but
22690 ## do set a variable so people can do so.
22691 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22692 echo $GLIB_PKG_ERRORS
22698 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22699 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22703 if test $succeeded = yes; then
22706 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
22715 if test -z "$PKG_CONFIG"; then
22716 # Extract the first word of "pkg-config", so it can be a program name with args.
22717 set dummy pkg-config; ac_word=$2
22718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22719 $as_echo_n "checking for $ac_word... " >&6; }
22720 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22721 $as_echo_n "(cached) " >&6
22723 case $PKG_CONFIG in
22725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22729 for as_dir in $PATH
22732 test -z "$as_dir" && as_dir=.
22733 for ac_exec_ext in '' $ac_executable_extensions; do
22734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22735 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22743 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22747 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22748 if test -n "$PKG_CONFIG"; then
22749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22750 $as_echo "$PKG_CONFIG" >&6; }
22752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22753 $as_echo "no" >&6; }
22759 if test "$PKG_CONFIG" = "no" ; then
22760 echo "*** The pkg-config script could not be found. Make sure it is"
22761 echo "*** in your path, or set the PKG_CONFIG environment variable"
22762 echo "*** to the full path to pkg-config."
22763 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22765 PKG_CONFIG_MIN_VERSION=0.9.0
22766 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22768 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22770 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22772 $as_echo "yes" >&6; }
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22776 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
22777 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
22779 $as_echo "$LIBART_CFLAGS" >&6; }
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
22782 $as_echo_n "checking LIBART_LIBS... " >&6; }
22783 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
22785 $as_echo "$LIBART_LIBS" >&6; }
22789 ## If we have a custom action on failure, don't print errors, but
22790 ## do set a variable so people can do so.
22791 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
22792 echo $LIBART_PKG_ERRORS
22798 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22799 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22803 if test $succeeded = yes; then
22806 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
22812 # We require the XTest Extension to support java.awt.Robot.
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
22814 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
22815 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
22816 $as_echo_n "(cached) " >&6
22818 ac_check_lib_save_LIBS=$LIBS
22819 LIBS="-lXtst ${X_LIBS} $LIBS"
22820 if test x$gcc_no_link = xyes; then
22821 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22824 /* end confdefs.h. */
22826 /* Override any GCC internal prototype to avoid an error.
22827 Use char because int might match the return type of a GCC
22828 builtin and then its argument prototype would still apply. */
22832 char XTestQueryExtension ();
22836 return XTestQueryExtension ();
22841 if ac_fn_c_try_link "$LINENO"; then :
22842 ac_cv_lib_Xtst_XTestQueryExtension=yes
22844 ac_cv_lib_Xtst_XTestQueryExtension=no
22846 rm -f core conftest.err conftest.$ac_objext \
22847 conftest$ac_exeext conftest.$ac_ext
22848 LIBS=$ac_check_lib_save_LIBS
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
22851 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
22852 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
22855 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
22860 # On Solaris, and maybe other architectures, the Boehm collector
22862 if test "$GC" = boehm; then
22865 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
22866 # libgcj.spec is used, so override here
22867 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
22870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
22871 $as_echo_n "checking for main in -ldl... " >&6; }
22872 if test "${ac_cv_lib_dl_main+set}" = set; then :
22873 $as_echo_n "(cached) " >&6
22875 ac_check_lib_save_LIBS=$LIBS
22877 if test x$gcc_no_link = xyes; then
22878 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22881 /* end confdefs.h. */
22892 if ac_fn_c_try_link "$LINENO"; then :
22893 ac_cv_lib_dl_main=yes
22895 ac_cv_lib_dl_main=no
22897 rm -f core conftest.err conftest.$ac_objext \
22898 conftest$ac_exeext conftest.$ac_ext
22899 LIBS=$ac_check_lib_save_LIBS
22901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
22902 $as_echo "$ac_cv_lib_dl_main" >&6; }
22903 if test "x$ac_cv_lib_dl_main" = x""yes; then :
22904 SYSTEMSPEC="$SYSTEMSPEC -ldl"
22912 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
22914 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
22915 *) CLASSPATH_SEPARATOR=':' ;;
22919 # We must search the source tree for java.lang, since we still don't
22920 # have libgcj.jar nor java/lang/*.class
22921 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
22922 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
22924 # Since some classes depend on this one, we need its source available
22925 # before we can do any GCJ compilation test :-(
22926 if test ! -f gnu/classpath/Configuration.java; then
22927 test -d gnu || mkdir gnu
22928 test -d gnu/classpath || mkdir gnu/classpath
22929 # Note that it is not crucial that all the values here be correct.
22930 sed -e "s,@prefix@,$prefix," \
22931 -e "s,@VERSION@,$VERSION," \
22932 -e "s,@LIBDEBUG@,false," \
22933 -e "s,@INIT_LOAD_LIBRARY@,false," \
22934 -e "s,@@,$LIBGCJDEBUG," \
22935 -e "s,@default_toolkit@,$TOOLKIT," \
22936 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
22937 -e "s,@GTK_CAIRO_ENABLED@,false," \
22938 -e "s,@ECJ_JAR@,," \
22939 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
22940 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
22941 > gnu/classpath/Configuration.java
22942 # We do not want to redirect the output of the grep below to /dev/null,
22943 # but we add /dev/null to the input list so that grep will print the
22944 # filename of Configuration.java in case it finds any matches.
22945 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
22946 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
22953 # Extract the first word of "$ac_prog", so it can be a program name with args.
22954 set dummy $ac_prog; ac_word=$2
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22956 $as_echo_n "checking for $ac_word... " >&6; }
22957 if test "${ac_cv_prog_GCJ+set}" = set; then :
22958 $as_echo_n "(cached) " >&6
22960 if test -n "$GCJ"; then
22961 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
22963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22964 for as_dir in $PATH
22967 test -z "$as_dir" && as_dir=.
22968 for ac_exec_ext in '' $ac_executable_extensions; do
22969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22970 ac_cv_prog_GCJ="$ac_prog"
22971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22980 GCJ=$ac_cv_prog_GCJ
22981 if test -n "$GCJ"; then
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
22983 $as_echo "$GCJ" >&6; }
22985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22986 $as_echo "no" >&6; }
22990 test -n "$GCJ" && break
22992 test -n "$GCJ" || GCJ="gcj"
22994 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
22995 if test "x${GCJFLAGS-unset}" = xunset; then
23000 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23003 $as_echo_n "checking dependency style of $depcc... " >&6; }
23004 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23005 $as_echo_n "(cached) " >&6
23007 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23008 # We make a subdir and do the tests there. Otherwise we can end up
23009 # making bogus files that we don't know about and never remove. For
23010 # instance it was reported that on HP-UX the gcc test will end up
23011 # making a dummy file named `D' -- because `-MD' means `put the output
23014 # Copy depcomp to subdir because otherwise we won't find it if we're
23015 # using a relative directory.
23016 cp "$am_depcomp" conftest.dir
23018 # We will build objects and dependencies in a subdirectory because
23019 # it helps to detect inapplicable dependency modes. For instance
23020 # both Tru64's cc and ICC support -MD to output dependencies as a
23021 # side effect of compilation, but ICC will put the dependencies in
23022 # the current directory while Tru64 will put them in the object
23026 am_cv_GCJ_dependencies_compiler_type=none
23027 if test "$am_compiler_list" = ""; then
23028 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23030 am__universal=false
23033 for depmode in $am_compiler_list; do
23034 # Setup a source with many dependencies, because some compilers
23035 # like to wrap large dependency lists on column 80 (with \), and
23036 # we should not choose a depcomp mode which is confused by this.
23038 # We need to recreate these files for each test, as the compiler may
23039 # overwrite some of them when testing with obscure command lines.
23040 # This happens at least with the AIX C compiler.
23042 for i in 1 2 3 4 5 6; do
23043 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23044 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23045 # Solaris 8's {/usr,}/bin/sh.
23046 touch sub/conftst$i.h
23048 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23050 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23051 # mode. It turns out that the SunPro C++ compiler does not properly
23052 # handle `-M -o', and we need to detect this. Also, some Intel
23053 # versions had trouble with output in subdirs
23054 am__obj=sub/conftest.${OBJEXT-o}
23055 am__minus_obj="-o $am__obj"
23058 # This depmode causes a compiler race in universal mode.
23059 test "$am__universal" = false || continue
23062 # after this tag, mechanisms are not by side-effect, so they'll
23063 # only be used when explicitly requested
23064 if test "x$enable_dependency_tracking" = xyes; then
23070 msvisualcpp | msvcmsys)
23071 # This compiler won't grok `-c -o', but also, the minuso test has
23072 # not run yet. These depmodes are late enough in the game, and
23073 # so weak that their functioning should not be impacted.
23074 am__obj=conftest.${OBJEXT-o}
23079 if depmode=$depmode \
23080 source=sub/conftest.c object=$am__obj \
23081 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23082 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23083 >/dev/null 2>conftest.err &&
23084 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23085 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23086 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23087 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23088 # icc doesn't choke on unknown options, it will just issue warnings
23089 # or remarks (even with -Werror). So we grep stderr for any message
23090 # that says an option was ignored or not supported.
23091 # When given -MP, icc 7.0 and 7.1 complain thusly:
23092 # icc: Command line warning: ignoring option '-M'; no argument required
23093 # The diagnosis changed in icc 8.0:
23094 # icc: Command line remark: option '-MP' not supported
23095 if (grep 'ignoring option' conftest.err ||
23096 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23097 am_cv_GCJ_dependencies_compiler_type=$depmode
23104 rm -rf conftest.dir
23106 am_cv_GCJ_dependencies_compiler_type=none
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23111 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23112 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23115 test "x$enable_dependency_tracking" != xno \
23116 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23117 am__fastdepGCJ_TRUE=
23118 am__fastdepGCJ_FALSE='#'
23120 am__fastdepGCJ_TRUE='#'
23121 am__fastdepGCJ_FALSE=
23128 rm -f gnu/classpath/Configuration.java
23130 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23132 # The cast to long int works around a bug in the HP C Compiler
23133 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23134 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23135 # This bug is HP SR number 8606223364.
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23137 $as_echo_n "checking size of void *... " >&6; }
23138 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23139 $as_echo_n "(cached) " >&6
23141 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23144 if test "$ac_cv_type_void_p" = yes; then
23145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23147 { as_fn_set_status 77
23148 as_fn_error "cannot compute sizeof (void *)
23149 See \`config.log' for more details." "$LINENO" 5; }; }
23151 ac_cv_sizeof_void_p=0
23156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23157 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23161 cat >>confdefs.h <<_ACEOF
23162 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23168 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23169 if test "${ac_cv_c_bigendian+set}" = set; then :
23170 $as_echo_n "(cached) " >&6
23172 ac_cv_c_bigendian=unknown
23173 # See if we're dealing with a universal compiler.
23174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23175 /* end confdefs.h. */
23176 #ifndef __APPLE_CC__
23177 not a universal capable compiler
23182 if ac_fn_c_try_compile "$LINENO"; then :
23184 # Check for potential -arch flags. It is not universal unless
23185 # there are at least two -arch flags with different values.
23188 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23189 if test -n "$ac_prev"; then
23191 i?86 | x86_64 | ppc | ppc64)
23192 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23195 ac_cv_c_bigendian=universal
23201 elif test "x$ac_word" = "x-arch"; then
23206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23207 if test $ac_cv_c_bigendian = unknown; then
23208 # See if sys/param.h defines the BYTE_ORDER macro.
23209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23210 /* end confdefs.h. */
23211 #include <sys/types.h>
23212 #include <sys/param.h>
23217 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23218 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23220 bogus endian macros
23227 if ac_fn_c_try_compile "$LINENO"; then :
23228 # It does; now see whether it defined to BIG_ENDIAN or not.
23229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23230 /* end confdefs.h. */
23231 #include <sys/types.h>
23232 #include <sys/param.h>
23237 #if BYTE_ORDER != BIG_ENDIAN
23245 if ac_fn_c_try_compile "$LINENO"; then :
23246 ac_cv_c_bigendian=yes
23248 ac_cv_c_bigendian=no
23250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23254 if test $ac_cv_c_bigendian = unknown; then
23255 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23257 /* end confdefs.h. */
23258 #include <limits.h>
23263 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23264 bogus endian macros
23271 if ac_fn_c_try_compile "$LINENO"; then :
23272 # It does; now see whether it defined to _BIG_ENDIAN or not.
23273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23274 /* end confdefs.h. */
23275 #include <limits.h>
23280 #ifndef _BIG_ENDIAN
23288 if ac_fn_c_try_compile "$LINENO"; then :
23289 ac_cv_c_bigendian=yes
23291 ac_cv_c_bigendian=no
23293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23297 if test $ac_cv_c_bigendian = unknown; then
23298 # Compile a test program.
23299 if test "$cross_compiling" = yes; then :
23300 # Try to guess by grepping values from an object file.
23301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23302 /* end confdefs.h. */
23303 short int ascii_mm[] =
23304 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23305 short int ascii_ii[] =
23306 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23307 int use_ascii (int i) {
23308 return ascii_mm[i] + ascii_ii[i];
23310 short int ebcdic_ii[] =
23311 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23312 short int ebcdic_mm[] =
23313 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23314 int use_ebcdic (int i) {
23315 return ebcdic_mm[i] + ebcdic_ii[i];
23322 return use_ascii (foo) == use_ebcdic (foo);
23327 if ac_fn_c_try_compile "$LINENO"; then :
23328 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23329 ac_cv_c_bigendian=yes
23331 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23332 if test "$ac_cv_c_bigendian" = unknown; then
23333 ac_cv_c_bigendian=no
23335 # finding both strings is unlikely to happen, but who knows?
23336 ac_cv_c_bigendian=unknown
23340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23343 /* end confdefs.h. */
23344 $ac_includes_default
23349 /* Are we little or big endian? From Harbison&Steele. */
23353 char c[sizeof (long int)];
23356 return u.c[sizeof (long int) - 1] == 1;
23362 if ac_fn_c_try_run "$LINENO"; then :
23363 ac_cv_c_bigendian=no
23365 ac_cv_c_bigendian=yes
23367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23368 conftest.$ac_objext conftest.beam conftest.$ac_ext
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23374 $as_echo "$ac_cv_c_bigendian" >&6; }
23375 case $ac_cv_c_bigendian in #(
23377 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23383 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23387 as_fn_error "unknown endianness
23388 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23396 if test -z "$ZLIBSPEC"; then
23397 # Use zlib from the GCC tree.
23398 ZINCS='-I$(top_srcdir)/../zlib'
23399 ZLIBS=../zlib/libzgcj_convenience.la
23402 SYS_ZLIBS="$ZLIBSPEC"
23414 if test "$NATIVE" = yes; then
23422 if test "$enable_shared" = yes; then
23423 ENABLE_SHARED_TRUE=
23424 ENABLE_SHARED_FALSE='#'
23426 ENABLE_SHARED_TRUE='#'
23427 ENABLE_SHARED_FALSE=
23430 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23431 NEEDS_DATA_START_TRUE=
23432 NEEDS_DATA_START_FALSE='#'
23434 NEEDS_DATA_START_TRUE='#'
23435 NEEDS_DATA_START_FALSE=
23438 if test -z "${with_multisubdir}"; then
23439 INSTALL_BINARIES_TRUE=
23440 INSTALL_BINARIES_FALSE='#'
23442 INSTALL_BINARIES_TRUE='#'
23443 INSTALL_BINARIES_FALSE=
23448 # Process the option "--enable-version-specific-runtime-libs"
23449 # Calculate toolexeclibdir
23450 case ${version_specific_libs} in
23452 # Need the gcc compiler version to know where to install libraries
23453 # and header files if --enable-version-specific-runtime-libs option
23455 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23456 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23457 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23458 toolexeclibdir=$toolexecmainlibdir
23461 if test -n "$with_cross_host" &&
23462 test x"$with_cross_host" != x"no"; then
23463 # Install a library built with a cross compiler in tooldir, not libdir.
23464 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23465 toolexecmainlibdir='$(toolexecdir)/lib'
23467 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23468 toolexecmainlibdir='$(libdir)'
23470 multi_os_directory=`$CC -print-multi-os-directory`
23471 case $multi_os_directory in
23472 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23473 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23481 # Determine gcj and libgcj version number.
23482 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23483 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23484 GCJVERSION=$gcjversion
23487 cat >>confdefs.h <<_ACEOF
23488 #define GCJVERSION "$GCJVERSION"
23492 # Determine where the standard .db file and GNU Classpath JNI
23493 # libraries are found.
23494 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23495 multi_os_directory=`$CC -print-multi-os-directory`
23496 case $multi_os_directory in
23498 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23501 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23508 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23511 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23515 case "${with_gxx_include_dir}" in
23517 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23520 case "${enable_version_specific_runtime_libs}" in
23521 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23523 libstdcxx_incdir='c++/$(gcc_version)'
23524 gxx_include_dir='include/$(libstdcxx_incdir)'
23525 if test -n "$with_cross_host" &&
23526 test x"$with_cross_host" != x"no"; then
23527 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23529 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23532 *) gxx_include_dir=${with_gxx_include_dir} ;;
23538 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23539 # On that system, sys/ioctl.h will not include sys/filio.h unless
23540 # BSD_COMP is defined; just including sys/filio.h is simpler.
23541 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23542 # for now. If you change this, you also must update natFile.cc.
23543 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23544 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23545 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
23546 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23547 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23550 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23551 eval as_val=\$$as_ac_Header
23552 if test "x$as_val" = x""yes; then :
23553 cat >>confdefs.h <<_ACEOF
23554 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23561 for ac_header in inttypes.h
23563 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23564 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23565 cat >>confdefs.h <<_ACEOF
23566 #define HAVE_INTTYPES_H 1
23570 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23573 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23581 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23582 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23586 cat >>confdefs.h <<_ACEOF
23587 #define ssize_t int
23592 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23593 #ifdef HAVE_MAGIC_H
23597 if test "x$ac_cv_type_magic_t" = x""yes; then :
23600 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23606 $as_echo_n "checking for in_addr_t... " >&6; }
23607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23608 /* end confdefs.h. */
23609 #include <sys/types.h>
23611 #include <stdlib.h>
23612 #include <stddef.h>
23614 #if HAVE_NETINET_IN_H
23615 #include <netinet/in.h>
23625 if ac_fn_c_try_compile "$LINENO"; then :
23627 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23630 $as_echo "yes" >&6; }
23632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23633 $as_echo "no" >&6; }
23635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23638 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23640 /* end confdefs.h. */
23641 #include <netinet/in.h>
23645 struct ip_mreq mreq;
23650 if ac_fn_c_try_compile "$LINENO"; then :
23652 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23655 $as_echo "yes" >&6; }
23657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23658 $as_echo "no" >&6; }
23660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23663 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23665 /* end confdefs.h. */
23666 #include <netinet/in.h>
23670 struct ipv6_mreq mreq6;
23675 if ac_fn_c_try_compile "$LINENO"; then :
23677 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23680 $as_echo "yes" >&6; }
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23683 $as_echo "no" >&6; }
23685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23688 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23690 /* end confdefs.h. */
23691 #include <netinet/in.h>
23695 struct sockaddr_in6 addr6;
23700 if ac_fn_c_try_compile "$LINENO"; then :
23702 $as_echo "#define HAVE_INET6 1" >>confdefs.h
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23705 $as_echo "yes" >&6; }
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23708 $as_echo "no" >&6; }
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
23713 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
23714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23715 /* end confdefs.h. */
23716 #define _POSIX_PII_SOCKET
23717 #include <sys/types.h>
23718 #include <sys/socket.h>
23727 if ac_fn_c_try_compile "$LINENO"; then :
23729 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23732 $as_echo "yes" >&6; }
23734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23735 $as_echo "no" >&6; }
23737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
23740 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
23741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23742 /* end confdefs.h. */
23747 struct tm tim; tim.tm_gmtoff = 0;
23752 if ac_fn_c_try_compile "$LINENO"; then :
23754 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23757 $as_echo "yes" >&6; }
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23760 $as_echo "no" >&6; }
23761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
23762 $as_echo_n "checking for global timezone variable... " >&6; }
23763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23764 /* end confdefs.h. */
23769 void i(){long z2 = 2*timezone;}
23774 if ac_fn_c_try_compile "$LINENO"; then :
23776 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23779 $as_echo "yes" >&6; }
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23782 $as_echo "no" >&6; }
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
23784 $as_echo_n "checking for global _timezone variable... " >&6; }
23785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23786 /* end confdefs.h. */
23791 long z2 = _timezone;
23796 if ac_fn_c_try_compile "$LINENO"; then :
23798 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
23800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23801 $as_echo "yes" >&6; }
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23804 $as_echo "no" >&6; }
23806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23812 for ac_prog in perl
23814 # Extract the first word of "$ac_prog", so it can be a program name with args.
23815 set dummy $ac_prog; ac_word=$2
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23817 $as_echo_n "checking for $ac_word... " >&6; }
23818 if test "${ac_cv_prog_PERL+set}" = set; then :
23819 $as_echo_n "(cached) " >&6
23821 if test -n "$PERL"; then
23822 ac_cv_prog_PERL="$PERL" # Let the user override the test.
23824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23825 for as_dir in $PATH
23828 test -z "$as_dir" && as_dir=.
23829 for ac_exec_ext in '' $ac_executable_extensions; do
23830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23831 ac_cv_prog_PERL="$ac_prog"
23832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23841 PERL=$ac_cv_prog_PERL
23842 if test -n "$PERL"; then
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23844 $as_echo "$PERL" >&6; }
23846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23847 $as_echo "no" >&6; }
23851 test -n "$PERL" && break
23853 test -n "$PERL" || PERL="false"
23857 SIGNAL_HANDLER_AUX=
23861 SIGNAL_HANDLER=include/i386-signal.h
23863 sparc*-sun-solaris*)
23864 SIGNAL_HANDLER=include/sparc-signal.h
23867 # SYSDEP_SOURCES=sysdep/ia64.c
23868 # test -d sysdep || mkdir sysdep
23871 SIGNAL_HANDLER=include/pa-signal.h
23874 SIGNAL_HANDLER=include/hppa-signal.h
23877 SIGNAL_HANDLER=include/dwarf2-signal.h
23880 SIGNAL_HANDLER=include/powerpc-signal.h
23883 SIGNAL_HANDLER=include/dwarf2-signal.h
23886 SIGNAL_HANDLER=include/s390-signal.h
23889 SIGNAL_HANDLER=include/x86_64-signal.h
23890 SIGNAL_HANDLER_AUX=include/i386-signal.h
23893 SIGNAL_HANDLER=include/dwarf2-signal.h
23896 SIGNAL_HANDLER=include/sh-signal.h
23899 SIGNAL_HANDLER=include/win32-signal.h
23902 SIGNAL_HANDLER=include/mips-signal.h
23905 SIGNAL_HANDLER=include/dwarf2-signal.h
23907 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
23908 SIGNAL_HANDLER=include/darwin-signal.h
23911 SIGNAL_HANDLER=include/aix-signal.h
23914 SIGNAL_HANDLER=include/default-signal.h
23918 # If we're using sjlj exceptions, forget what we just learned.
23919 if test "$enable_sjlj_exceptions" = yes; then
23920 SIGNAL_HANDLER=include/default-signal.h
23921 SIGNAL_HANDLER_AUX=
23926 if test -z "$SIGNAL_HANDLER_AUX"; then
23927 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
23930 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
23933 if test "${multilib}" = "yes"; then
23934 multilib_arg="--enable-multilib"
23939 # See if we support thread-local storage.
23942 # Check whether --enable-tls was given.
23943 if test "${enable_tls+set}" = set; then :
23944 enableval=$enable_tls;
23945 case "$enableval" in
23947 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
23956 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
23957 if test "${gcc_cv_have_tls+set}" = set; then :
23958 $as_echo_n "(cached) " >&6
23961 if test "$cross_compiling" = yes; then :
23962 if test x$gcc_no_link = xyes; then
23963 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23966 /* end confdefs.h. */
23967 __thread int a; int b; int main() { return a = b; }
23969 if ac_fn_c_try_link "$LINENO"; then :
23970 chktls_save_LDFLAGS="$LDFLAGS"
23973 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
23976 chktls_save_CFLAGS="$CFLAGS"
23977 CFLAGS="-fPIC $CFLAGS"
23978 if test x$gcc_no_link = xyes; then
23979 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23982 /* end confdefs.h. */
23983 int f() { return 0; }
23985 if ac_fn_c_try_link "$LINENO"; then :
23986 if test x$gcc_no_link = xyes; then
23987 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23990 /* end confdefs.h. */
23991 __thread int a; int b; int f() { return a = b; }
23993 if ac_fn_c_try_link "$LINENO"; then :
23994 gcc_cv_have_tls=yes
23998 rm -f core conftest.err conftest.$ac_objext \
23999 conftest$ac_exeext conftest.$ac_ext
24001 gcc_cv_have_tls=yes
24003 rm -f core conftest.err conftest.$ac_objext \
24004 conftest$ac_exeext conftest.$ac_ext
24005 CFLAGS="$chktls_save_CFLAGS"
24006 LDFLAGS="$chktls_save_LDFLAGS"
24010 rm -f core conftest.err conftest.$ac_objext \
24011 conftest$ac_exeext conftest.$ac_ext
24015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24016 /* end confdefs.h. */
24017 __thread int a; int b; int main() { return a = b; }
24019 if ac_fn_c_try_run "$LINENO"; then :
24020 chktls_save_LDFLAGS="$LDFLAGS"
24021 LDFLAGS="-static $LDFLAGS"
24022 if test x$gcc_no_link = xyes; then
24023 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24026 /* end confdefs.h. */
24027 int main() { return 0; }
24029 if ac_fn_c_try_link "$LINENO"; then :
24030 if test "$cross_compiling" = yes; then :
24031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24033 as_fn_error "cannot run test program while cross compiling
24034 See \`config.log' for more details." "$LINENO" 5; }
24036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24037 /* end confdefs.h. */
24038 __thread int a; int b; int main() { return a = b; }
24040 if ac_fn_c_try_run "$LINENO"; then :
24041 gcc_cv_have_tls=yes
24045 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24046 conftest.$ac_objext conftest.beam conftest.$ac_ext
24050 gcc_cv_have_tls=yes
24052 rm -f core conftest.err conftest.$ac_objext \
24053 conftest$ac_exeext conftest.$ac_ext
24054 LDFLAGS="$chktls_save_LDFLAGS"
24055 if test $gcc_cv_have_tls = yes; then
24056 chktls_save_CFLAGS="$CFLAGS"
24057 thread_CFLAGS=failed
24058 for flag in '' '-pthread' '-lpthread'; do
24059 CFLAGS="$flag $chktls_save_CFLAGS"
24060 if test x$gcc_no_link = xyes; then
24061 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24064 /* end confdefs.h. */
24065 #include <pthread.h>
24066 void *g(void *d) { return NULL; }
24070 pthread_t t; pthread_create(&t,NULL,g,NULL);
24075 if ac_fn_c_try_link "$LINENO"; then :
24076 thread_CFLAGS="$flag"
24078 rm -f core conftest.err conftest.$ac_objext \
24079 conftest$ac_exeext conftest.$ac_ext
24080 if test "X$thread_CFLAGS" != Xfailed; then
24084 CFLAGS="$chktls_save_CFLAGS"
24085 if test "X$thread_CFLAGS" != Xfailed; then
24086 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24087 if test "$cross_compiling" = yes; then :
24088 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24089 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24090 as_fn_error "cannot run test program while cross compiling
24091 See \`config.log' for more details." "$LINENO" 5; }
24093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24094 /* end confdefs.h. */
24095 #include <pthread.h>
24097 static int *a_in_other_thread;
24099 thread_func (void *arg)
24101 a_in_other_thread = &a;
24108 void *thread_retval;
24109 int *a_in_main_thread;
24110 if (pthread_create (&thread, (pthread_attr_t *)0,
24111 thread_func, (void *)0))
24113 a_in_main_thread = &a;
24114 if (pthread_join (thread, &thread_retval))
24116 return (a_in_other_thread == a_in_main_thread);
24121 if ac_fn_c_try_run "$LINENO"; then :
24122 gcc_cv_have_tls=yes
24126 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24127 conftest.$ac_objext conftest.beam conftest.$ac_ext
24130 CFLAGS="$chktls_save_CFLAGS"
24136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24137 conftest.$ac_objext conftest.beam conftest.$ac_ext
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24142 $as_echo "$gcc_cv_have_tls" >&6; }
24143 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24145 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24149 # For _Unwind_GetIPInfo.
24152 # Check whether --with-system-libunwind was given.
24153 if test "${with_system_libunwind+set}" = set; then :
24154 withval=$with_system_libunwind;
24157 # If system-libunwind was not specifically set, pick a default setting.
24158 if test x$with_system_libunwind = x; then
24160 ia64-*-hpux*) with_system_libunwind=yes ;;
24161 *) with_system_libunwind=no ;;
24164 # Based on system-libunwind and target, do we have ipinfo?
24165 if test x$with_system_libunwind = xyes; then
24167 ia64-*-*) have_unwind_getipinfo=no ;;
24168 *) have_unwind_getipinfo=yes ;;
24171 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24174 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24175 *) have_unwind_getipinfo=yes ;;
24180 if test x$have_unwind_getipinfo = xyes; then
24182 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24187 # See if linker supports anonymous version scripts.
24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24189 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24190 if test "${libjava_cv_anon_version_script+set}" = set; then :
24191 $as_echo_n "(cached) " >&6
24193 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24194 libjava_cv_anon_version_script=no
24195 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24196 echo '{ global: globalsymb*; local: *; };' > conftest.map
24197 if test x$gcc_no_link = xyes; then
24198 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24201 /* end confdefs.h. */
24202 void globalsymbol (void) {} void localsymbol (void) {}
24211 if ac_fn_c_try_link "$LINENO"; then :
24212 libjava_cv_anon_version_script=yes
24214 rm -f core conftest.err conftest.$ac_objext \
24215 conftest$ac_exeext conftest.$ac_ext
24216 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24220 $as_echo "$libjava_cv_anon_version_script" >&6; }
24221 if test "$libjava_cv_anon_version_script" = yes; then
24222 ANONVERSCRIPT_TRUE=
24223 ANONVERSCRIPT_FALSE='#'
24225 ANONVERSCRIPT_TRUE='#'
24226 ANONVERSCRIPT_FALSE=
24230 # Check if linker supports static linking on a per library basis
24231 LD_START_STATIC_SPEC=
24232 LD_FINISH_STATIC_SPEC=
24233 if $LD --help 2>&1 | grep -q -e -call_shared ; then
24234 if $LD --help 2>&1 | grep -q -e -non_shared ; then
24235 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24236 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24242 here=`${PWDCMD-pwd}`
24245 # We get this from the environment.
24249 # Check whether --with-python-dir was given.
24250 if test "${with_python_dir+set}" = set; then :
24251 withval=$with_python_dir; with_python_dir=$withval
24257 if test "x${with_python_dir}" = "x"
24259 # Needed for installing Python modules during make install.
24260 python_mod_dir="\${prefix}/share/python"
24261 # Needed for substituting into aot-compile*
24262 python_mod_dir_expanded="${prefix}/share/python"
24264 python_mod_dir="\${prefix}${with_python_dir}"
24265 python_mod_dir_expanded="${prefix}${with_python_dir}"
24267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24268 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24272 # needed for aot-compile-rpm
24276 # Check whether --enable-aot-compile-rpm was given.
24277 if test "${enable_aot_compile_rpm+set}" = set; then :
24278 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24279 yes) AOT_RPM_ENABLED=yes ;;
24280 no) AOT_RPM_ENABLED=no ;;
24281 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24288 if test "x${AOT_RPM_ENABLED}" = xyes; then
24289 INSTALL_AOT_RPM_TRUE=
24290 INSTALL_AOT_RPM_FALSE='#'
24292 INSTALL_AOT_RPM_TRUE='#'
24293 INSTALL_AOT_RPM_FALSE=
24297 # Check whether --enable-java-home was given.
24298 if test "${enable_java_home+set}" = set; then :
24299 enableval=$enable_java_home; case "${enableval}" in
24300 yes) JAVA_HOME_ENABLED=yes ;;
24301 no) JAVA_HOME_ENABLED=no ;;
24302 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24305 JAVA_HOME_ENABLED=no
24309 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24310 CREATE_JAVA_HOME_TRUE=
24311 CREATE_JAVA_HOME_FALSE='#'
24313 CREATE_JAVA_HOME_TRUE='#'
24314 CREATE_JAVA_HOME_FALSE=
24318 # Only do these checks if java-home above is enabled.
24319 if test "x${JAVA_HOME_ENABLED}" = xyes
24323 # Check whether --with-gcc-suffix was given.
24324 if test "${with_gcc_suffix+set}" = set; then :
24325 withval=$with_gcc_suffix; gcc_suffix=$withval
24330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24331 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24335 # Check whether --with-arch-directory was given.
24336 if test "${with_arch_directory+set}" = set; then :
24337 withval=$with_arch_directory; host_cpu=$withval
24344 # Check whether --with-os-directory was given.
24345 if test "${with_os_directory+set}" = set; then :
24346 withval=$with_os_directory; host_os=$withval
24353 # Check whether --with-origin-name was given.
24354 if test "${with_origin_name+set}" = set; then :
24355 withval=$with_origin_name; origin_name=$withval
24357 origin_name=gcj${gcc_suffix}
24360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24361 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24364 # Check whether --with-arch-suffix was given.
24365 if test "${with_arch_suffix+set}" = set; then :
24366 withval=$with_arch_suffix; arch_suffix=$withval
24371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24372 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24375 # Check whether --with-jvm-root-dir was given.
24376 if test "${with_jvm_root_dir+set}" = set; then :
24377 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24379 jvm_root_dir="\${prefix}/lib/jvm"
24382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24383 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24386 # Check whether --with-jvm-jar-dir was given.
24387 if test "${with_jvm_jar_dir+set}" = set; then :
24388 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24390 jvm_jar_dir=\${prefix}/lib/jvm-exports
24393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24394 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24401 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24404 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24405 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24407 JVM_ROOT_DIR=${jvm_root_dir}
24409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24410 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24412 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24415 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24417 JVM_JAR_DIR=${jvm_jar_dir}
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24420 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24431 SDK_BIN_DIR=${jvm_root_dir}/bin
24433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24434 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24436 SDK_LIB_DIR=${jvm_root_dir}/lib
24438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24439 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24441 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24444 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24446 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24449 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24451 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24454 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24456 # Find gcj prefix using gcj found in PATH.
24457 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24459 # Where do the gcj binaries live?
24460 # For jhbuild based builds, they all live in a sibling of bin called
24461 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24462 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24465 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24468 $as_echo "host is ${host}" >&6; }
24469 if test "x${host_cpu}" = "x"
24472 *-mingw* | *-cygwin*)
24474 i486-* | i586-* | i686-*)
24479 host_cpu=${host_cpu};;
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24483 $as_echo "arch directory: ${host_cpu}" >&6; }
24487 if test "x${host_os}" = "x"
24490 *-mingw* | *-cygwin*)
24495 host_os=${host_os};;
24498 echo os directory: ${host_os}
24502 # make an expanded $libdir, for substituting into
24503 # scripts (and other non-Makefile things).
24505 if test "x${exec_prefix}" = "xNONE"
24507 lib_exec_prefix=$prefix
24509 lib_exec_prefix=$exec_prefix
24511 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24515 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"
24518 if test ${multilib} = yes; then
24519 multilib_arg="--enable-multilib"
24524 ac_config_files="$ac_config_files scripts/jar"
24526 cat >confcache <<\_ACEOF
24527 # This file is a shell script that caches the results of configure
24528 # tests run on this system so they can be shared between configure
24529 # scripts and configure runs, see configure's option --config-cache.
24530 # It is not useful on other systems. If it contains results you don't
24531 # want to keep, you may remove or edit it.
24533 # config.status only pays attention to the cache file if you give it
24534 # the --recheck option to rerun configure.
24536 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24537 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24538 # following values.
24542 # The following way of writing the cache mishandles newlines in values,
24543 # but we know of no workaround that is simple, portable, and efficient.
24544 # So, we kill variables containing newlines.
24545 # Ultrix sh set writes to stderr and can't be redirected directly,
24546 # and sets the high bit in the cache file unless we assign to the vars.
24548 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24549 eval ac_val=\$$ac_var
24553 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24554 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24557 _ | IFS | as_nl) ;; #(
24558 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24559 *) { eval $ac_var=; unset $ac_var;} ;;
24565 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24566 *${as_nl}ac_space=\ *)
24567 # `set' does not quote correctly, so add quotes: double-quote
24568 # substitution turns \\\\ into \\, and sed turns \\ into \.
24571 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24574 # `set' quotes correctly as required by POSIX, so do not add quotes.
24575 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24584 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24586 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24588 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24589 if test -w "$cache_file"; then
24590 test "x$cache_file" != "x/dev/null" &&
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24592 $as_echo "$as_me: updating cache $cache_file" >&6;}
24593 cat confcache >$cache_file
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24596 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24601 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24602 # Let make expand exec_prefix.
24603 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24605 DEFS=-DHAVE_CONFIG_H
24609 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24610 # 1. Remove the extension, and $U if already installed.
24611 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24612 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24613 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24614 # will be set to the directory where LIBOBJS objects are built.
24615 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24616 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24618 LIBOBJS=$ac_libobjs
24620 LTLIBOBJS=$ac_ltlibobjs
24623 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24624 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24627 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24628 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24631 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24632 as_fn_error "conditional \"AMDEP\" was never defined.
24633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24635 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24636 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24639 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24640 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24641 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24643 if test -n "$EXEEXT"; then
24645 am__EXEEXT_FALSE='#'
24647 am__EXEEXT_TRUE='#'
24651 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24652 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24653 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24655 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
24656 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
24657 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24659 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
24660 as_fn_error "conditional \"XLIB_AWT\" was never defined.
24661 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24663 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
24664 as_fn_error "conditional \"X_AWT\" was never defined.
24665 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24667 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24668 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24671 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24672 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24675 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
24676 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
24677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24679 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
24680 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
24681 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24683 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
24684 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
24685 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24687 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
24688 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
24689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24691 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
24692 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
24693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24695 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
24696 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
24697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24699 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
24700 as_fn_error "conditional \"INTERPRETER\" was never defined.
24701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24703 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
24704 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
24705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24707 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
24708 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
24709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24711 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
24712 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
24713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24715 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
24716 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
24717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24719 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
24720 as_fn_error "conditional \"USING_NOGC\" was never defined.
24721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24723 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
24724 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
24725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24727 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
24728 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
24729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24731 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
24732 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
24733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24735 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
24736 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
24737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24739 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
24740 as_fn_error "conditional \"USING_GCC\" was never defined.
24741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24743 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24744 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24748 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
24749 as_fn_error "conditional \"NATIVE\" was never defined.
24750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24752 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
24753 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
24754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24756 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
24757 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
24758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24760 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24761 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24764 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
24765 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
24766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24768 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
24769 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
24770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24772 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
24773 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
24774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24777 : ${CONFIG_STATUS=./config.status}
24779 ac_clean_files_save=$ac_clean_files
24780 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24782 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24784 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24786 # Generated by $as_me.
24787 # Run this file to recreate the current configuration.
24788 # Compiler output produced by configure, useful for debugging
24789 # configure, is in config.log if it exists.
24792 ac_cs_recheck=false
24795 SHELL=\${CONFIG_SHELL-$SHELL}
24798 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24799 ## -------------------- ##
24800 ## M4sh Initialization. ##
24801 ## -------------------- ##
24803 # Be more Bourne compatible
24804 DUALCASE=1; export DUALCASE # for MKS sh
24805 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24808 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24809 # is contrary to our usage. Disable this feature.
24810 alias -g '${1+"$@"}'='"$@"'
24811 setopt NO_GLOB_SUBST
24813 case `(set -o) 2>/dev/null` in #(
24825 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24826 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24827 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24828 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24829 # Prefer a ksh shell builtin over an external printf program on Solaris,
24830 # but without wasting forks for bash or zsh.
24831 if test -z "$BASH_VERSION$ZSH_VERSION" \
24832 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24833 as_echo='print -r --'
24834 as_echo_n='print -rn --'
24835 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24836 as_echo='printf %s\n'
24837 as_echo_n='printf %s'
24839 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24840 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24841 as_echo_n='/usr/ucb/echo -n'
24843 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24844 as_echo_n_body='eval
24848 expr "X$arg" : "X\\(.*\\)$as_nl";
24849 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24851 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24853 export as_echo_n_body
24854 as_echo_n='sh -c $as_echo_n_body as_echo'
24856 export as_echo_body
24857 as_echo='sh -c $as_echo_body as_echo'
24860 # The user is always right.
24861 if test "${PATH_SEPARATOR+set}" != set; then
24863 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24864 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24871 # We need space, tab and new line, in precisely that order. Quoting is
24872 # there to prevent editors from complaining about space-tab.
24873 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24874 # splitting by setting IFS to empty value.)
24877 # Find who we are. Look in the path if we contain no directory separator.
24879 *[\\/]* ) as_myself=$0 ;;
24880 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24881 for as_dir in $PATH
24884 test -z "$as_dir" && as_dir=.
24885 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24891 # We did not find ourselves, most probably we were run as `sh COMMAND'
24892 # in which case we are not to be found in the path.
24893 if test "x$as_myself" = x; then
24896 if test ! -f "$as_myself"; then
24897 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24901 # Unset variables that we do not need and which cause bugs (e.g. in
24902 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24903 # suppresses any "Segmentation fault" message there. '((' could
24904 # trigger a bug in pdksh 5.2.14.
24905 for as_var in BASH_ENV ENV MAIL MAILPATH
24906 do eval test x\${$as_var+set} = xset \
24907 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24920 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24923 # as_fn_error ERROR [LINENO LOG_FD]
24924 # ---------------------------------
24925 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24926 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24927 # script with status $?, using 1 if that was 0.
24930 as_status=$?; test $as_status -eq 0 && as_status=1
24932 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24933 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24935 $as_echo "$as_me: error: $1" >&2
24936 as_fn_exit $as_status
24940 # as_fn_set_status STATUS
24941 # -----------------------
24942 # Set $? to STATUS, without forking.
24943 as_fn_set_status ()
24946 } # as_fn_set_status
24948 # as_fn_exit STATUS
24949 # -----------------
24950 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24954 as_fn_set_status $1
24960 # Portably unset VAR.
24963 { eval $1=; unset $1;}
24965 as_unset=as_fn_unset
24966 # as_fn_append VAR VALUE
24967 # ----------------------
24968 # Append the text in VALUE to the end of the definition contained in VAR. Take
24969 # advantage of any shell optimizations that allow amortized linear growth over
24970 # repeated appends, instead of the typical quadratic growth present in naive
24972 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24973 eval 'as_fn_append ()
24984 # as_fn_arith ARG...
24985 # ------------------
24986 # Perform arithmetic evaluation on the ARGs, and store the result in the
24987 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24988 # must be portable across $(()) and expr.
24989 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24990 eval 'as_fn_arith ()
24997 as_val=`expr "$@" || test $? -eq 1`
25002 if expr a : '\(a\)' >/dev/null 2>&1 &&
25003 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25009 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25010 as_basename=basename
25015 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25021 as_me=`$as_basename -- "$0" ||
25022 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25023 X"$0" : 'X\(//\)$' \| \
25024 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25026 sed '/^.*\/\([^/][^/]*\)\/*$/{
25040 # Avoid depending upon Character Ranges.
25041 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25042 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25043 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25044 as_cr_digits='0123456789'
25045 as_cr_alnum=$as_cr_Letters$as_cr_digits
25047 ECHO_C= ECHO_N= ECHO_T=
25048 case `echo -n x` in #(((((
25050 case `echo 'xy\c'` in
25051 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25053 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25060 rm -f conf$$ conf$$.exe conf$$.file
25061 if test -d conf$$.dir; then
25062 rm -f conf$$.dir/conf$$.file
25065 mkdir conf$$.dir 2>/dev/null
25067 if (echo >conf$$.file) 2>/dev/null; then
25068 if ln -s conf$$.file conf$$ 2>/dev/null; then
25070 # ... but there are two gotchas:
25071 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25072 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25073 # In both cases, we have to default to `cp -p'.
25074 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25076 elif ln conf$$.file conf$$ 2>/dev/null; then
25084 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25085 rmdir conf$$.dir 2>/dev/null
25090 # Create "$as_dir" as a directory, including parents if necessary.
25095 -*) as_dir=./$as_dir;;
25097 test -d "$as_dir" || eval $as_mkdir_p || {
25101 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25102 *) as_qdir=$as_dir;;
25104 as_dirs="'$as_qdir' $as_dirs"
25105 as_dir=`$as_dirname -- "$as_dir" ||
25106 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25107 X"$as_dir" : 'X\(//\)[^/]' \| \
25108 X"$as_dir" : 'X\(//\)$' \| \
25109 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25110 $as_echo X"$as_dir" |
25111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25115 /^X\(\/\/\)[^/].*/{
25128 test -d "$as_dir" && break
25130 test -z "$as_dirs" || eval "mkdir $as_dirs"
25131 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25135 if mkdir -p . 2>/dev/null; then
25136 as_mkdir_p='mkdir -p "$as_dir"'
25138 test -d ./-p && rmdir ./-p
25142 if test -x / >/dev/null 2>&1; then
25143 as_test_x='test -x'
25145 if ls -dL / >/dev/null 2>&1; then
25152 if test -d "$1"; then
25158 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25159 ???[sx]*):;;*)false;;esac;fi
25163 as_executable_p=$as_test_x
25165 # Sed expression to map a string onto a valid CPP name.
25166 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25168 # Sed expression to map a string onto a valid variable name.
25169 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25173 ## ----------------------------------- ##
25174 ## Main body of $CONFIG_STATUS script. ##
25175 ## ----------------------------------- ##
25177 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25180 # Save the log message, to keep $0 and so on meaningful, and to
25181 # report actual input values of CONFIG_FILES etc. instead of their
25182 # values after options handling.
25184 This file was extended by libjava $as_me version-unused, which was
25185 generated by GNU Autoconf 2.64. Invocation command line was
25187 CONFIG_FILES = $CONFIG_FILES
25188 CONFIG_HEADERS = $CONFIG_HEADERS
25189 CONFIG_LINKS = $CONFIG_LINKS
25190 CONFIG_COMMANDS = $CONFIG_COMMANDS
25193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25198 case $ac_config_files in *"
25199 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25202 case $ac_config_headers in *"
25203 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25208 # Files that config.status was made for.
25209 config_files="$ac_config_files"
25210 config_headers="$ac_config_headers"
25211 config_links="$ac_config_links"
25212 config_commands="$ac_config_commands"
25216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25218 \`$as_me' instantiates files and other configuration actions
25219 from templates according to the current configuration. Unless the files
25220 and actions are specified as TAGs, all are instantiated by default.
25222 Usage: $0 [OPTION]... [TAG]...
25224 -h, --help print this help, then exit
25225 -V, --version print version number and configuration settings, then exit
25226 -q, --quiet, --silent
25227 do not print progress messages
25228 -d, --debug don't remove temporary files
25229 --recheck update $as_me by reconfiguring in the same conditions
25230 --file=FILE[:TEMPLATE]
25231 instantiate the configuration file FILE
25232 --header=FILE[:TEMPLATE]
25233 instantiate the configuration header FILE
25235 Configuration files:
25238 Configuration headers:
25241 Configuration links:
25244 Configuration commands:
25247 Report bugs to the package provider."
25250 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25252 libjava config.status version-unused
25253 configured by $0, generated by GNU Autoconf 2.64,
25254 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25256 Copyright (C) 2009 Free Software Foundation, Inc.
25257 This config.status script is free software; the Free Software Foundation
25258 gives unlimited permission to copy, distribute and modify it."
25265 test -n "\$AWK" || AWK=awk
25268 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25269 # The default lists apply if the user does not specify any file.
25275 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25276 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25287 # Handling of the options.
25288 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25290 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25291 $as_echo "$ac_cs_version"; exit ;;
25292 --debug | --debu | --deb | --de | --d | -d )
25294 --file | --fil | --fi | --f )
25297 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25299 as_fn_append CONFIG_FILES " '$ac_optarg'"
25300 ac_need_defaults=false;;
25301 --header | --heade | --head | --hea )
25304 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25306 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25307 ac_need_defaults=false;;
25309 # Conflict between --help and --header
25310 as_fn_error "ambiguous option: \`$1'
25311 Try \`$0 --help' for more information.";;
25312 --help | --hel | -h )
25313 $as_echo "$ac_cs_usage"; exit ;;
25314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25315 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25318 # This is an error.
25319 -*) as_fn_error "unrecognized option: \`$1'
25320 Try \`$0 --help' for more information." ;;
25322 *) as_fn_append ac_config_targets " $1"
25323 ac_need_defaults=false ;;
25329 ac_configure_extra_args=
25331 if $ac_cs_silent; then
25333 ac_configure_extra_args="$ac_configure_extra_args --silent"
25337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25338 if \$ac_cs_recheck; then
25339 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25341 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25342 CONFIG_SHELL='$SHELL'
25343 export CONFIG_SHELL
25348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25352 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25353 ## Running $as_me. ##
25359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25367 with_multisubdir="$with_multisubdir"
25368 with_multisrctop="$with_multisrctop"
25369 with_target_subdir="$with_target_subdir"
25370 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25371 multi_basedir="$multi_basedir"
25372 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25375 GFORTRAN="$GFORTRAN"
25377 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25380 # The HP-UX ksh and POSIX shell print the target directory to stdout
25381 # if CDPATH is set.
25382 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25384 sed_quote_subst='$sed_quote_subst'
25385 double_quote_subst='$double_quote_subst'
25386 delay_variable_subst='$delay_variable_subst'
25387 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25388 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25389 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25390 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25391 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25392 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
25393 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
25394 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
25395 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
25396 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
25397 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
25398 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
25399 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
25400 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
25401 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
25402 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
25403 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
25404 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
25405 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
25406 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
25407 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
25408 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
25409 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
25410 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
25411 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
25412 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
25413 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
25414 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25415 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
25416 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
25417 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
25418 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
25419 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25420 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
25421 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
25422 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25423 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25424 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25425 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
25426 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25427 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
25428 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
25429 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
25430 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
25431 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
25432 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25433 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
25434 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
25435 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
25436 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
25437 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
25438 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
25439 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
25440 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
25441 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
25442 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
25443 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
25444 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
25445 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
25446 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
25447 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
25448 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
25449 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25450 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25451 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
25452 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
25453 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25454 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25455 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
25456 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25457 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25458 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25459 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25460 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25461 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25462 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
25463 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25464 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25465 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25466 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
25467 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
25468 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
25469 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
25470 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
25471 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25472 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
25473 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
25474 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
25475 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
25476 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
25477 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25478 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25479 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25480 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25481 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
25482 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
25483 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25484 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
25485 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
25486 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25487 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25488 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
25489 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25490 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
25491 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25492 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25493 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25494 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25495 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
25496 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
25497 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25498 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25499 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
25500 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
25501 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
25502 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
25503 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
25504 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
25505 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
25506 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25507 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25508 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
25509 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
25510 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
25511 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25512 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25513 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25514 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25515 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25516 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25517 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25518 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25519 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25520 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25521 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25522 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25523 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25524 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25525 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25526 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25527 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25528 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25529 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25530 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25531 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25532 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25533 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25534 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25535 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25536 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25537 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25538 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25539 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25540 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25541 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25542 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25543 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25544 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25545 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25546 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25547 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25548 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25549 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25550 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25551 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25552 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25553 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25554 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25555 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25556 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25557 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25558 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25559 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25560 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25561 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25562 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25563 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25564 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25565 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25566 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25567 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25568 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25569 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25570 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25571 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25572 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25573 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25574 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25575 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25576 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25577 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25578 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25579 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25580 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25581 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25582 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25583 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25584 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25585 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25586 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25587 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25588 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25589 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25590 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25591 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25592 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25593 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25594 compiler_lib_search_dirs_GCJ='`$ECHO "X$compiler_lib_search_dirs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25595 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25596 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25597 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25598 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25599 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25600 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25601 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25602 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25603 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25604 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25607 LTCFLAGS='$LTCFLAGS'
25608 compiler='$compiler_DEFAULT'
25610 # Quote evaled strings.
25622 deplibs_check_method \
25631 lt_cv_sys_global_symbol_pipe \
25632 lt_cv_sys_global_symbol_to_cdecl \
25633 lt_cv_sys_global_symbol_to_c_name_address \
25634 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25637 lt_prog_compiler_no_builtin_flag \
25638 lt_prog_compiler_wl \
25639 lt_prog_compiler_pic \
25640 lt_prog_compiler_static \
25641 lt_cv_prog_compiler_c_o \
25649 export_dynamic_flag_spec \
25650 whole_archive_flag_spec \
25651 compiler_needs_object \
25653 allow_undefined_flag \
25654 no_undefined_flag \
25655 hardcode_libdir_flag_spec \
25656 hardcode_libdir_flag_spec_ld \
25657 hardcode_libdir_separator \
25662 variables_saved_for_relink \
25664 library_names_spec \
25669 compiler_lib_search_dirs \
25674 compiler_lib_search_path \
25679 lt_prog_compiler_no_builtin_flag_CXX \
25680 lt_prog_compiler_no_builtin_flag_GCJ \
25681 lt_prog_compiler_wl_CXX \
25682 lt_prog_compiler_wl_GCJ \
25683 lt_prog_compiler_pic_CXX \
25684 lt_prog_compiler_pic_GCJ \
25685 lt_prog_compiler_static_CXX \
25686 lt_prog_compiler_static_GCJ \
25687 lt_cv_prog_compiler_c_o_CXX \
25688 lt_cv_prog_compiler_c_o_GCJ \
25689 export_dynamic_flag_spec_CXX \
25690 export_dynamic_flag_spec_GCJ \
25691 whole_archive_flag_spec_CXX \
25692 whole_archive_flag_spec_GCJ \
25693 compiler_needs_object_CXX \
25694 compiler_needs_object_GCJ \
25697 allow_undefined_flag_CXX \
25698 allow_undefined_flag_GCJ \
25699 no_undefined_flag_CXX \
25700 no_undefined_flag_GCJ \
25701 hardcode_libdir_flag_spec_CXX \
25702 hardcode_libdir_flag_spec_GCJ \
25703 hardcode_libdir_flag_spec_ld_CXX \
25704 hardcode_libdir_flag_spec_ld_GCJ \
25705 hardcode_libdir_separator_CXX \
25706 hardcode_libdir_separator_GCJ \
25707 fix_srcfile_path_CXX \
25708 fix_srcfile_path_GCJ \
25709 exclude_expsyms_CXX \
25710 exclude_expsyms_GCJ \
25711 include_expsyms_CXX \
25712 include_expsyms_GCJ \
25713 file_list_spec_CXX \
25714 file_list_spec_GCJ \
25715 compiler_lib_search_dirs_CXX \
25716 compiler_lib_search_dirs_GCJ \
25717 predep_objects_CXX \
25718 predep_objects_GCJ \
25719 postdep_objects_CXX \
25720 postdep_objects_GCJ \
25725 compiler_lib_search_path_CXX \
25726 compiler_lib_search_path_GCJ; do
25727 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25728 *[\\\\\\\`\\"\\\$]*)
25729 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25732 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25737 # Double-quote double-evaled strings.
25738 for var in reload_cmds \
25739 old_postinstall_cmds \
25740 old_postuninstall_cmds \
25742 extract_expsyms_cmds \
25743 old_archive_from_new_cmds \
25744 old_archive_from_expsyms_cmds \
25746 archive_expsym_cmds \
25748 module_expsym_cmds \
25749 export_symbols_cmds \
25752 postuninstall_cmds \
25754 sys_lib_search_path_spec \
25755 sys_lib_dlsearch_path_spec \
25756 old_archive_cmds_CXX \
25757 old_archive_cmds_GCJ \
25758 old_archive_from_new_cmds_CXX \
25759 old_archive_from_new_cmds_GCJ \
25760 old_archive_from_expsyms_cmds_CXX \
25761 old_archive_from_expsyms_cmds_GCJ \
25764 archive_expsym_cmds_CXX \
25765 archive_expsym_cmds_GCJ \
25768 module_expsym_cmds_CXX \
25769 module_expsym_cmds_GCJ \
25770 export_symbols_cmds_CXX \
25771 export_symbols_cmds_GCJ \
25773 prelink_cmds_GCJ; do
25774 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25775 *[\\\\\\\`\\"\\\$]*)
25776 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25779 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25784 # Fix-up fallback echo if it was mangled by the above quoting rules.
25786 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
25790 ac_aux_dir='$ac_aux_dir'
25791 xsi_shell='$xsi_shell'
25792 lt_shell_append='$lt_shell_append'
25794 # See if we are running on zsh, and set the options which allow our
25795 # commands through without removal of \ escapes INIT.
25796 if test -n "\${ZSH_VERSION+set}" ; then
25797 setopt NO_GLOB_SUBST
25803 TIMESTAMP='$TIMESTAMP'
25816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25818 # Handling of arguments.
25819 for ac_config_target in $ac_config_targets
25821 case $ac_config_target in
25822 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25823 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25824 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25825 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
25826 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25827 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
25828 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
25829 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
25830 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
25831 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
25832 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
25833 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
25834 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
25835 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
25836 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
25837 "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" ;;
25838 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
25839 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
25840 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
25841 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
25842 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
25843 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
25844 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
25845 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25846 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
25847 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
25848 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
25849 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
25850 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25851 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
25852 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
25853 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
25854 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
25855 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
25856 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
25857 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
25859 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25864 # If the user did not use the arguments to specify the items to instantiate,
25865 # then the envvar interface is used. Set only those that are not.
25866 # We use the long form for the default assignment because of an extremely
25867 # bizarre bug on SunOS 4.1.3.
25868 if $ac_need_defaults; then
25869 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25870 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25871 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25872 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25875 # Have a temporary directory for convenience. Make it in the build tree
25876 # simply because there is no reason against having it here, and in addition,
25877 # creating and moving files from /tmp can sometimes cause problems.
25878 # Hook for its removal unless debugging.
25879 # Note that there is a small window in which the directory will not be cleaned:
25880 # after its creation but before its name has been assigned to `$tmp'.
25884 trap 'exit_status=$?
25885 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25887 trap 'as_fn_exit 1' 1 2 13 15
25889 # Create a (secure) tmp directory for tmp files.
25892 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25893 test -n "$tmp" && test -d "$tmp"
25896 tmp=./conf$$-$RANDOM
25897 (umask 077 && mkdir "$tmp")
25898 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25900 # Set up the scripts for CONFIG_FILES section.
25901 # No need to generate them if there are no CONFIG_FILES.
25902 # This happens for instance with `./config.status config.h'.
25903 if test -n "$CONFIG_FILES"; then
25906 ac_cr=`echo X | tr X '\015'`
25907 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25908 # But we know of no other shell where ac_cr would be empty at this
25909 # point, so we can use a bashism as a fallback.
25910 if test "x$ac_cr" = x; then
25911 eval ac_cr=\$\'\\r\'
25913 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25914 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25917 ac_cs_awk_cr=$ac_cr
25920 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25925 echo "cat >conf$$subs.awk <<_ACEOF" &&
25926 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25928 } >conf$$subs.sh ||
25929 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25930 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25932 for ac_last_try in false false false false false :; do
25933 . ./conf$$subs.sh ||
25934 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25936 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25937 if test $ac_delim_n = $ac_delim_num; then
25939 elif $ac_last_try; then
25940 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25942 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25945 rm -f conf$$subs.sh
25947 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25948 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25952 s/^/S["/; s/!.*/"]=/
25962 s/\(.\{148\}\).*/\1/
25964 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25969 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25976 s/\(.\{148\}\).*/\1/
25978 s/["\\]/\\&/g; s/^/"/; s/$/"/
25982 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25987 ' <conf$$subs.awk | sed '
25992 ' >>$CONFIG_STATUS || ac_write_fail=1
25993 rm -f conf$$subs.awk
25994 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25996 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
25997 for (key in S) S_is_set[key] = 1
26003 nfields = split(line, field, "@")
26005 len = length(field[1])
26006 for (i = 2; i < nfields; i++) {
26008 keylen = length(key)
26009 if (S_is_set[key]) {
26011 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26012 len += length(value) + length(field[++i])
26023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26024 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26025 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26028 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26029 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26032 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26033 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26034 # trailing colons and then remove the whole line if VPATH becomes empty
26035 # (actually we leave an empty line to preserve line numbers).
26036 if test "x$srcdir" = x.; then
26037 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26038 s/:*\$(srcdir):*/:/
26039 s/:*\${srcdir}:*/:/
26041 s/^\([^=]*=[ ]*\):*/\1/
26047 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26048 fi # test -n "$CONFIG_FILES"
26050 # Set up the scripts for CONFIG_HEADERS section.
26051 # No need to generate them if there are no CONFIG_HEADERS.
26052 # This happens for instance with `./config.status Makefile'.
26053 if test -n "$CONFIG_HEADERS"; then
26054 cat >"$tmp/defines.awk" <<\_ACAWK ||
26058 # Transform confdefs.h into an awk script `defines.awk', embedded as
26059 # here-document in config.status, that substitutes the proper values into
26060 # config.h.in to produce config.h.
26062 # Create a delimiter string that does not exist in confdefs.h, to ease
26063 # handling of long lines.
26065 for ac_last_try in false false :; do
26066 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26067 if test -z "$ac_t"; then
26069 elif $ac_last_try; then
26070 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26076 # For the awk script, D is an array of macro values keyed by name,
26077 # likewise P contains macro parameters if any. Preserve backslash
26078 # newline sequences.
26080 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26082 s/.\{148\}/&'"$ac_delim"'/g
26085 s/^[ ]*#[ ]*define[ ][ ]*/ /
26092 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26094 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26098 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26099 D["\1"]=" \3\\\\\\n"\\/p
26101 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26106 s/.\{148\}/&'"$ac_delim"'/g
26111 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26114 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26116 ' <confdefs.h | sed '
26117 s/'"$ac_delim"'/"\\\
26118 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26121 for (key in D) D_is_set[key] = 1
26124 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26126 split(line, arg, " ")
26127 if (arg[1] == "#") {
26131 defundef = substr(arg[1], 2)
26134 split(mac1, mac2, "(") #)
26136 prefix = substr(line, 1, index(line, defundef) - 1)
26137 if (D_is_set[macro]) {
26138 # Preserve the white space surrounding the "#".
26139 print prefix "define", macro P[macro] D[macro]
26142 # Replace #undef with comments. This is necessary, for example,
26143 # in the case of _POSIX_SOURCE, which is predefined and required
26144 # on some systems where configure will not decide to define it.
26145 if (defundef == "undef") {
26146 print "/*", prefix defundef, macro, "*/"
26154 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26155 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26156 fi # test -n "$CONFIG_HEADERS"
26159 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26164 :[FHLC]) ac_mode=$ac_tag; continue;;
26166 case $ac_mode$ac_tag in
26168 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26169 :[FH]-) ac_tag=-:-;;
26170 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26187 -) ac_f="$tmp/stdin";;
26188 *) # Look for the file first in the build tree, then in the source tree
26189 # (if the path is not absolute). The absolute path cannot be DOS-style,
26190 # because $ac_f cannot contain `:'.
26194 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26196 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26198 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26199 as_fn_append ac_file_inputs " '$ac_f'"
26202 # Let's still pretend it is `configure' which instantiates (i.e., don't
26203 # use $as_me), people would be surprised to read:
26204 # /* config.h. Generated by config.status. */
26205 configure_input='Generated from '`
26206 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26208 if test x"$ac_file" != x-; then
26209 configure_input="$ac_file. $configure_input"
26210 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26211 $as_echo "$as_me: creating $ac_file" >&6;}
26213 # Neutralize special characters interpreted by sed in replacement strings.
26214 case $configure_input in #(
26215 *\&* | *\|* | *\\* )
26216 ac_sed_conf_input=`$as_echo "$configure_input" |
26217 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26218 *) ac_sed_conf_input=$configure_input;;
26222 *:-:* | *:-) cat >"$tmp/stdin" \
26223 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26228 ac_dir=`$as_dirname -- "$ac_file" ||
26229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26230 X"$ac_file" : 'X\(//\)[^/]' \| \
26231 X"$ac_file" : 'X\(//\)$' \| \
26232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26233 $as_echo X"$ac_file" |
26234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26238 /^X\(\/\/\)[^/].*/{
26251 as_dir="$ac_dir"; as_fn_mkdir_p
26255 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26257 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26258 # A ".." for each directory in $ac_dir_suffix.
26259 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26260 case $ac_top_builddir_sub in
26261 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26262 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26265 ac_abs_top_builddir=$ac_pwd
26266 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26267 # for backward compatibility:
26268 ac_top_builddir=$ac_top_build_prefix
26271 .) # We are building in place.
26273 ac_top_srcdir=$ac_top_builddir_sub
26274 ac_abs_top_srcdir=$ac_pwd ;;
26275 [\\/]* | ?:[\\/]* ) # Absolute name.
26276 ac_srcdir=$srcdir$ac_dir_suffix;
26277 ac_top_srcdir=$srcdir
26278 ac_abs_top_srcdir=$srcdir ;;
26279 *) # Relative name.
26280 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26281 ac_top_srcdir=$ac_top_build_prefix$srcdir
26282 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26284 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26294 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26295 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26297 ac_MKDIR_P=$MKDIR_P
26299 [\\/$]* | ?:[\\/]* ) ;;
26300 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26304 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26305 # If the template does not know about datarootdir, expand it.
26306 # FIXME: This hack should be removed a few years after 2.60.
26307 ac_datarootdir_hack=; ac_datarootdir_seen=
26318 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26319 *datarootdir*) ac_datarootdir_seen=yes;;
26320 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26322 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26325 ac_datarootdir_hack='
26326 s&@datadir@&$datadir&g
26327 s&@docdir@&$docdir&g
26328 s&@infodir@&$infodir&g
26329 s&@localedir@&$localedir&g
26330 s&@mandir@&$mandir&g
26331 s&\\\${datarootdir}&$datarootdir&g' ;;
26335 # Neutralize VPATH when `$srcdir' = `.'.
26336 # Shell code in configure.ac might set extrasub.
26337 # FIXME: do we really want to maintain this feature?
26338 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26339 ac_sed_extra="$ac_vpsub
26342 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26344 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26345 s|@configure_input@|$ac_sed_conf_input|;t t
26346 s&@top_builddir@&$ac_top_builddir_sub&;t t
26347 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26348 s&@srcdir@&$ac_srcdir&;t t
26349 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26350 s&@top_srcdir@&$ac_top_srcdir&;t t
26351 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26352 s&@builddir@&$ac_builddir&;t t
26353 s&@abs_builddir@&$ac_abs_builddir&;t t
26354 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26355 s&@INSTALL@&$ac_INSTALL&;t t
26356 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26357 $ac_datarootdir_hack
26359 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26360 || as_fn_error "could not create $ac_file" "$LINENO" 5
26362 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26363 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26364 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26366 which seems to be undefined. Please make sure it is defined." >&5
26367 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26368 which seems to be undefined. Please make sure it is defined." >&2;}
26372 -) cat "$tmp/out" && rm -f "$tmp/out";;
26373 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26375 || as_fn_error "could not create $ac_file" "$LINENO" 5
26381 if test x"$ac_file" != x-; then
26383 $as_echo "/* $configure_input */" \
26384 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26385 } >"$tmp/config.h" \
26386 || as_fn_error "could not create $ac_file" "$LINENO" 5
26387 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26389 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26392 mv "$tmp/config.h" "$ac_file" \
26393 || as_fn_error "could not create $ac_file" "$LINENO" 5
26396 $as_echo "/* $configure_input */" \
26397 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26398 || as_fn_error "could not create -" "$LINENO" 5
26400 # Compute "$ac_file"'s index in $config_headers.
26403 for _am_header in $config_headers :; do
26404 case $_am_header in
26405 $_am_arg | $_am_arg:* )
26408 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26411 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26412 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26413 X"$_am_arg" : 'X\(//\)[^/]' \| \
26414 X"$_am_arg" : 'X\(//\)$' \| \
26415 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26416 $as_echo X"$_am_arg" |
26417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26421 /^X\(\/\/\)[^/].*/{
26433 s/.*/./; q'`/stamp-h$_am_stamp_count
26440 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26443 # Prefer the file from the source tree if names are identical.
26444 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26445 ac_source=$srcdir/$ac_source
26448 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26449 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26451 if test ! -r "$ac_source"; then
26452 as_fn_error "$ac_source: file not found" "$LINENO" 5
26456 # Try a relative symlink, then a hard link, then a copy.
26458 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26459 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26461 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26462 ln "$ac_source" "$ac_file" 2>/dev/null ||
26463 cp -p "$ac_source" "$ac_file" ||
26464 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26467 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26468 $as_echo "$as_me: executing $ac_file commands" >&6;}
26473 case $ac_file$ac_mode in
26475 # Only add multilib support code if we just rebuilt the top-level
26477 case " $CONFIG_FILES " in
26479 ac_file=Makefile . ${multi_basedir}/config-ml.in
26482 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26483 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26484 # are listed without --file. Let's play safe and only enable the eval
26485 # if we detect the quoting.
26486 case $CONFIG_FILES in
26487 *\'*) eval set x "$CONFIG_FILES" ;;
26488 *) set x $CONFIG_FILES ;;
26493 # Strip MF so we end up with the name of the file.
26494 mf=`echo "$mf" | sed -e 's/:.*$//'`
26495 # Check whether this is an Automake generated Makefile or not.
26496 # We used to match only the files named `Makefile.in', but
26497 # some people rename them; so instead we look at the file content.
26498 # Grep'ing the first line is not enough: some people post-process
26499 # each Makefile.in and add a new line on top of each file to say so.
26500 # Grep'ing the whole file is not good either: AIX grep has a line
26501 # limit of 2048, but all sed's we know have understand at least 4000.
26502 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26503 dirpart=`$as_dirname -- "$mf" ||
26504 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26505 X"$mf" : 'X\(//\)[^/]' \| \
26506 X"$mf" : 'X\(//\)$' \| \
26507 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26509 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26513 /^X\(\/\/\)[^/].*/{
26529 # Extract the definition of DEPDIR, am__include, and am__quote
26530 # from the Makefile without running `make'.
26531 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26532 test -z "$DEPDIR" && continue
26533 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26534 test -z "am__include" && continue
26535 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26536 # When using ansi2knr, U may be empty or an underscore; expand it
26537 U=`sed -n 's/^U = //p' < "$mf"`
26538 # Find all dependency output files, they are included files with
26539 # $(DEPDIR) in their names. We invoke sed twice because it is the
26540 # simplest approach to changing $(DEPDIR) to its actual value in the
26542 for file in `sed -n "
26543 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26544 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26545 # Make sure the directory exists.
26546 test -f "$dirpart/$file" && continue
26547 fdir=`$as_dirname -- "$file" ||
26548 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26549 X"$file" : 'X\(//\)[^/]' \| \
26550 X"$file" : 'X\(//\)$' \| \
26551 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26552 $as_echo X"$file" |
26553 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26557 /^X\(\/\/\)[^/].*/{
26570 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26571 # echo "creating $dirpart/$file"
26572 echo '# dummy' > "$dirpart/$file"
26579 # See if we are running on zsh, and set the options which allow our
26580 # commands through without removal of \ escapes.
26581 if test -n "${ZSH_VERSION+set}" ; then
26582 setopt NO_GLOB_SUBST
26585 cfgfile="${ofile}T"
26586 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26589 cat <<_LT_EOF >> "$cfgfile"
26592 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26593 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26594 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26595 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26597 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26598 # 2006, 2007, 2008 Free Software Foundation, Inc.
26599 # Written by Gordon Matzigkeit, 1996
26601 # This file is part of GNU Libtool.
26603 # GNU Libtool is free software; you can redistribute it and/or
26604 # modify it under the terms of the GNU General Public License as
26605 # published by the Free Software Foundation; either version 2 of
26606 # the License, or (at your option) any later version.
26608 # As a special exception to the GNU General Public License,
26609 # if you distribute this file as part of a program or library that
26610 # is built using GNU Libtool, you may include this file under the
26611 # same distribution terms that you use for the rest of that program.
26613 # GNU Libtool is distributed in the hope that it will be useful,
26614 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26615 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26616 # GNU General Public License for more details.
26618 # You should have received a copy of the GNU General Public License
26619 # along with GNU Libtool; see the file COPYING. If not, a copy
26620 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26621 # obtained by writing to the Free Software Foundation, Inc.,
26622 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26625 # The names of the tagged configurations supported by this script.
26626 available_tags="CXX GCJ "
26628 # ### BEGIN LIBTOOL CONFIG
26630 # Which release of libtool.m4 was used?
26631 macro_version=$macro_version
26632 macro_revision=$macro_revision
26634 # Whether or not to build shared libraries.
26635 build_libtool_libs=$enable_shared
26637 # Whether or not to build static libraries.
26638 build_old_libs=$enable_static
26640 # What type of objects to build.
26643 # Whether or not to optimize for fast installation.
26644 fast_install=$enable_fast_install
26647 host_alias=$host_alias
26651 # The build system.
26652 build_alias=$build_alias
26656 # A sed program that does not truncate output.
26659 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26660 Xsed="\$SED -e 1s/^X//"
26662 # A grep program that handles long lines.
26668 # A literal string matcher.
26671 # A BSD- or MS-compatible name lister.
26674 # Whether we need soft or hard links.
26677 # What is the maximum length of a command?
26678 max_cmd_len=$max_cmd_len
26680 # Object file suffix (normally "o").
26683 # Executable file suffix (normally "").
26686 # whether the shell understands "unset".
26689 # turn spaces into newlines.
26692 # turn newlines into spaces.
26695 # How to create reloadable object files.
26696 reload_flag=$lt_reload_flag
26697 reload_cmds=$lt_reload_cmds
26699 # An object symbol dumper.
26700 OBJDUMP=$lt_OBJDUMP
26702 # Method to check whether dependent libraries are shared objects.
26703 deplibs_check_method=$lt_deplibs_check_method
26705 # Command to use when deplibs_check_method == "file_magic".
26706 file_magic_cmd=$lt_file_magic_cmd
26710 AR_FLAGS=$lt_AR_FLAGS
26712 # A symbol stripping program.
26715 # Commands used to install an old-style archive.
26717 old_postinstall_cmds=$lt_old_postinstall_cmds
26718 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26723 # LTCC compiler flags.
26724 LTCFLAGS=$lt_CFLAGS
26726 # Take the output of nm and produce a listing of raw symbols and C names.
26727 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26729 # Transform the output of nm in a proper C declaration.
26730 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26732 # Transform the output of nm in a C name address pair.
26733 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26735 # Transform the output of nm in a C name address pair when lib prefix is needed.
26736 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26738 # The name of the directory that contains temporary libtool files.
26741 # Shell to use when invoking shell scripts.
26744 # An echo program that does not interpret backslashes.
26747 # Used to examine libraries when file_magic_cmd begins with "file".
26748 MAGIC_CMD=$MAGIC_CMD
26750 # Must we lock files when doing compilation?
26751 need_locks=$lt_need_locks
26753 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26754 DSYMUTIL=$lt_DSYMUTIL
26756 # Tool to change global to local symbols on Mac OS X.
26759 # Tool to manipulate fat objects and archives on Mac OS X.
26762 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26765 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26766 OTOOL64=$lt_OTOOL64
26768 # Old archive suffix (normally "a").
26771 # Shared library suffix (normally ".so").
26772 shrext_cmds=$lt_shrext_cmds
26774 # The commands to extract the exported symbol list from a shared archive.
26775 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26777 # Variables whose values should be saved in libtool wrapper scripts and
26778 # restored at link time.
26779 variables_saved_for_relink=$lt_variables_saved_for_relink
26781 # Do we need the "lib" prefix for modules?
26782 need_lib_prefix=$need_lib_prefix
26784 # Do we need a version for libraries?
26785 need_version=$need_version
26787 # Library versioning type.
26788 version_type=$version_type
26790 # Shared library runtime path variable.
26791 runpath_var=$runpath_var
26793 # Shared library path variable.
26794 shlibpath_var=$shlibpath_var
26796 # Is shlibpath searched before the hard-coded library search path?
26797 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26799 # Format of library name prefix.
26800 libname_spec=$lt_libname_spec
26802 # List of archive names. First name is the real one, the rest are links.
26803 # The last name is the one that the linker finds with -lNAME
26804 library_names_spec=$lt_library_names_spec
26806 # The coded name of the library, if different from the real name.
26807 soname_spec=$lt_soname_spec
26809 # Command to use after installation of a shared archive.
26810 postinstall_cmds=$lt_postinstall_cmds
26812 # Command to use after uninstallation of a shared archive.
26813 postuninstall_cmds=$lt_postuninstall_cmds
26815 # Commands used to finish a libtool library installation in a directory.
26816 finish_cmds=$lt_finish_cmds
26818 # As "finish_cmds", except a single script fragment to be evaled but
26820 finish_eval=$lt_finish_eval
26822 # Whether we should hardcode library paths into libraries.
26823 hardcode_into_libs=$hardcode_into_libs
26825 # Compile-time system search path for libraries.
26826 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26828 # Run-time system search path for libraries.
26829 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26831 # Whether dlopen is supported.
26832 dlopen_support=$enable_dlopen
26834 # Whether dlopen of programs is supported.
26835 dlopen_self=$enable_dlopen_self
26837 # Whether dlopen of statically linked programs is supported.
26838 dlopen_self_static=$enable_dlopen_self_static
26840 # Commands to strip libraries.
26841 old_striplib=$lt_old_striplib
26842 striplib=$lt_striplib
26845 # The linker used to build libraries.
26848 # Commands used to build an old-style archive.
26849 old_archive_cmds=$lt_old_archive_cmds
26851 # A language specific compiler.
26854 # Is the compiler the GNU compiler?
26857 # Compiler flag to turn off builtin functions.
26858 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26860 # How to pass a linker flag through the compiler.
26861 wl=$lt_lt_prog_compiler_wl
26863 # Additional compiler flags for building library objects.
26864 pic_flag=$lt_lt_prog_compiler_pic
26866 # Compiler flag to prevent dynamic linking.
26867 link_static_flag=$lt_lt_prog_compiler_static
26869 # Does compiler simultaneously support -c and -o options?
26870 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26872 # Whether or not to add -lc for building shared libraries.
26873 build_libtool_need_lc=$archive_cmds_need_lc
26875 # Whether or not to disallow shared libs when runtime libs are static.
26876 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26878 # Compiler flag to allow reflexive dlopens.
26879 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26881 # Compiler flag to generate shared objects directly from archives.
26882 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26884 # Whether the compiler copes with passing no objects directly.
26885 compiler_needs_object=$lt_compiler_needs_object
26887 # Create an old-style archive from a shared archive.
26888 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26890 # Create a temporary old-style archive to link instead of a shared archive.
26891 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26893 # Commands used to build a shared archive.
26894 archive_cmds=$lt_archive_cmds
26895 archive_expsym_cmds=$lt_archive_expsym_cmds
26897 # Commands used to build a loadable module if different from building
26898 # a shared archive.
26899 module_cmds=$lt_module_cmds
26900 module_expsym_cmds=$lt_module_expsym_cmds
26902 # Whether we are building with GNU ld or not.
26903 with_gnu_ld=$lt_with_gnu_ld
26905 # Flag that allows shared libraries with undefined symbols to be built.
26906 allow_undefined_flag=$lt_allow_undefined_flag
26908 # Flag that enforces no undefined symbols.
26909 no_undefined_flag=$lt_no_undefined_flag
26911 # Flag to hardcode \$libdir into a binary during linking.
26912 # This must work even if \$libdir does not exist
26913 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26915 # If ld is used when linking, flag to hardcode \$libdir into a binary
26916 # during linking. This must work even if \$libdir does not exist.
26917 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26919 # Whether we need a single "-rpath" flag with a separated argument.
26920 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26922 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26923 # DIR into the resulting binary.
26924 hardcode_direct=$hardcode_direct
26926 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26927 # DIR into the resulting binary and the resulting library dependency is
26928 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26929 # library is relocated.
26930 hardcode_direct_absolute=$hardcode_direct_absolute
26932 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26933 # into the resulting binary.
26934 hardcode_minus_L=$hardcode_minus_L
26936 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26937 # into the resulting binary.
26938 hardcode_shlibpath_var=$hardcode_shlibpath_var
26940 # Set to "yes" if building a shared library automatically hardcodes DIR
26941 # into the library and all subsequent libraries and executables linked
26943 hardcode_automatic=$hardcode_automatic
26945 # Set to yes if linker adds runtime paths of dependent libraries
26946 # to runtime path list.
26947 inherit_rpath=$inherit_rpath
26949 # Whether libtool must link a program against all its dependency libraries.
26950 link_all_deplibs=$link_all_deplibs
26952 # Fix the shell variable \$srcfile for the compiler.
26953 fix_srcfile_path=$lt_fix_srcfile_path
26955 # Set to "yes" if exported symbols are required.
26956 always_export_symbols=$always_export_symbols
26958 # The commands to list exported symbols.
26959 export_symbols_cmds=$lt_export_symbols_cmds
26961 # Symbols that should not be listed in the preloaded symbols.
26962 exclude_expsyms=$lt_exclude_expsyms
26964 # Symbols that must always be exported.
26965 include_expsyms=$lt_include_expsyms
26967 # Commands necessary for linking programs (against libraries) with templates.
26968 prelink_cmds=$lt_prelink_cmds
26970 # Specify filename containing input files.
26971 file_list_spec=$lt_file_list_spec
26973 # How to hardcode a shared library path into an executable.
26974 hardcode_action=$hardcode_action
26976 # The directories searched by this compiler when creating a shared library.
26977 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26979 # Dependencies to place before and after the objects being linked to
26980 # create a shared library.
26981 predep_objects=$lt_predep_objects
26982 postdep_objects=$lt_postdep_objects
26983 predeps=$lt_predeps
26984 postdeps=$lt_postdeps
26986 # The library search path used internally by the compiler when linking
26987 # a shared library.
26988 compiler_lib_search_path=$lt_compiler_lib_search_path
26990 # ### END LIBTOOL CONFIG
26996 cat <<\_LT_EOF >> "$cfgfile"
26997 # AIX sometimes has problems with the GCC collect2 program. For some
26998 # reason, if we set the COLLECT_NAMES environment variable, the problems
26999 # vanish in a puff of smoke.
27000 if test "X${COLLECT_NAMES+set}" != Xset; then
27002 export COLLECT_NAMES
27009 ltmain="$ac_aux_dir/ltmain.sh"
27012 # We use sed instead of cat because bash on DJGPP gets confused if
27013 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27014 # text mode, it properly converts lines to CR/LF. This bash problem
27015 # is reportedly fixed, but why not run on old versions too?
27016 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27017 || (rm -f "$cfgfile"; exit 1)
27021 cat << \_LT_EOF >> "$cfgfile"
27023 # func_dirname file append nondir_replacement
27024 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27025 # otherwise set result to NONDIR_REPLACEMENT.
27029 */*) func_dirname_result="${1%/*}${2}" ;;
27030 * ) func_dirname_result="${3}" ;;
27034 # func_basename file
27037 func_basename_result="${1##*/}"
27040 # func_dirname_and_basename file append nondir_replacement
27041 # perform func_basename and func_dirname in a single function
27043 # dirname: Compute the dirname of FILE. If nonempty,
27044 # add APPEND to the result, otherwise set result
27045 # to NONDIR_REPLACEMENT.
27046 # value returned in "$func_dirname_result"
27047 # basename: Compute filename of FILE.
27048 # value retuned in "$func_basename_result"
27049 # Implementation must be kept synchronized with func_dirname
27050 # and func_basename. For efficiency, we do not delegate to
27051 # those functions but instead duplicate the functionality here.
27052 func_dirname_and_basename ()
27055 */*) func_dirname_result="${1%/*}${2}" ;;
27056 * ) func_dirname_result="${3}" ;;
27058 func_basename_result="${1##*/}"
27061 # func_stripname prefix suffix name
27062 # strip PREFIX and SUFFIX off of NAME.
27063 # PREFIX and SUFFIX must not contain globbing or regex special
27064 # characters, hashes, percent signs, but SUFFIX may contain a leading
27065 # dot (in which case that matches only a dot).
27068 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27069 # positional parameters, so assign one to ordinary parameter first.
27070 func_stripname_result=${3}
27071 func_stripname_result=${func_stripname_result#"${1}"}
27072 func_stripname_result=${func_stripname_result%"${2}"}
27078 func_opt_split_opt=${1%%=*}
27079 func_opt_split_arg=${1#*=}
27086 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27087 *) func_lo2o_result=${1} ;;
27091 # func_xform libobj-or-source
27094 func_xform_result=${1%.*}.lo
27097 # func_arith arithmetic-term...
27100 func_arith_result=$(( $* ))
27104 # STRING may not start with a hyphen.
27107 func_len_result=${#1}
27112 *) # Bourne compatible functions.
27113 cat << \_LT_EOF >> "$cfgfile"
27115 # func_dirname file append nondir_replacement
27116 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27117 # otherwise set result to NONDIR_REPLACEMENT.
27120 # Extract subdirectory from the argument.
27121 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27122 if test "X$func_dirname_result" = "X${1}"; then
27123 func_dirname_result="${3}"
27125 func_dirname_result="$func_dirname_result${2}"
27129 # func_basename file
27132 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27136 # func_stripname prefix suffix name
27137 # strip PREFIX and SUFFIX off of NAME.
27138 # PREFIX and SUFFIX must not contain globbing or regex special
27139 # characters, hashes, percent signs, but SUFFIX may contain a leading
27140 # dot (in which case that matches only a dot).
27141 # func_strip_suffix prefix name
27145 .*) func_stripname_result=`$ECHO "X${3}" \
27146 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27147 *) func_stripname_result=`$ECHO "X${3}" \
27148 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27153 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27154 my_sed_long_arg='1s/^-[^=]*=//'
27159 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27160 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27166 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27169 # func_xform libobj-or-source
27172 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27175 # func_arith arithmetic-term...
27178 func_arith_result=`expr "$@"`
27182 # STRING may not start with a hyphen.
27185 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27191 case $lt_shell_append in
27193 cat << \_LT_EOF >> "$cfgfile"
27195 # func_append var value
27196 # Append VALUE to the end of shell variable VAR.
27204 cat << \_LT_EOF >> "$cfgfile"
27206 # func_append var value
27207 # Append VALUE to the end of shell variable VAR.
27218 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27219 || (rm -f "$cfgfile"; exit 1)
27221 mv -f "$cfgfile" "$ofile" ||
27222 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27226 cat <<_LT_EOF >> "$ofile"
27228 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27230 # The linker used to build libraries.
27233 # Commands used to build an old-style archive.
27234 old_archive_cmds=$lt_old_archive_cmds_CXX
27236 # A language specific compiler.
27237 CC=$lt_compiler_CXX
27239 # Is the compiler the GNU compiler?
27242 # Compiler flag to turn off builtin functions.
27243 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27245 # How to pass a linker flag through the compiler.
27246 wl=$lt_lt_prog_compiler_wl_CXX
27248 # Additional compiler flags for building library objects.
27249 pic_flag=$lt_lt_prog_compiler_pic_CXX
27251 # Compiler flag to prevent dynamic linking.
27252 link_static_flag=$lt_lt_prog_compiler_static_CXX
27254 # Does compiler simultaneously support -c and -o options?
27255 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27257 # Whether or not to add -lc for building shared libraries.
27258 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27260 # Whether or not to disallow shared libs when runtime libs are static.
27261 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27263 # Compiler flag to allow reflexive dlopens.
27264 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27266 # Compiler flag to generate shared objects directly from archives.
27267 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27269 # Whether the compiler copes with passing no objects directly.
27270 compiler_needs_object=$lt_compiler_needs_object_CXX
27272 # Create an old-style archive from a shared archive.
27273 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27275 # Create a temporary old-style archive to link instead of a shared archive.
27276 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27278 # Commands used to build a shared archive.
27279 archive_cmds=$lt_archive_cmds_CXX
27280 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27282 # Commands used to build a loadable module if different from building
27283 # a shared archive.
27284 module_cmds=$lt_module_cmds_CXX
27285 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27287 # Whether we are building with GNU ld or not.
27288 with_gnu_ld=$lt_with_gnu_ld_CXX
27290 # Flag that allows shared libraries with undefined symbols to be built.
27291 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27293 # Flag that enforces no undefined symbols.
27294 no_undefined_flag=$lt_no_undefined_flag_CXX
27296 # Flag to hardcode \$libdir into a binary during linking.
27297 # This must work even if \$libdir does not exist
27298 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27300 # If ld is used when linking, flag to hardcode \$libdir into a binary
27301 # during linking. This must work even if \$libdir does not exist.
27302 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27304 # Whether we need a single "-rpath" flag with a separated argument.
27305 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27307 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27308 # DIR into the resulting binary.
27309 hardcode_direct=$hardcode_direct_CXX
27311 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27312 # DIR into the resulting binary and the resulting library dependency is
27313 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27314 # library is relocated.
27315 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27317 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27318 # into the resulting binary.
27319 hardcode_minus_L=$hardcode_minus_L_CXX
27321 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27322 # into the resulting binary.
27323 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27325 # Set to "yes" if building a shared library automatically hardcodes DIR
27326 # into the library and all subsequent libraries and executables linked
27328 hardcode_automatic=$hardcode_automatic_CXX
27330 # Set to yes if linker adds runtime paths of dependent libraries
27331 # to runtime path list.
27332 inherit_rpath=$inherit_rpath_CXX
27334 # Whether libtool must link a program against all its dependency libraries.
27335 link_all_deplibs=$link_all_deplibs_CXX
27337 # Fix the shell variable \$srcfile for the compiler.
27338 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27340 # Set to "yes" if exported symbols are required.
27341 always_export_symbols=$always_export_symbols_CXX
27343 # The commands to list exported symbols.
27344 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27346 # Symbols that should not be listed in the preloaded symbols.
27347 exclude_expsyms=$lt_exclude_expsyms_CXX
27349 # Symbols that must always be exported.
27350 include_expsyms=$lt_include_expsyms_CXX
27352 # Commands necessary for linking programs (against libraries) with templates.
27353 prelink_cmds=$lt_prelink_cmds_CXX
27355 # Specify filename containing input files.
27356 file_list_spec=$lt_file_list_spec_CXX
27358 # How to hardcode a shared library path into an executable.
27359 hardcode_action=$hardcode_action_CXX
27361 # The directories searched by this compiler when creating a shared library.
27362 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27364 # Dependencies to place before and after the objects being linked to
27365 # create a shared library.
27366 predep_objects=$lt_predep_objects_CXX
27367 postdep_objects=$lt_postdep_objects_CXX
27368 predeps=$lt_predeps_CXX
27369 postdeps=$lt_postdeps_CXX
27371 # The library search path used internally by the compiler when linking
27372 # a shared library.
27373 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27375 # ### END LIBTOOL TAG CONFIG: CXX
27379 cat <<_LT_EOF >> "$ofile"
27381 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27383 # The linker used to build libraries.
27386 # Commands used to build an old-style archive.
27387 old_archive_cmds=$lt_old_archive_cmds_GCJ
27389 # A language specific compiler.
27390 CC=$lt_compiler_GCJ
27392 # Is the compiler the GNU compiler?
27395 # Compiler flag to turn off builtin functions.
27396 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27398 # How to pass a linker flag through the compiler.
27399 wl=$lt_lt_prog_compiler_wl_GCJ
27401 # Additional compiler flags for building library objects.
27402 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27404 # Compiler flag to prevent dynamic linking.
27405 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27407 # Does compiler simultaneously support -c and -o options?
27408 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27410 # Whether or not to add -lc for building shared libraries.
27411 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27413 # Whether or not to disallow shared libs when runtime libs are static.
27414 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27416 # Compiler flag to allow reflexive dlopens.
27417 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27419 # Compiler flag to generate shared objects directly from archives.
27420 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27422 # Whether the compiler copes with passing no objects directly.
27423 compiler_needs_object=$lt_compiler_needs_object_GCJ
27425 # Create an old-style archive from a shared archive.
27426 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27428 # Create a temporary old-style archive to link instead of a shared archive.
27429 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27431 # Commands used to build a shared archive.
27432 archive_cmds=$lt_archive_cmds_GCJ
27433 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27435 # Commands used to build a loadable module if different from building
27436 # a shared archive.
27437 module_cmds=$lt_module_cmds_GCJ
27438 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27440 # Whether we are building with GNU ld or not.
27441 with_gnu_ld=$lt_with_gnu_ld_GCJ
27443 # Flag that allows shared libraries with undefined symbols to be built.
27444 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27446 # Flag that enforces no undefined symbols.
27447 no_undefined_flag=$lt_no_undefined_flag_GCJ
27449 # Flag to hardcode \$libdir into a binary during linking.
27450 # This must work even if \$libdir does not exist
27451 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27453 # If ld is used when linking, flag to hardcode \$libdir into a binary
27454 # during linking. This must work even if \$libdir does not exist.
27455 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27457 # Whether we need a single "-rpath" flag with a separated argument.
27458 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27460 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27461 # DIR into the resulting binary.
27462 hardcode_direct=$hardcode_direct_GCJ
27464 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27465 # DIR into the resulting binary and the resulting library dependency is
27466 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27467 # library is relocated.
27468 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27470 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27471 # into the resulting binary.
27472 hardcode_minus_L=$hardcode_minus_L_GCJ
27474 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27475 # into the resulting binary.
27476 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27478 # Set to "yes" if building a shared library automatically hardcodes DIR
27479 # into the library and all subsequent libraries and executables linked
27481 hardcode_automatic=$hardcode_automatic_GCJ
27483 # Set to yes if linker adds runtime paths of dependent libraries
27484 # to runtime path list.
27485 inherit_rpath=$inherit_rpath_GCJ
27487 # Whether libtool must link a program against all its dependency libraries.
27488 link_all_deplibs=$link_all_deplibs_GCJ
27490 # Fix the shell variable \$srcfile for the compiler.
27491 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27493 # Set to "yes" if exported symbols are required.
27494 always_export_symbols=$always_export_symbols_GCJ
27496 # The commands to list exported symbols.
27497 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27499 # Symbols that should not be listed in the preloaded symbols.
27500 exclude_expsyms=$lt_exclude_expsyms_GCJ
27502 # Symbols that must always be exported.
27503 include_expsyms=$lt_include_expsyms_GCJ
27505 # Commands necessary for linking programs (against libraries) with templates.
27506 prelink_cmds=$lt_prelink_cmds_GCJ
27508 # Specify filename containing input files.
27509 file_list_spec=$lt_file_list_spec_GCJ
27511 # How to hardcode a shared library path into an executable.
27512 hardcode_action=$hardcode_action_GCJ
27514 # The directories searched by this compiler when creating a shared library.
27515 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27517 # Dependencies to place before and after the objects being linked to
27518 # create a shared library.
27519 predep_objects=$lt_predep_objects_GCJ
27520 postdep_objects=$lt_postdep_objects_GCJ
27521 predeps=$lt_predeps_GCJ
27522 postdeps=$lt_postdeps_GCJ
27524 # The library search path used internally by the compiler when linking
27525 # a shared library.
27526 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27528 # ### END LIBTOOL TAG CONFIG: GCJ
27532 "scripts/jar":F) chmod +x scripts/jar ;;
27540 ac_clean_files=$ac_clean_files_save
27542 test $ac_write_fail = 0 ||
27543 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27546 # configure is writing to config.log, and then calls config.status.
27547 # config.status does its own redirection, appending to config.log.
27548 # Unfortunately, on DOS this fails, as config.log is still kept open
27549 # by configure, so config.status won't be able to write to it; its
27550 # output is simply discarded. So we exec the FD to /dev/null,
27551 # effectively closing config.log, so it can be properly (re)opened and
27552 # appended to by config.status. When coming back to configure, we
27553 # need to make the FD available again.
27554 if test "$no_create" != yes; then
27556 ac_config_status_args=
27557 test "$silent" = yes &&
27558 ac_config_status_args="$ac_config_status_args --quiet"
27560 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27562 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27563 # would make configure fail if this is the last instruction.
27564 $ac_cs_success || as_fn_exit $?
27568 # CONFIG_SUBDIRS section.
27570 if test "$no_recursion" != yes; then
27572 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27573 # so they do not pile up.
27574 ac_sub_configure_args=
27576 eval "set x $ac_configure_args"
27580 if test -n "$ac_prev"; then
27585 -cache-file | --cache-file | --cache-fil | --cache-fi \
27586 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27587 ac_prev=cache_file ;;
27588 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27589 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27592 --config-cache | -C)
27594 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27596 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27598 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27600 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27602 --disable-option-checking)
27606 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27608 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27612 # Always prepend --prefix to ensure using the same prefix
27613 # in subdir configurations.
27614 ac_arg="--prefix=$prefix"
27616 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27618 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27621 if test "$silent" = yes; then
27622 ac_sub_configure_args="--silent $ac_sub_configure_args"
27625 # Always prepend --disable-option-checking to silence warnings, since
27626 # different subdirs can have different --enable and --with options.
27627 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27630 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27632 # Do not complain, so a configure script can configure whichever
27633 # parts of a large source tree are present.
27634 test -d "$srcdir/$ac_dir" || continue
27636 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27637 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27638 $as_echo "$ac_msg" >&6
27639 as_dir="$ac_dir"; as_fn_mkdir_p
27643 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27645 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27646 # A ".." for each directory in $ac_dir_suffix.
27647 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27648 case $ac_top_builddir_sub in
27649 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27650 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27653 ac_abs_top_builddir=$ac_pwd
27654 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27655 # for backward compatibility:
27656 ac_top_builddir=$ac_top_build_prefix
27659 .) # We are building in place.
27661 ac_top_srcdir=$ac_top_builddir_sub
27662 ac_abs_top_srcdir=$ac_pwd ;;
27663 [\\/]* | ?:[\\/]* ) # Absolute name.
27664 ac_srcdir=$srcdir$ac_dir_suffix;
27665 ac_top_srcdir=$srcdir
27666 ac_abs_top_srcdir=$srcdir ;;
27667 *) # Relative name.
27668 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27669 ac_top_srcdir=$ac_top_build_prefix$srcdir
27670 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27672 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27677 # Check for guested configure; otherwise get Cygnus style configure.
27678 if test -f "$ac_srcdir/configure.gnu"; then
27679 ac_sub_configure=$ac_srcdir/configure.gnu
27680 elif test -f "$ac_srcdir/configure"; then
27681 ac_sub_configure=$ac_srcdir/configure
27682 elif test -f "$ac_srcdir/configure.in"; then
27683 # This should be Cygnus configure.
27684 ac_sub_configure=$ac_aux_dir/configure
27686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27691 # The recursion is here.
27692 if test -n "$ac_sub_configure"; then
27693 # Make the cache file name correct relative to the subdirectory.
27694 case $cache_file in
27695 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27696 *) # Relative name.
27697 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27700 { $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
27701 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27702 # The eval makes quoting arguments work.
27703 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27704 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27705 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27711 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27713 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}