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
922 LIBGCJ_SUBLIB_LTFLAGS
927 MAINTAINER_MODE_FALSE
956 INSTALL_STRIP_PROGRAM
981 JAVA_MAINTAINER_MODE_FALSE
982 JAVA_MAINTAINER_MODE_TRUE
1033 program_transform_name
1046 enable_option_checking
1047 with_build_libsubdir
1052 enable_version_specific_runtime_libs
1057 enable_java_maintainer_mode
1058 enable_dependency_tracking
1059 enable_maintainer_mode
1060 enable_libgcj_sublibs
1070 enable_getenv_properties
1071 enable_hash_synchronization
1075 enable_reduced_reflection
1079 enable_sjlj_exceptions
1088 with_libiconv_prefix
1090 with_system_libunwind
1092 enable_aot_compile_rpm
1102 ac_precious_vars='build_alias
1114 ac_subdirs_all='classpath libltdl'
1116 # Initialize some variables set by options.
1118 ac_init_version=false
1119 ac_unrecognized_opts=
1120 ac_unrecognized_sep=
1121 # The variables have the same names as the options, with
1122 # dashes changed to underlines.
1123 cache_file=/dev/null
1130 program_transform_name=s,x,x,
1138 # Installation directory options.
1139 # These are left unexpanded so users can "make install exec_prefix=/foo"
1140 # and all the variables that are supposed to be based on exec_prefix
1141 # by default will actually change.
1142 # Use braces instead of parens because sh, perl, etc. also accept them.
1143 # (The list follows the same order as the GNU Coding Standards.)
1144 bindir='${exec_prefix}/bin'
1145 sbindir='${exec_prefix}/sbin'
1146 libexecdir='${exec_prefix}/libexec'
1147 datarootdir='${prefix}/share'
1148 datadir='${datarootdir}'
1149 sysconfdir='${prefix}/etc'
1150 sharedstatedir='${prefix}/com'
1151 localstatedir='${prefix}/var'
1152 includedir='${prefix}/include'
1153 oldincludedir='/usr/include'
1154 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1155 infodir='${datarootdir}/info'
1160 libdir='${exec_prefix}/lib'
1161 localedir='${datarootdir}/locale'
1162 mandir='${datarootdir}/man'
1168 # If the previous option needs an argument, assign it.
1169 if test -n "$ac_prev"; then
1170 eval $ac_prev=\$ac_option
1176 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1180 # Accept the important Cygnus configure options, so we can diagnose typos.
1182 case $ac_dashdash$ac_option in
1186 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1188 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1189 bindir=$ac_optarg ;;
1191 -build | --build | --buil | --bui | --bu)
1192 ac_prev=build_alias ;;
1193 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1194 build_alias=$ac_optarg ;;
1196 -cache-file | --cache-file | --cache-fil | --cache-fi \
1197 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1198 ac_prev=cache_file ;;
1199 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1200 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1201 cache_file=$ac_optarg ;;
1203 --config-cache | -C)
1204 cache_file=config.cache ;;
1206 -datadir | --datadir | --datadi | --datad)
1208 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1209 datadir=$ac_optarg ;;
1211 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1212 | --dataroo | --dataro | --datar)
1213 ac_prev=datarootdir ;;
1214 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1215 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1216 datarootdir=$ac_optarg ;;
1218 -disable-* | --disable-*)
1219 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1220 # Reject names that are not valid shell variable names.
1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1222 as_fn_error "invalid feature name: $ac_useropt"
1223 ac_useropt_orig=$ac_useropt
1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1225 case $ac_user_opts in
1227 "enable_$ac_useropt"
1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1230 ac_unrecognized_sep=', ';;
1232 eval enable_$ac_useropt=no ;;
1234 -docdir | --docdir | --docdi | --doc | --do)
1236 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1237 docdir=$ac_optarg ;;
1239 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1241 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1242 dvidir=$ac_optarg ;;
1244 -enable-* | --enable-*)
1245 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248 as_fn_error "invalid feature name: $ac_useropt"
1249 ac_useropt_orig=$ac_useropt
1250 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1253 "enable_$ac_useropt"
1255 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1256 ac_unrecognized_sep=', ';;
1258 eval enable_$ac_useropt=\$ac_optarg ;;
1260 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1261 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1262 | --exec | --exe | --ex)
1263 ac_prev=exec_prefix ;;
1264 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1265 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1266 | --exec=* | --exe=* | --ex=*)
1267 exec_prefix=$ac_optarg ;;
1269 -gas | --gas | --ga | --g)
1270 # Obsolete; use --with-gas.
1273 -help | --help | --hel | --he | -h)
1274 ac_init_help=long ;;
1275 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1276 ac_init_help=recursive ;;
1277 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1278 ac_init_help=short ;;
1280 -host | --host | --hos | --ho)
1281 ac_prev=host_alias ;;
1282 -host=* | --host=* | --hos=* | --ho=*)
1283 host_alias=$ac_optarg ;;
1285 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1287 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1289 htmldir=$ac_optarg ;;
1291 -includedir | --includedir | --includedi | --included | --include \
1292 | --includ | --inclu | --incl | --inc)
1293 ac_prev=includedir ;;
1294 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1295 | --includ=* | --inclu=* | --incl=* | --inc=*)
1296 includedir=$ac_optarg ;;
1298 -infodir | --infodir | --infodi | --infod | --info | --inf)
1300 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1301 infodir=$ac_optarg ;;
1303 -libdir | --libdir | --libdi | --libd)
1305 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1306 libdir=$ac_optarg ;;
1308 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1309 | --libexe | --libex | --libe)
1310 ac_prev=libexecdir ;;
1311 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1312 | --libexe=* | --libex=* | --libe=*)
1313 libexecdir=$ac_optarg ;;
1315 -localedir | --localedir | --localedi | --localed | --locale)
1316 ac_prev=localedir ;;
1317 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1318 localedir=$ac_optarg ;;
1320 -localstatedir | --localstatedir | --localstatedi | --localstated \
1321 | --localstate | --localstat | --localsta | --localst | --locals)
1322 ac_prev=localstatedir ;;
1323 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1324 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1325 localstatedir=$ac_optarg ;;
1327 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1329 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1330 mandir=$ac_optarg ;;
1332 -nfp | --nfp | --nf)
1333 # Obsolete; use --without-fp.
1336 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1337 | --no-cr | --no-c | -n)
1340 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1341 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1344 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1345 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1346 | --oldin | --oldi | --old | --ol | --o)
1347 ac_prev=oldincludedir ;;
1348 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1349 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1350 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1351 oldincludedir=$ac_optarg ;;
1353 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1355 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1356 prefix=$ac_optarg ;;
1358 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1359 | --program-pre | --program-pr | --program-p)
1360 ac_prev=program_prefix ;;
1361 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1362 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1363 program_prefix=$ac_optarg ;;
1365 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1366 | --program-suf | --program-su | --program-s)
1367 ac_prev=program_suffix ;;
1368 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1369 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1370 program_suffix=$ac_optarg ;;
1372 -program-transform-name | --program-transform-name \
1373 | --program-transform-nam | --program-transform-na \
1374 | --program-transform-n | --program-transform- \
1375 | --program-transform | --program-transfor \
1376 | --program-transfo | --program-transf \
1377 | --program-trans | --program-tran \
1378 | --progr-tra | --program-tr | --program-t)
1379 ac_prev=program_transform_name ;;
1380 -program-transform-name=* | --program-transform-name=* \
1381 | --program-transform-nam=* | --program-transform-na=* \
1382 | --program-transform-n=* | --program-transform-=* \
1383 | --program-transform=* | --program-transfor=* \
1384 | --program-transfo=* | --program-transf=* \
1385 | --program-trans=* | --program-tran=* \
1386 | --progr-tra=* | --program-tr=* | --program-t=*)
1387 program_transform_name=$ac_optarg ;;
1389 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1391 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1392 pdfdir=$ac_optarg ;;
1394 -psdir | --psdir | --psdi | --psd | --ps)
1396 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1400 | -silent | --silent | --silen | --sile | --sil)
1403 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1405 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1407 sbindir=$ac_optarg ;;
1409 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1410 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1411 | --sharedst | --shareds | --shared | --share | --shar \
1413 ac_prev=sharedstatedir ;;
1414 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1415 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1416 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1418 sharedstatedir=$ac_optarg ;;
1420 -site | --site | --sit)
1422 -site=* | --site=* | --sit=*)
1425 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1427 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1428 srcdir=$ac_optarg ;;
1430 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1431 | --syscon | --sysco | --sysc | --sys | --sy)
1432 ac_prev=sysconfdir ;;
1433 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1434 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1435 sysconfdir=$ac_optarg ;;
1437 -target | --target | --targe | --targ | --tar | --ta | --t)
1438 ac_prev=target_alias ;;
1439 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1440 target_alias=$ac_optarg ;;
1442 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1445 -version | --version | --versio | --versi | --vers | -V)
1446 ac_init_version=: ;;
1449 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1450 # Reject names that are not valid shell variable names.
1451 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1452 as_fn_error "invalid package name: $ac_useropt"
1453 ac_useropt_orig=$ac_useropt
1454 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1455 case $ac_user_opts in
1459 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1460 ac_unrecognized_sep=', ';;
1462 eval with_$ac_useropt=\$ac_optarg ;;
1464 -without-* | --without-*)
1465 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1466 # Reject names that are not valid shell variable names.
1467 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1468 as_fn_error "invalid package name: $ac_useropt"
1469 ac_useropt_orig=$ac_useropt
1470 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1471 case $ac_user_opts in
1475 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1476 ac_unrecognized_sep=', ';;
1478 eval with_$ac_useropt=no ;;
1481 # Obsolete; use --with-x.
1484 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1485 | --x-incl | --x-inc | --x-in | --x-i)
1486 ac_prev=x_includes ;;
1487 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1488 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1489 x_includes=$ac_optarg ;;
1491 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1492 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1493 ac_prev=x_libraries ;;
1494 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1495 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1496 x_libraries=$ac_optarg ;;
1498 -*) as_fn_error "unrecognized option: \`$ac_option'
1499 Try \`$0 --help' for more information."
1503 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1504 # Reject names that are not valid shell variable names.
1505 case $ac_envvar in #(
1506 '' | [0-9]* | *[!_$as_cr_alnum]* )
1507 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1509 eval $ac_envvar=\$ac_optarg
1510 export $ac_envvar ;;
1513 # FIXME: should be removed in autoconf 3.0.
1514 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1515 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1516 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1517 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1523 if test -n "$ac_prev"; then
1524 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1525 as_fn_error "missing argument to $ac_option"
1528 if test -n "$ac_unrecognized_opts"; then
1529 case $enable_option_checking in
1531 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1532 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1536 # Check all directory arguments for consistency.
1537 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1538 datadir sysconfdir sharedstatedir localstatedir includedir \
1539 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1540 libdir localedir mandir
1542 eval ac_val=\$$ac_var
1543 # Remove trailing slashes.
1546 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1547 eval $ac_var=\$ac_val;;
1549 # Be sure to have absolute directory names.
1551 [\\/$]* | ?:[\\/]* ) continue;;
1552 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1554 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1557 # There might be people who depend on the old broken behavior: `$host'
1558 # used to hold the argument of --host etc.
1559 # FIXME: To remove some day.
1562 target=$target_alias
1564 # FIXME: To remove some day.
1565 if test "x$host_alias" != x; then
1566 if test "x$build_alias" = x; then
1567 cross_compiling=maybe
1568 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1569 If a cross compiler is detected then cross compile mode will be used." >&2
1570 elif test "x$build_alias" != "x$host_alias"; then
1576 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1578 test "$silent" = yes && exec 6>/dev/null
1581 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1582 ac_ls_di=`ls -di .` &&
1583 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1584 as_fn_error "working directory cannot be determined"
1585 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1586 as_fn_error "pwd does not report name of working directory"
1589 # Find the source files, if location was not specified.
1590 if test -z "$srcdir"; then
1591 ac_srcdir_defaulted=yes
1592 # Try the directory containing this script, then the parent directory.
1593 ac_confdir=`$as_dirname -- "$as_myself" ||
1594 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1595 X"$as_myself" : 'X\(//\)[^/]' \| \
1596 X"$as_myself" : 'X\(//\)$' \| \
1597 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1598 $as_echo X"$as_myself" |
1599 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1617 if test ! -r "$srcdir/$ac_unique_file"; then
1621 ac_srcdir_defaulted=no
1623 if test ! -r "$srcdir/$ac_unique_file"; then
1624 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1625 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1627 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1629 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1631 # When building in place, set srcdir=.
1632 if test "$ac_abs_confdir" = "$ac_pwd"; then
1635 # Remove unnecessary trailing slashes from srcdir.
1636 # Double slashes in file names in object file debugging info
1637 # mess up M-x gdb in Emacs.
1639 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1641 for ac_var in $ac_precious_vars; do
1642 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1643 eval ac_env_${ac_var}_value=\$${ac_var}
1644 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1645 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1649 # Report the --help message.
1651 if test "$ac_init_help" = "long"; then
1652 # Omit some internal or obsolete options to make the list less imposing.
1653 # This message is too long to be a string in the A/UX 3.1 sh.
1655 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1657 Usage: $0 [OPTION]... [VAR=VALUE]...
1659 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1660 VAR=VALUE. See below for descriptions of some of the useful variables.
1662 Defaults for the options are specified in brackets.
1665 -h, --help display this help and exit
1666 --help=short display options specific to this package
1667 --help=recursive display the short help of all the included packages
1668 -V, --version display version information and exit
1669 -q, --quiet, --silent do not print \`checking...' messages
1670 --cache-file=FILE cache test results in FILE [disabled]
1671 -C, --config-cache alias for \`--cache-file=config.cache'
1672 -n, --no-create do not create output files
1673 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1675 Installation directories:
1676 --prefix=PREFIX install architecture-independent files in PREFIX
1677 [$ac_default_prefix]
1678 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1681 By default, \`make install' will install all the files in
1682 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1683 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1684 for instance \`--prefix=\$HOME'.
1686 For better control, use the options below.
1688 Fine tuning of the installation directories:
1689 --bindir=DIR user executables [EPREFIX/bin]
1690 --sbindir=DIR system admin executables [EPREFIX/sbin]
1691 --libexecdir=DIR program executables [EPREFIX/libexec]
1692 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1693 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1694 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1695 --libdir=DIR object code libraries [EPREFIX/lib]
1696 --includedir=DIR C header files [PREFIX/include]
1697 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1698 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1699 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1700 --infodir=DIR info documentation [DATAROOTDIR/info]
1701 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1702 --mandir=DIR man documentation [DATAROOTDIR/man]
1703 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1704 --htmldir=DIR html documentation [DOCDIR]
1705 --dvidir=DIR dvi documentation [DOCDIR]
1706 --pdfdir=DIR pdf documentation [DOCDIR]
1707 --psdir=DIR ps documentation [DOCDIR]
1713 --program-prefix=PREFIX prepend PREFIX to installed program names
1714 --program-suffix=SUFFIX append SUFFIX to installed program names
1715 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1718 --x-includes=DIR X include files are in DIR
1719 --x-libraries=DIR X library files are in DIR
1722 --build=BUILD configure for building on BUILD [guessed]
1723 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1724 --target=TARGET configure for building compilers for TARGET [HOST]
1728 if test -n "$ac_init_help"; then
1729 case $ac_init_help in
1730 short | recursive ) echo "Configuration of libjava version-unused:";;
1735 --disable-option-checking ignore unrecognized --enable/--with options
1736 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1737 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1738 --enable-multilib build many library versions (default)
1739 --enable-version-specific-runtime-libs
1740 specify that runtime libraries should be installed
1741 in a compiler-specific directory
1742 --enable-plugin build gcjwebplugin web browser plugin
1743 --enable-gconf-peer compile GConf native peers for util.preferences
1744 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1746 --enable-java-maintainer-mode
1747 allow rebuilding of .class and .h files
1748 --disable-dependency-tracking speeds up one-time build
1749 --enable-dependency-tracking do not reject slow dependency extractors
1750 --enable-maintainer-mode enable make rules and dependencies not useful
1751 (and sometimes confusing) to the casual installer
1752 --enable-libgcj-sublibs build libgcj as many sub-libraries
1753 --enable-libgcj-debug enable runtime debugging code
1754 --enable-java-awt list of AWT peer implementations to be built
1755 --enable-shared[=PKGS] build shared libraries [default=yes]
1756 --enable-static[=PKGS] build static libraries [default=yes]
1757 --enable-fast-install[=PKGS]
1758 optimize for fast installation [default=yes]
1759 --disable-libtool-lock avoid locking (might break parallel builds)
1760 --disable-getenv-properties
1761 don't set system properties from GCJ_PROPERTIES
1762 --enable-hash-synchronization
1763 use global hash table for monitor locks
1764 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1766 --enable-reduced-reflection
1767 enable or disable(default) -freduced-reflection when
1768 building portions of libgcj
1769 --enable-gc-debug include full support for pointer backtracing etc.
1770 --enable-interpreter enable interpreter
1771 --enable-sjlj-exceptions
1772 force use of builtin_setjmp for exceptions
1773 --disable-java-net disable java.net
1774 --disable-jvmpi disable JVMPI support
1775 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1776 --disable-rpath do not hardcode runtime library paths
1777 --enable-tls Use thread-local storage [default=yes]
1778 --enable-aot-compile-rpm
1779 enable installation of aot-compile-rpm [default=no]
1780 --enable-java-home create a standard JDK-style directory layout in the
1781 install tree [default=no]
1784 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1785 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1786 --with-build-libsubdir=DIR Directory where to find libraries for build system
1787 --with-target-subdir=SUBDIR
1788 configure in a subdirectory
1789 --with-cross-host=HOST configure with a cross compiler from HOST
1790 --with-newlib configure with newlib
1791 --with-antlr-jar=file Use ANTLR from the specified jar file
1792 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1793 --with-pic try to use only PIC/non-PIC objects [default=use
1795 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1796 --with-ecj-jar=FILE use preinstalled ecj jar
1797 --with-java-home=DIRECTORY
1798 value of java.home system property
1799 --with-win32-nlsapi=ansi or unicows or unicode
1800 native MinGW libgcj Win32 OS API (default is ansi)
1801 --without-libffi don't use libffi
1802 --with-ecos enable runtime eCos target support
1803 --with-system-zlib use installed libz
1804 --with-x use the X Window System
1805 --with-gnu-ld assume the C compiler uses GNU ld default=no
1806 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1807 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1808 --with-system-libunwind use installed libunwind
1809 --with-python-dir the location to install Python modules. This path
1810 should NOT include the prefix.
1811 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1812 --with-arch-directory the arch directory under jre/lib (defaults to
1814 --with-os-directory the os directory under include (defaults to
1816 --with-origin-name the JPackage origin name of this package (default is
1818 --with-arch-suffix the arch directory suffix (default is the empty
1820 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1821 --with-jvm-jar-dir where to install jars (default is
1822 ${prefix}/lib/jvm-exports)
1824 Some influential environment variables:
1825 CC C compiler command
1826 CFLAGS C compiler flags
1827 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1828 nonstandard directory <lib dir>
1829 LIBS libraries to pass to the linker, e.g. -l<library>
1830 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1831 you have headers in a nonstandard directory <include dir>
1832 CXX C++ compiler command
1833 CXXFLAGS C++ compiler flags
1835 CXXCPP C++ preprocessor
1836 XMKMF Path to xmkmf, Makefile generator for X Window System
1838 Use these variables to override the choices made by `configure' or to help
1839 it to find libraries and programs with nonstandard names/locations.
1841 Report bugs to the package provider.
1846 if test "$ac_init_help" = "recursive"; then
1847 # If there are subdirs, report their specific --help.
1848 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1849 test -d "$ac_dir" ||
1850 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1855 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1857 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1858 # A ".." for each directory in $ac_dir_suffix.
1859 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1860 case $ac_top_builddir_sub in
1861 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1862 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1865 ac_abs_top_builddir=$ac_pwd
1866 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1867 # for backward compatibility:
1868 ac_top_builddir=$ac_top_build_prefix
1871 .) # We are building in place.
1873 ac_top_srcdir=$ac_top_builddir_sub
1874 ac_abs_top_srcdir=$ac_pwd ;;
1875 [\\/]* | ?:[\\/]* ) # Absolute name.
1876 ac_srcdir=$srcdir$ac_dir_suffix;
1877 ac_top_srcdir=$srcdir
1878 ac_abs_top_srcdir=$srcdir ;;
1880 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1881 ac_top_srcdir=$ac_top_build_prefix$srcdir
1882 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1884 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1886 cd "$ac_dir" || { ac_status=$?; continue; }
1887 # Check for guested configure.
1888 if test -f "$ac_srcdir/configure.gnu"; then
1890 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1891 elif test -f "$ac_srcdir/configure"; then
1893 $SHELL "$ac_srcdir/configure" --help=recursive
1895 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1897 cd "$ac_pwd" || { ac_status=$?; break; }
1901 test -n "$ac_init_help" && exit $ac_status
1902 if $ac_init_version; then
1904 libjava configure version-unused
1905 generated by GNU Autoconf 2.64
1907 Copyright (C) 2009 Free Software Foundation, Inc.
1908 This configure script is free software; the Free Software Foundation
1909 gives unlimited permission to copy, distribute and modify it.
1914 ## ------------------------ ##
1915 ## Autoconf initialization. ##
1916 ## ------------------------ ##
1918 # ac_fn_c_try_compile LINENO
1919 # --------------------------
1920 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_c_try_compile ()
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext
1925 if { { ac_try="$ac_compile"
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_compile") 2>conftest.err
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_c_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest.$ac_objext; then :
1946 $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954 } # ac_fn_c_try_compile
1956 # ac_fn_cxx_try_compile LINENO
1957 # ----------------------------
1958 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_cxx_try_compile ()
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 rm -f conftest.$ac_objext
1963 if { { ac_try="$ac_compile"
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_compile") 2>conftest.err
1972 if test -s conftest.err; then
1973 grep -v '^ *+' conftest.err >conftest.er1
1974 cat conftest.er1 >&5
1975 mv -f conftest.er1 conftest.err
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && {
1979 test -z "$ac_cxx_werror_flag" ||
1980 test ! -s conftest.err
1981 } && test -s conftest.$ac_objext; then :
1984 $as_echo "$as_me: failed program was:" >&5
1985 sed 's/^/| /' conftest.$ac_ext >&5
1989 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992 } # ac_fn_cxx_try_compile
1994 # ac_fn_c_try_link LINENO
1995 # -----------------------
1996 # Try to link conftest.$ac_ext, and return whether this succeeded.
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 rm -f conftest.$ac_objext conftest$ac_exeext
2001 if { { ac_try="$ac_link"
2003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2004 *) ac_try_echo=$ac_try;;
2006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2007 $as_echo "$ac_try_echo"; } >&5
2008 (eval "$ac_link") 2>conftest.err
2010 if test -s conftest.err; then
2011 grep -v '^ *+' conftest.err >conftest.er1
2012 cat conftest.er1 >&5
2013 mv -f conftest.er1 conftest.err
2015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2016 test $ac_status = 0; } && {
2017 test -z "$ac_c_werror_flag" ||
2018 test ! -s conftest.err
2019 } && test -s conftest$ac_exeext && {
2020 test "$cross_compiling" = yes ||
2021 $as_test_x conftest$ac_exeext
2025 $as_echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2030 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2031 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2032 # interfere with the next link command; also delete a directory that is
2033 # left behind by Apple's compiler. We do this before executing the actions.
2034 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2035 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2038 } # ac_fn_c_try_link
2040 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2041 # -------------------------------------------------------
2042 # Tests whether HEADER exists and can be compiled using the include files in
2043 # INCLUDES, setting the cache variable VAR accordingly.
2044 ac_fn_c_check_header_compile ()
2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050 $as_echo_n "(cached) " >&6
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h. */
2057 if ac_fn_c_try_compile "$LINENO"; then :
2062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066 $as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2069 } # ac_fn_c_check_header_compile
2071 # ac_fn_c_try_cpp LINENO
2072 # ----------------------
2073 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2076 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2077 if { { ac_try="$ac_cpp conftest.$ac_ext"
2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2082 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2083 $as_echo "$ac_try_echo"; } >&5
2084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2086 if test -s conftest.err; then
2087 grep -v '^ *+' conftest.err >conftest.er1
2088 cat conftest.er1 >&5
2089 mv -f conftest.er1 conftest.err
2091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2092 test $ac_status = 0; } >/dev/null && {
2093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2094 test ! -s conftest.err
2098 $as_echo "$as_me: failed program was:" >&5
2099 sed 's/^/| /' conftest.$ac_ext >&5
2103 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108 # ac_fn_c_try_run LINENO
2109 # ----------------------
2110 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2111 # that executables *can* be run.
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 if { { ac_try="$ac_link"
2117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2118 *) ac_try_echo=$ac_try;;
2120 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2121 $as_echo "$ac_try_echo"; } >&5
2122 (eval "$ac_link") 2>&5
2124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2125 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2126 { { case "(($ac_try" in
2127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2128 *) ac_try_echo=$ac_try;;
2130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2131 $as_echo "$ac_try_echo"; } >&5
2132 (eval "$ac_try") 2>&5
2134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2135 test $ac_status = 0; }; }; then :
2138 $as_echo "$as_me: program exited with status $ac_status" >&5
2139 $as_echo "$as_me: failed program was:" >&5
2140 sed 's/^/| /' conftest.$ac_ext >&5
2142 ac_retval=$ac_status
2144 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2145 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2150 # ac_fn_c_check_func LINENO FUNC VAR
2151 # ----------------------------------
2152 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2153 ac_fn_c_check_func ()
2155 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2157 $as_echo_n "checking for $2... " >&6; }
2158 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2159 $as_echo_n "(cached) " >&6
2161 if test x$gcc_no_link = xyes; then
2162 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2166 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2168 #define $2 innocuous_$2
2170 /* System header to define __stub macros and hopefully few prototypes,
2171 which can conflict with char $2 (); below.
2172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2173 <limits.h> exists even on freestanding compilers. */
2176 # include <limits.h>
2178 # include <assert.h>
2183 /* Override any GCC internal prototype to avoid an error.
2184 Use char because int might match the return type of a GCC
2185 builtin and then its argument prototype would still apply. */
2190 /* The GNU C library defines this for functions which it implements
2191 to always fail with ENOSYS. Some functions are actually named
2192 something starting with __ and the normal name is an alias. */
2193 #if defined __stub_$2 || defined __stub___$2
2205 if ac_fn_c_try_link "$LINENO"; then :
2210 rm -f core conftest.err conftest.$ac_objext \
2211 conftest$ac_exeext conftest.$ac_ext
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2215 $as_echo "$ac_res" >&6; }
2216 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2218 } # ac_fn_c_check_func
2220 # ac_fn_cxx_try_cpp LINENO
2221 # ------------------------
2222 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2223 ac_fn_cxx_try_cpp ()
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 if { { ac_try="$ac_cpp conftest.$ac_ext"
2228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2229 *) ac_try_echo=$ac_try;;
2231 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2232 $as_echo "$ac_try_echo"; } >&5
2233 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2235 if test -s conftest.err; then
2236 grep -v '^ *+' conftest.err >conftest.er1
2237 cat conftest.er1 >&5
2238 mv -f conftest.er1 conftest.err
2240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2241 test $ac_status = 0; } >/dev/null && {
2242 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2243 test ! -s conftest.err
2247 $as_echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2252 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2255 } # ac_fn_cxx_try_cpp
2257 # ac_fn_cxx_try_link LINENO
2258 # -------------------------
2259 # Try to link conftest.$ac_ext, and return whether this succeeded.
2260 ac_fn_cxx_try_link ()
2262 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2263 rm -f conftest.$ac_objext conftest$ac_exeext
2264 if { { ac_try="$ac_link"
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_link") 2>conftest.err
2273 if test -s conftest.err; then
2274 grep -v '^ *+' conftest.err >conftest.er1
2275 cat conftest.er1 >&5
2276 mv -f conftest.er1 conftest.err
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; } && {
2280 test -z "$ac_cxx_werror_flag" ||
2281 test ! -s conftest.err
2282 } && test -s conftest$ac_exeext && {
2283 test "$cross_compiling" = yes ||
2284 $as_test_x conftest$ac_exeext
2288 $as_echo "$as_me: failed program was:" >&5
2289 sed 's/^/| /' conftest.$ac_ext >&5
2293 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2294 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2295 # interfere with the next link command; also delete a directory that is
2296 # left behind by Apple's compiler. We do this before executing the actions.
2297 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2298 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2301 } # ac_fn_cxx_try_link
2303 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2304 # -------------------------------------------------------
2305 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2306 # the include files in INCLUDES and setting the cache variable VAR
2308 ac_fn_c_check_header_mongrel ()
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2313 $as_echo_n "checking for $2... " >&6; }
2314 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2315 $as_echo_n "(cached) " >&6
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2319 $as_echo "$ac_res" >&6; }
2321 # Is the header compilable?
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2323 $as_echo_n "checking $2 usability... " >&6; }
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325 /* end confdefs.h. */
2329 if ac_fn_c_try_compile "$LINENO"; then :
2330 ac_header_compiler=yes
2332 ac_header_compiler=no
2334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2336 $as_echo "$ac_header_compiler" >&6; }
2338 # Is the header present?
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2340 $as_echo_n "checking $2 presence... " >&6; }
2341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342 /* end confdefs.h. */
2345 if ac_fn_c_try_cpp "$LINENO"; then :
2346 ac_header_preproc=yes
2348 ac_header_preproc=no
2350 rm -f conftest.err conftest.$ac_ext
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2352 $as_echo "$ac_header_preproc" >&6; }
2354 # So? What about this header?
2355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2358 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2360 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2364 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2365 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2366 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2368 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2370 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2372 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2376 $as_echo_n "checking for $2... " >&6; }
2377 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2378 $as_echo_n "(cached) " >&6
2380 eval "$3=\$ac_header_compiler"
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2384 $as_echo "$ac_res" >&6; }
2386 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2388 } # ac_fn_c_check_header_mongrel
2390 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2391 # ----------------------------------------------------
2392 # Tries to find if the field MEMBER exists in type AGGR, after including
2393 # INCLUDES, setting cache variable VAR accordingly.
2394 ac_fn_c_check_member ()
2396 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2398 $as_echo_n "checking for $2.$3... " >&6; }
2399 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2400 $as_echo_n "(cached) " >&6
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403 /* end confdefs.h. */
2415 if ac_fn_c_try_compile "$LINENO"; then :
2418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2419 /* end confdefs.h. */
2425 if (sizeof ac_aggr.$3)
2431 if ac_fn_c_try_compile "$LINENO"; then :
2436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2442 $as_echo "$ac_res" >&6; }
2443 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2445 } # ac_fn_c_check_member
2447 # ac_fn_c_check_decl LINENO SYMBOL VAR
2448 # ------------------------------------
2449 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2450 ac_fn_c_check_decl ()
2452 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2454 $as_echo_n "checking whether $2 is declared... " >&6; }
2455 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2456 $as_echo_n "(cached) " >&6
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2472 if ac_fn_c_try_compile "$LINENO"; then :
2477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2482 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2484 } # ac_fn_c_check_decl
2486 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2487 # --------------------------------------------
2488 # Tries to find the compile-time value of EXPR in a program that includes
2489 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2491 ac_fn_c_compute_int ()
2493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2494 if test "$cross_compiling" = yes; then
2495 # Depending upon the size, compute the lo and hi bounds.
2496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2497 /* end confdefs.h. */
2502 static int test_array [1 - 2 * !(($2) >= 0)];
2509 if ac_fn_c_try_compile "$LINENO"; then :
2512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513 /* end confdefs.h. */
2518 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2525 if ac_fn_c_try_compile "$LINENO"; then :
2526 ac_hi=$ac_mid; break
2528 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2529 if test $ac_lo -le $ac_mid; then
2533 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2539 /* end confdefs.h. */
2544 static int test_array [1 - 2 * !(($2) < 0)];
2551 if ac_fn_c_try_compile "$LINENO"; then :
2554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2555 /* end confdefs.h. */
2560 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2567 if ac_fn_c_try_compile "$LINENO"; then :
2568 ac_lo=$ac_mid; break
2570 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2571 if test $ac_mid -le $ac_hi; then
2575 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 # Binary search between lo and hi bounds.
2586 while test "x$ac_lo" != "x$ac_hi"; do
2587 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2589 /* end confdefs.h. */
2594 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2601 if ac_fn_c_try_compile "$LINENO"; then :
2604 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2614 /* end confdefs.h. */
2616 static long int longval () { return $2; }
2617 static unsigned long int ulongval () { return $2; }
2624 FILE *f = fopen ("conftest.val", "w");
2629 long int i = longval ();
2632 fprintf (f, "%ld", i);
2636 unsigned long int i = ulongval ();
2639 fprintf (f, "%lu", i);
2641 /* Do not output a trailing newline, as this causes \r\n confusion
2642 on some platforms. */
2643 return ferror (f) || fclose (f) != 0;
2649 if ac_fn_c_try_run "$LINENO"; then :
2650 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2655 conftest.$ac_objext conftest.beam conftest.$ac_ext
2659 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2662 } # ac_fn_c_compute_int
2664 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2665 # -------------------------------------------
2666 # Tests whether TYPE exists after having included INCLUDES, setting cache
2667 # variable VAR accordingly.
2668 ac_fn_c_check_type ()
2670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2672 $as_echo_n "checking for $2... " >&6; }
2673 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2674 $as_echo_n "(cached) " >&6
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2689 if ac_fn_c_try_compile "$LINENO"; then :
2690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2691 /* end confdefs.h. */
2702 if ac_fn_c_try_compile "$LINENO"; then :
2707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2713 $as_echo "$ac_res" >&6; }
2714 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2716 } # ac_fn_c_check_type
2717 cat >config.log <<_ACEOF
2718 This file contains any messages produced by compilers while
2719 running configure, to aid debugging if configure makes a mistake.
2721 It was created by libjava $as_me version-unused, which was
2722 generated by GNU Autoconf 2.64. Invocation command line was
2734 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2735 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2736 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2737 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2738 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2740 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2741 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2743 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2744 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2745 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2746 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2747 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2748 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2749 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2757 test -z "$as_dir" && as_dir=.
2758 $as_echo "PATH: $as_dir"
2774 # Keep a trace of the command line.
2775 # Strip out --no-create and --no-recursion so they do not pile up.
2776 # Strip out --silent because we don't want to record it for future runs.
2777 # Also quote any args containing shell meta-characters.
2778 # Make two passes to allow for proper duplicate-argument suppression.
2782 ac_must_keep_next=false
2788 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2789 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2790 | -silent | --silent | --silen | --sile | --sil)
2793 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2796 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2798 as_fn_append ac_configure_args1 " '$ac_arg'"
2799 if test $ac_must_keep_next = true; then
2800 ac_must_keep_next=false # Got value, back to normal.
2803 *=* | --config-cache | -C | -disable-* | --disable-* \
2804 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2805 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2806 | -with-* | --with-* | -without-* | --without-* | --x)
2807 case "$ac_configure_args0 " in
2808 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2811 -* ) ac_must_keep_next=true ;;
2814 as_fn_append ac_configure_args " '$ac_arg'"
2819 { ac_configure_args0=; unset ac_configure_args0;}
2820 { ac_configure_args1=; unset ac_configure_args1;}
2822 # When interrupted or exit'd, cleanup temporary files, and complete
2823 # config.log. We remove comments because anyway the quotes in there
2824 # would cause problems or look ugly.
2825 # WARNING: Use '\'' to represent an apostrophe within the trap.
2826 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2827 trap 'exit_status=$?
2828 # Save into config.log some information that might help in debugging.
2833 ## ---------------- ##
2834 ## Cache variables. ##
2835 ## ---------------- ##
2838 # The following way of writing the cache mishandles newlines in values,
2840 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2841 eval ac_val=\$$ac_var
2845 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2846 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2849 _ | IFS | as_nl) ;; #(
2850 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2851 *) { eval $ac_var=; unset $ac_var;} ;;
2856 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2857 *${as_nl}ac_space=\ *)
2859 "s/'\''/'\''\\\\'\'''\''/g;
2860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2863 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2871 ## ----------------- ##
2872 ## Output variables. ##
2873 ## ----------------- ##
2876 for ac_var in $ac_subst_vars
2878 eval ac_val=\$$ac_var
2880 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2882 $as_echo "$ac_var='\''$ac_val'\''"
2886 if test -n "$ac_subst_files"; then
2888 ## ------------------- ##
2889 ## File substitutions. ##
2890 ## ------------------- ##
2893 for ac_var in $ac_subst_files
2895 eval ac_val=\$$ac_var
2897 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2899 $as_echo "$ac_var='\''$ac_val'\''"
2904 if test -s confdefs.h; then
2914 test "$ac_signal" != 0 &&
2915 $as_echo "$as_me: caught signal $ac_signal"
2916 $as_echo "$as_me: exit $exit_status"
2918 rm -f core *.core core.conftest.* &&
2919 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2922 for ac_signal in 1 2 13 15; do
2923 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2927 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2928 rm -f -r conftest* confdefs.h
2930 $as_echo "/* confdefs.h */" > confdefs.h
2932 # Predefined preprocessor variables.
2934 cat >>confdefs.h <<_ACEOF
2935 #define PACKAGE_NAME "$PACKAGE_NAME"
2938 cat >>confdefs.h <<_ACEOF
2939 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2942 cat >>confdefs.h <<_ACEOF
2943 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2946 cat >>confdefs.h <<_ACEOF
2947 #define PACKAGE_STRING "$PACKAGE_STRING"
2950 cat >>confdefs.h <<_ACEOF
2951 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2954 cat >>confdefs.h <<_ACEOF
2955 #define PACKAGE_URL "$PACKAGE_URL"
2959 # Let the site file select an alternate cache file if it wants to.
2960 # Prefer an explicitly selected file to automatically selected ones.
2963 if test -n "$CONFIG_SITE"; then
2964 ac_site_file1=$CONFIG_SITE
2965 elif test "x$prefix" != xNONE; then
2966 ac_site_file1=$prefix/share/config.site
2967 ac_site_file2=$prefix/etc/config.site
2969 ac_site_file1=$ac_default_prefix/share/config.site
2970 ac_site_file2=$ac_default_prefix/etc/config.site
2972 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2974 test "x$ac_site_file" = xNONE && continue
2975 if test -r "$ac_site_file"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2977 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2978 sed 's/^/| /' "$ac_site_file" >&5
2983 if test -r "$cache_file"; then
2984 # Some versions of bash will fail to source /dev/null (special
2985 # files actually), so we avoid doing that.
2986 if test -f "$cache_file"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2988 $as_echo "$as_me: loading cache $cache_file" >&6;}
2990 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2991 *) . "./$cache_file";;
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2996 $as_echo "$as_me: creating cache $cache_file" >&6;}
3000 # Check that the precious variables saved in the cache have kept the same
3002 ac_cache_corrupted=false
3003 for ac_var in $ac_precious_vars; do
3004 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3005 eval ac_new_set=\$ac_env_${ac_var}_set
3006 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3007 eval ac_new_val=\$ac_env_${ac_var}_value
3008 case $ac_old_set,$ac_new_set in
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3011 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3012 ac_cache_corrupted=: ;;
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3015 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3016 ac_cache_corrupted=: ;;
3019 if test "x$ac_old_val" != "x$ac_new_val"; then
3020 # differences in whitespace do not lead to failure.
3021 ac_old_val_w=`echo x $ac_old_val`
3022 ac_new_val_w=`echo x $ac_new_val`
3023 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3025 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3026 ac_cache_corrupted=:
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3029 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3030 eval $ac_var=\$ac_old_val
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3033 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3035 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3038 # Pass precious variables to config.status.
3039 if test "$ac_new_set" = set; then
3041 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3042 *) ac_arg=$ac_var=$ac_new_val ;;
3044 case " $ac_configure_args " in
3045 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3046 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3050 if $ac_cache_corrupted; then
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3054 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3055 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3057 ## -------------------- ##
3058 ## Main body of script. ##
3059 ## -------------------- ##
3062 ac_cpp='$CPP $CPPFLAGS'
3063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3075 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3076 for ac_t in install-sh install.sh shtool; do
3077 if test -f "$ac_dir/$ac_t"; then
3079 ac_install_sh="$ac_aux_dir/$ac_t -c"
3084 if test -z "$ac_aux_dir"; then
3085 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3088 # These three variables are undocumented and unsupported,
3089 # and are intended to be withdrawn in a future Autoconf release.
3090 # They can cause serious problems if a builder's source tree is in a directory
3091 # whose full name contains unusual characters.
3092 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3093 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3094 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3097 # Make sure we can run config.sub.
3098 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3099 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3102 $as_echo_n "checking build system type... " >&6; }
3103 if test "${ac_cv_build+set}" = set; then :
3104 $as_echo_n "(cached) " >&6
3106 ac_build_alias=$build_alias
3107 test "x$ac_build_alias" = x &&
3108 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3109 test "x$ac_build_alias" = x &&
3110 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3111 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3112 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3116 $as_echo "$ac_cv_build" >&6; }
3117 case $ac_cv_build in
3119 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3122 ac_save_IFS=$IFS; IFS='-'
3128 # Remember, the first character of IFS is used to create $*,
3129 # except with old shells:
3132 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3135 case ${build_alias} in
3136 "") build_noncanonical=${build} ;;
3137 *) build_noncanonical=${build_alias} ;;
3140 case ${host_alias} in
3141 "") host_noncanonical=${build_noncanonical} ;;
3142 *) host_noncanonical=${host_alias} ;;
3145 case ${target_alias} in
3146 "") target_noncanonical=${host_noncanonical} ;;
3147 *) target_noncanonical=${target_alias} ;;
3151 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3152 # have matching libraries, they should use host libraries: Makefile.tpl
3153 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3154 # However, they still use the build modules, because the corresponding
3155 # host modules (e.g. bison) are only built for the host when bootstrap
3157 # - build_subdir is where we find build modules, and never changes.
3158 # - build_libsubdir is where we find build libraries, and can be overridden.
3160 # Prefix 'build-' so this never conflicts with target_subdir.
3161 build_subdir="build-${build_noncanonical}"
3163 # Check whether --with-build-libsubdir was given.
3164 if test "${with_build_libsubdir+set}" = set; then :
3165 withval=$with_build_libsubdir; build_libsubdir="$withval"
3167 build_libsubdir="$build_subdir"
3170 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3171 if ( test $srcdir = . && test -d gcc ) \
3172 || test -d $srcdir/../host-${host_noncanonical}; then
3173 host_subdir="host-${host_noncanonical}"
3178 target_subdir=${target_noncanonical}
3181 # We use these options to decide which functions to include.
3183 # Check whether --with-target-subdir was given.
3184 if test "${with_target_subdir+set}" = set; then :
3185 withval=$with_target_subdir;
3189 # We may get other options which we don't document:
3190 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3192 # Find the rest of the source tree framework.
3193 # Default to --enable-multilib
3194 # Check whether --enable-multilib was given.
3195 if test "${enable_multilib+set}" = set; then :
3196 enableval=$enable_multilib; case "$enableval" in
3197 yes) multilib=yes ;;
3199 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3206 # We may get other options which we leave undocumented:
3207 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3208 # See config-ml.in if you want the gory details.
3210 if test "$srcdir" = "."; then
3211 if test "$with_target_subdir" != "."; then
3212 multi_basedir="$srcdir/$with_multisrctop../.."
3214 multi_basedir="$srcdir/$with_multisrctop.."
3217 multi_basedir="$srcdir/.."
3221 # Even if the default multilib is not a cross compilation,
3222 # it may be that some of the other multilibs are.
3223 if test $cross_compiling = no && test $multilib = yes \
3224 && test "x${with_multisubdir}" != x ; then
3225 cross_compiling=maybe
3228 ac_config_commands="$ac_config_commands default-1"
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3232 $as_echo_n "checking host system type... " >&6; }
3233 if test "${ac_cv_host+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
3236 if test "x$host_alias" = x; then
3237 ac_cv_host=$ac_cv_build
3239 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3240 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3245 $as_echo "$ac_cv_host" >&6; }
3248 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3251 ac_save_IFS=$IFS; IFS='-'
3257 # Remember, the first character of IFS is used to create $*,
3258 # except with old shells:
3261 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3265 $as_echo_n "checking target system type... " >&6; }
3266 if test "${ac_cv_target+set}" = set; then :
3267 $as_echo_n "(cached) " >&6
3269 if test "x$target_alias" = x; then
3270 ac_cv_target=$ac_cv_host
3272 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3273 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3278 $as_echo "$ac_cv_target" >&6; }
3279 case $ac_cv_target in
3281 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3283 target=$ac_cv_target
3284 ac_save_IFS=$IFS; IFS='-'
3290 # Remember, the first character of IFS is used to create $*,
3291 # except with old shells:
3294 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3297 # The aliases save the names the user supplied, while $host etc.
3298 # will get canonicalized.
3299 test -n "$target_alias" &&
3300 test "$program_prefix$program_suffix$program_transform_name" = \
3302 program_prefix=${target_alias}-
3304 case ${build_alias} in
3305 "") build_noncanonical=${build} ;;
3306 *) build_noncanonical=${build_alias} ;;
3309 case ${target_alias} in
3310 "") target_noncanonical=${host_noncanonical} ;;
3311 *) target_noncanonical=${target_alias} ;;
3317 # This works around the fact that libtool configuration may change LD
3318 # for this particular configuration, but some shells, instead of
3319 # keeping the changes in LD private, export them just because LD is
3321 ORIGINAL_LD_FOR_MULTILIBS=$LD
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3324 $as_echo_n "checking whether ln -s works... " >&6; }
3326 if test "$LN_S" = "ln -s"; then
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3328 $as_echo "yes" >&6; }
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3331 $as_echo "no, using $LN_S" >&6; }
3335 # This works around an automake problem.
3336 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3340 # Check whether --with-cross-host was given.
3341 if test "${with_cross_host+set}" = set; then :
3342 withval=$with_cross_host;
3347 # Check whether --with-newlib was given.
3348 if test "${with_newlib+set}" = set; then :
3349 withval=$with_newlib;
3353 # Check whether --enable-version-specific-runtime-libs was given.
3354 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3355 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3356 yes) version_specific_libs=yes ;;
3357 no) version_specific_libs=no ;;
3358 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3361 version_specific_libs=no
3366 # Check whether --enable-plugin was given.
3367 if test "${enable_plugin+set}" = set; then :
3368 enableval=$enable_plugin; case "$enableval" in
3369 yes) plugin_enabled=yes ;;
3370 no) plugin_enabled=no ;;
3371 *) as_fn_error "Unknown argument to enable/disable plugin" "$LINENO" 5;;
3379 # Check whether --enable-gconf-peer was given.
3380 if test "${enable_gconf_peer+set}" = set; then :
3381 enableval=$enable_gconf_peer; case "$enableval" in
3382 yes) gconf_enabled=yes ;;
3383 no) gconf_enabled=no ;;
3384 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3393 # Check whether --with-antlr-jar was given.
3394 if test "${with_antlr_jar+set}" = set; then :
3395 withval=$with_antlr_jar;
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3406 $as_echo_n "checking for antlr.jar... " >&6; }
3407 if test "x$ANTLR_JAR" = x; then
3408 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3409 /usr/share/antlr/lib /usr/share/java /usr/lib;
3411 if test -f "$antlr_lib_home/antlr.jar"; then
3412 # FIXME: version check for antlr needed without using a VM
3413 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3417 if test "x$ANTLR_JAR" = x; then
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3419 $as_echo "not found" >&6; }
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3422 $as_echo "$ANTLR_JAR" >&6; }
3425 if test -f "${ANTLR_JAR}"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3427 $as_echo "$ANTLR_JAR" >&6; }
3429 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3434 # Check whether --enable-gjdoc was given.
3435 if test "${enable_gjdoc+set}" = set; then :
3436 enableval=$enable_gjdoc; case "${enableval}" in
3437 yes) BUILD_GJDOC=yes ;;
3438 no) BUILD_GJDOC=no ;;
3439 *) BUILD_GJDOC=yes ;;
3446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3447 $as_echo_n "checking whether to build gjdoc... " >&6; }
3448 if test "x$BUILD_GJDOC" = xmaybe; then
3449 if test -f "${ANTLR_JAR}"; then
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3452 $as_echo "yes" >&6; }
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3456 $as_echo "no, antlr.jar not found" >&6; }
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3460 $as_echo "$BUILD_GJDOC" >&6; }
3462 if test "x${BUILD_GJDOC}" = xyes; then
3464 CREATE_GJDOC_FALSE='#'
3466 CREATE_GJDOC_TRUE='#'
3471 # Check whether --enable-java-maintainer-mode was given.
3472 if test "${enable_java_maintainer_mode+set}" = set; then :
3473 enableval=$enable_java_maintainer_mode;
3476 if test "$enable_java_maintainer_mode" = yes; then
3477 JAVA_MAINTAINER_MODE_TRUE=
3478 JAVA_MAINTAINER_MODE_FALSE='#'
3480 JAVA_MAINTAINER_MODE_TRUE='#'
3481 JAVA_MAINTAINER_MODE_FALSE=
3485 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3488 # (1) We use an abnormal CXX (without library references), so we
3489 # must cache it under a different name.
3490 # (2) CC, CFLAGS, CXX, CXXFLAGS, LDFLAGS must not be 'precious', or
3491 # the non-multilib-adjusted value will be used in multilibs.
3492 # (3) As a side effect, we must SUBST CXXFLAGS, CFLAGS, and LDFLAGS ourselves.
3493 # (4) As another side effect, automake doesn't automatically include them
3495 # (5) For libstdc++-v3, -fno-builtin must be present here so that a
3496 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3497 # used in later tests. This may not be necessary in libjava; I don't know.
3500 save_CXXFLAGS="$CXXFLAGS"
3501 CXXFLAGS="$CXXFLAGS -fno-builtin"
3503 ac_cpp='$CPP $CPPFLAGS'
3504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3507 if test -n "$ac_tool_prefix"; then
3508 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3509 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3511 $as_echo_n "checking for $ac_word... " >&6; }
3512 if test "${ac_cv_prog_CC+set}" = set; then :
3513 $as_echo_n "(cached) " >&6
3515 if test -n "$CC"; then
3516 ac_cv_prog_CC="$CC" # Let the user override the test.
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3536 if test -n "$CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3538 $as_echo "$CC" >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3546 if test -z "$ac_cv_prog_CC"; then
3548 # Extract the first word of "gcc", so it can be a program name with args.
3549 set dummy gcc; ac_word=$2
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3551 $as_echo_n "checking for $ac_word... " >&6; }
3552 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3553 $as_echo_n "(cached) " >&6
3555 if test -n "$ac_ct_CC"; then
3556 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 test -z "$as_dir" && as_dir=.
3563 for ac_exec_ext in '' $ac_executable_extensions; do
3564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3565 ac_cv_prog_ac_ct_CC="gcc"
3566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3576 if test -n "$ac_ct_CC"; then
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3578 $as_echo "$ac_ct_CC" >&6; }
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3581 $as_echo "no" >&6; }
3584 if test "x$ac_ct_CC" = x; then
3587 case $cross_compiling:$ac_tool_warned in
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3590 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3591 ac_tool_warned=yes ;;
3599 if test -z "$CC"; then
3600 if test -n "$ac_tool_prefix"; then
3601 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3602 set dummy ${ac_tool_prefix}cc; ac_word=$2
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3604 $as_echo_n "checking for $ac_word... " >&6; }
3605 if test "${ac_cv_prog_CC+set}" = set; then :
3606 $as_echo_n "(cached) " >&6
3608 if test -n "$CC"; then
3609 ac_cv_prog_CC="$CC" # Let the user override the test.
3611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 test -z "$as_dir" && as_dir=.
3616 for ac_exec_ext in '' $ac_executable_extensions; do
3617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3618 ac_cv_prog_CC="${ac_tool_prefix}cc"
3619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629 if test -n "$CC"; then
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3631 $as_echo "$CC" >&6; }
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3640 if test -z "$CC"; then
3641 # Extract the first word of "cc", so it can be a program name with args.
3642 set dummy cc; ac_word=$2
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3644 $as_echo_n "checking for $ac_word... " >&6; }
3645 if test "${ac_cv_prog_CC+set}" = set; then :
3646 $as_echo_n "(cached) " >&6
3648 if test -n "$CC"; then
3649 ac_cv_prog_CC="$CC" # Let the user override the test.
3652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3656 test -z "$as_dir" && as_dir=.
3657 for ac_exec_ext in '' $ac_executable_extensions; do
3658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3660 ac_prog_rejected=yes
3664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 if test $ac_prog_rejected = yes; then
3672 # We found a bogon in the path, so make sure we never use it.
3673 set dummy $ac_cv_prog_CC
3675 if test $# != 0; then
3676 # We chose a different compiler from the bogus one.
3677 # However, it has the same basename, so the bogon will be chosen
3678 # first if we set CC to just the basename; use the full file name.
3680 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3686 if test -n "$CC"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3688 $as_echo "$CC" >&6; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3696 if test -z "$CC"; then
3697 if test -n "$ac_tool_prefix"; then
3698 for ac_prog in cl.exe
3700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3701 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3703 $as_echo_n "checking for $ac_word... " >&6; }
3704 if test "${ac_cv_prog_CC+set}" = set; then :
3705 $as_echo_n "(cached) " >&6
3707 if test -n "$CC"; then
3708 ac_cv_prog_CC="$CC" # Let the user override the test.
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_exec_ext in '' $ac_executable_extensions; do
3716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3717 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3728 if test -n "$CC"; then
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3730 $as_echo "$CC" >&6; }
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3733 $as_echo "no" >&6; }
3737 test -n "$CC" && break
3740 if test -z "$CC"; then
3742 for ac_prog in cl.exe
3744 # Extract the first word of "$ac_prog", so it can be a program name with args.
3745 set dummy $ac_prog; ac_word=$2
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3747 $as_echo_n "checking for $ac_word... " >&6; }
3748 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3749 $as_echo_n "(cached) " >&6
3751 if test -n "$ac_ct_CC"; then
3752 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3758 test -z "$as_dir" && as_dir=.
3759 for ac_exec_ext in '' $ac_executable_extensions; do
3760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3761 ac_cv_prog_ac_ct_CC="$ac_prog"
3762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3771 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3772 if test -n "$ac_ct_CC"; then
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3774 $as_echo "$ac_ct_CC" >&6; }
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3777 $as_echo "no" >&6; }
3781 test -n "$ac_ct_CC" && break
3784 if test "x$ac_ct_CC" = x; then
3787 case $cross_compiling:$ac_tool_warned in
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3790 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3791 ac_tool_warned=yes ;;
3800 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 as_fn_error "no acceptable C compiler found in \$PATH
3803 See \`config.log' for more details." "$LINENO" 5; }
3805 # Provide some information about the compiler.
3806 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3809 for ac_option in --version -v -V -qversion; do
3810 { { ac_try="$ac_compiler $ac_option >&5"
3812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3813 *) ac_try_echo=$ac_try;;
3815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3816 $as_echo "$ac_try_echo"; } >&5
3817 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3819 if test -s conftest.err; then
3821 ... rest of stderr output deleted ...
3822 10q' conftest.err >conftest.er1
3823 cat conftest.er1 >&5
3824 rm -f conftest.er1 conftest.err
3826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3827 test $ac_status = 0; }
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h. */
3842 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3843 (eval $ac_link) 2>&5
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; then :
3851 if test x$gcc_no_link = xyes; then
3852 # Setting cross_compile will disable run tests; it will
3853 # also disable AC_CHECK_FILE but that's generally
3854 # correct if we can't link.
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3869 ac_clean_files_save=$ac_clean_files
3870 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3871 # Try to create an executable without -o first, disregard a.out.
3872 # It will help us diagnose broken compilers, and finding out an intuition
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3875 $as_echo_n "checking for C compiler default output file name... " >&6; }
3876 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3878 # The possible output files:
3879 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3882 for ac_file in $ac_files
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3886 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3891 if { { ac_try="$ac_link_default"
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_link_default") 2>&5
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; then :
3902 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3903 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3904 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3905 # so that the user can short-circuit this test for compilers unknown to
3907 for ac_file in $ac_files ''
3909 test -f "$ac_file" || continue
3911 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3914 # We found the default executable, but exeext='' is most
3918 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3920 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3922 # We set ac_cv_exeext here because the later test for it is not
3923 # safe: cross compilers may not add the suffix if given an `-o'
3924 # argument, so we may need to know it at that point already.
3925 # Even if this section looks crufty: it has the advantage of
3932 test "$ac_cv_exeext" = no && ac_cv_exeext=
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3938 $as_echo "$ac_file" >&6; }
3939 if test -z "$ac_file"; then :
3940 $as_echo "$as_me: failed program was:" >&5
3941 sed 's/^/| /' conftest.$ac_ext >&5
3943 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3944 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3945 { as_fn_set_status 77
3946 as_fn_error "C compiler cannot create executables
3947 See \`config.log' for more details." "$LINENO" 5; }; }
3949 ac_exeext=$ac_cv_exeext
3951 # Check that the compiler produces executables we can run. If not, either
3952 # the compiler is broken, or we cross compile.
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3954 $as_echo_n "checking whether the C compiler works... " >&6; }
3955 # If not cross compiling, check that we can run a simple program.
3956 if test "$cross_compiling" != yes; then
3957 if { ac_try='./$ac_file'
3958 { { case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3962 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3963 $as_echo "$ac_try_echo"; } >&5
3964 (eval "$ac_try") 2>&5
3966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3967 test $ac_status = 0; }; }; then
3970 if test "$cross_compiling" = maybe; then
3973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3975 as_fn_error "cannot run C compiled programs.
3976 If you meant to cross compile, use \`--host'.
3977 See \`config.log' for more details." "$LINENO" 5; }
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3982 $as_echo "yes" >&6; }
3984 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3985 ac_clean_files=$ac_clean_files_save
3986 # Check that the compiler produces executables we can run. If not, either
3987 # the compiler is broken, or we cross compile.
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3989 $as_echo_n "checking whether we are cross compiling... " >&6; }
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3991 $as_echo "$cross_compiling" >&6; }
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3994 $as_echo_n "checking for suffix of executables... " >&6; }
3995 if { { ac_try="$ac_link"
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4001 $as_echo "$ac_try_echo"; } >&5
4002 (eval "$ac_link") 2>&5
4004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4005 test $ac_status = 0; }; then :
4006 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4007 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4008 # work properly (i.e., refer to `conftest.exe'), while it won't with
4010 for ac_file in conftest.exe conftest conftest.*; do
4011 test -f "$ac_file" || continue
4013 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4014 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4022 as_fn_error "cannot compute suffix of executables: cannot compile and link
4023 See \`config.log' for more details." "$LINENO" 5; }
4025 rm -f conftest$ac_cv_exeext
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4027 $as_echo "$ac_cv_exeext" >&6; }
4029 rm -f conftest.$ac_ext
4030 EXEEXT=$ac_cv_exeext
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4034 $as_echo_n "checking for suffix of object files... " >&6; }
4035 if test "${ac_cv_objext+set}" = set; then :
4036 $as_echo_n "(cached) " >&6
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4049 rm -f conftest.o conftest.obj
4050 if { { ac_try="$ac_compile"
4052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4053 *) ac_try_echo=$ac_try;;
4055 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4056 $as_echo "$ac_try_echo"; } >&5
4057 (eval "$ac_compile") 2>&5
4059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4060 test $ac_status = 0; }; then :
4061 for ac_file in conftest.o conftest.obj conftest.*; do
4062 test -f "$ac_file" || continue;
4064 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4065 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4070 $as_echo "$as_me: failed program was:" >&5
4071 sed 's/^/| /' conftest.$ac_ext >&5
4073 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4074 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4075 as_fn_error "cannot compute suffix of object files: cannot compile
4076 See \`config.log' for more details." "$LINENO" 5; }
4078 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4081 $as_echo "$ac_cv_objext" >&6; }
4082 OBJEXT=$ac_cv_objext
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4085 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4086 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4087 $as_echo_n "(cached) " >&6
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090 /* end confdefs.h. */
4103 if ac_fn_c_try_compile "$LINENO"; then :
4108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4113 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4114 if test $ac_compiler_gnu = yes; then
4119 ac_test_CFLAGS=${CFLAGS+set}
4120 ac_save_CFLAGS=$CFLAGS
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4122 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4123 if test "${ac_cv_prog_cc_g+set}" = set; then :
4124 $as_echo_n "(cached) " >&6
4126 ac_save_c_werror_flag=$ac_c_werror_flag
4127 ac_c_werror_flag=yes
4130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4131 /* end confdefs.h. */
4141 if ac_fn_c_try_compile "$LINENO"; then :
4145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4146 /* end confdefs.h. */
4156 if ac_fn_c_try_compile "$LINENO"; then :
4159 ac_c_werror_flag=$ac_save_c_werror_flag
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4172 if ac_fn_c_try_compile "$LINENO"; then :
4175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4180 ac_c_werror_flag=$ac_save_c_werror_flag
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4183 $as_echo "$ac_cv_prog_cc_g" >&6; }
4184 if test "$ac_test_CFLAGS" = set; then
4185 CFLAGS=$ac_save_CFLAGS
4186 elif test $ac_cv_prog_cc_g = yes; then
4187 if test "$GCC" = yes; then
4193 if test "$GCC" = yes; then
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4200 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4201 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4202 $as_echo_n "(cached) " >&6
4204 ac_cv_prog_cc_c89=no
4206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4207 /* end confdefs.h. */
4210 #include <sys/types.h>
4211 #include <sys/stat.h>
4212 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4213 struct buf { int x; };
4214 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4215 static char *e (p, i)
4221 static char *f (char * (*g) (char **, int), char **p, ...)
4226 s = g (p, va_arg (v,int));
4231 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4232 function prototypes and stuff, but not '\xHH' hex character constants.
4233 These don't provoke an error unfortunately, instead are silently treated
4234 as 'x'. The following induces an error, until -std is added to get
4235 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4236 array size at least. It's necessary to write '\x00'==0 to get something
4237 that's true only with -std. */
4238 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4240 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4241 inside strings and character constants. */
4243 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4245 int test (int i, double x);
4246 struct s1 {int (*f) (int a);};
4247 struct s2 {int (*f) (double a);};
4248 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4254 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4259 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4260 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4262 CC="$ac_save_CC $ac_arg"
4263 if ac_fn_c_try_compile "$LINENO"; then :
4264 ac_cv_prog_cc_c89=$ac_arg
4266 rm -f core conftest.err conftest.$ac_objext
4267 test "x$ac_cv_prog_cc_c89" != "xno" && break
4269 rm -f conftest.$ac_ext
4274 case "x$ac_cv_prog_cc_c89" in
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4277 $as_echo "none needed" >&6; } ;;
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4280 $as_echo "unsupported" >&6; } ;;
4282 CC="$CC $ac_cv_prog_cc_c89"
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4284 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4286 if test "x$ac_cv_prog_cc_c89" != xno; then :
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297 ac_cpp='$CXXCPP $CPPFLAGS'
4298 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4301 if test -z "$CXX"; then
4302 if test -n "$CCC"; then
4305 if test -n "$ac_tool_prefix"; then
4306 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4308 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4309 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4311 $as_echo_n "checking for $ac_word... " >&6; }
4312 if test "${ac_cv_prog_CXX+set}" = set; then :
4313 $as_echo_n "(cached) " >&6
4315 if test -n "$CXX"; then
4316 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 test -z "$as_dir" && as_dir=.
4323 for ac_exec_ext in '' $ac_executable_extensions; do
4324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4325 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4336 if test -n "$CXX"; then
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4338 $as_echo "$CXX" >&6; }
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4341 $as_echo "no" >&6; }
4345 test -n "$CXX" && break
4348 if test -z "$CXX"; then
4350 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4352 # Extract the first word of "$ac_prog", so it can be a program name with args.
4353 set dummy $ac_prog; ac_word=$2
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4355 $as_echo_n "checking for $ac_word... " >&6; }
4356 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4357 $as_echo_n "(cached) " >&6
4359 if test -n "$ac_ct_CXX"; then
4360 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 test -z "$as_dir" && as_dir=.
4367 for ac_exec_ext in '' $ac_executable_extensions; do
4368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4369 ac_cv_prog_ac_ct_CXX="$ac_prog"
4370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4380 if test -n "$ac_ct_CXX"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4382 $as_echo "$ac_ct_CXX" >&6; }
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4389 test -n "$ac_ct_CXX" && break
4392 if test "x$ac_ct_CXX" = x; then
4395 case $cross_compiling:$ac_tool_warned in
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4398 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4399 ac_tool_warned=yes ;;
4407 # Provide some information about the compiler.
4408 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4411 for ac_option in --version -v -V -qversion; do
4412 { { ac_try="$ac_compiler $ac_option >&5"
4414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4415 *) ac_try_echo=$ac_try;;
4417 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4418 $as_echo "$ac_try_echo"; } >&5
4419 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4421 if test -s conftest.err; then
4423 ... rest of stderr output deleted ...
4424 10q' conftest.err >conftest.er1
4425 cat conftest.er1 >&5
4426 rm -f conftest.er1 conftest.err
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4433 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4434 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4451 if ac_fn_cxx_try_compile "$LINENO"; then :
4456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4457 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4461 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4462 if test $ac_compiler_gnu = yes; then
4467 ac_test_CXXFLAGS=${CXXFLAGS+set}
4468 ac_save_CXXFLAGS=$CXXFLAGS
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4470 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4471 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4472 $as_echo_n "(cached) " >&6
4474 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4475 ac_cxx_werror_flag=yes
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4489 if ac_fn_cxx_try_compile "$LINENO"; then :
4490 ac_cv_prog_cxx_g=yes
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4504 if ac_fn_cxx_try_compile "$LINENO"; then :
4507 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4520 if ac_fn_cxx_try_compile "$LINENO"; then :
4521 ac_cv_prog_cxx_g=yes
4523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4528 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4531 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4532 if test "$ac_test_CXXFLAGS" = set; then
4533 CXXFLAGS=$ac_save_CXXFLAGS
4534 elif test $ac_cv_prog_cxx_g = yes; then
4535 if test "$GXX" = yes; then
4541 if test "$GXX" = yes; then
4548 ac_cpp='$CPP $CPPFLAGS'
4549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4553 CXXFLAGS="$save_CXXFLAGS"
4559 am__api_version='1.11'
4561 # Find a good install program. We prefer a C program (faster),
4562 # so one script is as good as another. But avoid the broken or
4563 # incompatible versions:
4564 # SysV /etc/install, /usr/sbin/install
4565 # SunOS /usr/etc/install
4566 # IRIX /sbin/install
4568 # AmigaOS /C/install, which installs bootblocks on floppy discs
4569 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4570 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4571 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4572 # OS/2's system install, which has a completely different semantic
4573 # ./install, which can be erroneously created by make from ./install.sh.
4574 # Reject install programs that cannot install multiple files.
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4576 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4577 if test -z "$INSTALL"; then
4578 if test "${ac_cv_path_install+set}" = set; then :
4579 $as_echo_n "(cached) " >&6
4581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4585 test -z "$as_dir" && as_dir=.
4586 # Account for people who put trailing slashes in PATH elements.
4587 case $as_dir/ in #((
4588 ./ | .// | /[cC]/* | \
4589 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4590 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4593 # OSF1 and SCO ODT 3.0 have their own names for install.
4594 # Don't use installbsd from OSF since it installs stuff as root
4596 for ac_prog in ginstall scoinst install; do
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4599 if test $ac_prog = install &&
4600 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4601 # AIX install. It has an incompatible calling convention.
4603 elif test $ac_prog = install &&
4604 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4605 # program-specific install script used by HP pwplus--don't use.
4608 rm -rf conftest.one conftest.two conftest.dir
4609 echo one > conftest.one
4610 echo two > conftest.two
4612 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4613 test -s conftest.one && test -s conftest.two &&
4614 test -s conftest.dir/conftest.one &&
4615 test -s conftest.dir/conftest.two
4617 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4630 rm -rf conftest.one conftest.two conftest.dir
4633 if test "${ac_cv_path_install+set}" = set; then
4634 INSTALL=$ac_cv_path_install
4636 # As a last resort, use the slow shell script. Don't cache a
4637 # value for INSTALL within a source directory, because that will
4638 # break other packages using the cache if that directory is
4639 # removed, or if the value is a relative name.
4640 INSTALL=$ac_install_sh
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4644 $as_echo "$INSTALL" >&6; }
4646 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4647 # It thinks the first close brace ends the variable substitution.
4648 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4650 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4652 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4655 $as_echo_n "checking whether build environment is sane... " >&6; }
4658 echo timestamp > conftest.file
4659 # Reject unsafe characters in $srcdir or the absolute working directory
4660 # name. Accept space and tab only in the latter.
4664 *[\\\"\#\$\&\'\`$am_lf]*)
4665 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4668 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4669 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4672 # Do `set' in a subshell so we don't clobber the current shell's
4673 # arguments. Must try -L first in case configure is actually a
4674 # symlink; some systems play weird games with the mod time of symlinks
4675 # (eg FreeBSD returns the mod time of the symlink's containing
4678 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4679 if test "$*" = "X"; then
4681 set X `ls -t "$srcdir/configure" conftest.file`
4684 if test "$*" != "X $srcdir/configure conftest.file" \
4685 && test "$*" != "X conftest.file $srcdir/configure"; then
4687 # If neither matched, then we have a broken ls. This can happen
4688 # if, for instance, CONFIG_SHELL is bash and it inherits a
4689 # broken ls alias from the environment. This has actually
4690 # happened. Such a system could not be considered "sane".
4691 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4692 alias in your environment" "$LINENO" 5
4695 test "$2" = conftest.file
4701 as_fn_error "newly created file is older than distributed files!
4702 Check your system clock" "$LINENO" 5
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4705 $as_echo "yes" >&6; }
4706 test "$program_prefix" != NONE &&
4707 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4708 # Use a double $ so make ignores it.
4709 test "$program_suffix" != NONE &&
4710 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4711 # Double any \ or $.
4712 # By default was `s,x,x', remove it if useless.
4713 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4714 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4716 # expand $ac_aux_dir to an absolute path
4717 am_aux_dir=`cd $ac_aux_dir && pwd`
4719 if test x"${MISSING+set}" != xset; then
4722 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4724 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4727 # Use eval to expand $SHELL
4728 if eval "$MISSING --run true"; then
4729 am_missing_run="$MISSING --run "
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4733 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4736 if test x"${install_sh}" != xset; then
4739 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4741 install_sh="\${SHELL} $am_aux_dir/install-sh"
4745 # Installed binaries are usually stripped using `strip' when the user
4746 # run `make install-strip'. However `strip' might not be the right
4747 # tool to use in cross-compilation environments, therefore Automake
4748 # will honor the `STRIP' environment variable to overrule this program.
4749 if test "$cross_compiling" != no; then
4750 if test -n "$ac_tool_prefix"; then
4751 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4752 set dummy ${ac_tool_prefix}strip; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if test "${ac_cv_prog_STRIP+set}" = set; then :
4756 $as_echo_n "(cached) " >&6
4758 if test -n "$STRIP"; then
4759 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 test -z "$as_dir" && as_dir=.
4766 for ac_exec_ext in '' $ac_executable_extensions; do
4767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4768 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4778 STRIP=$ac_cv_prog_STRIP
4779 if test -n "$STRIP"; then
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4781 $as_echo "$STRIP" >&6; }
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4784 $as_echo "no" >&6; }
4789 if test -z "$ac_cv_prog_STRIP"; then
4791 # Extract the first word of "strip", so it can be a program name with args.
4792 set dummy strip; ac_word=$2
4793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4794 $as_echo_n "checking for $ac_word... " >&6; }
4795 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4796 $as_echo_n "(cached) " >&6
4798 if test -n "$ac_ct_STRIP"; then
4799 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4805 test -z "$as_dir" && as_dir=.
4806 for ac_exec_ext in '' $ac_executable_extensions; do
4807 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4808 ac_cv_prog_ac_ct_STRIP="strip"
4809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4818 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4819 if test -n "$ac_ct_STRIP"; then
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4821 $as_echo "$ac_ct_STRIP" >&6; }
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4827 if test "x$ac_ct_STRIP" = x; then
4830 case $cross_compiling:$ac_tool_warned in
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4834 ac_tool_warned=yes ;;
4839 STRIP="$ac_cv_prog_STRIP"
4843 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4846 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4847 if test -z "$MKDIR_P"; then
4848 if test "${ac_cv_path_mkdir+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4855 test -z "$as_dir" && as_dir=.
4856 for ac_prog in mkdir gmkdir; do
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4859 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4860 'mkdir (GNU coreutils) '* | \
4861 'mkdir (coreutils) '* | \
4862 'mkdir (fileutils) '4.1*)
4863 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4873 if test "${ac_cv_path_mkdir+set}" = set; then
4874 MKDIR_P="$ac_cv_path_mkdir -p"
4876 # As a last resort, use the slow shell script. Don't cache a
4877 # value for MKDIR_P within a source directory, because that will
4878 # break other packages using the cache if that directory is
4879 # removed, or if the value is a relative name.
4880 test -d ./--version && rmdir ./--version
4881 MKDIR_P="$ac_install_sh -d"
4884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4885 $as_echo "$MKDIR_P" >&6; }
4889 [\\/$]* | ?:[\\/]*) ;;
4890 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4893 for ac_prog in gawk mawk nawk awk
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4898 $as_echo_n "checking for $ac_word... " >&6; }
4899 if test "${ac_cv_prog_AWK+set}" = set; then :
4900 $as_echo_n "(cached) " >&6
4902 if test -n "$AWK"; then
4903 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_AWK="$ac_prog"
4913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 if test -n "$AWK"; then
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4925 $as_echo "$AWK" >&6; }
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4928 $as_echo "no" >&6; }
4932 test -n "$AWK" && break
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4936 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4938 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4939 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4940 $as_echo_n "(cached) " >&6
4942 cat >conftest.make <<\_ACEOF
4945 @echo '@@@%%%=$(MAKE)=@@@%%%'
4947 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4948 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4950 eval ac_cv_prog_make_${ac_make}_set=yes;;
4952 eval ac_cv_prog_make_${ac_make}_set=no;;
4956 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4958 $as_echo "yes" >&6; }
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4963 SET_MAKE="MAKE=${MAKE-make}"
4966 rm -rf .tst 2>/dev/null
4967 mkdir .tst 2>/dev/null
4968 if test -d .tst; then
4973 rmdir .tst 2>/dev/null
4975 DEPDIR="${am__leading_dot}deps"
4977 ac_config_commands="$ac_config_commands depfiles"
4980 am_make=${MAKE-make}
4981 cat > confinc << 'END'
4983 @echo this is the am__doit target
4986 # If we don't find an include directive, just comment out the code.
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4988 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4992 # First try GNU make style include.
4993 echo "include confinc" > confmf
4994 # Ignore all kinds of additional output from `make'.
4995 case `$am_make -s -f confmf 2> /dev/null` in #(
4996 *the\ am__doit\ target*)
5002 # Now try BSD make style include.
5003 if test "$am__include" = "#"; then
5004 echo '.include "confinc"' > confmf
5005 case `$am_make -s -f confmf 2> /dev/null` in #(
5006 *the\ am__doit\ target*)
5007 am__include=.include
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5016 $as_echo "$_am_result" >&6; }
5017 rm -f confinc confmf
5019 # Check whether --enable-dependency-tracking was given.
5020 if test "${enable_dependency_tracking+set}" = set; then :
5021 enableval=$enable_dependency_tracking;
5024 if test "x$enable_dependency_tracking" != xno; then
5025 am_depcomp="$ac_aux_dir/depcomp"
5028 if test "x$enable_dependency_tracking" != xno; then
5037 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5038 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5039 # is not polluted with repeated "-I."
5040 am__isrc=' -I$(srcdir)'
5041 # test to see if srcdir already configured
5042 if test -f $srcdir/config.status; then
5043 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5047 # test whether we have cygpath
5048 if test -z "$CYGPATH_W"; then
5049 if (cygpath --version) >/dev/null 2>/dev/null; then
5050 CYGPATH_W='cygpath -w'
5057 # Define the identity of the package.
5059 VERSION='version-unused'
5062 cat >>confdefs.h <<_ACEOF
5063 #define PACKAGE "$PACKAGE"
5067 cat >>confdefs.h <<_ACEOF
5068 #define VERSION "$VERSION"
5071 # Some tools Automake needs.
5073 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5076 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5079 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5082 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5085 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5087 # We need awk for the "check" target. The system "awk" is bad on
5089 # Always define AMTAR for backward compatibility.
5091 AMTAR=${AMTAR-"${am_missing_run}tar"}
5093 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
5098 depcc="$CC" am_compiler_list=
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5101 $as_echo_n "checking dependency style of $depcc... " >&6; }
5102 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5103 $as_echo_n "(cached) " >&6
5105 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5106 # We make a subdir and do the tests there. Otherwise we can end up
5107 # making bogus files that we don't know about and never remove. For
5108 # instance it was reported that on HP-UX the gcc test will end up
5109 # making a dummy file named `D' -- because `-MD' means `put the output
5112 # Copy depcomp to subdir because otherwise we won't find it if we're
5113 # using a relative directory.
5114 cp "$am_depcomp" conftest.dir
5116 # We will build objects and dependencies in a subdirectory because
5117 # it helps to detect inapplicable dependency modes. For instance
5118 # both Tru64's cc and ICC support -MD to output dependencies as a
5119 # side effect of compilation, but ICC will put the dependencies in
5120 # the current directory while Tru64 will put them in the object
5124 am_cv_CC_dependencies_compiler_type=none
5125 if test "$am_compiler_list" = ""; then
5126 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5129 case " $depcc " in #(
5130 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5133 for depmode in $am_compiler_list; do
5134 # Setup a source with many dependencies, because some compilers
5135 # like to wrap large dependency lists on column 80 (with \), and
5136 # we should not choose a depcomp mode which is confused by this.
5138 # We need to recreate these files for each test, as the compiler may
5139 # overwrite some of them when testing with obscure command lines.
5140 # This happens at least with the AIX C compiler.
5142 for i in 1 2 3 4 5 6; do
5143 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5144 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5145 # Solaris 8's {/usr,}/bin/sh.
5146 touch sub/conftst$i.h
5148 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5150 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5151 # mode. It turns out that the SunPro C++ compiler does not properly
5152 # handle `-M -o', and we need to detect this. Also, some Intel
5153 # versions had trouble with output in subdirs
5154 am__obj=sub/conftest.${OBJEXT-o}
5155 am__minus_obj="-o $am__obj"
5158 # This depmode causes a compiler race in universal mode.
5159 test "$am__universal" = false || continue
5162 # after this tag, mechanisms are not by side-effect, so they'll
5163 # only be used when explicitly requested
5164 if test "x$enable_dependency_tracking" = xyes; then
5170 msvisualcpp | msvcmsys)
5171 # This compiler won't grok `-c -o', but also, the minuso test has
5172 # not run yet. These depmodes are late enough in the game, and
5173 # so weak that their functioning should not be impacted.
5174 am__obj=conftest.${OBJEXT-o}
5179 if depmode=$depmode \
5180 source=sub/conftest.c object=$am__obj \
5181 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5182 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5183 >/dev/null 2>conftest.err &&
5184 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5185 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5186 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5187 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5188 # icc doesn't choke on unknown options, it will just issue warnings
5189 # or remarks (even with -Werror). So we grep stderr for any message
5190 # that says an option was ignored or not supported.
5191 # When given -MP, icc 7.0 and 7.1 complain thusly:
5192 # icc: Command line warning: ignoring option '-M'; no argument required
5193 # The diagnosis changed in icc 8.0:
5194 # icc: Command line remark: option '-MP' not supported
5195 if (grep 'ignoring option' conftest.err ||
5196 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5197 am_cv_CC_dependencies_compiler_type=$depmode
5206 am_cv_CC_dependencies_compiler_type=none
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5211 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5212 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5215 test "x$enable_dependency_tracking" != xno \
5216 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5218 am__fastdepCC_FALSE='#'
5220 am__fastdepCC_TRUE='#'
5221 am__fastdepCC_FALSE=
5225 depcc="$CXX" am_compiler_list=
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5228 $as_echo_n "checking dependency style of $depcc... " >&6; }
5229 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5230 $as_echo_n "(cached) " >&6
5232 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5233 # We make a subdir and do the tests there. Otherwise we can end up
5234 # making bogus files that we don't know about and never remove. For
5235 # instance it was reported that on HP-UX the gcc test will end up
5236 # making a dummy file named `D' -- because `-MD' means `put the output
5239 # Copy depcomp to subdir because otherwise we won't find it if we're
5240 # using a relative directory.
5241 cp "$am_depcomp" conftest.dir
5243 # We will build objects and dependencies in a subdirectory because
5244 # it helps to detect inapplicable dependency modes. For instance
5245 # both Tru64's cc and ICC support -MD to output dependencies as a
5246 # side effect of compilation, but ICC will put the dependencies in
5247 # the current directory while Tru64 will put them in the object
5251 am_cv_CXX_dependencies_compiler_type=none
5252 if test "$am_compiler_list" = ""; then
5253 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5256 case " $depcc " in #(
5257 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5260 for depmode in $am_compiler_list; do
5261 # Setup a source with many dependencies, because some compilers
5262 # like to wrap large dependency lists on column 80 (with \), and
5263 # we should not choose a depcomp mode which is confused by this.
5265 # We need to recreate these files for each test, as the compiler may
5266 # overwrite some of them when testing with obscure command lines.
5267 # This happens at least with the AIX C compiler.
5269 for i in 1 2 3 4 5 6; do
5270 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5271 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5272 # Solaris 8's {/usr,}/bin/sh.
5273 touch sub/conftst$i.h
5275 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5277 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5278 # mode. It turns out that the SunPro C++ compiler does not properly
5279 # handle `-M -o', and we need to detect this. Also, some Intel
5280 # versions had trouble with output in subdirs
5281 am__obj=sub/conftest.${OBJEXT-o}
5282 am__minus_obj="-o $am__obj"
5285 # This depmode causes a compiler race in universal mode.
5286 test "$am__universal" = false || continue
5289 # after this tag, mechanisms are not by side-effect, so they'll
5290 # only be used when explicitly requested
5291 if test "x$enable_dependency_tracking" = xyes; then
5297 msvisualcpp | msvcmsys)
5298 # This compiler won't grok `-c -o', but also, the minuso test has
5299 # not run yet. These depmodes are late enough in the game, and
5300 # so weak that their functioning should not be impacted.
5301 am__obj=conftest.${OBJEXT-o}
5306 if depmode=$depmode \
5307 source=sub/conftest.c object=$am__obj \
5308 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5309 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5310 >/dev/null 2>conftest.err &&
5311 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5312 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5313 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5314 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5315 # icc doesn't choke on unknown options, it will just issue warnings
5316 # or remarks (even with -Werror). So we grep stderr for any message
5317 # that says an option was ignored or not supported.
5318 # When given -MP, icc 7.0 and 7.1 complain thusly:
5319 # icc: Command line warning: ignoring option '-M'; no argument required
5320 # The diagnosis changed in icc 8.0:
5321 # icc: Command line remark: option '-MP' not supported
5322 if (grep 'ignoring option' conftest.err ||
5323 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5324 am_cv_CXX_dependencies_compiler_type=$depmode
5333 am_cv_CXX_dependencies_compiler_type=none
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5338 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5339 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5342 test "x$enable_dependency_tracking" != xno \
5343 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5344 am__fastdepCXX_TRUE=
5345 am__fastdepCXX_FALSE='#'
5347 am__fastdepCXX_TRUE='#'
5348 am__fastdepCXX_FALSE=
5354 if test -n "$ac_tool_prefix"; then
5355 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5356 set dummy ${ac_tool_prefix}as; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_AS+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5362 if test -n "$AS"; then
5363 ac_cv_prog_AS="$AS" # Let the user override the test.
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_AS="${ac_tool_prefix}as"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5383 if test -n "$AS"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5385 $as_echo "$AS" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5393 if test -z "$ac_cv_prog_AS"; then
5395 # Extract the first word of "as", so it can be a program name with args.
5396 set dummy as; ac_word=$2
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398 $as_echo_n "checking for $ac_word... " >&6; }
5399 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5400 $as_echo_n "(cached) " >&6
5402 if test -n "$ac_ct_AS"; then
5403 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5409 test -z "$as_dir" && as_dir=.
5410 for ac_exec_ext in '' $ac_executable_extensions; do
5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5412 ac_cv_prog_ac_ct_AS="as"
5413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5422 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5423 if test -n "$ac_ct_AS"; then
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5425 $as_echo "$ac_ct_AS" >&6; }
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428 $as_echo "no" >&6; }
5431 if test "x$ac_ct_AS" = x; then
5434 case $cross_compiling:$ac_tool_warned in
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5437 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5438 ac_tool_warned=yes ;;
5446 if test -n "$ac_tool_prefix"; then
5447 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5448 set dummy ${ac_tool_prefix}ld; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if test "${ac_cv_prog_LD+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5454 if test -n "$LD"; then
5455 ac_cv_prog_LD="$LD" # Let the user override the test.
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_LD="${ac_tool_prefix}ld"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5475 if test -n "$LD"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5477 $as_echo "$LD" >&6; }
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5485 if test -z "$ac_cv_prog_LD"; then
5487 # Extract the first word of "ld", so it can be a program name with args.
5488 set dummy ld; ac_word=$2
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5490 $as_echo_n "checking for $ac_word... " >&6; }
5491 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5492 $as_echo_n "(cached) " >&6
5494 if test -n "$ac_ct_LD"; then
5495 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5501 test -z "$as_dir" && as_dir=.
5502 for ac_exec_ext in '' $ac_executable_extensions; do
5503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5504 ac_cv_prog_ac_ct_LD="ld"
5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5515 if test -n "$ac_ct_LD"; then
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5517 $as_echo "$ac_ct_LD" >&6; }
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5523 if test "x$ac_ct_LD" = x; then
5526 case $cross_compiling:$ac_tool_warned in
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5530 ac_tool_warned=yes ;;
5538 if test -n "$ac_tool_prefix"; then
5539 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5540 set dummy ${ac_tool_prefix}ar; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if test "${ac_cv_prog_AR+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5546 if test -n "$AR"; then
5547 ac_cv_prog_AR="$AR" # Let the user override the test.
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_AR="${ac_tool_prefix}ar"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567 if test -n "$AR"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5569 $as_echo "$AR" >&6; }
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5577 if test -z "$ac_cv_prog_AR"; then
5579 # Extract the first word of "ar", so it can be a program name with args.
5580 set dummy ar; ac_word=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5584 $as_echo_n "(cached) " >&6
5586 if test -n "$ac_ct_AR"; then
5587 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5593 test -z "$as_dir" && as_dir=.
5594 for ac_exec_ext in '' $ac_executable_extensions; do
5595 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5596 ac_cv_prog_ac_ct_AR="ar"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5606 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5607 if test -n "$ac_ct_AR"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5609 $as_echo "$ac_ct_AR" >&6; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5615 if test "x$ac_ct_AR" = x; then
5618 case $cross_compiling:$ac_tool_warned in
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5622 ac_tool_warned=yes ;;
5630 if test -n "$ac_tool_prefix"; then
5631 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5632 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
5638 if test -n "$RANLIB"; then
5639 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5658 RANLIB=$ac_cv_prog_RANLIB
5659 if test -n "$RANLIB"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5661 $as_echo "$RANLIB" >&6; }
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5669 if test -z "$ac_cv_prog_RANLIB"; then
5670 ac_ct_RANLIB=$RANLIB
5671 # Extract the first word of "ranlib", so it can be a program name with args.
5672 set dummy ranlib; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5676 $as_echo_n "(cached) " >&6
5678 if test -n "$ac_ct_RANLIB"; then
5679 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5688 ac_cv_prog_ac_ct_RANLIB="ranlib"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5698 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5699 if test -n "$ac_ct_RANLIB"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5701 $as_echo "$ac_ct_RANLIB" >&6; }
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5707 if test "x$ac_ct_RANLIB" = x; then
5710 case $cross_compiling:$ac_tool_warned in
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714 ac_tool_warned=yes ;;
5716 RANLIB=$ac_ct_RANLIB
5719 RANLIB="$ac_cv_prog_RANLIB"
5722 for ac_prog in gawk mawk nawk awk
5724 # Extract the first word of "$ac_prog", so it can be a program name with args.
5725 set dummy $ac_prog; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if test "${ac_cv_prog_AWK+set}" = set; then :
5729 $as_echo_n "(cached) " >&6
5731 if test -n "$AWK"; then
5732 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5741 ac_cv_prog_AWK="$ac_prog"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5752 if test -n "$AWK"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5754 $as_echo "$AWK" >&6; }
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5761 test -n "$AWK" && break
5764 for ac_prog in jar fastjar gjar
5766 # Extract the first word of "$ac_prog", so it can be a program name with args.
5767 set dummy $ac_prog; ac_word=$2
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5769 $as_echo_n "checking for $ac_word... " >&6; }
5770 if test "${ac_cv_prog_JAR+set}" = set; then :
5771 $as_echo_n "(cached) " >&6
5773 if test -n "$JAR"; then
5774 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 test -z "$as_dir" && as_dir=.
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5783 ac_cv_prog_JAR="$ac_prog"
5784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794 if test -n "$JAR"; then
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5796 $as_echo "$JAR" >&6; }
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5799 $as_echo "no" >&6; }
5803 test -n "$JAR" && break
5805 test -n "$JAR" || JAR="no"
5807 # Extract the first word of "zip", so it can be a program name with args.
5808 set dummy zip; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if test "${ac_cv_path_ZIP+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5816 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5823 test -z "$as_dir" && as_dir=.
5824 for ac_exec_ext in '' $ac_executable_extensions; do
5825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5826 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5839 if test -n "$ZIP"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5841 $as_echo "$ZIP" >&6; }
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5848 # Extract the first word of "unzip", so it can be a program name with args.
5849 set dummy unzip; ac_word=$2
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5851 $as_echo_n "checking for $ac_word... " >&6; }
5852 if test "${ac_cv_path_UNZIP+set}" = set; then :
5853 $as_echo_n "(cached) " >&6
5857 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5864 test -z "$as_dir" && as_dir=.
5865 for ac_exec_ext in '' $ac_executable_extensions; do
5866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5867 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5875 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5879 UNZIP=$ac_cv_path_UNZIP
5880 if test -n "$UNZIP"; then
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5882 $as_echo "$UNZIP" >&6; }
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5885 $as_echo "no" >&6; }
5890 # We need a jar that supports -@. This is a GNU extension.
5891 if test "$JAR" != no; then
5892 rm -f config-test.jar
5893 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5894 if test -f config-test.jar; then
5895 rm -f config-test.jar
5901 # Prefer the jar we found, but fall back to our jar script.
5902 if test "$JAR" = no; then
5903 if test "$ZIP" = no; then
5904 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5906 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5907 JAR=`pwd`/scripts/jar
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5915 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5916 # Check whether --enable-maintainer-mode was given.
5917 if test "${enable_maintainer_mode+set}" = set; then :
5918 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5920 USE_MAINTAINER_MODE=no
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5924 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5925 if test $USE_MAINTAINER_MODE = yes; then
5926 MAINTAINER_MODE_TRUE=
5927 MAINTAINER_MODE_FALSE='#'
5929 MAINTAINER_MODE_TRUE='#'
5930 MAINTAINER_MODE_FALSE=
5933 MAINT=$MAINTAINER_MODE_TRUE
5939 # configure.host sets the following important variables
5940 # libgcj_cflags - host specific C compiler flags
5941 # libgcj_cxxflags - host specific C++ compiler flags
5942 # libgcj_javaflags - host specific Java compiler flags
5943 # libgcj_sublib_ltflags - host specific Libtool flags
5944 # (only used when building sublibs)
5945 # and a number of others; see the list at the start of the file.
5950 libgcj_sublib_ltflags=
5952 . ${srcdir}/configure.host
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5955 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5956 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5957 $as_echo_n "(cached) " >&6
5959 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5960 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5961 acl_cv_prog_gnu_ld=yes
5963 acl_cv_prog_gnu_ld=no
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5967 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5968 with_gnu_ld=$acl_cv_prog_gnu_ld
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5971 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5972 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5973 $as_echo_n "(cached) " >&6
5976 acl_cv_prog_gnu_ld_symbolic=no
5978 if test x"$with_gnu_ld" = x"yes"; then
5979 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5980 acl_cv_prog_gnu_ld_symbolic=yes
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5985 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5986 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5987 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5992 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5993 if test -z "$libgcj_ld_symbolic"; then
5994 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5997 LIBGCJ_CFLAGS="${libgcj_cflags}"
5998 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5999 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
6000 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
6001 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
6002 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
6010 # Only use libltdl for non-newlib builds.
6011 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
6013 $as_echo_n "checking dynamic linker characteristics... " >&6; }
6015 libname_spec='lib$name'
6023 shlibpath_overrides_runpath=unknown
6025 dynamic_linker="$host_os ld.so"
6026 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6027 if test "$GCC" = yes; then
6028 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6029 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6030 # if the path contains ";" then we assume it to be the separator
6031 # otherwise default to the standard path separator (i.e. ":") - it is
6032 # assumed that no part of a normal pathname contains ";" but that should
6033 # okay in the real world where ";" in dirpaths is itself problematic.
6034 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6036 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6039 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6041 need_lib_prefix=unknown
6042 hardcode_into_libs=no
6044 # when you set need_version to no, make sure it does not cause -set_version
6045 # flags to be left without arguments
6046 need_version=unknown
6051 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6052 shlibpath_var=LIBPATH
6054 # AIX 3 has no versioning support, so we append a major version to the name.
6055 soname_spec='${libname}${release}${shared_ext}$major'
6062 hardcode_into_libs=yes
6063 if test "$host_cpu" = ia64; then
6064 # AIX 5 supports IA64
6065 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6066 shlibpath_var=LD_LIBRARY_PATH
6068 # With GCC up to 2.95.x, collect2 would create an import file
6069 # for dependence libraries. The import file would start with
6070 # the line `#! .'. This would cause the generated library to
6071 # depend on `.', always an invalid library. This was fixed in
6072 # development snapshots of GCC prior to 3.0.
6074 aix4 | aix4.[01] | aix4.[01].*)
6075 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6077 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6084 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6085 # soname into executable. Probably we can add versioning support to
6086 # collect2, so additional links can be useful in future.
6087 if test "$aix_use_runtimelinking" = yes; then
6088 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6089 # instead of lib<name>.a to let people know that these are not
6090 # typical AIX shared libraries.
6091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6093 # We preserve .a as extension for shared libraries through AIX4.2
6094 # and later when we are not doing run time linking.
6095 library_names_spec='${libname}${release}.a $libname.a'
6096 soname_spec='${libname}${release}${shared_ext}$major'
6098 shlibpath_var=LIBPATH
6103 library_names_spec='$libname.ixlibrary $libname.a'
6104 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6105 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'
6109 library_names_spec='${libname}${shared_ext}'
6110 dynamic_linker="$host_os ld.so"
6111 shlibpath_var=LIBRARY_PATH
6117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6118 soname_spec='${libname}${release}${shared_ext}$major'
6119 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6120 shlibpath_var=LD_LIBRARY_PATH
6121 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6122 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6123 # the default ld.so.conf also contains /usr/contrib/lib and
6124 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6125 # libtool to hard-code these into programs
6128 cygwin* | mingw* | pw32*)
6129 version_type=windows
6134 case $GCC,$host_os in
6135 yes,cygwin* | yes,mingw* | yes,pw32*)
6136 library_names_spec='$libname.dll.a'
6137 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6138 postinstall_cmds='base_file=`basename \${file}`~
6139 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6140 dldir=$destdir/`dirname \$dlpath`~
6141 test -d \$dldir || mkdir -p \$dldir~
6142 $install_prog $dir/$dlname \$dldir/$dlname'
6143 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6144 dlpath=$dir/\$dldll~
6146 shlibpath_overrides_runpath=yes
6150 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6151 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6152 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6155 # MinGW DLLs use traditional 'lib' prefix
6156 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6157 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6158 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6159 # It is most probably a Windows format PATH printed by
6160 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6161 # path with ; separators, and with drive letters. We can handle the
6162 # drive letters (cygwin fileutils understands them), so leave them,
6163 # especially as we might pass files found there to a mingw objdump,
6164 # which wouldn't understand a cygwinified path. Ahh.
6165 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6167 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6171 # pw32 DLLs use 'pw' prefix rather than 'lib'
6172 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6178 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6181 dynamic_linker='Win32 ld.exe'
6182 # FIXME: first we should search . and the directory the executable is in
6186 darwin* | rhapsody*)
6187 dynamic_linker="$host_os dyld"
6191 # FIXME: Relying on posixy $() will cause problems for
6192 # cross-compilation, but unfortunately the echo tests do not
6193 # yet detect zsh echo's removal of \ escapes.
6194 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6195 soname_spec='${libname}${release}${major}$shared_ext'
6196 shlibpath_overrides_runpath=yes
6197 shlibpath_var=DYLD_LIBRARY_PATH
6198 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6199 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6200 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6201 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"`
6203 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6211 soname_spec='${libname}${release}${shared_ext}$major'
6212 shlibpath_var=LD_LIBRARY_PATH
6220 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6221 version_type=freebsd-$objformat
6222 case $version_type in
6224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6229 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6233 shlibpath_var=LD_LIBRARY_PATH
6236 shlibpath_overrides_runpath=yes
6238 freebsd3.01* | freebsdelf3.01*)
6239 shlibpath_overrides_runpath=yes
6240 hardcode_into_libs=yes
6243 shlibpath_overrides_runpath=no
6244 hardcode_into_libs=yes
6253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6254 soname_spec='${libname}${release}${shared_ext}$major'
6255 shlibpath_var=LD_LIBRARY_PATH
6256 hardcode_into_libs=yes
6259 hpux9* | hpux10* | hpux11*)
6260 # Give a soname corresponding to the major version so that dld.sl refuses to
6261 # link against other versions.
6268 hardcode_into_libs=yes
6269 dynamic_linker="$host_os dld.so"
6270 shlibpath_var=LD_LIBRARY_PATH
6271 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6273 soname_spec='${libname}${release}${shared_ext}$major'
6274 if test "X$HPUX_IA64_MODE" = X32; then
6275 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6277 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6283 hardcode_into_libs=yes
6284 dynamic_linker="$host_os dld.sl"
6285 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6288 soname_spec='${libname}${release}${shared_ext}$major'
6289 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6290 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6294 dynamic_linker="$host_os dld.sl"
6295 shlibpath_var=SHLIB_PATH
6296 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6298 soname_spec='${libname}${release}${shared_ext}$major'
6301 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6302 postinstall_cmds='chmod 555 $lib'
6305 irix5* | irix6* | nonstopux*)
6307 nonstopux*) version_type=nonstopux ;;
6309 if test "$lt_cv_prog_gnu_ld" = yes; then
6317 soname_spec='${libname}${release}${shared_ext}$major'
6318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6320 irix5* | nonstopux*)
6324 case $LD in # libtool.m4 will add one of these switches to LD
6325 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6326 libsuff= shlibsuff= libmagic=32-bit;;
6327 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6328 libsuff=32 shlibsuff=N32 libmagic=N32;;
6329 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6330 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6331 *) libsuff= shlibsuff= libmagic=never-match;;
6335 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6336 shlibpath_overrides_runpath=no
6337 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6338 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6339 hardcode_into_libs=yes
6342 # No shared lib support for Linux oldld, aout, or coff.
6343 linux*oldld* | linux*aout* | linux*coff*)
6347 # This must be Linux ELF.
6352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6353 soname_spec='${libname}${release}${shared_ext}$major'
6354 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6355 shlibpath_var=LD_LIBRARY_PATH
6356 shlibpath_overrides_runpath=no
6357 # This implies no fast_install, which is unacceptable.
6358 # Some rework will be needed to allow for fast_install
6359 # before this can be enabled.
6360 hardcode_into_libs=yes
6362 # We used to test for /lib/ld.so.1 and disable shared libraries on
6363 # powerpc, because MkLinux only supported shared libraries with the
6364 # GNU dynamic linker. Since this was broken with cross compilers,
6365 # most powerpc-linux boxes support dynamic linking these days and
6366 # people can always --disable-shared, the test was removed, and we
6367 # assume the GNU/Linux dynamic linker is in use.
6368 dynamic_linker='GNU/Linux ld.so'
6375 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6377 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6378 dynamic_linker='NetBSD (a.out) ld.so'
6380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6381 soname_spec='${libname}${release}${shared_ext}$major'
6382 dynamic_linker='NetBSD ld.elf_so'
6384 shlibpath_var=LD_LIBRARY_PATH
6385 shlibpath_overrides_runpath=yes
6386 hardcode_into_libs=yes
6391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6392 shlibpath_var=LD_LIBRARY_PATH
6393 shlibpath_overrides_runpath=yes
6400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6401 soname_spec='${libname}${release}${shared_ext}$major'
6402 shlibpath_var=LD_LIBRARY_PATH
6403 shlibpath_overrides_runpath=yes
6410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6411 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6412 shlibpath_var=LD_LIBRARY_PATH
6413 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6415 openbsd2.[89] | openbsd2.[89].*)
6416 shlibpath_overrides_runpath=no
6419 shlibpath_overrides_runpath=yes
6423 shlibpath_overrides_runpath=yes
6428 libname_spec='$name'
6431 library_names_spec='$libname${shared_ext} $libname.a'
6432 dynamic_linker='OS/2 ld.exe'
6433 shlibpath_var=LIBPATH
6436 osf3* | osf4* | osf5*)
6440 soname_spec='${libname}${release}${shared_ext}$major'
6441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6442 shlibpath_var=LD_LIBRARY_PATH
6443 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6444 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6449 soname_spec='${libname}${release}${shared_ext}$major'
6450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6451 shlibpath_var=LD_LIBRARY_PATH
6458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6459 soname_spec='${libname}${release}${shared_ext}$major'
6460 shlibpath_var=LD_LIBRARY_PATH
6461 shlibpath_overrides_runpath=yes
6462 hardcode_into_libs=yes
6463 # ldd complains unless libraries are executable
6464 postinstall_cmds='chmod +x $lib'
6469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6470 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6471 shlibpath_var=LD_LIBRARY_PATH
6472 shlibpath_overrides_runpath=yes
6473 if test "$with_gnu_ld" = yes; then
6479 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6482 soname_spec='${libname}${release}${shared_ext}$major'
6483 shlibpath_var=LD_LIBRARY_PATH
6484 case $host_vendor in
6486 shlibpath_overrides_runpath=no
6488 export_dynamic_flag_spec='${wl}-Blargedynsym'
6489 runpath_var=LD_RUN_PATH
6497 shlibpath_overrides_runpath=no
6498 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6504 if test -d /usr/nec ;then
6506 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6507 soname_spec='$libname${shared_ext}.$major'
6508 shlibpath_var=LD_LIBRARY_PATH
6514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6515 soname_spec='${libname}${release}${shared_ext}$major'
6516 shlibpath_var=LD_LIBRARY_PATH
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6524 $as_echo "$dynamic_linker" >&6; }
6525 test "$dynamic_linker" = no && can_build_shared=no
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6529 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6530 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6531 $as_echo_n "(cached) " >&6
6533 libltdl_cv_shlibpath_var="$shlibpath_var"
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6536 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6537 if test -n "$libltdl_cv_shlibpath_var"; then
6539 cat >>confdefs.h <<_ACEOF
6540 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6547 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6550 # Possibly build libgcj as many sub-libraries.
6551 # Check whether --enable-libgcj-sublibs was given.
6552 if test "${enable_libgcj_sublibs+set}" = set; then :
6553 enableval=$enable_libgcj_sublibs;
6557 if test -z "$enable_libgcj_sublibs"; then
6558 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6560 if test "$enable_libgcj_sublibs" = yes; then
6562 BUILD_SUBLIBS_FALSE='#'
6564 BUILD_SUBLIBS_TRUE='#'
6565 BUILD_SUBLIBS_FALSE=
6568 if test "$enable_libgcj_sublibs" = yes ; then
6569 # In theory we could make do with only one override and simply
6570 # tag "_bc" onto the end of it when we use it to generate the
6571 # spec, but that's an ugly thing to do when there are multiple
6572 # words in the string and you're relying on the ordering to
6573 # append the correct one.
6574 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6575 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6579 # See if the user has requested runtime debugging.
6580 LIBGCJDEBUG="disable"
6582 # Check whether --enable-libgcj-debug was given.
6583 if test "${enable_libgcj_debug+set}" = set; then :
6584 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6586 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6588 LIBGCJDEBUG="enable"
6594 # Check whether --with-escher was given.
6595 if test "${with_escher+set}" = set; then :
6596 withval=$with_escher;
6599 case "$with_escher" in
6607 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6614 # Determine which AWT peer libraries to build
6615 # Check whether --enable-java-awt was given.
6616 if test "${enable_java_awt+set}" = set; then :
6617 enableval=$enable_java_awt;
6621 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6626 # The default toolkit to use is the first one specified.
6630 for peer in $peerlibs ; do
6633 if test "$no_x" = yes; then
6634 echo "*** xlib peers requested but no X library available" 1>&2
6638 if test -z "$TOOLKIT"; then
6639 TOOLKIT=gnu.awt.xlib.XToolkit
6644 if test "$no_x" = yes; then
6645 echo "*** gtk peers requested but no X library available" 1>&2
6649 if test -z "$TOOLKIT"; then
6650 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6655 if test "$no_x" = yes; then
6656 # Perhaps we should admit the possibility of embedded Qt.
6657 echo "*** Qt peers requested but no X library available" 1>&2
6661 if test -z "$TOOLKIT"; then
6662 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6668 if test -z "$TOOLKIT"; then
6669 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6680 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6685 if test "$use_xlib_awt" = yes; then
6693 if test "$use_x_awt" = yes; then
6703 cat >>confdefs.h <<_ACEOF
6704 #define AWT_TOOLKIT "$TOOLKIT"
6709 cat >>confdefs.h <<_ACEOF
6710 #define LIBGCJ_PREFIX "$prefix"
6714 # Create standard.omit based on decisions we just made.
6715 cp $srcdir/standard.omit.in standard.omit
6716 if test "$use_xlib_awt" != yes; then
6717 echo gnu/awt/xlib >> standard.omit
6718 echo gnu/gcj/xlib >> standard.omit
6720 if test "$use_x_awt" != yes; then
6721 echo gnu/java/awt/peer/x >> standard.omit
6724 # Tools that need to be compiled against classpath's tools classes
6725 : > vm-tools-packages
6726 for package in gnu/gcj/tools/gc_analyze ; do
6727 echo $package >> standard.omit
6728 echo $package >> vm-tools-packages
6731 if test -z "${with_multisubdir}"; then
6734 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6739 # Which gcj and host gcj (for ecjx) do we use?
6741 host_exeext=${ac_exeext}
6743 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6744 if test -n "${with_cross_host}"; then
6745 # We are being configured with a cross compiler. We can't
6746 # use ac_exeext, because that is for the target platform.
6749 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6750 case "${with_cross_host}" in
6752 cross_host_exeext=.exe
6755 host_exeext=${cross_host_exeext}
6756 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6757 if test x"$build_noncanonical" = x"$with_cross_host"; then
6758 # Ordinary cross (host!=target and host=build)
6761 # Canadian cross (host!=target and host!=build)
6768 # We are being configured with a native or crossed-native compiler
6769 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6770 if test x"$build" = x"$host"; then
6771 # True native build (host=target and host=build)
6774 # Crossed-native build (host=target and host!=build)
6781 libgcjdir=`${PWDCMD-pwd}`
6784 # Just in case there is a comma in the build dir, quote it for the
6785 # sed command below.
6787 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6788 *) qlibgcjdir=$libgcjdir;;
6790 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6793 GCJ=$GCJ" -B$libgcjdir/"
6796 case "${which_gcj}" in
6798 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6801 if test "x${with_newlib}" = "xyes"; then
6802 # FIXME (comment): Why is this needed?
6805 GCJH='$(target_noncanonical)-gcjh'
6818 # Create it, so that compile/link tests don't fail
6819 test -f libgcj.spec || touch libgcj.spec
6823 # Set up to configure Classpath.
6824 # FIXME: no supported way to pass args in autoconf.
6825 # Disable tool wrappers to avoid ltdl.h configure check.
6826 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6827 ac_configure_args="$ac_configure_args --disable-load-library"
6828 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6829 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6830 dir1=`cd $srcdir && pwd`
6832 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6833 ac_configure_args="$ac_configure_args --disable-core-jni"
6834 ac_configure_args="$ac_configure_args --disable-examples"
6835 ac_configure_args="$ac_configure_args --with-glibj=build"
6836 if test "$plugin_enabled" != yes; then
6837 ac_configure_args="$ac_configure_args --disable-plugin"
6839 if test "$gconf_enabled" != yes; then
6840 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6841 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6843 if test "$use_gtk_awt" != yes; then
6844 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6846 if test "$use_qt_awt" != yes; then
6847 ac_configure_args="$ac_configure_args --disable-qt-peer"
6849 # We need this as qt is disabled by default in classpath.
6850 ac_configure_args="$ac_configure_args --enable-qt-peer"
6852 if test "$use_x_awt" != yes; then
6853 ac_configure_args="$ac_configure_args --without-escher"
6855 # We need this as escher is disabled by default in classpath.
6856 if test "$use_escher" != true; then
6857 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6859 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6862 if test "x$BUILD_GJDOC" = xno; then
6863 ac_configure_args="$ac_configure_args --disable-gjdoc"
6865 # -Werror causes unavoidable problems in code using alsa.
6866 ac_configure_args="$ac_configure_args --disable-regen-headers"
6867 ac_configure_args="$ac_configure_args --disable-Werror"
6869 # Only use libltdl for non-newlib builds.
6870 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6871 case $enable_ltdl_convenience in
6872 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6873 "") enable_ltdl_convenience=yes
6874 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6876 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6877 LTDLINCL='-I${top_srcdir}/''libltdl'
6878 # For backwards non-gettext consistent compatibility...
6887 $as_echo "#define USE_LTDL 1" >>confdefs.h
6889 # Sigh. Libtool's macro doesn't do the right thing.
6890 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6891 # FIXME: this is a hack.
6892 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6893 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6901 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6906 macro_version='2.2.6'
6907 macro_revision='1.3012'
6921 ltmain="$ac_aux_dir/ltmain.sh"
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6924 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6925 if test "${ac_cv_path_SED+set}" = set; then :
6926 $as_echo_n "(cached) " >&6
6928 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6929 for ac_i in 1 2 3 4 5 6 7; do
6930 ac_script="$ac_script$as_nl$ac_script"
6932 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6933 { ac_script=; unset ac_script;}
6934 if test -z "$SED"; then
6935 ac_path_SED_found=false
6936 # Loop through the user's path and test for each of PROGNAME-LIST
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 test -z "$as_dir" && as_dir=.
6942 for ac_prog in sed gsed; do
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6945 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6946 # Check for GNU ac_path_SED and select it if it is found.
6947 # Check for GNU $ac_path_SED
6948 case `"$ac_path_SED" --version 2>&1` in
6950 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6953 $as_echo_n 0123456789 >"conftest.in"
6956 cat "conftest.in" "conftest.in" >"conftest.tmp"
6957 mv "conftest.tmp" "conftest.in"
6958 cp "conftest.in" "conftest.nl"
6959 $as_echo '' >> "conftest.nl"
6960 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6962 as_fn_arith $ac_count + 1 && ac_count=$as_val
6963 if test $ac_count -gt ${ac_path_SED_max-0}; then
6964 # Best one so far, save it but keep looking for a better one
6965 ac_cv_path_SED="$ac_path_SED"
6966 ac_path_SED_max=$ac_count
6968 # 10*(2^10) chars as input seems more than enough
6969 test $ac_count -gt 10 && break
6971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6974 $ac_path_SED_found && break 3
6979 if test -z "$ac_cv_path_SED"; then
6980 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6988 $as_echo "$ac_cv_path_SED" >&6; }
6989 SED="$ac_cv_path_SED"
6992 test -z "$SED" && SED=sed
6993 Xsed="$SED -e 1s/^X//"
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7006 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7007 if test "${ac_cv_path_GREP+set}" = set; then :
7008 $as_echo_n "(cached) " >&6
7010 if test -z "$GREP"; then
7011 ac_path_GREP_found=false
7012 # Loop through the user's path and test for each of PROGNAME-LIST
7013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7017 test -z "$as_dir" && as_dir=.
7018 for ac_prog in grep ggrep; do
7019 for ac_exec_ext in '' $ac_executable_extensions; do
7020 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7021 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7022 # Check for GNU ac_path_GREP and select it if it is found.
7023 # Check for GNU $ac_path_GREP
7024 case `"$ac_path_GREP" --version 2>&1` in
7026 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7029 $as_echo_n 0123456789 >"conftest.in"
7032 cat "conftest.in" "conftest.in" >"conftest.tmp"
7033 mv "conftest.tmp" "conftest.in"
7034 cp "conftest.in" "conftest.nl"
7035 $as_echo 'GREP' >> "conftest.nl"
7036 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7037 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7038 as_fn_arith $ac_count + 1 && ac_count=$as_val
7039 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7040 # Best one so far, save it but keep looking for a better one
7041 ac_cv_path_GREP="$ac_path_GREP"
7042 ac_path_GREP_max=$ac_count
7044 # 10*(2^10) chars as input seems more than enough
7045 test $ac_count -gt 10 && break
7047 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7050 $ac_path_GREP_found && break 3
7055 if test -z "$ac_cv_path_GREP"; then
7056 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7059 ac_cv_path_GREP=$GREP
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7064 $as_echo "$ac_cv_path_GREP" >&6; }
7065 GREP="$ac_cv_path_GREP"
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7069 $as_echo_n "checking for egrep... " >&6; }
7070 if test "${ac_cv_path_EGREP+set}" = set; then :
7071 $as_echo_n "(cached) " >&6
7073 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7074 then ac_cv_path_EGREP="$GREP -E"
7076 if test -z "$EGREP"; then
7077 ac_path_EGREP_found=false
7078 # Loop through the user's path and test for each of PROGNAME-LIST
7079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7080 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7083 test -z "$as_dir" && as_dir=.
7084 for ac_prog in egrep; do
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7087 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7088 # Check for GNU ac_path_EGREP and select it if it is found.
7089 # Check for GNU $ac_path_EGREP
7090 case `"$ac_path_EGREP" --version 2>&1` in
7092 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7095 $as_echo_n 0123456789 >"conftest.in"
7098 cat "conftest.in" "conftest.in" >"conftest.tmp"
7099 mv "conftest.tmp" "conftest.in"
7100 cp "conftest.in" "conftest.nl"
7101 $as_echo 'EGREP' >> "conftest.nl"
7102 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7103 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7104 as_fn_arith $ac_count + 1 && ac_count=$as_val
7105 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7106 # Best one so far, save it but keep looking for a better one
7107 ac_cv_path_EGREP="$ac_path_EGREP"
7108 ac_path_EGREP_max=$ac_count
7110 # 10*(2^10) chars as input seems more than enough
7111 test $ac_count -gt 10 && break
7113 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7116 $ac_path_EGREP_found && break 3
7121 if test -z "$ac_cv_path_EGREP"; then
7122 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7125 ac_cv_path_EGREP=$EGREP
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7131 $as_echo "$ac_cv_path_EGREP" >&6; }
7132 EGREP="$ac_cv_path_EGREP"
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7136 $as_echo_n "checking for fgrep... " >&6; }
7137 if test "${ac_cv_path_FGREP+set}" = set; then :
7138 $as_echo_n "(cached) " >&6
7140 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7141 then ac_cv_path_FGREP="$GREP -F"
7143 if test -z "$FGREP"; then
7144 ac_path_FGREP_found=false
7145 # Loop through the user's path and test for each of PROGNAME-LIST
7146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7147 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7150 test -z "$as_dir" && as_dir=.
7151 for ac_prog in fgrep; do
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7154 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7155 # Check for GNU ac_path_FGREP and select it if it is found.
7156 # Check for GNU $ac_path_FGREP
7157 case `"$ac_path_FGREP" --version 2>&1` in
7159 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7162 $as_echo_n 0123456789 >"conftest.in"
7165 cat "conftest.in" "conftest.in" >"conftest.tmp"
7166 mv "conftest.tmp" "conftest.in"
7167 cp "conftest.in" "conftest.nl"
7168 $as_echo 'FGREP' >> "conftest.nl"
7169 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7170 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7171 as_fn_arith $ac_count + 1 && ac_count=$as_val
7172 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7173 # Best one so far, save it but keep looking for a better one
7174 ac_cv_path_FGREP="$ac_path_FGREP"
7175 ac_path_FGREP_max=$ac_count
7177 # 10*(2^10) chars as input seems more than enough
7178 test $ac_count -gt 10 && break
7180 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7183 $ac_path_FGREP_found && break 3
7188 if test -z "$ac_cv_path_FGREP"; then
7189 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7192 ac_cv_path_FGREP=$FGREP
7197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7198 $as_echo "$ac_cv_path_FGREP" >&6; }
7199 FGREP="$ac_cv_path_FGREP"
7202 test -z "$GREP" && GREP=grep
7222 # Check whether --with-gnu-ld was given.
7223 if test "${with_gnu_ld+set}" = set; then :
7224 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7230 if test "$GCC" = yes; then
7231 # Check if gcc -print-prog-name=ld gives a path.
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7233 $as_echo_n "checking for ld used by $CC... " >&6; }
7236 # gcc leaves a trailing carriage return which upsets mingw
7237 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7239 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7242 # Accept absolute paths.
7244 re_direlt='/[^/][^/]*/\.\./'
7245 # Canonicalize the pathname of ld
7246 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7247 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7248 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7250 test -z "$LD" && LD="$ac_prog"
7253 # If it fails, then pretend we aren't using GCC.
7257 # If it is relative, then search for the first ld in PATH.
7261 elif test "$with_gnu_ld" = yes; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7263 $as_echo_n "checking for GNU ld... " >&6; }
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7266 $as_echo_n "checking for non-GNU ld... " >&6; }
7268 if test "${lt_cv_path_LD+set}" = set; then :
7269 $as_echo_n "(cached) " >&6
7271 if test -z "$LD"; then
7272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7273 for ac_dir in $PATH; do
7275 test -z "$ac_dir" && ac_dir=.
7276 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7277 lt_cv_path_LD="$ac_dir/$ac_prog"
7278 # Check to see if the program is GNU ld. I'd rather use --version,
7279 # but apparently some variants of GNU ld only accept -v.
7280 # Break only if it was the GNU/non-GNU ld that we prefer.
7281 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7282 *GNU* | *'with BFD'*)
7283 test "$with_gnu_ld" != no && break
7286 test "$with_gnu_ld" != yes && break
7293 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7298 if test -n "$LD"; then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7300 $as_echo "$LD" >&6; }
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7303 $as_echo "no" >&6; }
7305 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7307 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7308 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7309 $as_echo_n "(cached) " >&6
7311 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7312 case `$LD -v 2>&1 </dev/null` in
7313 *GNU* | *'with BFD'*)
7314 lt_cv_prog_gnu_ld=yes
7317 lt_cv_prog_gnu_ld=no
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7322 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7323 with_gnu_ld=$lt_cv_prog_gnu_ld
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7334 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7335 if test "${lt_cv_path_NM+set}" = set; then :
7336 $as_echo_n "(cached) " >&6
7338 if test -n "$NM"; then
7339 # Let the user override the test.
7342 lt_nm_to_check="${ac_tool_prefix}nm"
7343 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7344 lt_nm_to_check="$lt_nm_to_check nm"
7346 for lt_tmp_nm in $lt_nm_to_check; do
7347 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7348 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7350 test -z "$ac_dir" && ac_dir=.
7351 tmp_nm="$ac_dir/$lt_tmp_nm"
7352 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7353 # Check to see if the nm accepts a BSD-compat flag.
7354 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7355 # nm: unknown option "B" ignored
7356 # Tru64's nm complains that /dev/null is an invalid object file
7357 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7358 */dev/null* | *'Invalid file or object type'*)
7359 lt_cv_path_NM="$tmp_nm -B"
7363 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7365 lt_cv_path_NM="$tmp_nm -p"
7369 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7370 continue # so that we can try to find one that supports BSD flags
7379 : ${lt_cv_path_NM=no}
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7383 $as_echo "$lt_cv_path_NM" >&6; }
7384 if test "$lt_cv_path_NM" != "no"; then
7387 # Didn't find any BSD compatible name lister, look for dumpbin.
7388 if test -n "$ac_tool_prefix"; then
7389 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7392 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7394 $as_echo_n "checking for $ac_word... " >&6; }
7395 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7396 $as_echo_n "(cached) " >&6
7398 if test -n "$DUMPBIN"; then
7399 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7408 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 DUMPBIN=$ac_cv_prog_DUMPBIN
7419 if test -n "$DUMPBIN"; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7421 $as_echo "$DUMPBIN" >&6; }
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7424 $as_echo "no" >&6; }
7428 test -n "$DUMPBIN" && break
7431 if test -z "$DUMPBIN"; then
7432 ac_ct_DUMPBIN=$DUMPBIN
7433 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
7435 # Extract the first word of "$ac_prog", so it can be a program name with args.
7436 set dummy $ac_prog; ac_word=$2
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7438 $as_echo_n "checking for $ac_word... " >&6; }
7439 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7440 $as_echo_n "(cached) " >&6
7442 if test -n "$ac_ct_DUMPBIN"; then
7443 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7463 if test -n "$ac_ct_DUMPBIN"; then
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7465 $as_echo "$ac_ct_DUMPBIN" >&6; }
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7468 $as_echo "no" >&6; }
7472 test -n "$ac_ct_DUMPBIN" && break
7475 if test "x$ac_ct_DUMPBIN" = x; then
7478 case $cross_compiling:$ac_tool_warned in
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7481 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7482 ac_tool_warned=yes ;;
7484 DUMPBIN=$ac_ct_DUMPBIN
7489 if test "$DUMPBIN" != ":"; then
7493 test -z "$NM" && NM=nm
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7501 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7502 if test "${lt_cv_nm_interface+set}" = set; then :
7503 $as_echo_n "(cached) " >&6
7505 lt_cv_nm_interface="BSD nm"
7506 echo "int some_variable = 0;" > conftest.$ac_ext
7507 (eval echo "\"\$as_me:7507: $ac_compile\"" >&5)
7508 (eval "$ac_compile" 2>conftest.err)
7509 cat conftest.err >&5
7510 (eval echo "\"\$as_me:7510: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7511 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7512 cat conftest.err >&5
7513 (eval echo "\"\$as_me:7513: output\"" >&5)
7514 cat conftest.out >&5
7515 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7516 lt_cv_nm_interface="MS dumpbin"
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7521 $as_echo "$lt_cv_nm_interface" >&6; }
7523 # find the maximum length of command line arguments
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7525 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7526 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7527 $as_echo_n "(cached) " >&6
7534 # On DJGPP, this test can blow up pretty badly due to problems in libc
7535 # (any single argument exceeding 2000 bytes causes a buffer overrun
7536 # during glob expansion). Even if it were fixed, the result of this
7537 # check would be larger than it should be.
7538 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7542 # Under GNU Hurd, this test is not required because there is
7543 # no limit to the length of command line arguments.
7544 # Libtool will interpret -1 as no limit whatsoever
7545 lt_cv_sys_max_cmd_len=-1;
7548 cygwin* | mingw* | cegcc*)
7549 # On Win9x/ME, this test blows up -- it succeeds, but takes
7550 # about 5 minutes as the teststring grows exponentially.
7551 # Worse, since 9x/ME are not pre-emptively multitasking,
7552 # you end up with a "frozen" computer, even though with patience
7553 # the test eventually succeeds (with a max line length of 256k).
7554 # Instead, let's just punt: use the minimum linelength reported by
7555 # all of the supported platforms: 8192 (on NT/2K/XP).
7556 lt_cv_sys_max_cmd_len=8192;
7560 # On AmigaOS with pdksh, this test takes hours, literally.
7561 # So we just punt and use a minimum line length of 8192.
7562 lt_cv_sys_max_cmd_len=8192;
7565 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7566 # This has been around since 386BSD, at least. Likely further.
7567 if test -x /sbin/sysctl; then
7568 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7569 elif test -x /usr/sbin/sysctl; then
7570 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7572 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7574 # And add a safety zone
7575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7580 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7581 lt_cv_sys_max_cmd_len=196608
7585 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7586 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7587 # nice to cause kernel panics so lets avoid the loop below.
7588 # First set a reasonable default.
7589 lt_cv_sys_max_cmd_len=16384
7591 if test -x /sbin/sysconfig; then
7592 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7593 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7598 lt_cv_sys_max_cmd_len=102400
7600 sysv5* | sco5v6* | sysv4.2uw2*)
7601 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7602 if test -n "$kargmax"; then
7603 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7605 lt_cv_sys_max_cmd_len=32768
7609 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7610 if test -n "$lt_cv_sys_max_cmd_len"; then
7611 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7612 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7614 # Make teststring a little bigger before we do anything with it.
7615 # a 1K string should be a reasonable start.
7616 for i in 1 2 3 4 5 6 7 8 ; do
7617 teststring=$teststring$teststring
7619 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7620 # If test is not a shell built-in, we'll probably end up computing a
7621 # maximum length that is only half of the actual maximum length, but
7623 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
7624 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
7625 test $i != 17 # 1/2 MB should be enough
7628 teststring=$teststring$teststring
7630 # Only check the string length outside the loop.
7631 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7633 # Add a significant safety factor because C++ compilers can tack on
7634 # massive amounts of additional arguments before passing them to the
7635 # linker. It appears as though 1/2 is a usable value.
7636 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7643 if test -n $lt_cv_sys_max_cmd_len ; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7645 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7648 $as_echo "none" >&6; }
7650 max_cmd_len=$lt_cv_sys_max_cmd_len
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7662 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7663 # Try some XSI features
7666 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7668 && eval 'test $(( 1 + 1 )) -eq 2 \
7669 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7672 $as_echo "$xsi_shell" >&6; }
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7676 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7678 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7680 && lt_shell_append=yes
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7682 $as_echo "$lt_shell_append" >&6; }
7685 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7695 # test EBCDIC or ASCII
7696 case `echo X|tr X '\101'` in
7697 A) # ASCII based system
7698 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7699 lt_SP2NL='tr \040 \012'
7700 lt_NL2SP='tr \015\012 \040\040'
7702 *) # EBCDIC based system
7703 lt_SP2NL='tr \100 \n'
7704 lt_NL2SP='tr \r\n \100\100'
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7717 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7718 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7719 $as_echo_n "(cached) " >&6
7721 lt_cv_ld_reload_flag='-r'
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7724 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7725 reload_flag=$lt_cv_ld_reload_flag
7726 case $reload_flag in
7728 *) reload_flag=" $reload_flag" ;;
7730 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7733 if test "$GCC" = yes; then
7734 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7736 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7749 if test -n "$ac_tool_prefix"; then
7750 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7751 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753 $as_echo_n "checking for $ac_word... " >&6; }
7754 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7755 $as_echo_n "(cached) " >&6
7757 if test -n "$OBJDUMP"; then
7758 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7764 test -z "$as_dir" && as_dir=.
7765 for ac_exec_ext in '' $ac_executable_extensions; do
7766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7777 OBJDUMP=$ac_cv_prog_OBJDUMP
7778 if test -n "$OBJDUMP"; then
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7780 $as_echo "$OBJDUMP" >&6; }
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783 $as_echo "no" >&6; }
7788 if test -z "$ac_cv_prog_OBJDUMP"; then
7789 ac_ct_OBJDUMP=$OBJDUMP
7790 # Extract the first word of "objdump", so it can be a program name with args.
7791 set dummy objdump; ac_word=$2
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7793 $as_echo_n "checking for $ac_word... " >&6; }
7794 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7797 if test -n "$ac_ct_OBJDUMP"; then
7798 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7804 test -z "$as_dir" && as_dir=.
7805 for ac_exec_ext in '' $ac_executable_extensions; do
7806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7807 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7818 if test -n "$ac_ct_OBJDUMP"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7820 $as_echo "$ac_ct_OBJDUMP" >&6; }
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7826 if test "x$ac_ct_OBJDUMP" = x; then
7829 case $cross_compiling:$ac_tool_warned in
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7833 ac_tool_warned=yes ;;
7835 OBJDUMP=$ac_ct_OBJDUMP
7838 OBJDUMP="$ac_cv_prog_OBJDUMP"
7841 test -z "$OBJDUMP" && OBJDUMP=objdump
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7852 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7853 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7854 $as_echo_n "(cached) " >&6
7856 lt_cv_file_magic_cmd='$MAGIC_CMD'
7857 lt_cv_file_magic_test_file=
7858 lt_cv_deplibs_check_method='unknown'
7859 # Need to set the preceding variable on all platforms that support
7860 # interlibrary dependencies.
7861 # 'none' -- dependencies not supported.
7862 # `unknown' -- same as none, but documents that we really don't know.
7863 # 'pass_all' -- all dependencies passed with no checks.
7864 # 'test_compile' -- check by making test program.
7865 # 'file_magic [[regex]]' -- check by looking for files in library path
7866 # which responds to the $file_magic_cmd with a given extended regex.
7867 # If you have `file' or equivalent on your system and you're not sure
7868 # whether `pass_all' will *always* work, you probably want this one.
7872 lt_cv_deplibs_check_method=pass_all
7876 lt_cv_deplibs_check_method=pass_all
7880 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7881 lt_cv_file_magic_cmd='/usr/bin/file -L'
7882 lt_cv_file_magic_test_file=/shlib/libc.so
7886 # func_win32_libid is a shell function defined in ltmain.sh
7887 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7888 lt_cv_file_magic_cmd='func_win32_libid'
7892 # Base MSYS/MinGW do not provide the 'file' command needed by
7893 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7894 # unless we find 'file', for example because we are cross-compiling.
7895 if ( file / ) >/dev/null 2>&1; then
7896 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7897 lt_cv_file_magic_cmd='func_win32_libid'
7899 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7900 lt_cv_file_magic_cmd='$OBJDUMP -f'
7905 # use the weaker test based on 'objdump'. See mingw*.
7906 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7907 lt_cv_file_magic_cmd='$OBJDUMP -f'
7910 darwin* | rhapsody*)
7911 lt_cv_deplibs_check_method=pass_all
7914 freebsd* | dragonfly*)
7915 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7918 # Not sure whether the presence of OpenBSD here was a mistake.
7919 # Let's accept both of them until this is cleared up.
7920 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7921 lt_cv_file_magic_cmd=/usr/bin/file
7922 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7926 lt_cv_deplibs_check_method=pass_all
7931 lt_cv_deplibs_check_method=pass_all
7934 hpux10.20* | hpux11*)
7935 lt_cv_file_magic_cmd=/usr/bin/file
7938 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7939 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7942 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]'
7943 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7946 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
7947 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7953 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7954 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7957 irix5* | irix6* | nonstopux*)
7959 *-32|*"-32 ") libmagic=32-bit;;
7960 *-n32|*"-n32 ") libmagic=N32;;
7961 *-64|*"-64 ") libmagic=64-bit;;
7962 *) libmagic=never-match;;
7964 lt_cv_deplibs_check_method=pass_all
7967 # This must be Linux ELF.
7968 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7969 lt_cv_deplibs_check_method=pass_all
7973 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7974 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7976 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7981 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7982 lt_cv_file_magic_cmd=/usr/bin/file
7983 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7987 lt_cv_deplibs_check_method=pass_all
7991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7994 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7998 osf3* | osf4* | osf5*)
7999 lt_cv_deplibs_check_method=pass_all
8003 lt_cv_deplibs_check_method=pass_all
8007 lt_cv_deplibs_check_method=pass_all
8010 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8011 lt_cv_deplibs_check_method=pass_all
8015 case $host_vendor in
8017 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]'
8018 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8021 lt_cv_deplibs_check_method=pass_all
8024 lt_cv_file_magic_cmd='/bin/file'
8025 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8028 lt_cv_file_magic_cmd='/bin/file'
8029 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8030 lt_cv_file_magic_test_file=/lib/libc.so
8033 lt_cv_deplibs_check_method=pass_all
8036 lt_cv_deplibs_check_method=pass_all
8042 lt_cv_deplibs_check_method=pass_all
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8048 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8049 file_magic_cmd=$lt_cv_file_magic_cmd
8050 deplibs_check_method=$lt_cv_deplibs_check_method
8051 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8064 if test -n "$ac_tool_prefix"; then
8065 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8066 set dummy ${ac_tool_prefix}ar; ac_word=$2
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 $as_echo_n "checking for $ac_word... " >&6; }
8069 if test "${ac_cv_prog_AR+set}" = set; then :
8070 $as_echo_n "(cached) " >&6
8072 if test -n "$AR"; then
8073 ac_cv_prog_AR="$AR" # Let the user override the test.
8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8079 test -z "$as_dir" && as_dir=.
8080 for ac_exec_ext in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8082 ac_cv_prog_AR="${ac_tool_prefix}ar"
8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 if test -n "$AR"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8095 $as_echo "$AR" >&6; }
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8103 if test -z "$ac_cv_prog_AR"; then
8105 # Extract the first word of "ar", so it can be a program name with args.
8106 set dummy ar; ac_word=$2
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8108 $as_echo_n "checking for $ac_word... " >&6; }
8109 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8110 $as_echo_n "(cached) " >&6
8112 if test -n "$ac_ct_AR"; then
8113 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8119 test -z "$as_dir" && as_dir=.
8120 for ac_exec_ext in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8122 ac_cv_prog_ac_ct_AR="ar"
8123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8133 if test -n "$ac_ct_AR"; then
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8135 $as_echo "$ac_ct_AR" >&6; }
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138 $as_echo "no" >&6; }
8141 if test "x$ac_ct_AR" = x; then
8144 case $cross_compiling:$ac_tool_warned in
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8147 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8148 ac_tool_warned=yes ;;
8156 test -z "$AR" && AR=ar
8157 test -z "$AR_FLAGS" && AR_FLAGS=cru
8169 if test -n "$ac_tool_prefix"; then
8170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8171 set dummy ${ac_tool_prefix}strip; ac_word=$2
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 $as_echo_n "checking for $ac_word... " >&6; }
8174 if test "${ac_cv_prog_STRIP+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8177 if test -n "$STRIP"; then
8178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8187 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8197 STRIP=$ac_cv_prog_STRIP
8198 if test -n "$STRIP"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8200 $as_echo "$STRIP" >&6; }
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8208 if test -z "$ac_cv_prog_STRIP"; then
8210 # Extract the first word of "strip", so it can be a program name with args.
8211 set dummy strip; ac_word=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8217 if test -n "$ac_ct_STRIP"; then
8218 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_prog_ac_ct_STRIP="strip"
8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8237 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8238 if test -n "$ac_ct_STRIP"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8240 $as_echo "$ac_ct_STRIP" >&6; }
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8246 if test "x$ac_ct_STRIP" = x; then
8249 case $cross_compiling:$ac_tool_warned in
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8253 ac_tool_warned=yes ;;
8258 STRIP="$ac_cv_prog_STRIP"
8261 test -z "$STRIP" && STRIP=:
8268 if test -n "$ac_tool_prefix"; then
8269 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8270 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8272 $as_echo_n "checking for $ac_word... " >&6; }
8273 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8274 $as_echo_n "(cached) " >&6
8276 if test -n "$RANLIB"; then
8277 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 test -z "$as_dir" && as_dir=.
8284 for ac_exec_ext in '' $ac_executable_extensions; do
8285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8286 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8296 RANLIB=$ac_cv_prog_RANLIB
8297 if test -n "$RANLIB"; then
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8299 $as_echo "$RANLIB" >&6; }
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8302 $as_echo "no" >&6; }
8307 if test -z "$ac_cv_prog_RANLIB"; then
8308 ac_ct_RANLIB=$RANLIB
8309 # Extract the first word of "ranlib", so it can be a program name with args.
8310 set dummy ranlib; ac_word=$2
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312 $as_echo_n "checking for $ac_word... " >&6; }
8313 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8314 $as_echo_n "(cached) " >&6
8316 if test -n "$ac_ct_RANLIB"; then
8317 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8323 test -z "$as_dir" && as_dir=.
8324 for ac_exec_ext in '' $ac_executable_extensions; do
8325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8326 ac_cv_prog_ac_ct_RANLIB="ranlib"
8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8336 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8337 if test -n "$ac_ct_RANLIB"; then
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8339 $as_echo "$ac_ct_RANLIB" >&6; }
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8342 $as_echo "no" >&6; }
8345 if test "x$ac_ct_RANLIB" = x; then
8348 case $cross_compiling:$ac_tool_warned in
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8352 ac_tool_warned=yes ;;
8354 RANLIB=$ac_ct_RANLIB
8357 RANLIB="$ac_cv_prog_RANLIB"
8360 test -z "$RANLIB" && RANLIB=:
8367 # Determine commands to create old-style static archives.
8368 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8369 old_postinstall_cmds='chmod 644 $oldlib'
8370 old_postuninstall_cmds=
8372 if test -n "$RANLIB"; then
8375 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8378 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8381 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8417 # If no C compiler was specified, use CC.
8420 # If no C compiler flags were specified, use CFLAGS.
8421 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8423 # Allow CC to be a program name with arguments.
8427 # Check for command to grab the raw symbol name followed by C symbol from nm.
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8429 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8430 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8431 $as_echo_n "(cached) " >&6
8434 # These are sane defaults that work on at least a few old systems.
8435 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8437 # Character class describing NM global symbol codes.
8438 symcode='[BCDEGRST]'
8440 # Regexp to match symbols that can be accessed directly from C.
8441 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8443 # Define system-specific variables.
8448 cygwin* | mingw* | pw32* | cegcc*)
8449 symcode='[ABCDGISTW]'
8452 if test "$host_cpu" = ia64; then
8453 symcode='[ABCDEGRST]'
8457 symcode='[BCDEGRST]'
8460 symcode='[BCDEGQRST]'
8471 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8479 # If we're using GNU nm, then use its standard symbol codes.
8480 case `$NM -V 2>&1` in
8481 *GNU* | *'with BFD'*)
8482 symcode='[ABCDGIRSTW]' ;;
8485 # Transform an extracted symbol line into a proper C declaration.
8486 # Some systems (esp. on ia64) link data and code symbols differently,
8487 # so use this general approach.
8488 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8490 # Transform an extracted symbol line into symbol name and symbol address
8491 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8492 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'"
8494 # Handle CRLF in mingw tool chain
8498 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8502 # Try without a prefix underscore, then with it.
8503 for ac_symprfx in "" "_"; do
8505 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8506 symxfrm="\\1 $ac_symprfx\\2 \\2"
8508 # Write the raw and C identifiers.
8509 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8510 # Fake it for dumpbin and say T for any non-static function
8511 # and D for any global variable.
8512 # Also find C++ and __fastcall symbols from MSVC++,
8513 # which start with @ or ?.
8514 lt_cv_sys_global_symbol_pipe="$AWK '"\
8515 " {last_section=section; section=\$ 3};"\
8516 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8517 " \$ 0!~/External *\|/{next};"\
8518 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8519 " {if(hide[section]) next};"\
8520 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8521 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8522 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8523 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8524 " ' prfx=^$ac_symprfx"
8526 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8529 # Check to see that the pipe works correctly.
8533 cat > conftest.$ac_ext <<_LT_EOF
8538 void nm_test_func(void);
8539 void nm_test_func(void){}
8543 int main(){nm_test_var='a';nm_test_func();return(0);}
8546 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8547 (eval $ac_compile) 2>&5
8549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8550 test $ac_status = 0; }; then
8551 # Now try to grab the symbols.
8553 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
8554 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
8556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8557 test $ac_status = 0; } && test -s "$nlist"; then
8558 # Try sorting and uniquifying the output.
8559 if sort "$nlist" | uniq > "$nlist"T; then
8560 mv -f "$nlist"T "$nlist"
8565 # Make sure that we snagged all the symbols we need.
8566 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8567 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8568 cat <<_LT_EOF > conftest.$ac_ext
8574 # Now generate the symbol file.
8575 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8577 cat <<_LT_EOF >> conftest.$ac_ext
8579 /* The mapping between symbol names and symbols. */
8584 lt__PROGRAM__LTX_preloaded_symbols[] =
8586 { "@PROGRAM@", (void *) 0 },
8588 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8589 cat <<\_LT_EOF >> conftest.$ac_ext
8593 /* This works around a problem in FreeBSD linker */
8594 #ifdef FREEBSD_WORKAROUND
8595 static const void *lt_preloaded_setup() {
8596 return lt__PROGRAM__LTX_preloaded_symbols;
8604 # Now try linking the two files.
8605 mv conftest.$ac_objext conftstm.$ac_objext
8606 lt_save_LIBS="$LIBS"
8607 lt_save_CFLAGS="$CFLAGS"
8608 LIBS="conftstm.$ac_objext"
8609 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8611 (eval $ac_link) 2>&5
8613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8614 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8617 LIBS="$lt_save_LIBS"
8618 CFLAGS="$lt_save_CFLAGS"
8620 echo "cannot find nm_test_func in $nlist" >&5
8623 echo "cannot find nm_test_var in $nlist" >&5
8626 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8629 echo "$progname: failed program was:" >&5
8630 cat conftest.$ac_ext >&5
8632 rm -rf conftest* conftst*
8634 # Do not use the global_symbol_pipe unless it works.
8635 if test "$pipe_works" = yes; then
8638 lt_cv_sys_global_symbol_pipe=
8644 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8645 lt_cv_sys_global_symbol_to_cdecl=
8647 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8649 $as_echo "failed" >&6; }
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8652 $as_echo "ok" >&6; }
8677 # Check whether --enable-libtool-lock was given.
8678 if test "${enable_libtool_lock+set}" = set; then :
8679 enableval=$enable_libtool_lock;
8682 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8684 # Some flags need to be propagated to the compiler or linker for good
8688 # Find out which ABI we are using.
8689 echo 'int i;' > conftest.$ac_ext
8690 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8691 (eval $ac_compile) 2>&5
8693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8694 test $ac_status = 0; }; then
8695 case `/usr/bin/file conftest.$ac_objext` in
8707 # Find out which ABI we are using.
8708 echo '#line 8708 "configure"' > conftest.$ac_ext
8709 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8710 (eval $ac_compile) 2>&5
8712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8713 test $ac_status = 0; }; then
8714 if test "$lt_cv_prog_gnu_ld" = yes; then
8715 case `/usr/bin/file conftest.$ac_objext` in
8717 LD="${LD-ld} -melf32bsmip"
8720 LD="${LD-ld} -melf32bmipn32"
8723 LD="${LD-ld} -melf64bmip"
8727 case `/usr/bin/file conftest.$ac_objext` in
8743 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8744 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8745 # Find out which ABI we are using.
8746 echo 'int i;' > conftest.$ac_ext
8747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8748 (eval $ac_compile) 2>&5
8750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8751 test $ac_status = 0; }; then
8752 case `/usr/bin/file conftest.o` in
8755 x86_64-*kfreebsd*-gnu)
8756 LD="${LD-ld} -m elf_i386_fbsd"
8759 LD="${LD-ld} -m elf_i386"
8761 ppc64-*linux*|powerpc64-*linux*)
8762 LD="${LD-ld} -m elf32ppclinux"
8765 LD="${LD-ld} -m elf_s390"
8768 LD="${LD-ld} -m elf32_sparc"
8774 x86_64-*kfreebsd*-gnu)
8775 LD="${LD-ld} -m elf_x86_64_fbsd"
8778 LD="${LD-ld} -m elf_x86_64"
8780 ppc*-*linux*|powerpc*-*linux*)
8781 LD="${LD-ld} -m elf64ppc"
8783 s390*-*linux*|s390*-*tpf*)
8784 LD="${LD-ld} -m elf64_s390"
8787 LD="${LD-ld} -m elf64_sparc"
8797 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8798 SAVE_CFLAGS="$CFLAGS"
8799 CFLAGS="$CFLAGS -belf"
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8801 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8802 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8803 $as_echo_n "(cached) " >&6
8806 ac_cpp='$CPP $CPPFLAGS'
8807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8811 if test x$gcc_no_link = xyes; then
8812 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8815 /* end confdefs.h. */
8825 if ac_fn_c_try_link "$LINENO"; then :
8826 lt_cv_cc_needs_belf=yes
8828 lt_cv_cc_needs_belf=no
8830 rm -f core conftest.err conftest.$ac_objext \
8831 conftest$ac_exeext conftest.$ac_ext
8833 ac_cpp='$CPP $CPPFLAGS'
8834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8840 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8841 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8842 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8843 CFLAGS="$SAVE_CFLAGS"
8847 # Find out which ABI we are using.
8848 echo 'int i;' > conftest.$ac_ext
8849 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8850 (eval $ac_compile) 2>&5
8852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8853 test $ac_status = 0; }; then
8854 case `/usr/bin/file conftest.o` in
8856 case $lt_cv_prog_gnu_ld in
8857 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8859 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8871 need_locks="$enable_libtool_lock"
8875 rhapsody* | darwin*)
8876 if test -n "$ac_tool_prefix"; then
8877 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8878 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8880 $as_echo_n "checking for $ac_word... " >&6; }
8881 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8882 $as_echo_n "(cached) " >&6
8884 if test -n "$DSYMUTIL"; then
8885 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8891 test -z "$as_dir" && as_dir=.
8892 for ac_exec_ext in '' $ac_executable_extensions; do
8893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8894 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8904 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8905 if test -n "$DSYMUTIL"; then
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8907 $as_echo "$DSYMUTIL" >&6; }
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8910 $as_echo "no" >&6; }
8915 if test -z "$ac_cv_prog_DSYMUTIL"; then
8916 ac_ct_DSYMUTIL=$DSYMUTIL
8917 # Extract the first word of "dsymutil", so it can be a program name with args.
8918 set dummy dsymutil; ac_word=$2
8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8920 $as_echo_n "checking for $ac_word... " >&6; }
8921 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8922 $as_echo_n "(cached) " >&6
8924 if test -n "$ac_ct_DSYMUTIL"; then
8925 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8931 test -z "$as_dir" && as_dir=.
8932 for ac_exec_ext in '' $ac_executable_extensions; do
8933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8934 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8944 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8945 if test -n "$ac_ct_DSYMUTIL"; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8947 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8950 $as_echo "no" >&6; }
8953 if test "x$ac_ct_DSYMUTIL" = x; then
8956 case $cross_compiling:$ac_tool_warned in
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8960 ac_tool_warned=yes ;;
8962 DSYMUTIL=$ac_ct_DSYMUTIL
8965 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8968 if test -n "$ac_tool_prefix"; then
8969 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8970 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972 $as_echo_n "checking for $ac_word... " >&6; }
8973 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8974 $as_echo_n "(cached) " >&6
8976 if test -n "$NMEDIT"; then
8977 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8983 test -z "$as_dir" && as_dir=.
8984 for ac_exec_ext in '' $ac_executable_extensions; do
8985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8986 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8996 NMEDIT=$ac_cv_prog_NMEDIT
8997 if test -n "$NMEDIT"; then
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8999 $as_echo "$NMEDIT" >&6; }
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002 $as_echo "no" >&6; }
9007 if test -z "$ac_cv_prog_NMEDIT"; then
9008 ac_ct_NMEDIT=$NMEDIT
9009 # Extract the first word of "nmedit", so it can be a program name with args.
9010 set dummy nmedit; ac_word=$2
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012 $as_echo_n "checking for $ac_word... " >&6; }
9013 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9014 $as_echo_n "(cached) " >&6
9016 if test -n "$ac_ct_NMEDIT"; then
9017 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9023 test -z "$as_dir" && as_dir=.
9024 for ac_exec_ext in '' $ac_executable_extensions; do
9025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9026 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9036 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9037 if test -n "$ac_ct_NMEDIT"; then
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9039 $as_echo "$ac_ct_NMEDIT" >&6; }
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042 $as_echo "no" >&6; }
9045 if test "x$ac_ct_NMEDIT" = x; then
9048 case $cross_compiling:$ac_tool_warned in
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9051 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9052 ac_tool_warned=yes ;;
9054 NMEDIT=$ac_ct_NMEDIT
9057 NMEDIT="$ac_cv_prog_NMEDIT"
9060 if test -n "$ac_tool_prefix"; then
9061 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9062 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9064 $as_echo_n "checking for $ac_word... " >&6; }
9065 if test "${ac_cv_prog_LIPO+set}" = set; then :
9066 $as_echo_n "(cached) " >&6
9068 if test -n "$LIPO"; then
9069 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9075 test -z "$as_dir" && as_dir=.
9076 for ac_exec_ext in '' $ac_executable_extensions; do
9077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9078 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9088 LIPO=$ac_cv_prog_LIPO
9089 if test -n "$LIPO"; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9091 $as_echo "$LIPO" >&6; }
9093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9094 $as_echo "no" >&6; }
9099 if test -z "$ac_cv_prog_LIPO"; then
9101 # Extract the first word of "lipo", so it can be a program name with args.
9102 set dummy lipo; ac_word=$2
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104 $as_echo_n "checking for $ac_word... " >&6; }
9105 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
9108 if test -n "$ac_ct_LIPO"; then
9109 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9115 test -z "$as_dir" && as_dir=.
9116 for ac_exec_ext in '' $ac_executable_extensions; do
9117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9118 ac_cv_prog_ac_ct_LIPO="lipo"
9119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9128 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9129 if test -n "$ac_ct_LIPO"; then
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9131 $as_echo "$ac_ct_LIPO" >&6; }
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9134 $as_echo "no" >&6; }
9137 if test "x$ac_ct_LIPO" = x; then
9140 case $cross_compiling:$ac_tool_warned in
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9144 ac_tool_warned=yes ;;
9149 LIPO="$ac_cv_prog_LIPO"
9152 if test -n "$ac_tool_prefix"; then
9153 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9154 set dummy ${ac_tool_prefix}otool; ac_word=$2
9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9156 $as_echo_n "checking for $ac_word... " >&6; }
9157 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9158 $as_echo_n "(cached) " >&6
9160 if test -n "$OTOOL"; then
9161 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167 test -z "$as_dir" && as_dir=.
9168 for ac_exec_ext in '' $ac_executable_extensions; do
9169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9170 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9180 OTOOL=$ac_cv_prog_OTOOL
9181 if test -n "$OTOOL"; then
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9183 $as_echo "$OTOOL" >&6; }
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9186 $as_echo "no" >&6; }
9191 if test -z "$ac_cv_prog_OTOOL"; then
9193 # Extract the first word of "otool", so it can be a program name with args.
9194 set dummy otool; ac_word=$2
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9196 $as_echo_n "checking for $ac_word... " >&6; }
9197 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9198 $as_echo_n "(cached) " >&6
9200 if test -n "$ac_ct_OTOOL"; then
9201 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9207 test -z "$as_dir" && as_dir=.
9208 for ac_exec_ext in '' $ac_executable_extensions; do
9209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9210 ac_cv_prog_ac_ct_OTOOL="otool"
9211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9220 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9221 if test -n "$ac_ct_OTOOL"; then
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9223 $as_echo "$ac_ct_OTOOL" >&6; }
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9226 $as_echo "no" >&6; }
9229 if test "x$ac_ct_OTOOL" = x; then
9232 case $cross_compiling:$ac_tool_warned in
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9236 ac_tool_warned=yes ;;
9241 OTOOL="$ac_cv_prog_OTOOL"
9244 if test -n "$ac_tool_prefix"; then
9245 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9246 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 $as_echo_n "checking for $ac_word... " >&6; }
9249 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9250 $as_echo_n "(cached) " >&6
9252 if test -n "$OTOOL64"; then
9253 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9259 test -z "$as_dir" && as_dir=.
9260 for ac_exec_ext in '' $ac_executable_extensions; do
9261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9262 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9272 OTOOL64=$ac_cv_prog_OTOOL64
9273 if test -n "$OTOOL64"; then
9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9275 $as_echo "$OTOOL64" >&6; }
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9278 $as_echo "no" >&6; }
9283 if test -z "$ac_cv_prog_OTOOL64"; then
9284 ac_ct_OTOOL64=$OTOOL64
9285 # Extract the first word of "otool64", so it can be a program name with args.
9286 set dummy otool64; ac_word=$2
9287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9288 $as_echo_n "checking for $ac_word... " >&6; }
9289 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9290 $as_echo_n "(cached) " >&6
9292 if test -n "$ac_ct_OTOOL64"; then
9293 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9299 test -z "$as_dir" && as_dir=.
9300 for ac_exec_ext in '' $ac_executable_extensions; do
9301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9302 ac_cv_prog_ac_ct_OTOOL64="otool64"
9303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9312 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9313 if test -n "$ac_ct_OTOOL64"; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9315 $as_echo "$ac_ct_OTOOL64" >&6; }
9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9318 $as_echo "no" >&6; }
9321 if test "x$ac_ct_OTOOL64" = x; then
9324 case $cross_compiling:$ac_tool_warned in
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9328 ac_tool_warned=yes ;;
9330 OTOOL64=$ac_ct_OTOOL64
9333 OTOOL64="$ac_cv_prog_OTOOL64"
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9363 $as_echo_n "checking for -single_module linker flag... " >&6; }
9364 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9365 $as_echo_n "(cached) " >&6
9367 lt_cv_apple_cc_single_mod=no
9368 if test -z "${LT_MULTI_MODULE}"; then
9369 # By default we will add the -single_module flag. You can override
9370 # by either setting the environment variable LT_MULTI_MODULE
9371 # non-empty at configure time, or by adding -multi_module to the
9373 rm -rf libconftest.dylib*
9374 echo "int foo(void){return 1;}" > conftest.c
9375 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9376 -dynamiclib -Wl,-single_module conftest.c" >&5
9377 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9378 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9380 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9381 lt_cv_apple_cc_single_mod=yes
9383 cat conftest.err >&5
9385 rm -rf libconftest.dylib*
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9390 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9392 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9393 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9394 $as_echo_n "(cached) " >&6
9396 lt_cv_ld_exported_symbols_list=no
9397 save_LDFLAGS=$LDFLAGS
9398 echo "_main" > conftest.sym
9399 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9400 if test x$gcc_no_link = xyes; then
9401 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9404 /* end confdefs.h. */
9414 if ac_fn_c_try_link "$LINENO"; then :
9415 lt_cv_ld_exported_symbols_list=yes
9417 lt_cv_ld_exported_symbols_list=no
9419 rm -f core conftest.err conftest.$ac_objext \
9420 conftest$ac_exeext conftest.$ac_ext
9421 LDFLAGS="$save_LDFLAGS"
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9425 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9427 rhapsody* | darwin1.[012])
9428 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9430 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9431 darwin*) # darwin 5.x on
9432 # if running on 10.5 or later, the deployment target defaults
9433 # to the OS version, if on x86, and 10.4, the deployment
9434 # target defaults to 10.4. Don't you love it?
9435 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9436 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9437 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9439 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9441 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9445 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9446 _lt_dar_single_mod='$single_module'
9448 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9449 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9451 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9453 if test "$DSYMUTIL" != ":"; then
9454 _lt_dsymutil='~$DSYMUTIL $lib || :'
9462 ac_cpp='$CPP $CPPFLAGS'
9463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9467 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9468 # On Suns, sometimes $CPP names a directory.
9469 if test -n "$CPP" && test -d "$CPP"; then
9472 if test -z "$CPP"; then
9473 if test "${ac_cv_prog_CPP+set}" = set; then :
9474 $as_echo_n "(cached) " >&6
9476 # Double quotes because CPP needs to be expanded
9477 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9480 for ac_c_preproc_warn_flag in '' yes
9482 # Use a header file that comes with gcc, so configuring glibc
9483 # with a fresh cross-compiler works.
9484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9485 # <limits.h> exists even on freestanding compilers.
9486 # On the NeXT, cc -E runs the code through the compiler's parser,
9487 # not just through cpp. "Syntax error" is here to catch this case.
9488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9491 # include <limits.h>
9493 # include <assert.h>
9497 if ac_fn_c_try_cpp "$LINENO"; then :
9500 # Broken: fails on valid input.
9503 rm -f conftest.err conftest.$ac_ext
9505 # OK, works on sane cases. Now check whether nonexistent headers
9506 # can be detected and how.
9507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9508 /* end confdefs.h. */
9509 #include <ac_nonexistent.h>
9511 if ac_fn_c_try_cpp "$LINENO"; then :
9512 # Broken: success on invalid input.
9515 # Passes both tests.
9519 rm -f conftest.err conftest.$ac_ext
9522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9523 rm -f conftest.err conftest.$ac_ext
9524 if $ac_preproc_ok; then :
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9537 $as_echo "$CPP" >&6; }
9539 for ac_c_preproc_warn_flag in '' yes
9541 # Use a header file that comes with gcc, so configuring glibc
9542 # with a fresh cross-compiler works.
9543 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9544 # <limits.h> exists even on freestanding compilers.
9545 # On the NeXT, cc -E runs the code through the compiler's parser,
9546 # not just through cpp. "Syntax error" is here to catch this case.
9547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9548 /* end confdefs.h. */
9550 # include <limits.h>
9552 # include <assert.h>
9556 if ac_fn_c_try_cpp "$LINENO"; then :
9559 # Broken: fails on valid input.
9562 rm -f conftest.err conftest.$ac_ext
9564 # OK, works on sane cases. Now check whether nonexistent headers
9565 # can be detected and how.
9566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9567 /* end confdefs.h. */
9568 #include <ac_nonexistent.h>
9570 if ac_fn_c_try_cpp "$LINENO"; then :
9571 # Broken: success on invalid input.
9574 # Passes both tests.
9578 rm -f conftest.err conftest.$ac_ext
9581 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9582 rm -f conftest.err conftest.$ac_ext
9583 if $ac_preproc_ok; then :
9586 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9588 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9589 See \`config.log' for more details." "$LINENO" 5; }
9593 ac_cpp='$CPP $CPPFLAGS'
9594 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9595 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9596 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9600 $as_echo_n "checking for ANSI C header files... " >&6; }
9601 if test "${ac_cv_header_stdc+set}" = set; then :
9602 $as_echo_n "(cached) " >&6
9604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9605 /* end confdefs.h. */
9619 if ac_fn_c_try_compile "$LINENO"; then :
9620 ac_cv_header_stdc=yes
9622 ac_cv_header_stdc=no
9624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9626 if test $ac_cv_header_stdc = yes; then
9627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9629 /* end confdefs.h. */
9633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9634 $EGREP "memchr" >/dev/null 2>&1; then :
9637 ac_cv_header_stdc=no
9643 if test $ac_cv_header_stdc = yes; then
9644 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646 /* end confdefs.h. */
9650 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9651 $EGREP "free" >/dev/null 2>&1; then :
9654 ac_cv_header_stdc=no
9660 if test $ac_cv_header_stdc = yes; then
9661 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9662 if test "$cross_compiling" = yes; then :
9665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h. */
9669 #if ((' ' & 0x0FF) == 0x020)
9670 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9671 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9673 # define ISLOWER(c) \
9674 (('a' <= (c) && (c) <= 'i') \
9675 || ('j' <= (c) && (c) <= 'r') \
9676 || ('s' <= (c) && (c) <= 'z'))
9677 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9680 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9685 for (i = 0; i < 256; i++)
9686 if (XOR (islower (i), ISLOWER (i))
9687 || toupper (i) != TOUPPER (i))
9692 if ac_fn_c_try_run "$LINENO"; then :
9695 ac_cv_header_stdc=no
9697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9698 conftest.$ac_objext conftest.beam conftest.$ac_ext
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9704 $as_echo "$ac_cv_header_stdc" >&6; }
9705 if test $ac_cv_header_stdc = yes; then
9707 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9711 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9712 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9713 inttypes.h stdint.h unistd.h
9715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9716 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9718 eval as_val=\$$as_ac_Header
9719 if test "x$as_val" = x""yes; then :
9720 cat >>confdefs.h <<_ACEOF
9721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9729 for ac_header in dlfcn.h
9731 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9733 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9734 cat >>confdefs.h <<_ACEOF
9735 #define HAVE_DLFCN_H 1
9745 ac_cpp='$CXXCPP $CPPFLAGS'
9746 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9747 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9748 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9749 if test -z "$CXX"; then
9750 if test -n "$CCC"; then
9753 if test -n "$ac_tool_prefix"; then
9754 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9757 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9759 $as_echo_n "checking for $ac_word... " >&6; }
9760 if test "${ac_cv_prog_CXX+set}" = set; then :
9761 $as_echo_n "(cached) " >&6
9763 if test -n "$CXX"; then
9764 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9770 test -z "$as_dir" && as_dir=.
9771 for ac_exec_ext in '' $ac_executable_extensions; do
9772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9773 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9784 if test -n "$CXX"; then
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9786 $as_echo "$CXX" >&6; }
9788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789 $as_echo "no" >&6; }
9793 test -n "$CXX" && break
9796 if test -z "$CXX"; then
9798 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9800 # Extract the first word of "$ac_prog", so it can be a program name with args.
9801 set dummy $ac_prog; ac_word=$2
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803 $as_echo_n "checking for $ac_word... " >&6; }
9804 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9805 $as_echo_n "(cached) " >&6
9807 if test -n "$ac_ct_CXX"; then
9808 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9814 test -z "$as_dir" && as_dir=.
9815 for ac_exec_ext in '' $ac_executable_extensions; do
9816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9817 ac_cv_prog_ac_ct_CXX="$ac_prog"
9818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9827 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9828 if test -n "$ac_ct_CXX"; then
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9830 $as_echo "$ac_ct_CXX" >&6; }
9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9833 $as_echo "no" >&6; }
9837 test -n "$ac_ct_CXX" && break
9840 if test "x$ac_ct_CXX" = x; then
9843 case $cross_compiling:$ac_tool_warned in
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9847 ac_tool_warned=yes ;;
9855 # Provide some information about the compiler.
9856 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9859 for ac_option in --version -v -V -qversion; do
9860 { { ac_try="$ac_compiler $ac_option >&5"
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9866 $as_echo "$ac_try_echo"; } >&5
9867 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9869 if test -s conftest.err; then
9871 ... rest of stderr output deleted ...
9872 10q' conftest.err >conftest.er1
9873 cat conftest.er1 >&5
9874 rm -f conftest.er1 conftest.err
9876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9877 test $ac_status = 0; }
9880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9881 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9882 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9883 $as_echo_n "(cached) " >&6
9885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* end confdefs.h. */
9899 if ac_fn_cxx_try_compile "$LINENO"; then :
9904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9905 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9909 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9910 if test $ac_compiler_gnu = yes; then
9915 ac_test_CXXFLAGS=${CXXFLAGS+set}
9916 ac_save_CXXFLAGS=$CXXFLAGS
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9918 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9919 if test "${ac_cv_prog_cxx_g+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9922 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9923 ac_cxx_werror_flag=yes
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9927 /* end confdefs.h. */
9937 if ac_fn_cxx_try_compile "$LINENO"; then :
9938 ac_cv_prog_cxx_g=yes
9941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9942 /* end confdefs.h. */
9952 if ac_fn_cxx_try_compile "$LINENO"; then :
9955 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9958 /* end confdefs.h. */
9968 if ac_fn_cxx_try_compile "$LINENO"; then :
9969 ac_cv_prog_cxx_g=yes
9971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9976 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9979 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9980 if test "$ac_test_CXXFLAGS" = set; then
9981 CXXFLAGS=$ac_save_CXXFLAGS
9982 elif test $ac_cv_prog_cxx_g = yes; then
9983 if test "$GXX" = yes; then
9989 if test "$GXX" = yes; then
9996 ac_cpp='$CPP $CPPFLAGS'
9997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10001 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10002 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10003 (test "X$CXX" != "Xg++"))) ; then
10005 ac_cpp='$CXXCPP $CPPFLAGS'
10006 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10007 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10008 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10010 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10011 if test -z "$CXXCPP"; then
10012 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
10015 # Double quotes because CXXCPP needs to be expanded
10016 for CXXCPP in "$CXX -E" "/lib/cpp"
10018 ac_preproc_ok=false
10019 for ac_cxx_preproc_warn_flag in '' yes
10021 # Use a header file that comes with gcc, so configuring glibc
10022 # with a fresh cross-compiler works.
10023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10024 # <limits.h> exists even on freestanding compilers.
10025 # On the NeXT, cc -E runs the code through the compiler's parser,
10026 # not just through cpp. "Syntax error" is here to catch this case.
10027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10028 /* end confdefs.h. */
10030 # include <limits.h>
10032 # include <assert.h>
10036 if ac_fn_cxx_try_cpp "$LINENO"; then :
10039 # Broken: fails on valid input.
10042 rm -f conftest.err conftest.$ac_ext
10044 # OK, works on sane cases. Now check whether nonexistent headers
10045 # can be detected and how.
10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h. */
10048 #include <ac_nonexistent.h>
10050 if ac_fn_cxx_try_cpp "$LINENO"; then :
10051 # Broken: success on invalid input.
10054 # Passes both tests.
10058 rm -f conftest.err conftest.$ac_ext
10061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10062 rm -f conftest.err conftest.$ac_ext
10063 if $ac_preproc_ok; then :
10068 ac_cv_prog_CXXCPP=$CXXCPP
10071 CXXCPP=$ac_cv_prog_CXXCPP
10073 ac_cv_prog_CXXCPP=$CXXCPP
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10076 $as_echo "$CXXCPP" >&6; }
10077 ac_preproc_ok=false
10078 for ac_cxx_preproc_warn_flag in '' yes
10080 # Use a header file that comes with gcc, so configuring glibc
10081 # with a fresh cross-compiler works.
10082 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10083 # <limits.h> exists even on freestanding compilers.
10084 # On the NeXT, cc -E runs the code through the compiler's parser,
10085 # not just through cpp. "Syntax error" is here to catch this case.
10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10087 /* end confdefs.h. */
10089 # include <limits.h>
10091 # include <assert.h>
10095 if ac_fn_cxx_try_cpp "$LINENO"; then :
10098 # Broken: fails on valid input.
10101 rm -f conftest.err conftest.$ac_ext
10103 # OK, works on sane cases. Now check whether nonexistent headers
10104 # can be detected and how.
10105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10106 /* end confdefs.h. */
10107 #include <ac_nonexistent.h>
10109 if ac_fn_cxx_try_cpp "$LINENO"; then :
10110 # Broken: success on invalid input.
10113 # Passes both tests.
10117 rm -f conftest.err conftest.$ac_ext
10120 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10121 rm -f conftest.err conftest.$ac_ext
10122 if $ac_preproc_ok; then :
10125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10126 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10127 _lt_caught_CXX_error=yes; }
10131 ac_cpp='$CPP $CPPFLAGS'
10132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10137 _lt_caught_CXX_error=yes
10149 enable_win32_dll=no
10152 # Check whether --enable-shared was given.
10153 if test "${enable_shared+set}" = set; then :
10154 enableval=$enable_shared; p=${PACKAGE-default}
10156 yes) enable_shared=yes ;;
10157 no) enable_shared=no ;;
10160 # Look at the argument we got. We use all the common list separators.
10161 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10162 for pkg in $enableval; do
10164 if test "X$pkg" = "X$p"; then
10183 # Check whether --enable-static was given.
10184 if test "${enable_static+set}" = set; then :
10185 enableval=$enable_static; p=${PACKAGE-default}
10187 yes) enable_static=yes ;;
10188 no) enable_static=no ;;
10191 # Look at the argument we got. We use all the common list separators.
10192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10193 for pkg in $enableval; do
10195 if test "X$pkg" = "X$p"; then
10215 # Check whether --with-pic was given.
10216 if test "${with_pic+set}" = set; then :
10217 withval=$with_pic; pic_mode="$withval"
10223 test -z "$pic_mode" && pic_mode=default
10231 # Check whether --enable-fast-install was given.
10232 if test "${enable_fast_install+set}" = set; then :
10233 enableval=$enable_fast_install; p=${PACKAGE-default}
10235 yes) enable_fast_install=yes ;;
10236 no) enable_fast_install=no ;;
10238 enable_fast_install=no
10239 # Look at the argument we got. We use all the common list separators.
10240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10241 for pkg in $enableval; do
10243 if test "X$pkg" = "X$p"; then
10244 enable_fast_install=yes
10251 enable_fast_install=yes
10264 # This can be used to rebuild libtool when needed
10265 LIBTOOL_DEPS="$ltmain"
10267 # Always use our own libtool.
10268 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10294 test -z "$LN_S" && LN_S="ln -s"
10309 if test -n "${ZSH_VERSION+set}" ; then
10310 setopt NO_GLOB_SUBST
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10314 $as_echo_n "checking for objdir... " >&6; }
10315 if test "${lt_cv_objdir+set}" = set; then :
10316 $as_echo_n "(cached) " >&6
10318 rm -f .libs 2>/dev/null
10319 mkdir .libs 2>/dev/null
10320 if test -d .libs; then
10323 # MS-DOS does not allow filenames that begin with a dot.
10326 rmdir .libs 2>/dev/null
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10329 $as_echo "$lt_cv_objdir" >&6; }
10330 objdir=$lt_cv_objdir
10336 cat >>confdefs.h <<_ACEOF
10337 #define LT_OBJDIR "$lt_cv_objdir/"
10358 # AIX sometimes has problems with the GCC collect2 program. For some
10359 # reason, if we set the COLLECT_NAMES environment variable, the problems
10360 # vanish in a puff of smoke.
10361 if test "X${COLLECT_NAMES+set}" != Xset; then
10363 export COLLECT_NAMES
10368 # Sed substitution that helps us do robust quoting. It backslashifies
10369 # metacharacters that are still active within double-quoted strings.
10370 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10372 # Same as above, but do not quote variable references.
10373 double_quote_subst='s/\(["`\\]\)/\\\1/g'
10375 # Sed substitution to delay expansion of an escaped shell variable in a
10376 # double_quote_subst'ed string.
10377 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10379 # Sed substitution to delay expansion of an escaped single quote.
10380 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10382 # Sed substitution to avoid accidental globbing in evaled expressions
10383 no_glob_subst='s/\*/\\\*/g'
10385 # Global variables:
10387 can_build_shared=yes
10389 # All known linkers require a `.a' archive for static linking (except MSVC,
10390 # which needs '.lib').
10393 with_gnu_ld="$lt_cv_prog_gnu_ld"
10396 old_CFLAGS="$CFLAGS"
10398 # Set sane defaults for various variables
10399 test -z "$CC" && CC=cc
10400 test -z "$LTCC" && LTCC=$CC
10401 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10402 test -z "$LD" && LD=ld
10403 test -z "$ac_objext" && ac_objext=o
10405 for cc_temp in $compiler""; do
10407 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10408 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10413 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10416 # Only perform the check for file, if the check method requires it
10417 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10418 case $deplibs_check_method in
10420 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10422 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10423 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10424 $as_echo_n "(cached) " >&6
10428 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10431 lt_save_MAGIC_CMD="$MAGIC_CMD"
10432 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10433 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10434 for ac_dir in $ac_dummy; do
10436 test -z "$ac_dir" && ac_dir=.
10437 if test -f $ac_dir/${ac_tool_prefix}file; then
10438 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10439 if test -n "$file_magic_test_file"; then
10440 case $deplibs_check_method in
10442 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10444 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10445 $EGREP "$file_magic_regex" > /dev/null; then
10450 *** Warning: the command libtool uses to detect shared libraries,
10451 *** $file_magic_cmd, produces output that libtool cannot recognize.
10452 *** The result is that libtool may fail to recognize shared libraries
10453 *** as such. This will affect the creation of libtool libraries that
10454 *** depend on shared libraries, but programs linked with such libtool
10455 *** libraries will work regardless of this problem. Nevertheless, you
10456 *** may want to report the problem to your system manager and/or to
10457 *** bug-libtool@gnu.org
10467 MAGIC_CMD="$lt_save_MAGIC_CMD"
10472 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10473 if test -n "$MAGIC_CMD"; then
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10475 $as_echo "$MAGIC_CMD" >&6; }
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10478 $as_echo "no" >&6; }
10485 if test -z "$lt_cv_path_MAGIC_CMD"; then
10486 if test -n "$ac_tool_prefix"; then
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10488 $as_echo_n "checking for file... " >&6; }
10489 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10490 $as_echo_n "(cached) " >&6
10494 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10497 lt_save_MAGIC_CMD="$MAGIC_CMD"
10498 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10499 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10500 for ac_dir in $ac_dummy; do
10502 test -z "$ac_dir" && ac_dir=.
10503 if test -f $ac_dir/file; then
10504 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10505 if test -n "$file_magic_test_file"; then
10506 case $deplibs_check_method in
10508 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10509 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10510 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10511 $EGREP "$file_magic_regex" > /dev/null; then
10516 *** Warning: the command libtool uses to detect shared libraries,
10517 *** $file_magic_cmd, produces output that libtool cannot recognize.
10518 *** The result is that libtool may fail to recognize shared libraries
10519 *** as such. This will affect the creation of libtool libraries that
10520 *** depend on shared libraries, but programs linked with such libtool
10521 *** libraries will work regardless of this problem. Nevertheless, you
10522 *** may want to report the problem to your system manager and/or to
10523 *** bug-libtool@gnu.org
10533 MAGIC_CMD="$lt_save_MAGIC_CMD"
10538 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10539 if test -n "$MAGIC_CMD"; then
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10541 $as_echo "$MAGIC_CMD" >&6; }
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10544 $as_echo "no" >&6; }
10557 # Use C for the default configuration in the libtool script
10561 ac_cpp='$CPP $CPPFLAGS'
10562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10567 # Source file extension for C test sources.
10570 # Object file extension for compiled C test sources.
10574 # Code to be used in simple compile tests
10575 lt_simple_compile_test_code="int some_variable = 0;"
10577 # Code to be used in simple link tests
10578 lt_simple_link_test_code='int main(){return(0);}'
10586 # If no C compiler was specified, use CC.
10589 # If no C compiler flags were specified, use CFLAGS.
10590 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10592 # Allow CC to be a program name with arguments.
10595 # Save the default compiler, since it gets overwritten when the other
10596 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10597 compiler_DEFAULT=$CC
10599 # save warnings/boilerplate of simple test code
10600 ac_outfile=conftest.$ac_objext
10601 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10602 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10603 _lt_compiler_boilerplate=`cat conftest.err`
10606 ac_outfile=conftest.$ac_objext
10607 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10608 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10609 _lt_linker_boilerplate=`cat conftest.err`
10614 ## There is no encapsulation within the following macros, do not change
10615 ## the running order or otherwise move them around unless you know exactly
10616 ## what you are doing...
10617 if test -n "$compiler"; then
10619 lt_prog_compiler_no_builtin_flag=
10621 if test "$GCC" = yes; then
10622 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10625 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10626 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10627 $as_echo_n "(cached) " >&6
10629 lt_cv_prog_compiler_rtti_exceptions=no
10630 ac_outfile=conftest.$ac_objext
10631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10632 lt_compiler_flag="-fno-rtti -fno-exceptions"
10633 # Insert the option either (1) after the last *FLAGS variable, or
10634 # (2) before a word containing "conftest.", or (3) at the end.
10635 # Note that $ac_compile itself does not contain backslashes and begins
10636 # with a dollar sign (not a hyphen), so the echo should work correctly.
10637 # The option is referenced via a variable to avoid confusing sed.
10638 lt_compile=`echo "$ac_compile" | $SED \
10639 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10640 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10641 -e 's:$: $lt_compiler_flag:'`
10642 (eval echo "\"\$as_me:10642: $lt_compile\"" >&5)
10643 (eval "$lt_compile" 2>conftest.err)
10645 cat conftest.err >&5
10646 echo "$as_me:10646: \$? = $ac_status" >&5
10647 if (exit $ac_status) && test -s "$ac_outfile"; then
10648 # The compiler can only warn and ignore the option if not recognized
10649 # So say no if there are warnings other than the usual output.
10650 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10651 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10652 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10653 lt_cv_prog_compiler_rtti_exceptions=yes
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10660 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10662 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10663 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10675 lt_prog_compiler_wl=
10676 lt_prog_compiler_pic=
10677 lt_prog_compiler_static=
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10680 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10682 if test "$GCC" = yes; then
10683 lt_prog_compiler_wl='-Wl,'
10684 lt_prog_compiler_static='-static'
10688 # All AIX code is PIC.
10689 if test "$host_cpu" = ia64; then
10690 # AIX 5 now supports IA64 processor
10691 lt_prog_compiler_static='-Bstatic'
10698 # see comment about AmigaOS4 .so support
10699 lt_prog_compiler_pic='-fPIC'
10702 # FIXME: we need at least 68020 code to build shared libraries, but
10703 # adding the `-m68020' flag to GCC prevents building anything better,
10705 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10710 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10711 # PIC is the default for these OSes.
10714 mingw* | cygwin* | pw32* | os2* | cegcc*)
10715 # This hack is so that the source file can tell whether it is being
10716 # built for inclusion in a dll (and should export symbols for example).
10717 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10718 # (--disable-auto-import) libraries
10719 lt_prog_compiler_pic='-DDLL_EXPORT'
10722 darwin* | rhapsody*)
10723 # PIC is the default on this platform
10724 # Common symbols not allowed in MH_DYLIB files
10725 lt_prog_compiler_pic='-fno-common'
10729 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10730 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10731 # sets the default TLS model and affects inlining.
10737 lt_prog_compiler_pic='-fPIC'
10743 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10744 # Instead, we relocate shared libraries at runtime.
10748 # Just because we use GCC doesn't mean we suddenly get shared libraries
10749 # on systems that don't support them.
10750 lt_prog_compiler_can_build_shared=no
10755 # QNX uses GNU C++, but need to define -shared option too, otherwise
10756 # it will coredump.
10757 lt_prog_compiler_pic='-fPIC -shared'
10761 if test -d /usr/nec; then
10762 lt_prog_compiler_pic=-Kconform_pic
10767 lt_prog_compiler_pic='-fPIC'
10771 # PORTME Check for flag to pass linker flags through the system compiler.
10774 lt_prog_compiler_wl='-Wl,'
10775 if test "$host_cpu" = ia64; then
10776 # AIX 5 now supports IA64 processor
10777 lt_prog_compiler_static='-Bstatic'
10779 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10783 mingw* | cygwin* | pw32* | os2* | cegcc*)
10784 # This hack is so that the source file can tell whether it is being
10785 # built for inclusion in a dll (and should export symbols for example).
10786 lt_prog_compiler_pic='-DDLL_EXPORT'
10789 hpux9* | hpux10* | hpux11*)
10790 lt_prog_compiler_wl='-Wl,'
10791 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10792 # not for PA HP-UX.
10798 lt_prog_compiler_pic='+Z'
10801 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10802 lt_prog_compiler_static='${wl}-a ${wl}archive'
10805 irix5* | irix6* | nonstopux*)
10806 lt_prog_compiler_wl='-Wl,'
10807 # PIC (with -KPIC) is the default.
10808 lt_prog_compiler_static='-non_shared'
10811 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10812 case $cc_basename in
10813 # old Intel for x86_64 which still supported -KPIC.
10815 lt_prog_compiler_wl='-Wl,'
10816 lt_prog_compiler_pic='-KPIC'
10817 lt_prog_compiler_static='-static'
10819 # icc used to be incompatible with GCC.
10820 # ICC 10 doesn't accept -KPIC any more.
10822 lt_prog_compiler_wl='-Wl,'
10823 lt_prog_compiler_pic='-fPIC'
10824 lt_prog_compiler_static='-static'
10826 # Lahey Fortran 8.1.
10828 lt_prog_compiler_wl='-Wl,'
10829 lt_prog_compiler_pic='--shared'
10830 lt_prog_compiler_static='--static'
10832 pgcc* | pgf77* | pgf90* | pgf95*)
10833 # Portland Group compilers (*not* the Pentium gcc compiler,
10834 # which looks to be a dead project)
10835 lt_prog_compiler_wl='-Wl,'
10836 lt_prog_compiler_pic='-fpic'
10837 lt_prog_compiler_static='-Bstatic'
10840 lt_prog_compiler_wl='-Wl,'
10841 # All Alpha code is PIC.
10842 lt_prog_compiler_static='-non_shared'
10845 # IBM XL C 8.0/Fortran 10.1 on PPC
10846 lt_prog_compiler_wl='-Wl,'
10847 lt_prog_compiler_pic='-qpic'
10848 lt_prog_compiler_static='-qstaticlink'
10851 case `$CC -V 2>&1 | sed 5q` in
10854 lt_prog_compiler_pic='-KPIC'
10855 lt_prog_compiler_static='-Bstatic'
10856 lt_prog_compiler_wl='-Wl,'
10859 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10860 lt_prog_compiler_pic='-KPIC'
10861 lt_prog_compiler_static='-Bstatic'
10862 lt_prog_compiler_wl=''
10870 lt_prog_compiler_pic='-KPIC'
10871 lt_prog_compiler_static='-Bstatic'
10875 # QNX uses GNU C++, but need to define -shared option too, otherwise
10876 # it will coredump.
10877 lt_prog_compiler_pic='-fPIC -shared'
10880 osf3* | osf4* | osf5*)
10881 lt_prog_compiler_wl='-Wl,'
10882 # All OSF/1 code is PIC.
10883 lt_prog_compiler_static='-non_shared'
10887 lt_prog_compiler_static='-non_shared'
10891 lt_prog_compiler_pic='-KPIC'
10892 lt_prog_compiler_static='-Bstatic'
10893 case $cc_basename in
10894 f77* | f90* | f95*)
10895 lt_prog_compiler_wl='-Qoption ld ';;
10897 lt_prog_compiler_wl='-Wl,';;
10902 lt_prog_compiler_wl='-Qoption ld '
10903 lt_prog_compiler_pic='-PIC'
10904 lt_prog_compiler_static='-Bstatic'
10907 sysv4 | sysv4.2uw2* | sysv4.3*)
10908 lt_prog_compiler_wl='-Wl,'
10909 lt_prog_compiler_pic='-KPIC'
10910 lt_prog_compiler_static='-Bstatic'
10914 if test -d /usr/nec ;then
10915 lt_prog_compiler_pic='-Kconform_pic'
10916 lt_prog_compiler_static='-Bstatic'
10920 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10921 lt_prog_compiler_wl='-Wl,'
10922 lt_prog_compiler_pic='-KPIC'
10923 lt_prog_compiler_static='-Bstatic'
10927 lt_prog_compiler_wl='-Wl,'
10928 lt_prog_compiler_can_build_shared=no
10932 lt_prog_compiler_pic='-pic'
10933 lt_prog_compiler_static='-Bstatic'
10937 lt_prog_compiler_can_build_shared=no
10943 # For platforms which do not support PIC, -DPIC is meaningless:
10945 lt_prog_compiler_pic=
10948 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10952 $as_echo "$lt_prog_compiler_pic" >&6; }
10960 # Check to make sure the PIC flag actually works.
10962 if test -n "$lt_prog_compiler_pic"; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10964 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10965 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10966 $as_echo_n "(cached) " >&6
10968 lt_cv_prog_compiler_pic_works=no
10969 ac_outfile=conftest.$ac_objext
10970 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10971 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10972 # Insert the option either (1) after the last *FLAGS variable, or
10973 # (2) before a word containing "conftest.", or (3) at the end.
10974 # Note that $ac_compile itself does not contain backslashes and begins
10975 # with a dollar sign (not a hyphen), so the echo should work correctly.
10976 # The option is referenced via a variable to avoid confusing sed.
10977 lt_compile=`echo "$ac_compile" | $SED \
10978 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10979 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10980 -e 's:$: $lt_compiler_flag:'`
10981 (eval echo "\"\$as_me:10981: $lt_compile\"" >&5)
10982 (eval "$lt_compile" 2>conftest.err)
10984 cat conftest.err >&5
10985 echo "$as_me:10985: \$? = $ac_status" >&5
10986 if (exit $ac_status) && test -s "$ac_outfile"; then
10987 # The compiler can only warn and ignore the option if not recognized
10988 # So say no if there are warnings other than the usual output.
10989 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
10990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10991 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10992 lt_cv_prog_compiler_pic_works=yes
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10999 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11001 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11002 case $lt_prog_compiler_pic in
11004 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11007 lt_prog_compiler_pic=
11008 lt_prog_compiler_can_build_shared=no
11019 # Check to make sure the static flag actually works.
11021 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11023 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11024 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
11027 lt_cv_prog_compiler_static_works=no
11028 save_LDFLAGS="$LDFLAGS"
11029 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11030 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11031 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11032 # The linker can only warn and ignore the option if not recognized
11033 # So say no if there are warnings
11034 if test -s conftest.err; then
11035 # Append any errors to the config.log.
11036 cat conftest.err 1>&5
11037 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11038 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11039 if diff conftest.exp conftest.er2 >/dev/null; then
11040 lt_cv_prog_compiler_static_works=yes
11043 lt_cv_prog_compiler_static_works=yes
11047 LDFLAGS="$save_LDFLAGS"
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11051 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11053 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11056 lt_prog_compiler_static=
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11066 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11067 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11068 $as_echo_n "(cached) " >&6
11070 lt_cv_prog_compiler_c_o=no
11071 $RM -r conftest 2>/dev/null
11075 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11077 lt_compiler_flag="-o out/conftest2.$ac_objext"
11078 # Insert the option either (1) after the last *FLAGS variable, or
11079 # (2) before a word containing "conftest.", or (3) at the end.
11080 # Note that $ac_compile itself does not contain backslashes and begins
11081 # with a dollar sign (not a hyphen), so the echo should work correctly.
11082 lt_compile=`echo "$ac_compile" | $SED \
11083 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11084 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11085 -e 's:$: $lt_compiler_flag:'`
11086 (eval echo "\"\$as_me:11086: $lt_compile\"" >&5)
11087 (eval "$lt_compile" 2>out/conftest.err)
11089 cat out/conftest.err >&5
11090 echo "$as_me:11090: \$? = $ac_status" >&5
11091 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11093 # The compiler can only warn and ignore the option if not recognized
11094 # So say no if there are warnings
11095 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11096 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11097 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11098 lt_cv_prog_compiler_c_o=yes
11103 # SGI C++ compiler will create directory out/ii_files/ for
11104 # template instantiation
11105 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11106 $RM out/* && rmdir out
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11113 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11121 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11122 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
11123 $as_echo_n "(cached) " >&6
11125 lt_cv_prog_compiler_c_o=no
11126 $RM -r conftest 2>/dev/null
11130 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11132 lt_compiler_flag="-o out/conftest2.$ac_objext"
11133 # Insert the option either (1) after the last *FLAGS variable, or
11134 # (2) before a word containing "conftest.", or (3) at the end.
11135 # Note that $ac_compile itself does not contain backslashes and begins
11136 # with a dollar sign (not a hyphen), so the echo should work correctly.
11137 lt_compile=`echo "$ac_compile" | $SED \
11138 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11139 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11140 -e 's:$: $lt_compiler_flag:'`
11141 (eval echo "\"\$as_me:11141: $lt_compile\"" >&5)
11142 (eval "$lt_compile" 2>out/conftest.err)
11144 cat out/conftest.err >&5
11145 echo "$as_me:11145: \$? = $ac_status" >&5
11146 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11148 # The compiler can only warn and ignore the option if not recognized
11149 # So say no if there are warnings
11150 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11151 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11152 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11153 lt_cv_prog_compiler_c_o=yes
11158 # SGI C++ compiler will create directory out/ii_files/ for
11159 # template instantiation
11160 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11161 $RM out/* && rmdir out
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11168 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11173 hard_links="nottested"
11174 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11175 # do not overwrite the value of need_locks provided by the user
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11177 $as_echo_n "checking if we can lock with hard links... " >&6; }
11180 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11182 ln conftest.a conftest.b 2>&5 || hard_links=no
11183 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11185 $as_echo "$hard_links" >&6; }
11186 if test "$hard_links" = no; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11188 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11201 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11204 allow_undefined_flag=
11205 always_export_symbols=no
11207 archive_expsym_cmds=
11208 compiler_needs_object=no
11209 enable_shared_with_static_runtimes=no
11210 export_dynamic_flag_spec=
11211 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11212 hardcode_automatic=no
11214 hardcode_direct_absolute=no
11215 hardcode_libdir_flag_spec=
11216 hardcode_libdir_flag_spec_ld=
11217 hardcode_libdir_separator=
11218 hardcode_minus_L=no
11219 hardcode_shlibpath_var=unsupported
11221 link_all_deplibs=unknown
11223 module_expsym_cmds=
11224 old_archive_from_new_cmds=
11225 old_archive_from_expsyms_cmds=
11226 thread_safe_flag_spec=
11227 whole_archive_flag_spec=
11228 # include_expsyms should be a list of space-separated symbols to be *always*
11229 # included in the symbol list
11231 # exclude_expsyms can be an extended regexp of symbols to exclude
11232 # it will be wrapped by ` (' and `)$', so one must not match beginning or
11233 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
11234 # as well as any symbol that contains `d'.
11235 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
11236 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
11237 # platforms (ab)use it in PIC code, but their linkers get confused if
11238 # the symbol is explicitly referenced. Since portable code cannot
11239 # rely on this symbol name, it's probably fine to never include it in
11240 # preloaded symbol tables.
11241 # Exclude shared library initialization/finalization symbols.
11242 extract_expsyms_cmds=
11245 cygwin* | mingw* | pw32* | cegcc*)
11246 # FIXME: the MSVC++ port hasn't been tested in a loooong time
11247 # When not using gcc, we currently assume that we are using
11248 # Microsoft Visual C++.
11249 if test "$GCC" != yes; then
11254 # we just hope/assume this is gcc and not c89 (= MSVC++)
11263 if test "$with_gnu_ld" = yes; then
11264 # If archive_cmds runs LD, not CC, wlarc should be empty
11267 # Set some defaults for GNU ld with shared library support. These
11268 # are reset later if shared libraries are not supported. Putting them
11269 # here allows them to be overridden if necessary.
11270 runpath_var=LD_RUN_PATH
11271 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11272 export_dynamic_flag_spec='${wl}--export-dynamic'
11273 # ancient GNU ld didn't support --whole-archive et. al.
11274 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11275 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11277 whole_archive_flag_spec=
11279 supports_anon_versioning=no
11280 case `$LD -v 2>&1` in
11281 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11282 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11283 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11284 *\ 2.11.*) ;; # other 2.11 versions
11285 *) supports_anon_versioning=yes ;;
11288 # See if GNU ld supports shared libraries.
11291 # On AIX/PPC, the GNU linker is very broken
11292 if test "$host_cpu" != ia64; then
11296 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
11297 *** to be unable to reliably create shared libraries on AIX.
11298 *** Therefore, libtool is disabling shared libraries support. If you
11299 *** really care for shared libraries, you may want to modify your PATH
11300 *** so that a non-GNU linker is found, and then restart.
11309 # see comment about AmigaOS4 .so support
11310 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11311 archive_expsym_cmds=''
11314 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)'
11315 hardcode_libdir_flag_spec='-L$libdir'
11316 hardcode_minus_L=yes
11322 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11323 allow_undefined_flag=unsupported
11324 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11325 # support --undefined. This deserves some investigation. FIXME
11326 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11332 cygwin* | mingw* | pw32* | cegcc*)
11333 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11334 # as there is no search path for DLLs.
11335 hardcode_libdir_flag_spec='-L$libdir'
11336 allow_undefined_flag=unsupported
11337 always_export_symbols=no
11338 enable_shared_with_static_runtimes=yes
11339 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11341 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11342 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11343 # If the export-symbols file already is a .def file (1st line
11344 # is EXPORTS), use it as is; otherwise, prepend...
11345 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11346 cp $export_symbols $output_objdir/$soname.def;
11348 echo EXPORTS > $output_objdir/$soname.def;
11349 cat $export_symbols >> $output_objdir/$soname.def;
11351 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11359 hardcode_shlibpath_var=no
11360 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11361 export_dynamic_flag_spec='${wl}-E'
11362 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11363 # Instead, shared libraries are loaded at an image base (0x10000000 by
11364 # default) and relocated if they conflict, which is a slow very memory
11365 # consuming and fragmenting process. To avoid this, we pick a random,
11366 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11367 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11368 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11369 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'
11372 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11374 if test "$host_os" = linux-dietlibc; then
11375 case $cc_basename in
11376 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11379 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11380 && test "$tmp_diet" = no
11383 tmp_sharedflag='-shared'
11384 case $cc_basename,$host_cpu in
11385 pgcc*) # Portland Group C compiler
11386 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'
11387 tmp_addflag=' $pic_flag'
11389 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
11390 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'
11391 tmp_addflag=' $pic_flag -Mnomain' ;;
11392 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11393 tmp_addflag=' -i_dynamic' ;;
11394 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11395 tmp_addflag=' -i_dynamic -nofor_main' ;;
11396 ifc* | ifort*) # Intel Fortran compiler
11397 tmp_addflag=' -nofor_main' ;;
11398 lf95*) # Lahey Fortran 8.1
11399 whole_archive_flag_spec=
11400 tmp_sharedflag='--shared' ;;
11401 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11402 tmp_sharedflag='-qmkshrobj'
11405 case `$CC -V 2>&1 | sed 5q` in
11406 *Sun\ C*) # Sun C 5.9
11407 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'
11408 compiler_needs_object=yes
11409 tmp_sharedflag='-G' ;;
11410 *Sun\ F*) # Sun Fortran 8.3
11411 tmp_sharedflag='-G' ;;
11413 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11415 if test "x$supports_anon_versioning" = xyes; then
11416 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11417 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11418 echo "local: *; };" >> $output_objdir/$libname.ver~
11419 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11422 case $cc_basename in
11424 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11425 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11426 hardcode_libdir_flag_spec=
11427 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11428 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11429 if test "x$supports_anon_versioning" = xyes; then
11430 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11431 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11432 echo "local: *; };" >> $output_objdir/$libname.ver~
11433 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11443 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11444 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11447 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11448 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11453 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11457 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11458 *** create shared libraries on Solaris systems. Therefore, libtool
11459 *** is disabling shared libraries support. We urge you to upgrade GNU
11460 *** binutils to release 2.9.1 or newer. Another option is to modify
11461 *** your PATH or compiler configuration so that the native linker is
11462 *** used, and then restart.
11465 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11466 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11467 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11473 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11474 case `$LD -v 2>&1` in
11475 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11479 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11480 *** reliably create shared libraries on SCO systems. Therefore, libtool
11481 *** is disabling shared libraries support. We urge you to upgrade GNU
11482 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11483 *** your PATH or compiler configuration so that the native linker is
11484 *** used, and then restart.
11489 # For security reasons, it is highly recommended that you always
11490 # use absolute paths for naming shared libraries, and exclude the
11491 # DT_RUNPATH tag from executables and libraries. But doing so
11492 # requires that you compile everything twice, which is a pain.
11493 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11494 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11495 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11496 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11505 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11507 hardcode_direct=yes
11508 hardcode_shlibpath_var=no
11512 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11513 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11514 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11521 if test "$ld_shlibs" = no; then
11523 hardcode_libdir_flag_spec=
11524 export_dynamic_flag_spec=
11525 whole_archive_flag_spec=
11528 # PORTME fill in a description of your system's linker (not GNU ld)
11531 allow_undefined_flag=unsupported
11532 always_export_symbols=yes
11533 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'
11534 # Note: this linker hardcodes the directories in LIBPATH if there
11535 # are no directories specified by -L.
11536 hardcode_minus_L=yes
11537 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11538 # Neither direct hardcoding nor static linking is supported with a
11540 hardcode_direct=unsupported
11545 if test "$host_cpu" = ia64; then
11546 # On IA64, the linker does run time linking by default, so we don't
11547 # have to do anything special.
11548 aix_use_runtimelinking=no
11549 exp_sym_flag='-Bexport'
11552 # If we're using GNU nm, then we don't want the "-C" option.
11553 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11554 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11555 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'
11557 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'
11559 aix_use_runtimelinking=no
11561 # Test if we are trying to use run time linking or normal
11562 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11563 # need to do runtime linking.
11564 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11565 for ld_flag in $LDFLAGS; do
11566 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11567 aix_use_runtimelinking=yes
11574 exp_sym_flag='-bexport'
11575 no_entry_flag='-bnoentry'
11578 # When large executables or shared objects are built, AIX ld can
11579 # have problems creating the table of contents. If linking a library
11580 # or program results in "error TOC overflow" add -mminimal-toc to
11581 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11582 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11585 hardcode_direct=yes
11586 hardcode_direct_absolute=yes
11587 hardcode_libdir_separator=':'
11588 link_all_deplibs=yes
11589 file_list_spec='${wl}-f,'
11591 if test "$GCC" = yes; then
11592 case $host_os in aix4.[012]|aix4.[012].*)
11593 # We only want to do this on AIX 4.2 and lower, the check
11594 # below for broken collect2 doesn't work under 4.3+
11595 collect2name=`${CC} -print-prog-name=collect2`
11596 if test -f "$collect2name" &&
11597 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11599 # We have reworked collect2
11602 # We have old collect2
11603 hardcode_direct=unsupported
11604 # It fails to find uninstalled libraries when the uninstalled
11605 # path is not listed in the libpath. Setting hardcode_minus_L
11606 # to unsupported forces relinking
11607 hardcode_minus_L=yes
11608 hardcode_libdir_flag_spec='-L$libdir'
11609 hardcode_libdir_separator=
11613 shared_flag='-shared'
11614 if test "$aix_use_runtimelinking" = yes; then
11615 shared_flag="$shared_flag "'${wl}-G'
11619 if test "$host_cpu" = ia64; then
11620 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11621 # chokes on -Wl,-G. The following line is correct:
11624 if test "$aix_use_runtimelinking" = yes; then
11625 shared_flag='${wl}-G'
11627 shared_flag='${wl}-bM:SRE'
11632 export_dynamic_flag_spec='${wl}-bexpall'
11633 # It seems that -bexpall does not export symbols beginning with
11634 # underscore (_), so it is better to generate a list of symbols to export.
11635 always_export_symbols=yes
11636 if test "$aix_use_runtimelinking" = yes; then
11637 # Warning - without using the other runtime loading flags (-brtl),
11638 # -berok will link without error, but may produce a broken library.
11639 allow_undefined_flag='-berok'
11640 # Determine the default libpath from the value encoded in an
11641 # empty executable.
11642 if test x$gcc_no_link = xyes; then
11643 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11646 /* end confdefs.h. */
11656 if ac_fn_c_try_link "$LINENO"; then :
11658 lt_aix_libpath_sed='
11659 /Import File Strings/,/^$/ {
11665 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11666 # Check for a 64-bit object if we didn't find anything.
11667 if test -z "$aix_libpath"; then
11668 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11671 rm -f core conftest.err conftest.$ac_objext \
11672 conftest$ac_exeext conftest.$ac_ext
11673 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11675 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11676 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"
11678 if test "$host_cpu" = ia64; then
11679 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11680 allow_undefined_flag="-z nodefs"
11681 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"
11683 # Determine the default libpath from the value encoded in an
11684 # empty executable.
11685 if test x$gcc_no_link = xyes; then
11686 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11689 /* end confdefs.h. */
11699 if ac_fn_c_try_link "$LINENO"; then :
11701 lt_aix_libpath_sed='
11702 /Import File Strings/,/^$/ {
11708 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11709 # Check for a 64-bit object if we didn't find anything.
11710 if test -z "$aix_libpath"; then
11711 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11714 rm -f core conftest.err conftest.$ac_objext \
11715 conftest$ac_exeext conftest.$ac_ext
11716 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11718 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11719 # Warning - without using the other run time loading flags,
11720 # -berok will link without error, but may produce a broken library.
11721 no_undefined_flag=' ${wl}-bernotok'
11722 allow_undefined_flag=' ${wl}-berok'
11723 # Exported symbols can be pulled into shared objects from archives
11724 whole_archive_flag_spec='$convenience'
11725 archive_cmds_need_lc=yes
11726 # This is similar to how AIX traditionally builds its shared libraries.
11727 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'
11735 # see comment about AmigaOS4 .so support
11736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11737 archive_expsym_cmds=''
11740 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)'
11741 hardcode_libdir_flag_spec='-L$libdir'
11742 hardcode_minus_L=yes
11748 export_dynamic_flag_spec=-rdynamic
11751 cygwin* | mingw* | pw32* | cegcc*)
11752 # When not using gcc, we currently assume that we are using
11753 # Microsoft Visual C++.
11754 # hardcode_libdir_flag_spec is actually meaningless, as there is
11755 # no search path for DLLs.
11756 hardcode_libdir_flag_spec=' '
11757 allow_undefined_flag=unsupported
11758 # Tell ltmain to make .lib files, not .a files.
11760 # Tell ltmain to make .dll files, not .so files.
11762 # FIXME: Setting linknames here is a bad hack.
11763 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
11764 # The linker will automatically build a .lib file if we build a DLL.
11765 old_archive_from_new_cmds='true'
11766 # FIXME: Should let the user specify the lib program.
11767 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11768 fix_srcfile_path='`cygpath -w "$srcfile"`'
11769 enable_shared_with_static_runtimes=yes
11772 darwin* | rhapsody*)
11775 archive_cmds_need_lc=no
11777 hardcode_automatic=yes
11778 hardcode_shlibpath_var=unsupported
11779 whole_archive_flag_spec=''
11780 link_all_deplibs=yes
11781 allow_undefined_flag="$_lt_dar_allow_undefined"
11782 case $cc_basename in
11783 ifort*) _lt_dar_can_shared=yes ;;
11784 *) _lt_dar_can_shared=$GCC ;;
11786 if test "$_lt_dar_can_shared" = "yes"; then
11787 output_verbose_link_cmd=echo
11788 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11789 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11790 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}"
11791 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}"
11800 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11801 hardcode_libdir_flag_spec='-L$libdir'
11802 hardcode_shlibpath_var=no
11809 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11810 # support. Future versions do this automatically, but an explicit c++rt0.o
11811 # does not break anything, and helps significantly (at the cost of a little
11814 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11815 hardcode_libdir_flag_spec='-R$libdir'
11816 hardcode_direct=yes
11817 hardcode_shlibpath_var=no
11820 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11822 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11823 hardcode_direct=yes
11824 hardcode_minus_L=yes
11825 hardcode_shlibpath_var=no
11828 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11829 freebsd* | dragonfly*)
11830 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11831 hardcode_libdir_flag_spec='-R$libdir'
11832 hardcode_direct=yes
11833 hardcode_shlibpath_var=no
11837 if test "$GCC" = yes; then
11838 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'
11840 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'
11842 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11843 hardcode_libdir_separator=:
11844 hardcode_direct=yes
11846 # hardcode_minus_L: Not really in the search PATH,
11847 # but as the default location of the library.
11848 hardcode_minus_L=yes
11849 export_dynamic_flag_spec='${wl}-E'
11853 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11854 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11856 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11858 if test "$with_gnu_ld" = no; then
11859 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11860 hardcode_libdir_flag_spec_ld='+b $libdir'
11861 hardcode_libdir_separator=:
11862 hardcode_direct=yes
11863 hardcode_direct_absolute=yes
11864 export_dynamic_flag_spec='${wl}-E'
11865 # hardcode_minus_L: Not really in the search PATH,
11866 # but as the default location of the library.
11867 hardcode_minus_L=yes
11872 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
11875 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11878 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11881 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11887 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11890 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11893 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11897 if test "$with_gnu_ld" = no; then
11898 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11899 hardcode_libdir_separator=:
11904 hardcode_shlibpath_var=no
11907 hardcode_direct=yes
11908 hardcode_direct_absolute=yes
11909 export_dynamic_flag_spec='${wl}-E'
11911 # hardcode_minus_L: Not really in the search PATH,
11912 # but as the default location of the library.
11913 hardcode_minus_L=yes
11919 irix5* | irix6* | nonstopux*)
11920 if test "$GCC" = yes; then
11921 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'
11922 # Try to use the -exported_symbol ld option, if it does not
11923 # work, assume that -exports_file does not work either and
11924 # implicitly export all symbols.
11925 save_LDFLAGS="$LDFLAGS"
11926 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11927 if test x$gcc_no_link = xyes; then
11928 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11931 /* end confdefs.h. */
11934 if ac_fn_c_try_link "$LINENO"; then :
11935 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'
11938 rm -f core conftest.err conftest.$ac_objext \
11939 conftest$ac_exeext conftest.$ac_ext
11940 LDFLAGS="$save_LDFLAGS"
11942 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'
11943 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'
11945 archive_cmds_need_lc='no'
11946 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11947 hardcode_libdir_separator=:
11949 link_all_deplibs=yes
11953 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11954 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11956 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11958 hardcode_libdir_flag_spec='-R$libdir'
11959 hardcode_direct=yes
11960 hardcode_shlibpath_var=no
11964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11965 hardcode_direct=yes
11966 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11967 hardcode_libdir_separator=:
11968 hardcode_shlibpath_var=no
11975 if test -f /usr/libexec/ld.so; then
11976 hardcode_direct=yes
11977 hardcode_shlibpath_var=no
11978 hardcode_direct_absolute=yes
11979 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11980 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11981 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11982 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11983 export_dynamic_flag_spec='${wl}-E'
11986 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11988 hardcode_libdir_flag_spec='-R$libdir'
11991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12002 hardcode_libdir_flag_spec='-L$libdir'
12003 hardcode_minus_L=yes
12004 allow_undefined_flag=unsupported
12005 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'
12006 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12010 if test "$GCC" = yes; then
12011 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12012 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'
12014 allow_undefined_flag=' -expect_unresolved \*'
12015 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'
12017 archive_cmds_need_lc='no'
12018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12019 hardcode_libdir_separator=:
12022 osf4* | osf5*) # as osf3* with the addition of -msym flag
12023 if test "$GCC" = yes; then
12024 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12025 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'
12026 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12028 allow_undefined_flag=' -expect_unresolved \*'
12029 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'
12030 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~
12031 $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'
12033 # Both c and cxx compiler support -rpath directly
12034 hardcode_libdir_flag_spec='-rpath $libdir'
12036 archive_cmds_need_lc='no'
12037 hardcode_libdir_separator=:
12041 no_undefined_flag=' -z defs'
12042 if test "$GCC" = yes; then
12044 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12046 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12048 case `$CC -V 2>&1` in
12051 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12052 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12053 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12057 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12058 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12059 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12063 hardcode_libdir_flag_spec='-R$libdir'
12064 hardcode_shlibpath_var=no
12066 solaris2.[0-5] | solaris2.[0-5].*) ;;
12068 # The compiler driver will combine and reorder linker options,
12069 # but understands `-z linker_flag'. GCC discards it without `$wl',
12070 # but is careful enough not to reorder.
12071 # Supported since Solaris 2.6 (maybe 2.5.1?)
12072 if test "$GCC" = yes; then
12073 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12075 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12079 link_all_deplibs=yes
12083 if test "x$host_vendor" = xsequent; then
12084 # Use $CC to link under sequent, because it throws in some extra .o
12085 # files that make .init and .fini sections work.
12086 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12088 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12090 hardcode_libdir_flag_spec='-L$libdir'
12091 hardcode_direct=yes
12092 hardcode_minus_L=yes
12093 hardcode_shlibpath_var=no
12097 case $host_vendor in
12099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12100 hardcode_direct=yes # is this really true???
12103 ## LD is ld it makes a PLAMLIB
12104 ## CC just makes a GrossModule.
12105 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12106 reload_cmds='$CC -r -o $output$reload_objs'
12110 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12111 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12114 runpath_var='LD_RUN_PATH'
12115 hardcode_shlibpath_var=no
12119 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12120 hardcode_shlibpath_var=no
12121 export_dynamic_flag_spec='-Bexport'
12125 if test -d /usr/nec; then
12126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12127 hardcode_shlibpath_var=no
12128 runpath_var=LD_RUN_PATH
12129 hardcode_runpath_var=yes
12134 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12135 no_undefined_flag='${wl}-z,text'
12136 archive_cmds_need_lc=no
12137 hardcode_shlibpath_var=no
12138 runpath_var='LD_RUN_PATH'
12140 if test "$GCC" = yes; then
12141 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12142 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12144 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12145 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12149 sysv5* | sco3.2v5* | sco5v6*)
12150 # Note: We can NOT use -z defs as we might desire, because we do not
12151 # link with -lc, and that would cause any symbols used from libc to
12152 # always be unresolved, which means just about no library would
12153 # ever link correctly. If we're not using GNU ld we use -z text
12154 # though, which does catch some bad symbols but isn't as heavy-handed
12156 no_undefined_flag='${wl}-z,text'
12157 allow_undefined_flag='${wl}-z,nodefs'
12158 archive_cmds_need_lc=no
12159 hardcode_shlibpath_var=no
12160 hardcode_libdir_flag_spec='${wl}-R,$libdir'
12161 hardcode_libdir_separator=':'
12162 link_all_deplibs=yes
12163 export_dynamic_flag_spec='${wl}-Bexport'
12164 runpath_var='LD_RUN_PATH'
12166 if test "$GCC" = yes; then
12167 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12168 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12170 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12171 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12176 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12177 hardcode_libdir_flag_spec='-L$libdir'
12178 hardcode_shlibpath_var=no
12186 if test x$host_vendor = xsni; then
12188 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12189 export_dynamic_flag_spec='${wl}-Blargedynsym'
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
12196 $as_echo "$ld_shlibs" >&6; }
12197 test "$ld_shlibs" = no && can_build_shared=no
12199 with_gnu_ld=$with_gnu_ld
12216 # Do we need to explicitly link libc?
12218 case "x$archive_cmds_need_lc" in
12220 # Assume -lc should be added
12221 archive_cmds_need_lc=yes
12223 if test "$enable_shared" = yes && test "$GCC" = yes; then
12224 case $archive_cmds in
12226 # FIXME: we may have to deal with multi-command sequences.
12229 # Test whether the compiler implicitly links with -lc since on some
12230 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12231 # to ld, don't add -lc before -lgcc.
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12233 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12234 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12238 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12240 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12241 (eval $ac_compile) 2>&5
12243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12244 test $ac_status = 0; } 2>conftest.err; then
12247 libobjs=conftest.$ac_objext
12249 wl=$lt_prog_compiler_wl
12250 pic_flag=$lt_prog_compiler_pic
12256 lt_save_allow_undefined_flag=$allow_undefined_flag
12257 allow_undefined_flag=
12258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12259 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12262 test $ac_status = 0; }
12264 lt_cv_archive_cmds_need_lc=no
12266 lt_cv_archive_cmds_need_lc=yes
12268 allow_undefined_flag=$lt_save_allow_undefined_flag
12270 cat conftest.err 1>&5
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12276 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12277 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12441 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12443 if test "$GCC" = yes; then
12445 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12446 *) lt_awk_arg="/^libraries:/" ;;
12448 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12449 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
12450 # if the path contains ";" then we assume it to be the separator
12451 # otherwise default to the standard path separator (i.e. ":") - it is
12452 # assumed that no part of a normal pathname contains ";" but that should
12453 # okay in the real world where ";" in dirpaths is itself problematic.
12454 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
12456 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12458 # Ok, now we have the path, separated by spaces, we can step through it
12459 # and add multilib dir if necessary.
12460 lt_tmp_lt_search_path_spec=
12461 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12462 for lt_sys_path in $lt_search_path_spec; do
12463 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12464 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12466 test -d "$lt_sys_path" && \
12467 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12470 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
12471 BEGIN {RS=" "; FS="/|\n";} {
12474 for (lt_i = NF; lt_i > 0; lt_i--) {
12475 if ($lt_i != "" && $lt_i != ".") {
12476 if ($lt_i == "..") {
12479 if (lt_count == 0) {
12480 lt_foo="/" $lt_i lt_foo;
12487 if (lt_foo != "") { lt_freq[lt_foo]++; }
12488 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12490 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
12492 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12494 library_names_spec=
12495 libname_spec='lib$name'
12499 postuninstall_cmds=
12503 shlibpath_overrides_runpath=unknown
12505 dynamic_linker="$host_os ld.so"
12506 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12507 need_lib_prefix=unknown
12508 hardcode_into_libs=no
12510 # when you set need_version to no, make sure it does not cause -set_version
12511 # flags to be left without arguments
12512 need_version=unknown
12517 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12518 shlibpath_var=LIBPATH
12520 # AIX 3 has no versioning support, so we append a major version to the name.
12521 soname_spec='${libname}${release}${shared_ext}$major'
12528 hardcode_into_libs=yes
12529 if test "$host_cpu" = ia64; then
12530 # AIX 5 supports IA64
12531 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12532 shlibpath_var=LD_LIBRARY_PATH
12534 # With GCC up to 2.95.x, collect2 would create an import file
12535 # for dependence libraries. The import file would start with
12536 # the line `#! .'. This would cause the generated library to
12537 # depend on `.', always an invalid library. This was fixed in
12538 # development snapshots of GCC prior to 3.0.
12540 aix4 | aix4.[01] | aix4.[01].*)
12541 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12543 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12546 can_build_shared=no
12550 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12551 # soname into executable. Probably we can add versioning support to
12552 # collect2, so additional links can be useful in future.
12553 if test "$aix_use_runtimelinking" = yes; then
12554 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12555 # instead of lib<name>.a to let people know that these are not
12556 # typical AIX shared libraries.
12557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12559 # We preserve .a as extension for shared libraries through AIX4.2
12560 # and later when we are not doing run time linking.
12561 library_names_spec='${libname}${release}.a $libname.a'
12562 soname_spec='${libname}${release}${shared_ext}$major'
12564 shlibpath_var=LIBPATH
12571 # Since July 2007 AmigaOS4 officially supports .so libraries.
12572 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12573 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12576 library_names_spec='$libname.ixlibrary $libname.a'
12577 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12578 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'
12584 library_names_spec='${libname}${shared_ext}'
12585 dynamic_linker="$host_os ld.so"
12586 shlibpath_var=LIBRARY_PATH
12592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12593 soname_spec='${libname}${release}${shared_ext}$major'
12594 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12595 shlibpath_var=LD_LIBRARY_PATH
12596 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12597 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12598 # the default ld.so.conf also contains /usr/contrib/lib and
12599 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12600 # libtool to hard-code these into programs
12603 cygwin* | mingw* | pw32* | cegcc*)
12604 version_type=windows
12609 case $GCC,$host_os in
12610 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12611 library_names_spec='$libname.dll.a'
12612 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12613 postinstall_cmds='base_file=`basename \${file}`~
12614 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12615 dldir=$destdir/`dirname \$dlpath`~
12616 test -d \$dldir || mkdir -p \$dldir~
12617 $install_prog $dir/$dlname \$dldir/$dlname~
12618 chmod a+x \$dldir/$dlname~
12619 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12620 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12622 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12623 dlpath=$dir/\$dldll~
12625 shlibpath_overrides_runpath=yes
12629 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12630 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12631 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12634 # MinGW DLLs use traditional 'lib' prefix
12635 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12636 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12637 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12638 # It is most probably a Windows format PATH printed by
12639 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12640 # path with ; separators, and with drive letters. We can handle the
12641 # drive letters (cygwin fileutils understands them), so leave them,
12642 # especially as we might pass files found there to a mingw objdump,
12643 # which wouldn't understand a cygwinified path. Ahh.
12644 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12646 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12650 # pw32 DLLs use 'pw' prefix rather than 'lib'
12651 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12657 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12660 dynamic_linker='Win32 ld.exe'
12661 # FIXME: first we should search . and the directory the executable is in
12665 darwin* | rhapsody*)
12666 dynamic_linker="$host_os dyld"
12667 version_type=darwin
12670 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12671 soname_spec='${libname}${release}${major}$shared_ext'
12672 shlibpath_overrides_runpath=yes
12673 shlibpath_var=DYLD_LIBRARY_PATH
12674 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12676 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12677 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12685 soname_spec='${libname}${release}${shared_ext}$major'
12686 shlibpath_var=LD_LIBRARY_PATH
12693 freebsd* | dragonfly*)
12694 # DragonFly does not have aout. When/if they implement a new
12695 # versioning mechanism, adjust this.
12696 if test -x /usr/bin/objformat; then
12697 objformat=`/usr/bin/objformat`
12700 freebsd[123]*) objformat=aout ;;
12701 *) objformat=elf ;;
12704 version_type=freebsd-$objformat
12705 case $version_type in
12707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12712 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12716 shlibpath_var=LD_LIBRARY_PATH
12719 shlibpath_overrides_runpath=yes
12721 freebsd3.[01]* | freebsdelf3.[01]*)
12722 shlibpath_overrides_runpath=yes
12723 hardcode_into_libs=yes
12725 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12726 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12727 shlibpath_overrides_runpath=no
12728 hardcode_into_libs=yes
12730 *) # from 4.6 on, and DragonFly
12731 shlibpath_overrides_runpath=yes
12732 hardcode_into_libs=yes
12741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12742 soname_spec='${libname}${release}${shared_ext}$major'
12743 shlibpath_var=LD_LIBRARY_PATH
12744 hardcode_into_libs=yes
12747 hpux9* | hpux10* | hpux11*)
12748 # Give a soname corresponding to the major version so that dld.sl refuses to
12749 # link against other versions.
12756 hardcode_into_libs=yes
12757 dynamic_linker="$host_os dld.so"
12758 shlibpath_var=LD_LIBRARY_PATH
12759 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12761 soname_spec='${libname}${release}${shared_ext}$major'
12762 if test "X$HPUX_IA64_MODE" = X32; then
12763 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12765 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12767 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12771 hardcode_into_libs=yes
12772 dynamic_linker="$host_os dld.sl"
12773 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12774 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12776 soname_spec='${libname}${release}${shared_ext}$major'
12777 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12778 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12782 dynamic_linker="$host_os dld.sl"
12783 shlibpath_var=SHLIB_PATH
12784 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12786 soname_spec='${libname}${release}${shared_ext}$major'
12789 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12790 postinstall_cmds='chmod 555 $lib'
12797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12798 soname_spec='${libname}${release}${shared_ext}$major'
12799 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12800 shlibpath_var=LD_LIBRARY_PATH
12801 shlibpath_overrides_runpath=no
12802 hardcode_into_libs=yes
12805 irix5* | irix6* | nonstopux*)
12807 nonstopux*) version_type=nonstopux ;;
12809 if test "$lt_cv_prog_gnu_ld" = yes; then
12817 soname_spec='${libname}${release}${shared_ext}$major'
12818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12820 irix5* | nonstopux*)
12821 libsuff= shlibsuff=
12824 case $LD in # libtool.m4 will add one of these switches to LD
12825 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12826 libsuff= shlibsuff= libmagic=32-bit;;
12827 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12828 libsuff=32 shlibsuff=N32 libmagic=N32;;
12829 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12830 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12831 *) libsuff= shlibsuff= libmagic=never-match;;
12835 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12836 shlibpath_overrides_runpath=no
12837 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12838 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12839 hardcode_into_libs=yes
12842 # No shared lib support for Linux oldld, aout, or coff.
12843 linux*oldld* | linux*aout* | linux*coff*)
12847 # This must be Linux ELF.
12848 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12853 soname_spec='${libname}${release}${shared_ext}$major'
12854 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12855 shlibpath_var=LD_LIBRARY_PATH
12856 shlibpath_overrides_runpath=no
12858 # Some binutils ld are patched to set DT_RUNPATH
12859 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12860 $as_echo_n "(cached) " >&6
12862 lt_cv_shlibpath_overrides_runpath=no
12863 save_LDFLAGS=$LDFLAGS
12864 save_libdir=$libdir
12865 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12866 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12867 if test x$gcc_no_link = xyes; then
12868 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12871 /* end confdefs.h. */
12881 if ac_fn_c_try_link "$LINENO"; then :
12882 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12883 lt_cv_shlibpath_overrides_runpath=yes
12886 rm -f core conftest.err conftest.$ac_objext \
12887 conftest$ac_exeext conftest.$ac_ext
12888 LDFLAGS=$save_LDFLAGS
12889 libdir=$save_libdir
12893 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12895 # This implies no fast_install, which is unacceptable.
12896 # Some rework will be needed to allow for fast_install
12897 # before this can be enabled.
12898 hardcode_into_libs=yes
12900 # Append ld.so.conf contents to the search path
12901 if test -f /etc/ld.so.conf; then
12902 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' ' '`
12903 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12906 # We used to test for /lib/ld.so.1 and disable shared libraries on
12907 # powerpc, because MkLinux only supported shared libraries with the
12908 # GNU dynamic linker. Since this was broken with cross compilers,
12909 # most powerpc-linux boxes support dynamic linking these days and
12910 # people can always --disable-shared, the test was removed, and we
12911 # assume the GNU/Linux dynamic linker is in use.
12912 dynamic_linker='GNU/Linux ld.so'
12919 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12922 dynamic_linker='NetBSD (a.out) ld.so'
12924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12925 soname_spec='${libname}${release}${shared_ext}$major'
12926 dynamic_linker='NetBSD ld.elf_so'
12928 shlibpath_var=LD_LIBRARY_PATH
12929 shlibpath_overrides_runpath=yes
12930 hardcode_into_libs=yes
12935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12936 shlibpath_var=LD_LIBRARY_PATH
12937 shlibpath_overrides_runpath=yes
12944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12945 soname_spec='${libname}${release}${shared_ext}$major'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=no
12948 hardcode_into_libs=yes
12949 dynamic_linker='ldqnx.so'
12954 sys_lib_dlsearch_path_spec="/usr/lib"
12956 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12958 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12959 *) need_version=no ;;
12961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12963 shlibpath_var=LD_LIBRARY_PATH
12964 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12966 openbsd2.[89] | openbsd2.[89].*)
12967 shlibpath_overrides_runpath=no
12970 shlibpath_overrides_runpath=yes
12974 shlibpath_overrides_runpath=yes
12979 libname_spec='$name'
12982 library_names_spec='$libname${shared_ext} $libname.a'
12983 dynamic_linker='OS/2 ld.exe'
12984 shlibpath_var=LIBPATH
12987 osf3* | osf4* | osf5*)
12991 soname_spec='${libname}${release}${shared_ext}$major'
12992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12993 shlibpath_var=LD_LIBRARY_PATH
12994 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12995 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13007 soname_spec='${libname}${release}${shared_ext}$major'
13008 shlibpath_var=LD_LIBRARY_PATH
13009 shlibpath_overrides_runpath=yes
13010 hardcode_into_libs=yes
13011 # ldd complains unless libraries are executable
13012 postinstall_cmds='chmod +x $lib'
13017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13018 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13019 shlibpath_var=LD_LIBRARY_PATH
13020 shlibpath_overrides_runpath=yes
13021 if test "$with_gnu_ld" = yes; then
13029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13030 soname_spec='${libname}${release}${shared_ext}$major'
13031 shlibpath_var=LD_LIBRARY_PATH
13032 case $host_vendor in
13034 shlibpath_overrides_runpath=no
13036 runpath_var=LD_RUN_PATH
13044 shlibpath_overrides_runpath=no
13045 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13051 if test -d /usr/nec ;then
13053 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13054 soname_spec='$libname${shared_ext}.$major'
13055 shlibpath_var=LD_LIBRARY_PATH
13059 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13060 version_type=freebsd-elf
13063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13064 soname_spec='${libname}${release}${shared_ext}$major'
13065 shlibpath_var=LD_LIBRARY_PATH
13066 shlibpath_overrides_runpath=yes
13067 hardcode_into_libs=yes
13068 if test "$with_gnu_ld" = yes; then
13069 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13071 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13074 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13078 sys_lib_dlsearch_path_spec='/usr/lib'
13082 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
13086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13087 shlibpath_var=LD_LIBRARY_PATH
13088 shlibpath_overrides_runpath=no
13089 hardcode_into_libs=yes
13094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13095 soname_spec='${libname}${release}${shared_ext}$major'
13096 shlibpath_var=LD_LIBRARY_PATH
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13104 $as_echo "$dynamic_linker" >&6; }
13105 test "$dynamic_linker" = no && can_build_shared=no
13107 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13108 if test "$GCC" = yes; then
13109 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13112 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13113 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13115 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13116 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13206 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13208 if test -n "$hardcode_libdir_flag_spec" ||
13209 test -n "$runpath_var" ||
13210 test "X$hardcode_automatic" = "Xyes" ; then
13212 # We can hardcode non-existent directories.
13213 if test "$hardcode_direct" != no &&
13214 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13215 # have to relink, otherwise we might link with an installed library
13216 # when we should be linking with a yet-to-be-installed one
13217 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13218 test "$hardcode_minus_L" != no; then
13219 # Linking always hardcodes the temporary library directory.
13220 hardcode_action=relink
13222 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13223 hardcode_action=immediate
13226 # We cannot hardcode anything, or else we can only hardcode existing
13228 hardcode_action=unsupported
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13231 $as_echo "$hardcode_action" >&6; }
13233 if test "$hardcode_action" = relink ||
13234 test "$inherit_rpath" = yes; then
13235 # Fast installation is not supported
13236 enable_fast_install=no
13237 elif test "$shlibpath_overrides_runpath" = yes ||
13238 test "$enable_shared" = no; then
13239 # Fast installation is not necessary
13240 enable_fast_install=needless
13248 if test "x$enable_dlopen" != xyes; then
13249 enable_dlopen=unknown
13250 enable_dlopen_self=unknown
13251 enable_dlopen_self_static=unknown
13258 lt_cv_dlopen="load_add_on"
13260 lt_cv_dlopen_self=yes
13263 mingw* | pw32* | cegcc*)
13264 lt_cv_dlopen="LoadLibrary"
13269 lt_cv_dlopen="dlopen"
13274 # if libdl is installed we need to link against it
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13276 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13277 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13280 ac_check_lib_save_LIBS=$LIBS
13282 if test x$gcc_no_link = xyes; then
13283 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13288 /* Override any GCC internal prototype to avoid an error.
13289 Use char because int might match the return type of a GCC
13290 builtin and then its argument prototype would still apply. */
13303 if ac_fn_c_try_link "$LINENO"; then :
13304 ac_cv_lib_dl_dlopen=yes
13306 ac_cv_lib_dl_dlopen=no
13308 rm -f core conftest.err conftest.$ac_objext \
13309 conftest$ac_exeext conftest.$ac_ext
13310 LIBS=$ac_check_lib_save_LIBS
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13313 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13314 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13315 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13318 lt_cv_dlopen="dyld"
13320 lt_cv_dlopen_self=yes
13327 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13328 if test "x$ac_cv_func_shl_load" = x""yes; then :
13329 lt_cv_dlopen="shl_load"
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13332 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13333 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13334 $as_echo_n "(cached) " >&6
13336 ac_check_lib_save_LIBS=$LIBS
13338 if test x$gcc_no_link = xyes; then
13339 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13342 /* end confdefs.h. */
13344 /* Override any GCC internal prototype to avoid an error.
13345 Use char because int might match the return type of a GCC
13346 builtin and then its argument prototype would still apply. */
13354 return shl_load ();
13359 if ac_fn_c_try_link "$LINENO"; then :
13360 ac_cv_lib_dld_shl_load=yes
13362 ac_cv_lib_dld_shl_load=no
13364 rm -f core conftest.err conftest.$ac_objext \
13365 conftest$ac_exeext conftest.$ac_ext
13366 LIBS=$ac_check_lib_save_LIBS
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13369 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13370 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13371 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13373 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13374 if test "x$ac_cv_func_dlopen" = x""yes; then :
13375 lt_cv_dlopen="dlopen"
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13378 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13379 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13380 $as_echo_n "(cached) " >&6
13382 ac_check_lib_save_LIBS=$LIBS
13384 if test x$gcc_no_link = xyes; then
13385 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13388 /* end confdefs.h. */
13390 /* Override any GCC internal prototype to avoid an error.
13391 Use char because int might match the return type of a GCC
13392 builtin and then its argument prototype would still apply. */
13405 if ac_fn_c_try_link "$LINENO"; then :
13406 ac_cv_lib_dl_dlopen=yes
13408 ac_cv_lib_dl_dlopen=no
13410 rm -f core conftest.err conftest.$ac_objext \
13411 conftest$ac_exeext conftest.$ac_ext
13412 LIBS=$ac_check_lib_save_LIBS
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13415 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13416 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13417 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13420 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13421 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13422 $as_echo_n "(cached) " >&6
13424 ac_check_lib_save_LIBS=$LIBS
13425 LIBS="-lsvld $LIBS"
13426 if test x$gcc_no_link = xyes; then
13427 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13432 /* Override any GCC internal prototype to avoid an error.
13433 Use char because int might match the return type of a GCC
13434 builtin and then its argument prototype would still apply. */
13447 if ac_fn_c_try_link "$LINENO"; then :
13448 ac_cv_lib_svld_dlopen=yes
13450 ac_cv_lib_svld_dlopen=no
13452 rm -f core conftest.err conftest.$ac_objext \
13453 conftest$ac_exeext conftest.$ac_ext
13454 LIBS=$ac_check_lib_save_LIBS
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13457 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13458 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13459 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13462 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13463 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13464 $as_echo_n "(cached) " >&6
13466 ac_check_lib_save_LIBS=$LIBS
13468 if test x$gcc_no_link = xyes; then
13469 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13472 /* end confdefs.h. */
13474 /* Override any GCC internal prototype to avoid an error.
13475 Use char because int might match the return type of a GCC
13476 builtin and then its argument prototype would still apply. */
13484 return dld_link ();
13489 if ac_fn_c_try_link "$LINENO"; then :
13490 ac_cv_lib_dld_dld_link=yes
13492 ac_cv_lib_dld_dld_link=no
13494 rm -f core conftest.err conftest.$ac_objext \
13495 conftest$ac_exeext conftest.$ac_ext
13496 LIBS=$ac_check_lib_save_LIBS
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13499 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13500 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13501 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13522 if test "x$lt_cv_dlopen" != xno; then
13528 case $lt_cv_dlopen in
13530 save_CPPFLAGS="$CPPFLAGS"
13531 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13533 save_LDFLAGS="$LDFLAGS"
13534 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13537 LIBS="$lt_cv_dlopen_libs $LIBS"
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13540 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13541 if test "${lt_cv_dlopen_self+set}" = set; then :
13542 $as_echo_n "(cached) " >&6
13544 if test "$cross_compiling" = yes; then :
13545 lt_cv_dlopen_self=cross
13547 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13548 lt_status=$lt_dlunknown
13549 cat > conftest.$ac_ext <<_LT_EOF
13550 #line 13550 "configure"
13551 #include "confdefs.h"
13560 # define LT_DLGLOBAL RTLD_GLOBAL
13563 # define LT_DLGLOBAL DL_GLOBAL
13565 # define LT_DLGLOBAL 0
13569 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13570 find out it does not work in some platform. */
13571 #ifndef LT_DLLAZY_OR_NOW
13573 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13576 # define LT_DLLAZY_OR_NOW DL_LAZY
13579 # define LT_DLLAZY_OR_NOW RTLD_NOW
13582 # define LT_DLLAZY_OR_NOW DL_NOW
13584 # define LT_DLLAZY_OR_NOW 0
13591 void fnord() { int i=42;}
13594 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13595 int status = $lt_dlunknown;
13599 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13600 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13601 /* dlclose (self); */
13609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13610 (eval $ac_link) 2>&5
13612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13613 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13614 (./conftest; exit; ) >&5 2>/dev/null
13616 case x$lt_status in
13617 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13618 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13619 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13622 # compilation failed
13623 lt_cv_dlopen_self=no
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13631 $as_echo "$lt_cv_dlopen_self" >&6; }
13633 if test "x$lt_cv_dlopen_self" = xyes; then
13634 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13636 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13637 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13638 $as_echo_n "(cached) " >&6
13640 if test "$cross_compiling" = yes; then :
13641 lt_cv_dlopen_self_static=cross
13643 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13644 lt_status=$lt_dlunknown
13645 cat > conftest.$ac_ext <<_LT_EOF
13646 #line 13646 "configure"
13647 #include "confdefs.h"
13656 # define LT_DLGLOBAL RTLD_GLOBAL
13659 # define LT_DLGLOBAL DL_GLOBAL
13661 # define LT_DLGLOBAL 0
13665 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13666 find out it does not work in some platform. */
13667 #ifndef LT_DLLAZY_OR_NOW
13669 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13672 # define LT_DLLAZY_OR_NOW DL_LAZY
13675 # define LT_DLLAZY_OR_NOW RTLD_NOW
13678 # define LT_DLLAZY_OR_NOW DL_NOW
13680 # define LT_DLLAZY_OR_NOW 0
13687 void fnord() { int i=42;}
13690 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13691 int status = $lt_dlunknown;
13695 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13696 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13697 /* dlclose (self); */
13705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13706 (eval $ac_link) 2>&5
13708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13709 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13710 (./conftest; exit; ) >&5 2>/dev/null
13712 case x$lt_status in
13713 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13714 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13715 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13718 # compilation failed
13719 lt_cv_dlopen_self_static=no
13726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13727 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13730 CPPFLAGS="$save_CPPFLAGS"
13731 LDFLAGS="$save_LDFLAGS"
13736 case $lt_cv_dlopen_self in
13737 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13738 *) enable_dlopen_self=unknown ;;
13741 case $lt_cv_dlopen_self_static in
13742 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13743 *) enable_dlopen_self_static=unknown ;;
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13766 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13767 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13768 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13769 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13771 $as_echo "yes" >&6; }
13773 # FIXME - insert some real tests, host_os isn't really good enough
13776 if test -n "$STRIP" ; then
13777 striplib="$STRIP -x"
13778 old_striplib="$STRIP -S"
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13780 $as_echo "yes" >&6; }
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13783 $as_echo "no" >&6; }
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13788 $as_echo "no" >&6; }
13804 # Report which library types will actually be built
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13806 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13808 $as_echo "$can_build_shared" >&6; }
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13811 $as_echo_n "checking whether to build shared libraries... " >&6; }
13812 test "$can_build_shared" = "no" && enable_shared=no
13814 # On AIX, shared libraries and static libraries use the same namespace, and
13815 # are all built from PIC.
13818 test "$enable_shared" = yes && enable_static=no
13819 if test -n "$RANLIB"; then
13820 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13821 postinstall_cmds='$RANLIB $lib'
13826 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13827 test "$enable_shared" = yes && enable_static=no
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13832 $as_echo "$enable_shared" >&6; }
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13835 $as_echo_n "checking whether to build static libraries... " >&6; }
13836 # Make sure either enable_shared or enable_static is yes.
13837 test "$enable_shared" = yes || enable_static=yes
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13839 $as_echo "$enable_static" >&6; }
13846 ac_cpp='$CPP $CPPFLAGS'
13847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13855 ac_cpp='$CXXCPP $CPPFLAGS'
13856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13860 archive_cmds_need_lc_CXX=no
13861 allow_undefined_flag_CXX=
13862 always_export_symbols_CXX=no
13863 archive_expsym_cmds_CXX=
13864 compiler_needs_object_CXX=no
13865 export_dynamic_flag_spec_CXX=
13866 hardcode_direct_CXX=no
13867 hardcode_direct_absolute_CXX=no
13868 hardcode_libdir_flag_spec_CXX=
13869 hardcode_libdir_flag_spec_ld_CXX=
13870 hardcode_libdir_separator_CXX=
13871 hardcode_minus_L_CXX=no
13872 hardcode_shlibpath_var_CXX=unsupported
13873 hardcode_automatic_CXX=no
13874 inherit_rpath_CXX=no
13876 module_expsym_cmds_CXX=
13877 link_all_deplibs_CXX=unknown
13878 old_archive_cmds_CXX=$old_archive_cmds
13879 no_undefined_flag_CXX=
13880 whole_archive_flag_spec_CXX=
13881 enable_shared_with_static_runtimes_CXX=no
13883 # Source file extension for C++ test sources.
13886 # Object file extension for compiled C++ test sources.
13890 # No sense in running all these tests if we already determined that
13891 # the CXX compiler isn't working. Some variables (like enable_shared)
13892 # are currently assumed to apply to all compilers on this platform,
13893 # and will be corrupted by setting them based on a non-working compiler.
13894 if test "$_lt_caught_CXX_error" != yes; then
13895 # Code to be used in simple compile tests
13896 lt_simple_compile_test_code="int some_variable = 0;"
13898 # Code to be used in simple link tests
13899 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13901 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13908 # If no C compiler was specified, use CC.
13911 # If no C compiler flags were specified, use CFLAGS.
13912 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13914 # Allow CC to be a program name with arguments.
13918 # save warnings/boilerplate of simple test code
13919 ac_outfile=conftest.$ac_objext
13920 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13921 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13922 _lt_compiler_boilerplate=`cat conftest.err`
13925 ac_outfile=conftest.$ac_objext
13926 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13927 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13928 _lt_linker_boilerplate=`cat conftest.err`
13932 # Allow CC to be a program name with arguments.
13937 lt_save_with_gnu_ld=$with_gnu_ld
13938 lt_save_path_LD=$lt_cv_path_LD
13939 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13940 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13942 $as_unset lt_cv_prog_gnu_ld
13944 if test -n "${lt_cv_path_LDCXX+set}"; then
13945 lt_cv_path_LD=$lt_cv_path_LDCXX
13947 $as_unset lt_cv_path_LD
13949 test -z "${LDCXX+set}" || LD=$LDCXX
13953 for cc_temp in $compiler""; do
13955 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13956 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13961 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13964 if test -n "$compiler"; then
13965 # We don't want -fno-exception when compiling C++ code, so set the
13966 # no_builtin_flag separately
13967 if test "$GXX" = yes; then
13968 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13970 lt_prog_compiler_no_builtin_flag_CXX=
13973 if test "$GXX" = yes; then
13974 # Set up default GNU C++ configuration
13978 # Check whether --with-gnu-ld was given.
13979 if test "${with_gnu_ld+set}" = set; then :
13980 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13986 if test "$GCC" = yes; then
13987 # Check if gcc -print-prog-name=ld gives a path.
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13989 $as_echo_n "checking for ld used by $CC... " >&6; }
13992 # gcc leaves a trailing carriage return which upsets mingw
13993 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13995 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13998 # Accept absolute paths.
14000 re_direlt='/[^/][^/]*/\.\./'
14001 # Canonicalize the pathname of ld
14002 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14003 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14004 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14006 test -z "$LD" && LD="$ac_prog"
14009 # If it fails, then pretend we aren't using GCC.
14013 # If it is relative, then search for the first ld in PATH.
14014 with_gnu_ld=unknown
14017 elif test "$with_gnu_ld" = yes; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14019 $as_echo_n "checking for GNU ld... " >&6; }
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14022 $as_echo_n "checking for non-GNU ld... " >&6; }
14024 if test "${lt_cv_path_LD+set}" = set; then :
14025 $as_echo_n "(cached) " >&6
14027 if test -z "$LD"; then
14028 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14029 for ac_dir in $PATH; do
14031 test -z "$ac_dir" && ac_dir=.
14032 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14033 lt_cv_path_LD="$ac_dir/$ac_prog"
14034 # Check to see if the program is GNU ld. I'd rather use --version,
14035 # but apparently some variants of GNU ld only accept -v.
14036 # Break only if it was the GNU/non-GNU ld that we prefer.
14037 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14038 *GNU* | *'with BFD'*)
14039 test "$with_gnu_ld" != no && break
14042 test "$with_gnu_ld" != yes && break
14049 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14053 LD="$lt_cv_path_LD"
14054 if test -n "$LD"; then
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14056 $as_echo "$LD" >&6; }
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14059 $as_echo "no" >&6; }
14061 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14063 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14064 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14065 $as_echo_n "(cached) " >&6
14067 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14068 case `$LD -v 2>&1 </dev/null` in
14069 *GNU* | *'with BFD'*)
14070 lt_cv_prog_gnu_ld=yes
14073 lt_cv_prog_gnu_ld=no
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14078 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14079 with_gnu_ld=$lt_cv_prog_gnu_ld
14087 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14088 # archiving commands below assume that GNU ld is being used.
14089 if test "$with_gnu_ld" = yes; then
14090 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14091 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'
14093 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14094 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14096 # If archive_cmds runs LD, not CC, wlarc should be empty
14097 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14098 # investigate it a little bit more. (MM)
14101 # ancient GNU ld didn't support --whole-archive et. al.
14102 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14103 $GREP 'no-whole-archive' > /dev/null; then
14104 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14106 whole_archive_flag_spec_CXX=
14112 # A generic and very simple default shared library creation
14113 # command for GNU C++ for the case where it uses the native
14114 # linker, instead of GNU ld. If possible, this setting should
14115 # overridden to take advantage of the native linker features on
14116 # the platform it is being used on.
14117 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14120 # Commands to make compiler produce verbose output that lists
14121 # what "hidden" libraries, object files and flags are used when
14122 # linking a shared library.
14123 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14131 # PORTME: fill in a description of your system's C++ link characteristics
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14133 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14137 # FIXME: insert proper C++ library support
14141 if test "$host_cpu" = ia64; then
14142 # On IA64, the linker does run time linking by default, so we don't
14143 # have to do anything special.
14144 aix_use_runtimelinking=no
14145 exp_sym_flag='-Bexport'
14148 aix_use_runtimelinking=no
14150 # Test if we are trying to use run time linking or normal
14151 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14152 # need to do runtime linking.
14153 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14154 for ld_flag in $LDFLAGS; do
14157 aix_use_runtimelinking=yes
14165 exp_sym_flag='-bexport'
14166 no_entry_flag='-bnoentry'
14169 # When large executables or shared objects are built, AIX ld can
14170 # have problems creating the table of contents. If linking a library
14171 # or program results in "error TOC overflow" add -mminimal-toc to
14172 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14173 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14175 archive_cmds_CXX=''
14176 hardcode_direct_CXX=yes
14177 hardcode_direct_absolute_CXX=yes
14178 hardcode_libdir_separator_CXX=':'
14179 link_all_deplibs_CXX=yes
14180 file_list_spec_CXX='${wl}-f,'
14182 if test "$GXX" = yes; then
14183 case $host_os in aix4.[012]|aix4.[012].*)
14184 # We only want to do this on AIX 4.2 and lower, the check
14185 # below for broken collect2 doesn't work under 4.3+
14186 collect2name=`${CC} -print-prog-name=collect2`
14187 if test -f "$collect2name" &&
14188 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14190 # We have reworked collect2
14193 # We have old collect2
14194 hardcode_direct_CXX=unsupported
14195 # It fails to find uninstalled libraries when the uninstalled
14196 # path is not listed in the libpath. Setting hardcode_minus_L
14197 # to unsupported forces relinking
14198 hardcode_minus_L_CXX=yes
14199 hardcode_libdir_flag_spec_CXX='-L$libdir'
14200 hardcode_libdir_separator_CXX=
14203 shared_flag='-shared'
14204 if test "$aix_use_runtimelinking" = yes; then
14205 shared_flag="$shared_flag "'${wl}-G'
14209 if test "$host_cpu" = ia64; then
14210 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14211 # chokes on -Wl,-G. The following line is correct:
14214 if test "$aix_use_runtimelinking" = yes; then
14215 shared_flag='${wl}-G'
14217 shared_flag='${wl}-bM:SRE'
14222 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14223 # It seems that -bexpall does not export symbols beginning with
14224 # underscore (_), so it is better to generate a list of symbols to
14226 always_export_symbols_CXX=yes
14227 if test "$aix_use_runtimelinking" = yes; then
14228 # Warning - without using the other runtime loading flags (-brtl),
14229 # -berok will link without error, but may produce a broken library.
14230 allow_undefined_flag_CXX='-berok'
14231 # Determine the default libpath from the value encoded in an empty
14233 if test x$gcc_no_link = xyes; then
14234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14247 if ac_fn_cxx_try_link "$LINENO"; then :
14249 lt_aix_libpath_sed='
14250 /Import File Strings/,/^$/ {
14256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14257 # Check for a 64-bit object if we didn't find anything.
14258 if test -z "$aix_libpath"; then
14259 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14262 rm -f core conftest.err conftest.$ac_objext \
14263 conftest$ac_exeext conftest.$ac_ext
14264 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14266 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14268 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"
14270 if test "$host_cpu" = ia64; then
14271 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14272 allow_undefined_flag_CXX="-z nodefs"
14273 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"
14275 # Determine the default libpath from the value encoded in an
14276 # empty executable.
14277 if test x$gcc_no_link = xyes; then
14278 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14291 if ac_fn_cxx_try_link "$LINENO"; then :
14293 lt_aix_libpath_sed='
14294 /Import File Strings/,/^$/ {
14300 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14301 # Check for a 64-bit object if we didn't find anything.
14302 if test -z "$aix_libpath"; then
14303 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14306 rm -f core conftest.err conftest.$ac_objext \
14307 conftest$ac_exeext conftest.$ac_ext
14308 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14310 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14311 # Warning - without using the other run time loading flags,
14312 # -berok will link without error, but may produce a broken library.
14313 no_undefined_flag_CXX=' ${wl}-bernotok'
14314 allow_undefined_flag_CXX=' ${wl}-berok'
14315 # Exported symbols can be pulled into shared objects from archives
14316 whole_archive_flag_spec_CXX='$convenience'
14317 archive_cmds_need_lc_CXX=yes
14318 # This is similar to how AIX traditionally builds its shared
14320 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'
14326 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14327 allow_undefined_flag_CXX=unsupported
14328 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14329 # support --undefined. This deserves some investigation. FIXME
14330 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14337 case $cc_basename in
14339 # FIXME: insert proper C++ library support
14345 cygwin* | mingw* | pw32* | cegcc*)
14346 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14347 # as there is no search path for DLLs.
14348 hardcode_libdir_flag_spec_CXX='-L$libdir'
14349 allow_undefined_flag_CXX=unsupported
14350 always_export_symbols_CXX=no
14351 enable_shared_with_static_runtimes_CXX=yes
14353 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14354 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'
14355 # If the export-symbols file already is a .def file (1st line
14356 # is EXPORTS), use it as is; otherwise, prepend...
14357 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14358 cp $export_symbols $output_objdir/$soname.def;
14360 echo EXPORTS > $output_objdir/$soname.def;
14361 cat $export_symbols >> $output_objdir/$soname.def;
14363 $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'
14368 darwin* | rhapsody*)
14371 archive_cmds_need_lc_CXX=no
14372 hardcode_direct_CXX=no
14373 hardcode_automatic_CXX=yes
14374 hardcode_shlibpath_var_CXX=unsupported
14375 whole_archive_flag_spec_CXX=''
14376 link_all_deplibs_CXX=yes
14377 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14378 case $cc_basename in
14379 ifort*) _lt_dar_can_shared=yes ;;
14380 *) _lt_dar_can_shared=$GCC ;;
14382 if test "$_lt_dar_can_shared" = "yes"; then
14383 output_verbose_link_cmd=echo
14384 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}"
14385 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14386 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}"
14387 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}"
14388 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14389 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}"
14390 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}"
14400 case $cc_basename in
14402 # FIXME: insert proper C++ library support
14406 # Green Hills C++ Compiler
14407 # FIXME: insert proper C++ library support
14411 # FIXME: insert proper C++ library support
14418 # C++ shared libraries reported to be fairly broken before
14424 archive_cmds_need_lc_CXX=no
14427 freebsd* | dragonfly*)
14428 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14437 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14438 hardcode_libdir_separator_CXX=:
14439 export_dynamic_flag_spec_CXX='${wl}-E'
14440 hardcode_direct_CXX=yes
14441 hardcode_minus_L_CXX=yes # Not in the search PATH,
14442 # but as the default
14443 # location of the library.
14445 case $cc_basename in
14447 # FIXME: insert proper C++ library support
14451 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'
14452 # Commands to make compiler produce verbose output that lists
14453 # what "hidden" libraries, object files and flags are used when
14454 # linking a shared library.
14456 # There doesn't appear to be a way to prevent this compiler from
14457 # explicitly linking system object files so we need to strip them
14458 # from the output so that they don't get included in the library
14460 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'
14463 if test "$GXX" = yes; then
14464 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'
14466 # FIXME: insert proper C++ library support
14474 if test $with_gnu_ld = no; then
14475 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14476 hardcode_libdir_separator_CXX=:
14482 export_dynamic_flag_spec_CXX='${wl}-E'
14488 hardcode_direct_CXX=no
14489 hardcode_shlibpath_var_CXX=no
14492 hardcode_direct_CXX=yes
14493 hardcode_direct_absolute_CXX=yes
14494 hardcode_minus_L_CXX=yes # Not in the search PATH,
14495 # but as the default
14496 # location of the library.
14500 case $cc_basename in
14502 # FIXME: insert proper C++ library support
14508 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14511 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14514 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14517 # Commands to make compiler produce verbose output that lists
14518 # what "hidden" libraries, object files and flags are used when
14519 # linking a shared library.
14521 # There doesn't appear to be a way to prevent this compiler from
14522 # explicitly linking system object files so we need to strip them
14523 # from the output so that they don't get included in the library
14525 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'
14528 if test "$GXX" = yes; then
14529 if test $with_gnu_ld = no; then
14532 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14535 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14538 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'
14543 # FIXME: insert proper C++ library support
14551 hardcode_direct_CXX=no
14552 hardcode_shlibpath_var_CXX=no
14553 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14554 export_dynamic_flag_spec_CXX='${wl}-E'
14555 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14556 # Instead, shared libraries are loaded at an image base (0x10000000 by
14557 # default) and relocated if they conflict, which is a slow very memory
14558 # consuming and fragmenting process. To avoid this, we pick a random,
14559 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14560 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14561 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'
14562 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'
14565 case $cc_basename in
14568 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'
14570 # Archives containing C++ object files must be created using
14571 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14572 # necessary to make sure instantiated templates are included
14574 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14577 if test "$GXX" = yes; then
14578 if test "$with_gnu_ld" = no; then
14579 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'
14581 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'
14584 link_all_deplibs_CXX=yes
14587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14588 hardcode_libdir_separator_CXX=:
14589 inherit_rpath_CXX=yes
14592 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14593 case $cc_basename in
14595 # Kuck and Associates, Inc. (KAI) C++ Compiler
14597 # KCC will only create a shared library if the output file
14598 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14599 # to its proper name (with version) after linking.
14600 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'
14601 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'
14602 # Commands to make compiler produce verbose output that lists
14603 # what "hidden" libraries, object files and flags are used when
14604 # linking a shared library.
14606 # There doesn't appear to be a way to prevent this compiler from
14607 # explicitly linking system object files so we need to strip them
14608 # from the output so that they don't get included in the library
14610 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'
14612 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14613 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14615 # Archives containing C++ object files must be created using
14616 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14617 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14622 # version 8.0 and above of icpc choke on multiply defined symbols
14623 # if we add $predep_objects and $postdep_objects, however 7.1 and
14624 # earlier do not add the objects themselves.
14625 case `$CC -V 2>&1` in
14627 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14628 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'
14630 *) # Version 8.0 or newer
14633 ia64*) tmp_idyn=' -i_dynamic';;
14635 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14636 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'
14639 archive_cmds_need_lc_CXX=no
14640 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14641 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14642 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14645 # Portland Group C++ compiler
14647 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
14648 prelink_cmds_CXX='tpldir=Template.dir~
14650 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14651 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14652 old_archive_cmds_CXX='tpldir=Template.dir~
14654 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14655 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14657 archive_cmds_CXX='tpldir=Template.dir~
14659 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14660 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14661 archive_expsym_cmds_CXX='tpldir=Template.dir~
14663 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14664 $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'
14666 *) # Version 6 will use weak symbols
14667 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14668 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'
14672 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14673 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14674 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'
14678 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14679 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'
14681 runpath_var=LD_RUN_PATH
14682 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14683 hardcode_libdir_separator_CXX=:
14685 # Commands to make compiler produce verbose output that lists
14686 # what "hidden" libraries, object files and flags are used when
14687 # linking a shared library.
14689 # There doesn't appear to be a way to prevent this compiler from
14690 # explicitly linking system object files so we need to strip them
14691 # from the output so that they don't get included in the library
14693 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'
14696 # IBM XL 8.0 on PPC, with GNU ld
14697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14698 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14699 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14700 if test "x$supports_anon_versioning" = xyes; then
14701 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14702 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14703 echo "local: *; };" >> $output_objdir/$libname.ver~
14704 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14708 case `$CC -V 2>&1 | sed 5q` in
14711 no_undefined_flag_CXX=' -zdefs'
14712 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14713 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'
14714 hardcode_libdir_flag_spec_CXX='-R$libdir'
14715 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'
14716 compiler_needs_object_CXX=yes
14718 # Not sure whether something based on
14719 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14721 output_verbose_link_cmd='echo'
14723 # Archives containing C++ object files must be created using
14724 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14725 # necessary to make sure instantiated templates are included
14727 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14735 # FIXME: insert proper C++ library support
14740 # FIXME: insert proper C++ library support
14745 case $cc_basename in
14747 # FIXME: insert proper C++ library support
14751 # FIXME: insert proper C++ library support
14758 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14759 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14761 hardcode_libdir_flag_spec_CXX='-R$libdir'
14762 hardcode_direct_CXX=yes
14763 hardcode_shlibpath_var_CXX=no
14765 # Workaround some broken pre-1.5 toolchains
14766 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14774 # C++ shared libraries are fairly broken
14779 if test -f /usr/libexec/ld.so; then
14780 hardcode_direct_CXX=yes
14781 hardcode_shlibpath_var_CXX=no
14782 hardcode_direct_absolute_CXX=yes
14783 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14784 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14785 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14786 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14787 export_dynamic_flag_spec_CXX='${wl}-E'
14788 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14790 output_verbose_link_cmd=echo
14796 osf3* | osf4* | osf5*)
14797 case $cc_basename in
14799 # Kuck and Associates, Inc. (KAI) C++ Compiler
14801 # KCC will only create a shared library if the output file
14802 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14803 # to its proper name (with version) after linking.
14804 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'
14806 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14807 hardcode_libdir_separator_CXX=:
14809 # Archives containing C++ object files must be created using
14810 # the KAI C++ compiler.
14812 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14813 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14817 # Rational C++ 2.4.1
14818 # FIXME: insert proper C++ library support
14824 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14825 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'
14826 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14829 allow_undefined_flag_CXX=' -expect_unresolved \*'
14830 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'
14831 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14832 echo "-hidden">> $lib.exp~
14833 $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~
14835 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14839 hardcode_libdir_separator_CXX=:
14841 # Commands to make compiler produce verbose output that lists
14842 # what "hidden" libraries, object files and flags are used when
14843 # linking a shared library.
14845 # There doesn't appear to be a way to prevent this compiler from
14846 # explicitly linking system object files so we need to strip them
14847 # from the output so that they don't get included in the library
14849 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'
14852 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14853 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14856 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'
14859 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'
14863 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14864 hardcode_libdir_separator_CXX=:
14866 # Commands to make compiler produce verbose output that lists
14867 # what "hidden" libraries, object files and flags are used when
14868 # linking a shared library.
14869 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14872 # FIXME: insert proper C++ library support
14880 # FIXME: insert proper C++ library support
14885 case $cc_basename in
14888 # FIXME: insert proper C++ library support
14893 # FIXME: insert proper C++ library support
14897 # FIXME: insert proper C++ library support
14904 case $cc_basename in
14906 # Sun C++ 4.2, 5.x and Centerline C++
14907 archive_cmds_need_lc_CXX=yes
14908 no_undefined_flag_CXX=' -zdefs'
14909 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14910 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14911 $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'
14913 hardcode_libdir_flag_spec_CXX='-R$libdir'
14914 hardcode_shlibpath_var_CXX=no
14916 solaris2.[0-5] | solaris2.[0-5].*) ;;
14918 # The compiler driver will combine and reorder linker options,
14919 # but understands `-z linker_flag'.
14920 # Supported since Solaris 2.6 (maybe 2.5.1?)
14921 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14924 link_all_deplibs_CXX=yes
14926 output_verbose_link_cmd='echo'
14928 # Archives containing C++ object files must be created using
14929 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14930 # necessary to make sure instantiated templates are included
14932 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14935 # Green Hills C++ Compiler
14936 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14938 # The C++ compiler must be used to create the archive.
14939 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14942 # GNU C++ compiler with Solaris linker
14943 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14944 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14945 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14946 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14947 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14948 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14950 # Commands to make compiler produce verbose output that lists
14951 # what "hidden" libraries, object files and flags are used when
14952 # linking a shared library.
14953 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14955 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14957 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14958 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14959 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14961 # Commands to make compiler produce verbose output that lists
14962 # what "hidden" libraries, object files and flags are used when
14963 # linking a shared library.
14964 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "^ .* -L"'
14967 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14969 solaris2.[0-5] | solaris2.[0-5].*) ;;
14971 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14979 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14980 no_undefined_flag_CXX='${wl}-z,text'
14981 archive_cmds_need_lc_CXX=no
14982 hardcode_shlibpath_var_CXX=no
14983 runpath_var='LD_RUN_PATH'
14985 case $cc_basename in
14987 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14988 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14991 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14992 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14997 sysv5* | sco3.2v5* | sco5v6*)
14998 # Note: We can NOT use -z defs as we might desire, because we do not
14999 # link with -lc, and that would cause any symbols used from libc to
15000 # always be unresolved, which means just about no library would
15001 # ever link correctly. If we're not using GNU ld we use -z text
15002 # though, which does catch some bad symbols but isn't as heavy-handed
15004 no_undefined_flag_CXX='${wl}-z,text'
15005 allow_undefined_flag_CXX='${wl}-z,nodefs'
15006 archive_cmds_need_lc_CXX=no
15007 hardcode_shlibpath_var_CXX=no
15008 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15009 hardcode_libdir_separator_CXX=':'
15010 link_all_deplibs_CXX=yes
15011 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15012 runpath_var='LD_RUN_PATH'
15014 case $cc_basename in
15016 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15017 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15020 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15021 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15027 case $cc_basename in
15029 # NonStop-UX NCC 3.20
15030 # FIXME: insert proper C++ library support
15034 # FIXME: insert proper C++ library support
15041 # FIXME: insert proper C++ library support
15046 # FIXME: insert proper C++ library support
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15052 $as_echo "$ld_shlibs_CXX" >&6; }
15053 test "$ld_shlibs_CXX" = no && can_build_shared=no
15059 ## There is no encapsulation within the following macros, do not change
15060 ## the running order or otherwise move them around unless you know exactly
15061 ## what you are doing...
15062 # Dependencies to place before and after the object being linked:
15063 predep_objects_CXX=
15064 postdep_objects_CXX=
15067 compiler_lib_search_path_CXX=
15069 cat > conftest.$ac_ext <<_LT_EOF
15073 Foo (void) { a = 0; }
15079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15080 (eval $ac_compile) 2>&5
15082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15083 test $ac_status = 0; }; then
15084 # Parse the compiler output and extract the necessary
15085 # objects, libraries and library flags.
15087 # Sentinel used to keep track of whether or not we are before
15088 # the conftest object file.
15089 pre_test_object_deps_done=no
15091 for p in `eval "$output_verbose_link_cmd"`; do
15095 # Some compilers place space between "-{L,R}" and the path.
15096 # Remove the space.
15097 if test $p = "-L" ||
15098 test $p = "-R"; then
15105 if test "$pre_test_object_deps_done" = no; then
15108 # Internal compiler library paths should come after those
15109 # provided the user. The postdeps already come after the
15110 # user supplied libs so there is no need to process them.
15111 if test -z "$compiler_lib_search_path_CXX"; then
15112 compiler_lib_search_path_CXX="${prev}${p}"
15114 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15117 # The "-l" case would never come before the object being
15118 # linked, so don't bother handling this case.
15121 if test -z "$postdeps_CXX"; then
15122 postdeps_CXX="${prev}${p}"
15124 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15130 # This assumes that the test object file only shows up
15131 # once in the compiler output.
15132 if test "$p" = "conftest.$objext"; then
15133 pre_test_object_deps_done=yes
15137 if test "$pre_test_object_deps_done" = no; then
15138 if test -z "$predep_objects_CXX"; then
15139 predep_objects_CXX="$p"
15141 predep_objects_CXX="$predep_objects_CXX $p"
15144 if test -z "$postdep_objects_CXX"; then
15145 postdep_objects_CXX="$p"
15147 postdep_objects_CXX="$postdep_objects_CXX $p"
15152 *) ;; # Ignore the rest.
15160 echo "libtool.m4: error: problem compiling CXX test program"
15163 $RM -f confest.$objext
15165 # PORTME: override above test on systems where it is broken
15168 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15169 # hack all around it, let's just trust "g++" to DTRT.
15170 predep_objects_CXX=
15171 postdep_objects_CXX=
15176 case `$CC -V 2>&1 | sed 5q` in
15180 # The more standards-conforming stlport4 library is
15181 # incompatible with the Cstd library. Avoid specifying
15182 # it if it's in CXXFLAGS. Ignore libCrun as
15183 # -library=stlport4 depends on it.
15184 case " $CXX $CXXFLAGS " in
15185 *" -library=stlport4 "*)
15186 solaris_use_stlport4=yes
15190 if test "$solaris_use_stlport4" != yes; then
15191 postdeps_CXX='-library=Cstd -library=Crun'
15198 case $cc_basename in
15200 # The more standards-conforming stlport4 library is
15201 # incompatible with the Cstd library. Avoid specifying
15202 # it if it's in CXXFLAGS. Ignore libCrun as
15203 # -library=stlport4 depends on it.
15204 case " $CXX $CXXFLAGS " in
15205 *" -library=stlport4 "*)
15206 solaris_use_stlport4=yes
15210 # Adding this requires a known-good setup of shared libraries for
15211 # Sun compiler versions before 5.6, else PIC objects from an old
15212 # archive will be linked into the output, leading to subtle bugs.
15213 if test "$solaris_use_stlport4" != yes; then
15214 postdeps_CXX='-library=Cstd -library=Crun'
15222 case " $postdeps_CXX " in
15223 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15225 compiler_lib_search_dirs_CXX=
15226 if test -n "${compiler_lib_search_path_CXX}"; then
15227 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15260 lt_prog_compiler_wl_CXX=
15261 lt_prog_compiler_pic_CXX=
15262 lt_prog_compiler_static_CXX=
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15265 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15267 # C++ specific cases for pic, static, wl, etc.
15268 if test "$GXX" = yes; then
15269 lt_prog_compiler_wl_CXX='-Wl,'
15270 lt_prog_compiler_static_CXX='-static'
15274 # All AIX code is PIC.
15275 if test "$host_cpu" = ia64; then
15276 # AIX 5 now supports IA64 processor
15277 lt_prog_compiler_static_CXX='-Bstatic'
15284 # see comment about AmigaOS4 .so support
15285 lt_prog_compiler_pic_CXX='-fPIC'
15288 # FIXME: we need at least 68020 code to build shared libraries, but
15289 # adding the `-m68020' flag to GCC prevents building anything better,
15291 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15296 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15297 # PIC is the default for these OSes.
15299 mingw* | cygwin* | os2* | pw32* | cegcc*)
15300 # This hack is so that the source file can tell whether it is being
15301 # built for inclusion in a dll (and should export symbols for example).
15302 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15303 # (--disable-auto-import) libraries
15304 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15306 darwin* | rhapsody*)
15307 # PIC is the default on this platform
15308 # Common symbols not allowed in MH_DYLIB files
15309 lt_prog_compiler_pic_CXX='-fno-common'
15312 # DJGPP does not support shared libraries at all
15313 lt_prog_compiler_pic_CXX=
15316 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15317 # Instead, we relocate shared libraries at runtime.
15320 if test -d /usr/nec; then
15321 lt_prog_compiler_pic_CXX=-Kconform_pic
15325 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15326 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15327 # sets the default TLS model and affects inlining.
15332 lt_prog_compiler_pic_CXX='-fPIC'
15337 # QNX uses GNU C++, but need to define -shared option too, otherwise
15338 # it will coredump.
15339 lt_prog_compiler_pic_CXX='-fPIC -shared'
15342 lt_prog_compiler_pic_CXX='-fPIC'
15348 # All AIX code is PIC.
15349 if test "$host_cpu" = ia64; then
15350 # AIX 5 now supports IA64 processor
15351 lt_prog_compiler_static_CXX='-Bstatic'
15353 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15357 case $cc_basename in
15359 # Green Hills C++ Compiler
15360 # _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"
15365 case $cc_basename in
15367 lt_prog_compiler_pic_CXX='-KPIC'
15370 # Green Hills C++ Compiler
15371 lt_prog_compiler_pic_CXX='-pic'
15377 freebsd* | dragonfly*)
15378 # FreeBSD uses GNU C++
15380 hpux9* | hpux10* | hpux11*)
15381 case $cc_basename in
15383 lt_prog_compiler_wl_CXX='-Wl,'
15384 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15385 if test "$host_cpu" != ia64; then
15386 lt_prog_compiler_pic_CXX='+Z'
15390 lt_prog_compiler_wl_CXX='-Wl,'
15391 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15397 lt_prog_compiler_pic_CXX='+Z'
15406 # This is c89, which is MS Visual C++ (no shared libs)
15407 # Anyone wants to do a port?
15409 irix5* | irix6* | nonstopux*)
15410 case $cc_basename in
15412 lt_prog_compiler_wl_CXX='-Wl,'
15413 lt_prog_compiler_static_CXX='-non_shared'
15414 # CC pic flag -KPIC is the default.
15420 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15421 case $cc_basename in
15424 lt_prog_compiler_wl_CXX='--backend -Wl,'
15425 lt_prog_compiler_pic_CXX='-fPIC'
15428 # old Intel C++ for x86_64 which still supported -KPIC.
15429 lt_prog_compiler_wl_CXX='-Wl,'
15430 lt_prog_compiler_pic_CXX='-KPIC'
15431 lt_prog_compiler_static_CXX='-static'
15434 # Intel C++, used to be incompatible with GCC.
15435 # ICC 10 doesn't accept -KPIC any more.
15436 lt_prog_compiler_wl_CXX='-Wl,'
15437 lt_prog_compiler_pic_CXX='-fPIC'
15438 lt_prog_compiler_static_CXX='-static'
15441 # Portland Group C++ compiler
15442 lt_prog_compiler_wl_CXX='-Wl,'
15443 lt_prog_compiler_pic_CXX='-fpic'
15444 lt_prog_compiler_static_CXX='-Bstatic'
15448 # Make sure the PIC flag is empty. It appears that all Alpha
15449 # Linux and Compaq Tru64 Unix objects are PIC.
15450 lt_prog_compiler_pic_CXX=
15451 lt_prog_compiler_static_CXX='-non_shared'
15454 # IBM XL 8.0 on PPC
15455 lt_prog_compiler_wl_CXX='-Wl,'
15456 lt_prog_compiler_pic_CXX='-qpic'
15457 lt_prog_compiler_static_CXX='-qstaticlink'
15460 case `$CC -V 2>&1 | sed 5q` in
15463 lt_prog_compiler_pic_CXX='-KPIC'
15464 lt_prog_compiler_static_CXX='-Bstatic'
15465 lt_prog_compiler_wl_CXX='-Qoption ld '
15476 case $cc_basename in
15478 lt_prog_compiler_pic_CXX='-W c,exportall'
15487 # QNX uses GNU C++, but need to define -shared option too, otherwise
15488 # it will coredump.
15489 lt_prog_compiler_pic_CXX='-fPIC -shared'
15491 osf3* | osf4* | osf5*)
15492 case $cc_basename in
15494 lt_prog_compiler_wl_CXX='--backend -Wl,'
15497 # Rational C++ 2.4.1
15498 lt_prog_compiler_pic_CXX='-pic'
15501 # Digital/Compaq C++
15502 lt_prog_compiler_wl_CXX='-Wl,'
15503 # Make sure the PIC flag is empty. It appears that all Alpha
15504 # Linux and Compaq Tru64 Unix objects are PIC.
15505 lt_prog_compiler_pic_CXX=
15506 lt_prog_compiler_static_CXX='-non_shared'
15515 case $cc_basename in
15517 # Sun C++ 4.2, 5.x and Centerline C++
15518 lt_prog_compiler_pic_CXX='-KPIC'
15519 lt_prog_compiler_static_CXX='-Bstatic'
15520 lt_prog_compiler_wl_CXX='-Qoption ld '
15523 # Green Hills C++ Compiler
15524 lt_prog_compiler_pic_CXX='-PIC'
15531 case $cc_basename in
15534 lt_prog_compiler_pic_CXX='-pic'
15535 lt_prog_compiler_static_CXX='-Bstatic'
15539 lt_prog_compiler_pic_CXX='-pic'
15545 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15546 case $cc_basename in
15548 lt_prog_compiler_wl_CXX='-Wl,'
15549 lt_prog_compiler_pic_CXX='-KPIC'
15550 lt_prog_compiler_static_CXX='-Bstatic'
15555 case $cc_basename in
15557 # NonStop-UX NCC 3.20
15558 lt_prog_compiler_pic_CXX='-KPIC'
15567 lt_prog_compiler_can_build_shared_CXX=no
15573 # For platforms which do not support PIC, -DPIC is meaningless:
15575 lt_prog_compiler_pic_CXX=
15578 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15582 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15587 # Check to make sure the PIC flag actually works.
15589 if test -n "$lt_prog_compiler_pic_CXX"; then
15590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15591 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15592 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15593 $as_echo_n "(cached) " >&6
15595 lt_cv_prog_compiler_pic_works_CXX=no
15596 ac_outfile=conftest.$ac_objext
15597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15598 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15599 # Insert the option either (1) after the last *FLAGS variable, or
15600 # (2) before a word containing "conftest.", or (3) at the end.
15601 # Note that $ac_compile itself does not contain backslashes and begins
15602 # with a dollar sign (not a hyphen), so the echo should work correctly.
15603 # The option is referenced via a variable to avoid confusing sed.
15604 lt_compile=`echo "$ac_compile" | $SED \
15605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15607 -e 's:$: $lt_compiler_flag:'`
15608 (eval echo "\"\$as_me:15608: $lt_compile\"" >&5)
15609 (eval "$lt_compile" 2>conftest.err)
15611 cat conftest.err >&5
15612 echo "$as_me:15612: \$? = $ac_status" >&5
15613 if (exit $ac_status) && test -s "$ac_outfile"; then
15614 # The compiler can only warn and ignore the option if not recognized
15615 # So say no if there are warnings other than the usual output.
15616 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15619 lt_cv_prog_compiler_pic_works_CXX=yes
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15626 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15628 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15629 case $lt_prog_compiler_pic_CXX in
15631 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15634 lt_prog_compiler_pic_CXX=
15635 lt_prog_compiler_can_build_shared_CXX=no
15643 # Check to make sure the static flag actually works.
15645 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15647 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15648 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15649 $as_echo_n "(cached) " >&6
15651 lt_cv_prog_compiler_static_works_CXX=no
15652 save_LDFLAGS="$LDFLAGS"
15653 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15654 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15655 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15656 # The linker can only warn and ignore the option if not recognized
15657 # So say no if there are warnings
15658 if test -s conftest.err; then
15659 # Append any errors to the config.log.
15660 cat conftest.err 1>&5
15661 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15662 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15663 if diff conftest.exp conftest.er2 >/dev/null; then
15664 lt_cv_prog_compiler_static_works_CXX=yes
15667 lt_cv_prog_compiler_static_works_CXX=yes
15671 LDFLAGS="$save_LDFLAGS"
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15675 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15677 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15680 lt_prog_compiler_static_CXX=
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15687 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15688 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15689 $as_echo_n "(cached) " >&6
15691 lt_cv_prog_compiler_c_o_CXX=no
15692 $RM -r conftest 2>/dev/null
15696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15698 lt_compiler_flag="-o out/conftest2.$ac_objext"
15699 # Insert the option either (1) after the last *FLAGS variable, or
15700 # (2) before a word containing "conftest.", or (3) at the end.
15701 # Note that $ac_compile itself does not contain backslashes and begins
15702 # with a dollar sign (not a hyphen), so the echo should work correctly.
15703 lt_compile=`echo "$ac_compile" | $SED \
15704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15706 -e 's:$: $lt_compiler_flag:'`
15707 (eval echo "\"\$as_me:15707: $lt_compile\"" >&5)
15708 (eval "$lt_compile" 2>out/conftest.err)
15710 cat out/conftest.err >&5
15711 echo "$as_me:15711: \$? = $ac_status" >&5
15712 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15714 # The compiler can only warn and ignore the option if not recognized
15715 # So say no if there are warnings
15716 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15717 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15718 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15719 lt_cv_prog_compiler_c_o_CXX=yes
15724 # SGI C++ compiler will create directory out/ii_files/ for
15725 # template instantiation
15726 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15727 $RM out/* && rmdir out
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15734 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15739 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15740 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15741 $as_echo_n "(cached) " >&6
15743 lt_cv_prog_compiler_c_o_CXX=no
15744 $RM -r conftest 2>/dev/null
15748 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15750 lt_compiler_flag="-o out/conftest2.$ac_objext"
15751 # Insert the option either (1) after the last *FLAGS variable, or
15752 # (2) before a word containing "conftest.", or (3) at the end.
15753 # Note that $ac_compile itself does not contain backslashes and begins
15754 # with a dollar sign (not a hyphen), so the echo should work correctly.
15755 lt_compile=`echo "$ac_compile" | $SED \
15756 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15757 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15758 -e 's:$: $lt_compiler_flag:'`
15759 (eval echo "\"\$as_me:15759: $lt_compile\"" >&5)
15760 (eval "$lt_compile" 2>out/conftest.err)
15762 cat out/conftest.err >&5
15763 echo "$as_me:15763: \$? = $ac_status" >&5
15764 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15766 # The compiler can only warn and ignore the option if not recognized
15767 # So say no if there are warnings
15768 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15769 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15770 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15771 lt_cv_prog_compiler_c_o_CXX=yes
15776 # SGI C++ compiler will create directory out/ii_files/ for
15777 # template instantiation
15778 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15779 $RM out/* && rmdir out
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15786 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15791 hard_links="nottested"
15792 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15793 # do not overwrite the value of need_locks provided by the user
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15795 $as_echo_n "checking if we can lock with hard links... " >&6; }
15798 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15800 ln conftest.a conftest.b 2>&5 || hard_links=no
15801 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15803 $as_echo "$hard_links" >&6; }
15804 if test "$hard_links" = no; then
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15806 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15816 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15818 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15821 # If we're using GNU nm, then we don't want the "-C" option.
15822 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15823 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15824 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'
15826 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'
15830 export_symbols_cmds_CXX="$ltdll_cmds"
15832 cygwin* | mingw* | cegcc*)
15833 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'
15836 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15839 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15842 $as_echo "$ld_shlibs_CXX" >&6; }
15843 test "$ld_shlibs_CXX" = no && can_build_shared=no
15845 with_gnu_ld_CXX=$with_gnu_ld
15853 # Do we need to explicitly link libc?
15855 case "x$archive_cmds_need_lc_CXX" in
15857 # Assume -lc should be added
15858 archive_cmds_need_lc_CXX=yes
15860 if test "$enable_shared" = yes && test "$GCC" = yes; then
15861 case $archive_cmds_CXX in
15863 # FIXME: we may have to deal with multi-command sequences.
15866 # Test whether the compiler implicitly links with -lc since on some
15867 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15868 # to ld, don't add -lc before -lgcc.
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15870 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15871 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15872 $as_echo_n "(cached) " >&6
15875 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15878 (eval $ac_compile) 2>&5
15880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15881 test $ac_status = 0; } 2>conftest.err; then
15884 libobjs=conftest.$ac_objext
15886 wl=$lt_prog_compiler_wl_CXX
15887 pic_flag=$lt_prog_compiler_pic_CXX
15893 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15894 allow_undefined_flag_CXX=
15895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15896 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15899 test $ac_status = 0; }
15901 lt_cv_archive_cmds_need_lc_CXX=no
15903 lt_cv_archive_cmds_need_lc_CXX=yes
15905 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15907 cat conftest.err 1>&5
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15913 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15914 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15985 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15987 library_names_spec=
15988 libname_spec='lib$name'
15992 postuninstall_cmds=
15996 shlibpath_overrides_runpath=unknown
15998 dynamic_linker="$host_os ld.so"
15999 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16000 need_lib_prefix=unknown
16001 hardcode_into_libs=no
16003 # when you set need_version to no, make sure it does not cause -set_version
16004 # flags to be left without arguments
16005 need_version=unknown
16010 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16011 shlibpath_var=LIBPATH
16013 # AIX 3 has no versioning support, so we append a major version to the name.
16014 soname_spec='${libname}${release}${shared_ext}$major'
16021 hardcode_into_libs=yes
16022 if test "$host_cpu" = ia64; then
16023 # AIX 5 supports IA64
16024 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16025 shlibpath_var=LD_LIBRARY_PATH
16027 # With GCC up to 2.95.x, collect2 would create an import file
16028 # for dependence libraries. The import file would start with
16029 # the line `#! .'. This would cause the generated library to
16030 # depend on `.', always an invalid library. This was fixed in
16031 # development snapshots of GCC prior to 3.0.
16033 aix4 | aix4.[01] | aix4.[01].*)
16034 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16036 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16039 can_build_shared=no
16043 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16044 # soname into executable. Probably we can add versioning support to
16045 # collect2, so additional links can be useful in future.
16046 if test "$aix_use_runtimelinking" = yes; then
16047 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16048 # instead of lib<name>.a to let people know that these are not
16049 # typical AIX shared libraries.
16050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052 # We preserve .a as extension for shared libraries through AIX4.2
16053 # and later when we are not doing run time linking.
16054 library_names_spec='${libname}${release}.a $libname.a'
16055 soname_spec='${libname}${release}${shared_ext}$major'
16057 shlibpath_var=LIBPATH
16064 # Since July 2007 AmigaOS4 officially supports .so libraries.
16065 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16069 library_names_spec='$libname.ixlibrary $libname.a'
16070 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16071 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'
16077 library_names_spec='${libname}${shared_ext}'
16078 dynamic_linker="$host_os ld.so"
16079 shlibpath_var=LIBRARY_PATH
16085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16086 soname_spec='${libname}${release}${shared_ext}$major'
16087 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16088 shlibpath_var=LD_LIBRARY_PATH
16089 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16090 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16091 # the default ld.so.conf also contains /usr/contrib/lib and
16092 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16093 # libtool to hard-code these into programs
16096 cygwin* | mingw* | pw32* | cegcc*)
16097 version_type=windows
16102 case $GCC,$host_os in
16103 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16104 library_names_spec='$libname.dll.a'
16105 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16106 postinstall_cmds='base_file=`basename \${file}`~
16107 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16108 dldir=$destdir/`dirname \$dlpath`~
16109 test -d \$dldir || mkdir -p \$dldir~
16110 $install_prog $dir/$dlname \$dldir/$dlname~
16111 chmod a+x \$dldir/$dlname~
16112 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16113 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16115 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16116 dlpath=$dir/\$dldll~
16118 shlibpath_overrides_runpath=yes
16122 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16123 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16124 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16127 # MinGW DLLs use traditional 'lib' prefix
16128 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16129 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16130 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16131 # It is most probably a Windows format PATH printed by
16132 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16133 # path with ; separators, and with drive letters. We can handle the
16134 # drive letters (cygwin fileutils understands them), so leave them,
16135 # especially as we might pass files found there to a mingw objdump,
16136 # which wouldn't understand a cygwinified path. Ahh.
16137 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16139 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16143 # pw32 DLLs use 'pw' prefix rather than 'lib'
16144 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16150 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16153 dynamic_linker='Win32 ld.exe'
16154 # FIXME: first we should search . and the directory the executable is in
16158 darwin* | rhapsody*)
16159 dynamic_linker="$host_os dyld"
16160 version_type=darwin
16163 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16164 soname_spec='${libname}${release}${major}$shared_ext'
16165 shlibpath_overrides_runpath=yes
16166 shlibpath_var=DYLD_LIBRARY_PATH
16167 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16169 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16177 soname_spec='${libname}${release}${shared_ext}$major'
16178 shlibpath_var=LD_LIBRARY_PATH
16185 freebsd* | dragonfly*)
16186 # DragonFly does not have aout. When/if they implement a new
16187 # versioning mechanism, adjust this.
16188 if test -x /usr/bin/objformat; then
16189 objformat=`/usr/bin/objformat`
16192 freebsd[123]*) objformat=aout ;;
16193 *) objformat=elf ;;
16196 version_type=freebsd-$objformat
16197 case $version_type in
16199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16204 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16208 shlibpath_var=LD_LIBRARY_PATH
16211 shlibpath_overrides_runpath=yes
16213 freebsd3.[01]* | freebsdelf3.[01]*)
16214 shlibpath_overrides_runpath=yes
16215 hardcode_into_libs=yes
16217 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16218 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16219 shlibpath_overrides_runpath=no
16220 hardcode_into_libs=yes
16222 *) # from 4.6 on, and DragonFly
16223 shlibpath_overrides_runpath=yes
16224 hardcode_into_libs=yes
16233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16234 soname_spec='${libname}${release}${shared_ext}$major'
16235 shlibpath_var=LD_LIBRARY_PATH
16236 hardcode_into_libs=yes
16239 hpux9* | hpux10* | hpux11*)
16240 # Give a soname corresponding to the major version so that dld.sl refuses to
16241 # link against other versions.
16248 hardcode_into_libs=yes
16249 dynamic_linker="$host_os dld.so"
16250 shlibpath_var=LD_LIBRARY_PATH
16251 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16253 soname_spec='${libname}${release}${shared_ext}$major'
16254 if test "X$HPUX_IA64_MODE" = X32; then
16255 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16257 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16259 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16263 hardcode_into_libs=yes
16264 dynamic_linker="$host_os dld.sl"
16265 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16266 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16268 soname_spec='${libname}${release}${shared_ext}$major'
16269 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16274 dynamic_linker="$host_os dld.sl"
16275 shlibpath_var=SHLIB_PATH
16276 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16278 soname_spec='${libname}${release}${shared_ext}$major'
16281 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16282 postinstall_cmds='chmod 555 $lib'
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16290 soname_spec='${libname}${release}${shared_ext}$major'
16291 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16292 shlibpath_var=LD_LIBRARY_PATH
16293 shlibpath_overrides_runpath=no
16294 hardcode_into_libs=yes
16297 irix5* | irix6* | nonstopux*)
16299 nonstopux*) version_type=nonstopux ;;
16301 if test "$lt_cv_prog_gnu_ld" = yes; then
16309 soname_spec='${libname}${release}${shared_ext}$major'
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16312 irix5* | nonstopux*)
16313 libsuff= shlibsuff=
16316 case $LD in # libtool.m4 will add one of these switches to LD
16317 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16318 libsuff= shlibsuff= libmagic=32-bit;;
16319 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16320 libsuff=32 shlibsuff=N32 libmagic=N32;;
16321 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16322 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16323 *) libsuff= shlibsuff= libmagic=never-match;;
16327 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16328 shlibpath_overrides_runpath=no
16329 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16330 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16331 hardcode_into_libs=yes
16334 # No shared lib support for Linux oldld, aout, or coff.
16335 linux*oldld* | linux*aout* | linux*coff*)
16339 # This must be Linux ELF.
16340 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 shlibpath_overrides_runpath=no
16350 # Some binutils ld are patched to set DT_RUNPATH
16351 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16352 $as_echo_n "(cached) " >&6
16354 lt_cv_shlibpath_overrides_runpath=no
16355 save_LDFLAGS=$LDFLAGS
16356 save_libdir=$libdir
16357 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16358 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16359 if test x$gcc_no_link = xyes; then
16360 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h. */
16373 if ac_fn_cxx_try_link "$LINENO"; then :
16374 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16375 lt_cv_shlibpath_overrides_runpath=yes
16378 rm -f core conftest.err conftest.$ac_objext \
16379 conftest$ac_exeext conftest.$ac_ext
16380 LDFLAGS=$save_LDFLAGS
16381 libdir=$save_libdir
16385 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16387 # This implies no fast_install, which is unacceptable.
16388 # Some rework will be needed to allow for fast_install
16389 # before this can be enabled.
16390 hardcode_into_libs=yes
16392 # Append ld.so.conf contents to the search path
16393 if test -f /etc/ld.so.conf; then
16394 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' ' '`
16395 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16398 # We used to test for /lib/ld.so.1 and disable shared libraries on
16399 # powerpc, because MkLinux only supported shared libraries with the
16400 # GNU dynamic linker. Since this was broken with cross compilers,
16401 # most powerpc-linux boxes support dynamic linking these days and
16402 # people can always --disable-shared, the test was removed, and we
16403 # assume the GNU/Linux dynamic linker is in use.
16404 dynamic_linker='GNU/Linux ld.so'
16411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16414 dynamic_linker='NetBSD (a.out) ld.so'
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 dynamic_linker='NetBSD ld.elf_so'
16420 shlibpath_var=LD_LIBRARY_PATH
16421 shlibpath_overrides_runpath=yes
16422 hardcode_into_libs=yes
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428 shlibpath_var=LD_LIBRARY_PATH
16429 shlibpath_overrides_runpath=yes
16436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16437 soname_spec='${libname}${release}${shared_ext}$major'
16438 shlibpath_var=LD_LIBRARY_PATH
16439 shlibpath_overrides_runpath=no
16440 hardcode_into_libs=yes
16441 dynamic_linker='ldqnx.so'
16446 sys_lib_dlsearch_path_spec="/usr/lib"
16448 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16450 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16451 *) need_version=no ;;
16453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16455 shlibpath_var=LD_LIBRARY_PATH
16456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16458 openbsd2.[89] | openbsd2.[89].*)
16459 shlibpath_overrides_runpath=no
16462 shlibpath_overrides_runpath=yes
16466 shlibpath_overrides_runpath=yes
16471 libname_spec='$name'
16474 library_names_spec='$libname${shared_ext} $libname.a'
16475 dynamic_linker='OS/2 ld.exe'
16476 shlibpath_var=LIBPATH
16479 osf3* | osf4* | osf5*)
16483 soname_spec='${libname}${release}${shared_ext}$major'
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16499 soname_spec='${libname}${release}${shared_ext}$major'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 shlibpath_overrides_runpath=yes
16502 hardcode_into_libs=yes
16503 # ldd complains unless libraries are executable
16504 postinstall_cmds='chmod +x $lib'
16509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16510 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16511 shlibpath_var=LD_LIBRARY_PATH
16512 shlibpath_overrides_runpath=yes
16513 if test "$with_gnu_ld" = yes; then
16521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16522 soname_spec='${libname}${release}${shared_ext}$major'
16523 shlibpath_var=LD_LIBRARY_PATH
16524 case $host_vendor in
16526 shlibpath_overrides_runpath=no
16528 runpath_var=LD_RUN_PATH
16536 shlibpath_overrides_runpath=no
16537 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16543 if test -d /usr/nec ;then
16545 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16546 soname_spec='$libname${shared_ext}.$major'
16547 shlibpath_var=LD_LIBRARY_PATH
16551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16552 version_type=freebsd-elf
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16556 soname_spec='${libname}${release}${shared_ext}$major'
16557 shlibpath_var=LD_LIBRARY_PATH
16558 shlibpath_overrides_runpath=yes
16559 hardcode_into_libs=yes
16560 if test "$with_gnu_ld" = yes; then
16561 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16563 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16566 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16570 sys_lib_dlsearch_path_spec='/usr/lib'
16574 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579 shlibpath_var=LD_LIBRARY_PATH
16580 shlibpath_overrides_runpath=no
16581 hardcode_into_libs=yes
16586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16587 soname_spec='${libname}${release}${shared_ext}$major'
16588 shlibpath_var=LD_LIBRARY_PATH
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16596 $as_echo "$dynamic_linker" >&6; }
16597 test "$dynamic_linker" = no && can_build_shared=no
16599 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16600 if test "$GCC" = yes; then
16601 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16604 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16605 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16607 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16608 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16647 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16648 hardcode_action_CXX=
16649 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16650 test -n "$runpath_var_CXX" ||
16651 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16653 # We can hardcode non-existent directories.
16654 if test "$hardcode_direct_CXX" != no &&
16655 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16656 # have to relink, otherwise we might link with an installed library
16657 # when we should be linking with a yet-to-be-installed one
16658 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16659 test "$hardcode_minus_L_CXX" != no; then
16660 # Linking always hardcodes the temporary library directory.
16661 hardcode_action_CXX=relink
16663 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16664 hardcode_action_CXX=immediate
16667 # We cannot hardcode anything, or else we can only hardcode existing
16669 hardcode_action_CXX=unsupported
16671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16672 $as_echo "$hardcode_action_CXX" >&6; }
16674 if test "$hardcode_action_CXX" = relink ||
16675 test "$inherit_rpath_CXX" = yes; then
16676 # Fast installation is not supported
16677 enable_fast_install=no
16678 elif test "$shlibpath_overrides_runpath" = yes ||
16679 test "$enable_shared" = no; then
16680 # Fast installation is not necessary
16681 enable_fast_install=needless
16690 fi # test -n "$compiler"
16696 with_gnu_ld=$lt_save_with_gnu_ld
16697 lt_cv_path_LDCXX=$lt_cv_path_LD
16698 lt_cv_path_LD=$lt_save_path_LD
16699 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16700 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16701 fi # test "$_lt_caught_CXX_error" != yes
16704 ac_cpp='$CPP $CPPFLAGS'
16705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16721 ac_config_commands="$ac_config_commands libtool"
16726 # Only expand once:
16732 # Extract the first word of "$ac_prog", so it can be a program name with args.
16733 set dummy $ac_prog; ac_word=$2
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16735 $as_echo_n "checking for $ac_word... " >&6; }
16736 if test "${ac_cv_prog_GCJ+set}" = set; then :
16737 $as_echo_n "(cached) " >&6
16739 if test -n "$GCJ"; then
16740 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16743 for as_dir in $PATH
16746 test -z "$as_dir" && as_dir=.
16747 for ac_exec_ext in '' $ac_executable_extensions; do
16748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16749 ac_cv_prog_GCJ="$ac_prog"
16750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16759 GCJ=$ac_cv_prog_GCJ
16760 if test -n "$GCJ"; then
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16762 $as_echo "$GCJ" >&6; }
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16765 $as_echo "no" >&6; }
16769 test -n "$GCJ" && break
16771 test -n "$GCJ" || GCJ="gcj"
16773 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16774 if test "x${GCJFLAGS-unset}" = xunset; then
16779 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16782 $as_echo_n "checking dependency style of $depcc... " >&6; }
16783 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16784 $as_echo_n "(cached) " >&6
16786 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16787 # We make a subdir and do the tests there. Otherwise we can end up
16788 # making bogus files that we don't know about and never remove. For
16789 # instance it was reported that on HP-UX the gcc test will end up
16790 # making a dummy file named `D' -- because `-MD' means `put the output
16793 # Copy depcomp to subdir because otherwise we won't find it if we're
16794 # using a relative directory.
16795 cp "$am_depcomp" conftest.dir
16797 # We will build objects and dependencies in a subdirectory because
16798 # it helps to detect inapplicable dependency modes. For instance
16799 # both Tru64's cc and ICC support -MD to output dependencies as a
16800 # side effect of compilation, but ICC will put the dependencies in
16801 # the current directory while Tru64 will put them in the object
16805 am_cv_GCJ_dependencies_compiler_type=none
16806 if test "$am_compiler_list" = ""; then
16807 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16809 am__universal=false
16812 for depmode in $am_compiler_list; do
16813 # Setup a source with many dependencies, because some compilers
16814 # like to wrap large dependency lists on column 80 (with \), and
16815 # we should not choose a depcomp mode which is confused by this.
16817 # We need to recreate these files for each test, as the compiler may
16818 # overwrite some of them when testing with obscure command lines.
16819 # This happens at least with the AIX C compiler.
16821 for i in 1 2 3 4 5 6; do
16822 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16823 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16824 # Solaris 8's {/usr,}/bin/sh.
16825 touch sub/conftst$i.h
16827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16829 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16830 # mode. It turns out that the SunPro C++ compiler does not properly
16831 # handle `-M -o', and we need to detect this. Also, some Intel
16832 # versions had trouble with output in subdirs
16833 am__obj=sub/conftest.${OBJEXT-o}
16834 am__minus_obj="-o $am__obj"
16837 # This depmode causes a compiler race in universal mode.
16838 test "$am__universal" = false || continue
16841 # after this tag, mechanisms are not by side-effect, so they'll
16842 # only be used when explicitly requested
16843 if test "x$enable_dependency_tracking" = xyes; then
16849 msvisualcpp | msvcmsys)
16850 # This compiler won't grok `-c -o', but also, the minuso test has
16851 # not run yet. These depmodes are late enough in the game, and
16852 # so weak that their functioning should not be impacted.
16853 am__obj=conftest.${OBJEXT-o}
16858 if depmode=$depmode \
16859 source=sub/conftest.c object=$am__obj \
16860 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16861 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16862 >/dev/null 2>conftest.err &&
16863 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16864 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16865 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16867 # icc doesn't choke on unknown options, it will just issue warnings
16868 # or remarks (even with -Werror). So we grep stderr for any message
16869 # that says an option was ignored or not supported.
16870 # When given -MP, icc 7.0 and 7.1 complain thusly:
16871 # icc: Command line warning: ignoring option '-M'; no argument required
16872 # The diagnosis changed in icc 8.0:
16873 # icc: Command line remark: option '-MP' not supported
16874 if (grep 'ignoring option' conftest.err ||
16875 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16876 am_cv_GCJ_dependencies_compiler_type=$depmode
16883 rm -rf conftest.dir
16885 am_cv_GCJ_dependencies_compiler_type=none
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16890 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16891 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16894 test "x$enable_dependency_tracking" != xno \
16895 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16896 am__fastdepGCJ_TRUE=
16897 am__fastdepGCJ_FALSE='#'
16899 am__fastdepGCJ_TRUE='#'
16900 am__fastdepGCJ_FALSE=
16907 # Extract the first word of "$ac_prog", so it can be a program name with args.
16908 set dummy $ac_prog; ac_word=$2
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16910 $as_echo_n "checking for $ac_word... " >&6; }
16911 if test "${ac_cv_prog_GCJ+set}" = set; then :
16912 $as_echo_n "(cached) " >&6
16914 if test -n "$GCJ"; then
16915 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16918 for as_dir in $PATH
16921 test -z "$as_dir" && as_dir=.
16922 for ac_exec_ext in '' $ac_executable_extensions; do
16923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16924 ac_cv_prog_GCJ="$ac_prog"
16925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16934 GCJ=$ac_cv_prog_GCJ
16935 if test -n "$GCJ"; then
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16937 $as_echo "$GCJ" >&6; }
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16940 $as_echo "no" >&6; }
16944 test -n "$GCJ" && break
16946 test -n "$GCJ" || GCJ="gcj"
16948 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16949 if test "x${GCJFLAGS-unset}" = xunset; then
16954 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16957 $as_echo_n "checking dependency style of $depcc... " >&6; }
16958 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16959 $as_echo_n "(cached) " >&6
16961 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16962 # We make a subdir and do the tests there. Otherwise we can end up
16963 # making bogus files that we don't know about and never remove. For
16964 # instance it was reported that on HP-UX the gcc test will end up
16965 # making a dummy file named `D' -- because `-MD' means `put the output
16968 # Copy depcomp to subdir because otherwise we won't find it if we're
16969 # using a relative directory.
16970 cp "$am_depcomp" conftest.dir
16972 # We will build objects and dependencies in a subdirectory because
16973 # it helps to detect inapplicable dependency modes. For instance
16974 # both Tru64's cc and ICC support -MD to output dependencies as a
16975 # side effect of compilation, but ICC will put the dependencies in
16976 # the current directory while Tru64 will put them in the object
16980 am_cv_GCJ_dependencies_compiler_type=none
16981 if test "$am_compiler_list" = ""; then
16982 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16984 am__universal=false
16987 for depmode in $am_compiler_list; do
16988 # Setup a source with many dependencies, because some compilers
16989 # like to wrap large dependency lists on column 80 (with \), and
16990 # we should not choose a depcomp mode which is confused by this.
16992 # We need to recreate these files for each test, as the compiler may
16993 # overwrite some of them when testing with obscure command lines.
16994 # This happens at least with the AIX C compiler.
16996 for i in 1 2 3 4 5 6; do
16997 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16998 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16999 # Solaris 8's {/usr,}/bin/sh.
17000 touch sub/conftst$i.h
17002 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17004 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17005 # mode. It turns out that the SunPro C++ compiler does not properly
17006 # handle `-M -o', and we need to detect this. Also, some Intel
17007 # versions had trouble with output in subdirs
17008 am__obj=sub/conftest.${OBJEXT-o}
17009 am__minus_obj="-o $am__obj"
17012 # This depmode causes a compiler race in universal mode.
17013 test "$am__universal" = false || continue
17016 # after this tag, mechanisms are not by side-effect, so they'll
17017 # only be used when explicitly requested
17018 if test "x$enable_dependency_tracking" = xyes; then
17024 msvisualcpp | msvcmsys)
17025 # This compiler won't grok `-c -o', but also, the minuso test has
17026 # not run yet. These depmodes are late enough in the game, and
17027 # so weak that their functioning should not be impacted.
17028 am__obj=conftest.${OBJEXT-o}
17033 if depmode=$depmode \
17034 source=sub/conftest.c object=$am__obj \
17035 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17036 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17037 >/dev/null 2>conftest.err &&
17038 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17039 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17040 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17041 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17042 # icc doesn't choke on unknown options, it will just issue warnings
17043 # or remarks (even with -Werror). So we grep stderr for any message
17044 # that says an option was ignored or not supported.
17045 # When given -MP, icc 7.0 and 7.1 complain thusly:
17046 # icc: Command line warning: ignoring option '-M'; no argument required
17047 # The diagnosis changed in icc 8.0:
17048 # icc: Command line remark: option '-MP' not supported
17049 if (grep 'ignoring option' conftest.err ||
17050 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17051 am_cv_GCJ_dependencies_compiler_type=$depmode
17058 rm -rf conftest.dir
17060 am_cv_GCJ_dependencies_compiler_type=none
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17065 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17066 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17069 test "x$enable_dependency_tracking" != xno \
17070 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17071 am__fastdepGCJ_TRUE=
17072 am__fastdepGCJ_FALSE='#'
17074 am__fastdepGCJ_TRUE='#'
17075 am__fastdepGCJ_FALSE=
17082 # Source file extension for Java test sources.
17085 # Object file extension for compiled Java test sources.
17089 # Code to be used in simple compile tests
17090 lt_simple_compile_test_code="int some_variable = 0;"
17092 # Code to be used in simple link tests
17093 lt_simple_link_test_code='int main(){return(0);}'
17095 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17102 # If no C compiler was specified, use CC.
17105 # If no C compiler flags were specified, use CFLAGS.
17106 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17108 # Allow CC to be a program name with arguments.
17112 # save warnings/boilerplate of simple test code
17113 ac_outfile=conftest.$ac_objext
17114 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17115 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17116 _lt_compiler_boilerplate=`cat conftest.err`
17119 ac_outfile=conftest.$ac_objext
17120 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17121 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17122 _lt_linker_boilerplate=`cat conftest.err`
17126 # Allow CC to be a program name with arguments.
17130 for cc_temp in $compiler""; do
17132 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17133 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17138 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17141 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17142 archive_cmds_need_lc_GCJ=no
17144 old_archive_cmds_GCJ=$old_archive_cmds
17147 ## There is no encapsulation within the following macros, do not change
17148 ## the running order or otherwise move them around unless you know exactly
17149 ## what you are doing...
17150 if test -n "$compiler"; then
17152 lt_prog_compiler_no_builtin_flag_GCJ=
17154 if test "$GCC" = yes; then
17155 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17158 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17159 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17160 $as_echo_n "(cached) " >&6
17162 lt_cv_prog_compiler_rtti_exceptions=no
17163 ac_outfile=conftest.$ac_objext
17164 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17165 lt_compiler_flag="-fno-rtti -fno-exceptions"
17166 # Insert the option either (1) after the last *FLAGS variable, or
17167 # (2) before a word containing "conftest.", or (3) at the end.
17168 # Note that $ac_compile itself does not contain backslashes and begins
17169 # with a dollar sign (not a hyphen), so the echo should work correctly.
17170 # The option is referenced via a variable to avoid confusing sed.
17171 lt_compile=`echo "$ac_compile" | $SED \
17172 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17174 -e 's:$: $lt_compiler_flag:'`
17175 (eval echo "\"\$as_me:17175: $lt_compile\"" >&5)
17176 (eval "$lt_compile" 2>conftest.err)
17178 cat conftest.err >&5
17179 echo "$as_me:17179: \$? = $ac_status" >&5
17180 if (exit $ac_status) && test -s "$ac_outfile"; then
17181 # The compiler can only warn and ignore the option if not recognized
17182 # So say no if there are warnings other than the usual output.
17183 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17184 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17185 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17186 lt_cv_prog_compiler_rtti_exceptions=yes
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17193 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17195 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17196 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17205 lt_prog_compiler_wl_GCJ=
17206 lt_prog_compiler_pic_GCJ=
17207 lt_prog_compiler_static_GCJ=
17209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17210 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17212 if test "$GCC" = yes; then
17213 lt_prog_compiler_wl_GCJ='-Wl,'
17214 lt_prog_compiler_static_GCJ='-static'
17218 # All AIX code is PIC.
17219 if test "$host_cpu" = ia64; then
17220 # AIX 5 now supports IA64 processor
17221 lt_prog_compiler_static_GCJ='-Bstatic'
17228 # see comment about AmigaOS4 .so support
17229 lt_prog_compiler_pic_GCJ='-fPIC'
17232 # FIXME: we need at least 68020 code to build shared libraries, but
17233 # adding the `-m68020' flag to GCC prevents building anything better,
17235 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17240 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17241 # PIC is the default for these OSes.
17244 mingw* | cygwin* | pw32* | os2* | cegcc*)
17245 # This hack is so that the source file can tell whether it is being
17246 # built for inclusion in a dll (and should export symbols for example).
17247 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17248 # (--disable-auto-import) libraries
17252 darwin* | rhapsody*)
17253 # PIC is the default on this platform
17254 # Common symbols not allowed in MH_DYLIB files
17255 lt_prog_compiler_pic_GCJ='-fno-common'
17259 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17260 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17261 # sets the default TLS model and affects inlining.
17267 lt_prog_compiler_pic_GCJ='-fPIC'
17273 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17274 # Instead, we relocate shared libraries at runtime.
17278 # Just because we use GCC doesn't mean we suddenly get shared libraries
17279 # on systems that don't support them.
17280 lt_prog_compiler_can_build_shared_GCJ=no
17285 # QNX uses GNU C++, but need to define -shared option too, otherwise
17286 # it will coredump.
17287 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17291 if test -d /usr/nec; then
17292 lt_prog_compiler_pic_GCJ=-Kconform_pic
17297 lt_prog_compiler_pic_GCJ='-fPIC'
17301 # PORTME Check for flag to pass linker flags through the system compiler.
17304 lt_prog_compiler_wl_GCJ='-Wl,'
17305 if test "$host_cpu" = ia64; then
17306 # AIX 5 now supports IA64 processor
17307 lt_prog_compiler_static_GCJ='-Bstatic'
17309 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17313 mingw* | cygwin* | pw32* | os2* | cegcc*)
17314 # This hack is so that the source file can tell whether it is being
17315 # built for inclusion in a dll (and should export symbols for example).
17319 hpux9* | hpux10* | hpux11*)
17320 lt_prog_compiler_wl_GCJ='-Wl,'
17321 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17322 # not for PA HP-UX.
17328 lt_prog_compiler_pic_GCJ='+Z'
17331 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17332 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17335 irix5* | irix6* | nonstopux*)
17336 lt_prog_compiler_wl_GCJ='-Wl,'
17337 # PIC (with -KPIC) is the default.
17338 lt_prog_compiler_static_GCJ='-non_shared'
17341 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17342 case $cc_basename in
17343 # old Intel for x86_64 which still supported -KPIC.
17345 lt_prog_compiler_wl_GCJ='-Wl,'
17346 lt_prog_compiler_pic_GCJ='-KPIC'
17347 lt_prog_compiler_static_GCJ='-static'
17349 # icc used to be incompatible with GCC.
17350 # ICC 10 doesn't accept -KPIC any more.
17352 lt_prog_compiler_wl_GCJ='-Wl,'
17353 lt_prog_compiler_pic_GCJ='-fPIC'
17354 lt_prog_compiler_static_GCJ='-static'
17356 # Lahey Fortran 8.1.
17358 lt_prog_compiler_wl_GCJ='-Wl,'
17359 lt_prog_compiler_pic_GCJ='--shared'
17360 lt_prog_compiler_static_GCJ='--static'
17362 pgcc* | pgf77* | pgf90* | pgf95*)
17363 # Portland Group compilers (*not* the Pentium gcc compiler,
17364 # which looks to be a dead project)
17365 lt_prog_compiler_wl_GCJ='-Wl,'
17366 lt_prog_compiler_pic_GCJ='-fpic'
17367 lt_prog_compiler_static_GCJ='-Bstatic'
17370 lt_prog_compiler_wl_GCJ='-Wl,'
17371 # All Alpha code is PIC.
17372 lt_prog_compiler_static_GCJ='-non_shared'
17375 # IBM XL C 8.0/Fortran 10.1 on PPC
17376 lt_prog_compiler_wl_GCJ='-Wl,'
17377 lt_prog_compiler_pic_GCJ='-qpic'
17378 lt_prog_compiler_static_GCJ='-qstaticlink'
17381 case `$CC -V 2>&1 | sed 5q` in
17384 lt_prog_compiler_pic_GCJ='-KPIC'
17385 lt_prog_compiler_static_GCJ='-Bstatic'
17386 lt_prog_compiler_wl_GCJ='-Wl,'
17389 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17390 lt_prog_compiler_pic_GCJ='-KPIC'
17391 lt_prog_compiler_static_GCJ='-Bstatic'
17392 lt_prog_compiler_wl_GCJ=''
17400 lt_prog_compiler_pic_GCJ='-KPIC'
17401 lt_prog_compiler_static_GCJ='-Bstatic'
17405 # QNX uses GNU C++, but need to define -shared option too, otherwise
17406 # it will coredump.
17407 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17410 osf3* | osf4* | osf5*)
17411 lt_prog_compiler_wl_GCJ='-Wl,'
17412 # All OSF/1 code is PIC.
17413 lt_prog_compiler_static_GCJ='-non_shared'
17417 lt_prog_compiler_static_GCJ='-non_shared'
17421 lt_prog_compiler_pic_GCJ='-KPIC'
17422 lt_prog_compiler_static_GCJ='-Bstatic'
17423 case $cc_basename in
17424 f77* | f90* | f95*)
17425 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17427 lt_prog_compiler_wl_GCJ='-Wl,';;
17432 lt_prog_compiler_wl_GCJ='-Qoption ld '
17433 lt_prog_compiler_pic_GCJ='-PIC'
17434 lt_prog_compiler_static_GCJ='-Bstatic'
17437 sysv4 | sysv4.2uw2* | sysv4.3*)
17438 lt_prog_compiler_wl_GCJ='-Wl,'
17439 lt_prog_compiler_pic_GCJ='-KPIC'
17440 lt_prog_compiler_static_GCJ='-Bstatic'
17444 if test -d /usr/nec ;then
17445 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17446 lt_prog_compiler_static_GCJ='-Bstatic'
17450 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17451 lt_prog_compiler_wl_GCJ='-Wl,'
17452 lt_prog_compiler_pic_GCJ='-KPIC'
17453 lt_prog_compiler_static_GCJ='-Bstatic'
17457 lt_prog_compiler_wl_GCJ='-Wl,'
17458 lt_prog_compiler_can_build_shared_GCJ=no
17462 lt_prog_compiler_pic_GCJ='-pic'
17463 lt_prog_compiler_static_GCJ='-Bstatic'
17467 lt_prog_compiler_can_build_shared_GCJ=no
17473 # For platforms which do not support PIC, -DPIC is meaningless:
17475 lt_prog_compiler_pic_GCJ=
17478 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17482 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17487 # Check to make sure the PIC flag actually works.
17489 if test -n "$lt_prog_compiler_pic_GCJ"; then
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17491 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17492 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17493 $as_echo_n "(cached) " >&6
17495 lt_cv_prog_compiler_pic_works_GCJ=no
17496 ac_outfile=conftest.$ac_objext
17497 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17498 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17499 # Insert the option either (1) after the last *FLAGS variable, or
17500 # (2) before a word containing "conftest.", or (3) at the end.
17501 # Note that $ac_compile itself does not contain backslashes and begins
17502 # with a dollar sign (not a hyphen), so the echo should work correctly.
17503 # The option is referenced via a variable to avoid confusing sed.
17504 lt_compile=`echo "$ac_compile" | $SED \
17505 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17506 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17507 -e 's:$: $lt_compiler_flag:'`
17508 (eval echo "\"\$as_me:17508: $lt_compile\"" >&5)
17509 (eval "$lt_compile" 2>conftest.err)
17511 cat conftest.err >&5
17512 echo "$as_me:17512: \$? = $ac_status" >&5
17513 if (exit $ac_status) && test -s "$ac_outfile"; then
17514 # The compiler can only warn and ignore the option if not recognized
17515 # So say no if there are warnings other than the usual output.
17516 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17518 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17519 lt_cv_prog_compiler_pic_works_GCJ=yes
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17526 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17528 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17529 case $lt_prog_compiler_pic_GCJ in
17531 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17534 lt_prog_compiler_pic_GCJ=
17535 lt_prog_compiler_can_build_shared_GCJ=no
17543 # Check to make sure the static flag actually works.
17545 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17547 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17548 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17549 $as_echo_n "(cached) " >&6
17551 lt_cv_prog_compiler_static_works_GCJ=no
17552 save_LDFLAGS="$LDFLAGS"
17553 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17554 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17555 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17556 # The linker can only warn and ignore the option if not recognized
17557 # So say no if there are warnings
17558 if test -s conftest.err; then
17559 # Append any errors to the config.log.
17560 cat conftest.err 1>&5
17561 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17562 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17563 if diff conftest.exp conftest.er2 >/dev/null; then
17564 lt_cv_prog_compiler_static_works_GCJ=yes
17567 lt_cv_prog_compiler_static_works_GCJ=yes
17571 LDFLAGS="$save_LDFLAGS"
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17575 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17577 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17580 lt_prog_compiler_static_GCJ=
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17587 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17588 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17589 $as_echo_n "(cached) " >&6
17591 lt_cv_prog_compiler_c_o_GCJ=no
17592 $RM -r conftest 2>/dev/null
17596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17598 lt_compiler_flag="-o out/conftest2.$ac_objext"
17599 # Insert the option either (1) after the last *FLAGS variable, or
17600 # (2) before a word containing "conftest.", or (3) at the end.
17601 # Note that $ac_compile itself does not contain backslashes and begins
17602 # with a dollar sign (not a hyphen), so the echo should work correctly.
17603 lt_compile=`echo "$ac_compile" | $SED \
17604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17606 -e 's:$: $lt_compiler_flag:'`
17607 (eval echo "\"\$as_me:17607: $lt_compile\"" >&5)
17608 (eval "$lt_compile" 2>out/conftest.err)
17610 cat out/conftest.err >&5
17611 echo "$as_me:17611: \$? = $ac_status" >&5
17612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17614 # The compiler can only warn and ignore the option if not recognized
17615 # So say no if there are warnings
17616 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17617 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17618 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17619 lt_cv_prog_compiler_c_o_GCJ=yes
17624 # SGI C++ compiler will create directory out/ii_files/ for
17625 # template instantiation
17626 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17627 $RM out/* && rmdir out
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17634 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17639 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17640 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17641 $as_echo_n "(cached) " >&6
17643 lt_cv_prog_compiler_c_o_GCJ=no
17644 $RM -r conftest 2>/dev/null
17648 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17650 lt_compiler_flag="-o out/conftest2.$ac_objext"
17651 # Insert the option either (1) after the last *FLAGS variable, or
17652 # (2) before a word containing "conftest.", or (3) at the end.
17653 # Note that $ac_compile itself does not contain backslashes and begins
17654 # with a dollar sign (not a hyphen), so the echo should work correctly.
17655 lt_compile=`echo "$ac_compile" | $SED \
17656 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17657 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17658 -e 's:$: $lt_compiler_flag:'`
17659 (eval echo "\"\$as_me:17659: $lt_compile\"" >&5)
17660 (eval "$lt_compile" 2>out/conftest.err)
17662 cat out/conftest.err >&5
17663 echo "$as_me:17663: \$? = $ac_status" >&5
17664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17666 # The compiler can only warn and ignore the option if not recognized
17667 # So say no if there are warnings
17668 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17669 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17670 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17671 lt_cv_prog_compiler_c_o_GCJ=yes
17676 # SGI C++ compiler will create directory out/ii_files/ for
17677 # template instantiation
17678 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17679 $RM out/* && rmdir out
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17686 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17691 hard_links="nottested"
17692 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17693 # do not overwrite the value of need_locks provided by the user
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17695 $as_echo_n "checking if we can lock with hard links... " >&6; }
17698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17700 ln conftest.a conftest.b 2>&5 || hard_links=no
17701 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17703 $as_echo "$hard_links" >&6; }
17704 if test "$hard_links" = no; then
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17706 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17716 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17719 allow_undefined_flag_GCJ=
17720 always_export_symbols_GCJ=no
17722 archive_expsym_cmds_GCJ=
17723 compiler_needs_object_GCJ=no
17724 enable_shared_with_static_runtimes_GCJ=no
17725 export_dynamic_flag_spec_GCJ=
17726 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17727 hardcode_automatic_GCJ=no
17728 hardcode_direct_GCJ=no
17729 hardcode_direct_absolute_GCJ=no
17730 hardcode_libdir_flag_spec_GCJ=
17731 hardcode_libdir_flag_spec_ld_GCJ=
17732 hardcode_libdir_separator_GCJ=
17733 hardcode_minus_L_GCJ=no
17734 hardcode_shlibpath_var_GCJ=unsupported
17735 inherit_rpath_GCJ=no
17736 link_all_deplibs_GCJ=unknown
17738 module_expsym_cmds_GCJ=
17739 old_archive_from_new_cmds_GCJ=
17740 old_archive_from_expsyms_cmds_GCJ=
17741 thread_safe_flag_spec_GCJ=
17742 whole_archive_flag_spec_GCJ=
17743 # include_expsyms should be a list of space-separated symbols to be *always*
17744 # included in the symbol list
17745 include_expsyms_GCJ=
17746 # exclude_expsyms can be an extended regexp of symbols to exclude
17747 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17748 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17749 # as well as any symbol that contains `d'.
17750 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17751 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17752 # platforms (ab)use it in PIC code, but their linkers get confused if
17753 # the symbol is explicitly referenced. Since portable code cannot
17754 # rely on this symbol name, it's probably fine to never include it in
17755 # preloaded symbol tables.
17756 # Exclude shared library initialization/finalization symbols.
17757 extract_expsyms_cmds=
17760 cygwin* | mingw* | pw32* | cegcc*)
17761 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17762 # When not using gcc, we currently assume that we are using
17763 # Microsoft Visual C++.
17764 if test "$GCC" != yes; then
17769 # we just hope/assume this is gcc and not c89 (= MSVC++)
17778 if test "$with_gnu_ld" = yes; then
17779 # If archive_cmds runs LD, not CC, wlarc should be empty
17782 # Set some defaults for GNU ld with shared library support. These
17783 # are reset later if shared libraries are not supported. Putting them
17784 # here allows them to be overridden if necessary.
17785 runpath_var=LD_RUN_PATH
17786 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17787 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17788 # ancient GNU ld didn't support --whole-archive et. al.
17789 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17790 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17792 whole_archive_flag_spec_GCJ=
17794 supports_anon_versioning=no
17795 case `$LD -v 2>&1` in
17796 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17797 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17798 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17799 *\ 2.11.*) ;; # other 2.11 versions
17800 *) supports_anon_versioning=yes ;;
17803 # See if GNU ld supports shared libraries.
17806 # On AIX/PPC, the GNU linker is very broken
17807 if test "$host_cpu" != ia64; then
17811 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17812 *** to be unable to reliably create shared libraries on AIX.
17813 *** Therefore, libtool is disabling shared libraries support. If you
17814 *** really care for shared libraries, you may want to modify your PATH
17815 *** so that a non-GNU linker is found, and then restart.
17824 # see comment about AmigaOS4 .so support
17825 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17826 archive_expsym_cmds_GCJ=''
17829 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)'
17830 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17831 hardcode_minus_L_GCJ=yes
17837 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17838 allow_undefined_flag_GCJ=unsupported
17839 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17840 # support --undefined. This deserves some investigation. FIXME
17841 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17847 cygwin* | mingw* | pw32* | cegcc*)
17848 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17849 # as there is no search path for DLLs.
17850 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17851 allow_undefined_flag_GCJ=unsupported
17852 always_export_symbols_GCJ=no
17853 enable_shared_with_static_runtimes_GCJ=yes
17854 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17856 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17857 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17858 # If the export-symbols file already is a .def file (1st line
17859 # is EXPORTS), use it as is; otherwise, prepend...
17860 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17861 cp $export_symbols $output_objdir/$soname.def;
17863 echo EXPORTS > $output_objdir/$soname.def;
17864 cat $export_symbols >> $output_objdir/$soname.def;
17866 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17873 hardcode_direct_GCJ=no
17874 hardcode_shlibpath_var_GCJ=no
17875 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17876 export_dynamic_flag_spec_GCJ='${wl}-E'
17877 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17878 # Instead, shared libraries are loaded at an image base (0x10000000 by
17879 # default) and relocated if they conflict, which is a slow very memory
17880 # consuming and fragmenting process. To avoid this, we pick a random,
17881 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17882 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17883 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'
17884 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'
17887 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17889 if test "$host_os" = linux-dietlibc; then
17890 case $cc_basename in
17891 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17894 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17895 && test "$tmp_diet" = no
17898 tmp_sharedflag='-shared'
17899 case $cc_basename,$host_cpu in
17900 pgcc*) # Portland Group C compiler
17901 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'
17902 tmp_addflag=' $pic_flag'
17904 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17905 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'
17906 tmp_addflag=' $pic_flag -Mnomain' ;;
17907 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17908 tmp_addflag=' -i_dynamic' ;;
17909 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17910 tmp_addflag=' -i_dynamic -nofor_main' ;;
17911 ifc* | ifort*) # Intel Fortran compiler
17912 tmp_addflag=' -nofor_main' ;;
17913 lf95*) # Lahey Fortran 8.1
17914 whole_archive_flag_spec_GCJ=
17915 tmp_sharedflag='--shared' ;;
17916 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17917 tmp_sharedflag='-qmkshrobj'
17920 case `$CC -V 2>&1 | sed 5q` in
17921 *Sun\ C*) # Sun C 5.9
17922 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'
17923 compiler_needs_object_GCJ=yes
17924 tmp_sharedflag='-G' ;;
17925 *Sun\ F*) # Sun Fortran 8.3
17926 tmp_sharedflag='-G' ;;
17928 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17930 if test "x$supports_anon_versioning" = xyes; then
17931 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17932 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17933 echo "local: *; };" >> $output_objdir/$libname.ver~
17934 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17937 case $cc_basename in
17939 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17940 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17941 hardcode_libdir_flag_spec_GCJ=
17942 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17943 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17944 if test "x$supports_anon_versioning" = xyes; then
17945 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17946 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17947 echo "local: *; };" >> $output_objdir/$libname.ver~
17948 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17958 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17959 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17962 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17963 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17968 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17972 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17973 *** create shared libraries on Solaris systems. Therefore, libtool
17974 *** is disabling shared libraries support. We urge you to upgrade GNU
17975 *** binutils to release 2.9.1 or newer. Another option is to modify
17976 *** your PATH or compiler configuration so that the native linker is
17977 *** used, and then restart.
17980 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17981 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17982 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17988 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17989 case `$LD -v 2>&1` in
17990 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17994 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17995 *** reliably create shared libraries on SCO systems. Therefore, libtool
17996 *** is disabling shared libraries support. We urge you to upgrade GNU
17997 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17998 *** your PATH or compiler configuration so that the native linker is
17999 *** used, and then restart.
18004 # For security reasons, it is highly recommended that you always
18005 # use absolute paths for naming shared libraries, and exclude the
18006 # DT_RUNPATH tag from executables and libraries. But doing so
18007 # requires that you compile everything twice, which is a pain.
18008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18009 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18010 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18011 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18020 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18022 hardcode_direct_GCJ=yes
18023 hardcode_shlibpath_var_GCJ=no
18027 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18028 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18029 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18036 if test "$ld_shlibs_GCJ" = no; then
18038 hardcode_libdir_flag_spec_GCJ=
18039 export_dynamic_flag_spec_GCJ=
18040 whole_archive_flag_spec_GCJ=
18043 # PORTME fill in a description of your system's linker (not GNU ld)
18046 allow_undefined_flag_GCJ=unsupported
18047 always_export_symbols_GCJ=yes
18048 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'
18049 # Note: this linker hardcodes the directories in LIBPATH if there
18050 # are no directories specified by -L.
18051 hardcode_minus_L_GCJ=yes
18052 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18053 # Neither direct hardcoding nor static linking is supported with a
18055 hardcode_direct_GCJ=unsupported
18060 if test "$host_cpu" = ia64; then
18061 # On IA64, the linker does run time linking by default, so we don't
18062 # have to do anything special.
18063 aix_use_runtimelinking=no
18064 exp_sym_flag='-Bexport'
18067 # If we're using GNU nm, then we don't want the "-C" option.
18068 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18069 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18070 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'
18072 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'
18074 aix_use_runtimelinking=no
18076 # Test if we are trying to use run time linking or normal
18077 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18078 # need to do runtime linking.
18079 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18080 for ld_flag in $LDFLAGS; do
18081 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18082 aix_use_runtimelinking=yes
18089 exp_sym_flag='-bexport'
18090 no_entry_flag='-bnoentry'
18093 # When large executables or shared objects are built, AIX ld can
18094 # have problems creating the table of contents. If linking a library
18095 # or program results in "error TOC overflow" add -mminimal-toc to
18096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18099 archive_cmds_GCJ=''
18100 hardcode_direct_GCJ=yes
18101 hardcode_direct_absolute_GCJ=yes
18102 hardcode_libdir_separator_GCJ=':'
18103 link_all_deplibs_GCJ=yes
18104 file_list_spec_GCJ='${wl}-f,'
18106 if test "$GCC" = yes; then
18107 case $host_os in aix4.[012]|aix4.[012].*)
18108 # We only want to do this on AIX 4.2 and lower, the check
18109 # below for broken collect2 doesn't work under 4.3+
18110 collect2name=`${CC} -print-prog-name=collect2`
18111 if test -f "$collect2name" &&
18112 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18114 # We have reworked collect2
18117 # We have old collect2
18118 hardcode_direct_GCJ=unsupported
18119 # It fails to find uninstalled libraries when the uninstalled
18120 # path is not listed in the libpath. Setting hardcode_minus_L
18121 # to unsupported forces relinking
18122 hardcode_minus_L_GCJ=yes
18123 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18124 hardcode_libdir_separator_GCJ=
18128 shared_flag='-shared'
18129 if test "$aix_use_runtimelinking" = yes; then
18130 shared_flag="$shared_flag "'${wl}-G'
18134 if test "$host_cpu" = ia64; then
18135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18136 # chokes on -Wl,-G. The following line is correct:
18139 if test "$aix_use_runtimelinking" = yes; then
18140 shared_flag='${wl}-G'
18142 shared_flag='${wl}-bM:SRE'
18147 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18148 # It seems that -bexpall does not export symbols beginning with
18149 # underscore (_), so it is better to generate a list of symbols to export.
18150 always_export_symbols_GCJ=yes
18151 if test "$aix_use_runtimelinking" = yes; then
18152 # Warning - without using the other runtime loading flags (-brtl),
18153 # -berok will link without error, but may produce a broken library.
18154 allow_undefined_flag_GCJ='-berok'
18155 # Determine the default libpath from the value encoded in an
18156 # empty executable.
18157 if test x$gcc_no_link = xyes; then
18158 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18161 /* end confdefs.h. */
18171 if ac_fn_c_try_link "$LINENO"; then :
18173 lt_aix_libpath_sed='
18174 /Import File Strings/,/^$/ {
18180 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18181 # Check for a 64-bit object if we didn't find anything.
18182 if test -z "$aix_libpath"; then
18183 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18186 rm -f core conftest.err conftest.$ac_objext \
18187 conftest$ac_exeext conftest.$ac_ext
18188 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18190 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18191 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"
18193 if test "$host_cpu" = ia64; then
18194 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18195 allow_undefined_flag_GCJ="-z nodefs"
18196 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"
18198 # Determine the default libpath from the value encoded in an
18199 # empty executable.
18200 if test x$gcc_no_link = xyes; then
18201 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18204 /* end confdefs.h. */
18214 if ac_fn_c_try_link "$LINENO"; then :
18216 lt_aix_libpath_sed='
18217 /Import File Strings/,/^$/ {
18223 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18224 # Check for a 64-bit object if we didn't find anything.
18225 if test -z "$aix_libpath"; then
18226 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18229 rm -f core conftest.err conftest.$ac_objext \
18230 conftest$ac_exeext conftest.$ac_ext
18231 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18233 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18234 # Warning - without using the other run time loading flags,
18235 # -berok will link without error, but may produce a broken library.
18236 no_undefined_flag_GCJ=' ${wl}-bernotok'
18237 allow_undefined_flag_GCJ=' ${wl}-berok'
18238 # Exported symbols can be pulled into shared objects from archives
18239 whole_archive_flag_spec_GCJ='$convenience'
18240 archive_cmds_need_lc_GCJ=yes
18241 # This is similar to how AIX traditionally builds its shared libraries.
18242 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'
18250 # see comment about AmigaOS4 .so support
18251 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18252 archive_expsym_cmds_GCJ=''
18255 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)'
18256 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18257 hardcode_minus_L_GCJ=yes
18263 export_dynamic_flag_spec_GCJ=-rdynamic
18266 cygwin* | mingw* | pw32* | cegcc*)
18267 # When not using gcc, we currently assume that we are using
18268 # Microsoft Visual C++.
18269 # hardcode_libdir_flag_spec is actually meaningless, as there is
18270 # no search path for DLLs.
18271 hardcode_libdir_flag_spec_GCJ=' '
18272 allow_undefined_flag_GCJ=unsupported
18273 # Tell ltmain to make .lib files, not .a files.
18275 # Tell ltmain to make .dll files, not .so files.
18277 # FIXME: Setting linknames here is a bad hack.
18278 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18279 # The linker will automatically build a .lib file if we build a DLL.
18280 old_archive_from_new_cmds_GCJ='true'
18281 # FIXME: Should let the user specify the lib program.
18282 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18283 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18284 enable_shared_with_static_runtimes_GCJ=yes
18287 darwin* | rhapsody*)
18290 archive_cmds_need_lc_GCJ=no
18291 hardcode_direct_GCJ=no
18292 hardcode_automatic_GCJ=yes
18293 hardcode_shlibpath_var_GCJ=unsupported
18294 whole_archive_flag_spec_GCJ=''
18295 link_all_deplibs_GCJ=yes
18296 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18297 case $cc_basename in
18298 ifort*) _lt_dar_can_shared=yes ;;
18299 *) _lt_dar_can_shared=$GCC ;;
18301 if test "$_lt_dar_can_shared" = "yes"; then
18302 output_verbose_link_cmd=echo
18303 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}"
18304 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18305 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}"
18306 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}"
18315 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18316 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18317 hardcode_shlibpath_var_GCJ=no
18324 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18325 # support. Future versions do this automatically, but an explicit c++rt0.o
18326 # does not break anything, and helps significantly (at the cost of a little
18329 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18330 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18331 hardcode_direct_GCJ=yes
18332 hardcode_shlibpath_var_GCJ=no
18335 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18337 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18338 hardcode_direct_GCJ=yes
18339 hardcode_minus_L_GCJ=yes
18340 hardcode_shlibpath_var_GCJ=no
18343 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18344 freebsd* | dragonfly*)
18345 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18346 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18347 hardcode_direct_GCJ=yes
18348 hardcode_shlibpath_var_GCJ=no
18352 if test "$GCC" = yes; then
18353 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'
18355 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'
18357 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18358 hardcode_libdir_separator_GCJ=:
18359 hardcode_direct_GCJ=yes
18361 # hardcode_minus_L: Not really in the search PATH,
18362 # but as the default location of the library.
18363 hardcode_minus_L_GCJ=yes
18364 export_dynamic_flag_spec_GCJ='${wl}-E'
18368 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18369 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18371 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18373 if test "$with_gnu_ld" = no; then
18374 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18375 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18376 hardcode_libdir_separator_GCJ=:
18377 hardcode_direct_GCJ=yes
18378 hardcode_direct_absolute_GCJ=yes
18379 export_dynamic_flag_spec_GCJ='${wl}-E'
18380 # hardcode_minus_L: Not really in the search PATH,
18381 # but as the default location of the library.
18382 hardcode_minus_L_GCJ=yes
18387 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18390 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18393 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18396 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18402 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18405 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18408 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18412 if test "$with_gnu_ld" = no; then
18413 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18414 hardcode_libdir_separator_GCJ=:
18418 hardcode_direct_GCJ=no
18419 hardcode_shlibpath_var_GCJ=no
18422 hardcode_direct_GCJ=yes
18423 hardcode_direct_absolute_GCJ=yes
18424 export_dynamic_flag_spec_GCJ='${wl}-E'
18426 # hardcode_minus_L: Not really in the search PATH,
18427 # but as the default location of the library.
18428 hardcode_minus_L_GCJ=yes
18434 irix5* | irix6* | nonstopux*)
18435 if test "$GCC" = yes; then
18436 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'
18437 # Try to use the -exported_symbol ld option, if it does not
18438 # work, assume that -exports_file does not work either and
18439 # implicitly export all symbols.
18440 save_LDFLAGS="$LDFLAGS"
18441 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18442 if test x$gcc_no_link = xyes; then
18443 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18446 /* end confdefs.h. */
18449 if ac_fn_c_try_link "$LINENO"; then :
18450 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'
18453 rm -f core conftest.err conftest.$ac_objext \
18454 conftest$ac_exeext conftest.$ac_ext
18455 LDFLAGS="$save_LDFLAGS"
18457 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'
18458 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'
18460 archive_cmds_need_lc_GCJ='no'
18461 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18462 hardcode_libdir_separator_GCJ=:
18463 inherit_rpath_GCJ=yes
18464 link_all_deplibs_GCJ=yes
18468 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18469 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18471 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18473 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18474 hardcode_direct_GCJ=yes
18475 hardcode_shlibpath_var_GCJ=no
18479 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18480 hardcode_direct_GCJ=yes
18481 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18482 hardcode_libdir_separator_GCJ=:
18483 hardcode_shlibpath_var_GCJ=no
18490 if test -f /usr/libexec/ld.so; then
18491 hardcode_direct_GCJ=yes
18492 hardcode_shlibpath_var_GCJ=no
18493 hardcode_direct_absolute_GCJ=yes
18494 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18495 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18496 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18497 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18498 export_dynamic_flag_spec_GCJ='${wl}-E'
18501 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18502 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18503 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18506 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18507 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18517 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18518 hardcode_minus_L_GCJ=yes
18519 allow_undefined_flag_GCJ=unsupported
18520 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'
18521 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18525 if test "$GCC" = yes; then
18526 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18527 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'
18529 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18530 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'
18532 archive_cmds_need_lc_GCJ='no'
18533 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18534 hardcode_libdir_separator_GCJ=:
18537 osf4* | osf5*) # as osf3* with the addition of -msym flag
18538 if test "$GCC" = yes; then
18539 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18540 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'
18541 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18543 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18544 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'
18545 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~
18546 $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'
18548 # Both c and cxx compiler support -rpath directly
18549 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18551 archive_cmds_need_lc_GCJ='no'
18552 hardcode_libdir_separator_GCJ=:
18556 no_undefined_flag_GCJ=' -z defs'
18557 if test "$GCC" = yes; then
18559 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18560 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18561 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18563 case `$CC -V 2>&1` in
18566 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18567 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18568 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18572 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18573 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18574 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18578 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18579 hardcode_shlibpath_var_GCJ=no
18581 solaris2.[0-5] | solaris2.[0-5].*) ;;
18583 # The compiler driver will combine and reorder linker options,
18584 # but understands `-z linker_flag'. GCC discards it without `$wl',
18585 # but is careful enough not to reorder.
18586 # Supported since Solaris 2.6 (maybe 2.5.1?)
18587 if test "$GCC" = yes; then
18588 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18590 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18594 link_all_deplibs_GCJ=yes
18598 if test "x$host_vendor" = xsequent; then
18599 # Use $CC to link under sequent, because it throws in some extra .o
18600 # files that make .init and .fini sections work.
18601 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18603 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18605 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18606 hardcode_direct_GCJ=yes
18607 hardcode_minus_L_GCJ=yes
18608 hardcode_shlibpath_var_GCJ=no
18612 case $host_vendor in
18614 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18615 hardcode_direct_GCJ=yes # is this really true???
18618 ## LD is ld it makes a PLAMLIB
18619 ## CC just makes a GrossModule.
18620 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18621 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18622 hardcode_direct_GCJ=no
18625 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18626 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18629 runpath_var='LD_RUN_PATH'
18630 hardcode_shlibpath_var_GCJ=no
18634 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18635 hardcode_shlibpath_var_GCJ=no
18636 export_dynamic_flag_spec_GCJ='-Bexport'
18640 if test -d /usr/nec; then
18641 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18642 hardcode_shlibpath_var_GCJ=no
18643 runpath_var=LD_RUN_PATH
18644 hardcode_runpath_var=yes
18649 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18650 no_undefined_flag_GCJ='${wl}-z,text'
18651 archive_cmds_need_lc_GCJ=no
18652 hardcode_shlibpath_var_GCJ=no
18653 runpath_var='LD_RUN_PATH'
18655 if test "$GCC" = yes; then
18656 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18657 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18659 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18660 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18664 sysv5* | sco3.2v5* | sco5v6*)
18665 # Note: We can NOT use -z defs as we might desire, because we do not
18666 # link with -lc, and that would cause any symbols used from libc to
18667 # always be unresolved, which means just about no library would
18668 # ever link correctly. If we're not using GNU ld we use -z text
18669 # though, which does catch some bad symbols but isn't as heavy-handed
18671 no_undefined_flag_GCJ='${wl}-z,text'
18672 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18673 archive_cmds_need_lc_GCJ=no
18674 hardcode_shlibpath_var_GCJ=no
18675 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18676 hardcode_libdir_separator_GCJ=':'
18677 link_all_deplibs_GCJ=yes
18678 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18679 runpath_var='LD_RUN_PATH'
18681 if test "$GCC" = yes; then
18682 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18683 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18685 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18686 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18691 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18692 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18693 hardcode_shlibpath_var_GCJ=no
18701 if test x$host_vendor = xsni; then
18703 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18704 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18711 $as_echo "$ld_shlibs_GCJ" >&6; }
18712 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18714 with_gnu_ld_GCJ=$with_gnu_ld
18722 # Do we need to explicitly link libc?
18724 case "x$archive_cmds_need_lc_GCJ" in
18726 # Assume -lc should be added
18727 archive_cmds_need_lc_GCJ=yes
18729 if test "$enable_shared" = yes && test "$GCC" = yes; then
18730 case $archive_cmds_GCJ in
18732 # FIXME: we may have to deal with multi-command sequences.
18735 # Test whether the compiler implicitly links with -lc since on some
18736 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18737 # to ld, don't add -lc before -lgcc.
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18739 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18740 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18741 $as_echo_n "(cached) " >&6
18744 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18747 (eval $ac_compile) 2>&5
18749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18750 test $ac_status = 0; } 2>conftest.err; then
18753 libobjs=conftest.$ac_objext
18755 wl=$lt_prog_compiler_wl_GCJ
18756 pic_flag=$lt_prog_compiler_pic_GCJ
18762 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18763 allow_undefined_flag_GCJ=
18764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18765 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18768 test $ac_status = 0; }
18770 lt_cv_archive_cmds_need_lc_GCJ=no
18772 lt_cv_archive_cmds_need_lc_GCJ=yes
18774 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18776 cat conftest.err 1>&5
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18782 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18783 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18854 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18855 hardcode_action_GCJ=
18856 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18857 test -n "$runpath_var_GCJ" ||
18858 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18860 # We can hardcode non-existent directories.
18861 if test "$hardcode_direct_GCJ" != no &&
18862 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18863 # have to relink, otherwise we might link with an installed library
18864 # when we should be linking with a yet-to-be-installed one
18865 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18866 test "$hardcode_minus_L_GCJ" != no; then
18867 # Linking always hardcodes the temporary library directory.
18868 hardcode_action_GCJ=relink
18870 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18871 hardcode_action_GCJ=immediate
18874 # We cannot hardcode anything, or else we can only hardcode existing
18876 hardcode_action_GCJ=unsupported
18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18879 $as_echo "$hardcode_action_GCJ" >&6; }
18881 if test "$hardcode_action_GCJ" = relink ||
18882 test "$inherit_rpath_GCJ" = yes; then
18883 # Fast installation is not supported
18884 enable_fast_install=no
18885 elif test "$shlibpath_overrides_runpath" = yes ||
18886 test "$enable_shared" = no; then
18887 # Fast installation is not necessary
18888 enable_fast_install=needless
18899 compiler_GCJ=${GCJ-gcj}
18901 ac_cpp='$CPP $CPPFLAGS'
18902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18907 if test "x$CC" != xcc; then
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
18909 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
18912 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
18914 set dummy $CC; ac_cc=`$as_echo "$2" |
18915 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18916 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
18917 $as_echo_n "(cached) " >&6
18919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18920 /* end confdefs.h. */
18930 # Make sure it works both with $CC and with simple cc.
18931 # We do the test twice because some compilers refuse to overwrite an
18932 # existing .o file with -o, though they will create one.
18933 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18935 if { { case "(($ac_try" in
18936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18937 *) ac_try_echo=$ac_try;;
18939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18940 $as_echo "$ac_try_echo"; } >&5
18941 (eval "$ac_try") 2>&5
18943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18944 test $ac_status = 0; } &&
18945 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18947 *) ac_try_echo=$ac_try;;
18949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18950 $as_echo "$ac_try_echo"; } >&5
18951 (eval "$ac_try") 2>&5
18953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18954 test $ac_status = 0; };
18956 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
18957 if test "x$CC" != xcc; then
18958 # Test first that cc exists at all.
18959 if { ac_try='cc -c conftest.$ac_ext >&5'
18960 { { case "(($ac_try" in
18961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18962 *) ac_try_echo=$ac_try;;
18964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18965 $as_echo "$ac_try_echo"; } >&5
18966 (eval "$ac_try") 2>&5
18968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18969 test $ac_status = 0; }; }; then
18970 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18972 if { { case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18977 $as_echo "$ac_try_echo"; } >&5
18978 (eval "$ac_try") 2>&5
18980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18981 test $ac_status = 0; } &&
18982 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18984 *) ac_try_echo=$ac_try;;
18986 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18987 $as_echo "$ac_try_echo"; } >&5
18988 (eval "$ac_try") 2>&5
18990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18991 test $ac_status = 0; };
18996 # cc exists but doesn't like -o.
18997 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19002 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19004 rm -f core conftest*
19007 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19009 $as_echo "yes" >&6; }
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19012 $as_echo "no" >&6; }
19014 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19018 # FIXME: we rely on the cache variable name because
19019 # there is no other way.
19021 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19022 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19023 if test "$am_t" != yes; then
19024 # Losing compiler, so override with the script.
19025 # FIXME: It is wrong to rewrite CC.
19026 # But if we don't then we get into trouble of one sort or another.
19027 # A longer-term fix would be to have automake use am__CC in this case,
19028 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19029 CC="$am_aux_dir/compile $CC"
19036 subdirs="$subdirs classpath libltdl"
19039 # The -no-testsuite modules omit the test subdir.
19040 if test -d $srcdir/testsuite; then
19042 TESTSUBDIR_FALSE='#'
19044 TESTSUBDIR_TRUE='#'
19049 # Should the runtime set system properties by examining the
19050 # environment variable GCJ_PROPERTIES?
19051 # Check whether --enable-getenv-properties was given.
19052 if test "${enable_getenv_properties+set}" = set; then :
19053 enableval=$enable_getenv_properties;
19057 # Whether GCJ_PROPERTIES is used depends on the target.
19058 if test -z "$enable_getenv_properties"; then
19059 enable_getenv_properties=${enable_getenv_properties_default-yes}
19061 if test "$enable_getenv_properties" = no; then
19063 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19067 # Whether we should use arguments to main()
19068 if test -z "$enable_main_args"; then
19069 enable_main_args=${enable_main_args_default-yes}
19071 if test "$enable_main_args" = no; then
19073 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19078 # Should we use hashtable-based synchronization?
19079 # Currently works only for Linux X86/ia64
19080 # Typically faster and more space-efficient
19081 # Check whether --enable-hash-synchronization was given.
19082 if test "${enable_hash_synchronization+set}" = set; then :
19083 enableval=$enable_hash_synchronization;
19087 if test -z "$enable_hash_synchronization"; then
19088 enable_hash_synchronization=$enable_hash_synchronization_default
19096 # Check whether --with-ecj-jar was given.
19097 if test "${with_ecj_jar+set}" = set; then :
19098 withval=$with_ecj_jar; ECJ_JAR=$withval
19100 if test -f $multi_basedir/ecj.jar; then
19101 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19102 ECJ_JAR='$(jardir)/ecj.jar'
19103 install_ecj_jar=yes
19109 if test "$ECJ_JAR" != ""; then
19111 BUILD_ECJ1_FALSE='#'
19113 BUILD_ECJ1_TRUE='#'
19117 if test $install_ecj_jar = yes; then
19118 INSTALL_ECJ_JAR_TRUE=
19119 INSTALL_ECJ_JAR_FALSE='#'
19121 INSTALL_ECJ_JAR_TRUE='#'
19122 INSTALL_ECJ_JAR_FALSE=
19127 # Check whether --with-java-home was given.
19128 if test "${with_java_home+set}" = set; then :
19129 withval=$with_java_home; JAVA_HOME="${withval}"
19134 if test ! -z "$JAVA_HOME"; then
19135 JAVA_HOME_SET_TRUE=
19136 JAVA_HOME_SET_FALSE='#'
19138 JAVA_HOME_SET_TRUE='#'
19139 JAVA_HOME_SET_FALSE=
19144 suppress_libgcj_bc=no
19145 # Check whether --enable-libgcj-bc was given.
19146 if test "${enable_libgcj_bc+set}" = set; then :
19147 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19148 suppress_libgcj_bc=yes
19152 if test "$suppress_libgcj_bc" = "yes"; then
19153 SUPPRESS_LIBGCJ_BC_TRUE=
19154 SUPPRESS_LIBGCJ_BC_FALSE='#'
19156 SUPPRESS_LIBGCJ_BC_TRUE='#'
19157 SUPPRESS_LIBGCJ_BC_FALSE=
19161 build_libgcj_reduced_reflection=no
19162 # Check whether --enable-reduced-reflection was given.
19163 if test "${enable_reduced_reflection+set}" = set; then :
19164 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19165 build_libgcj_reduced_reflection=yes
19169 if test "$build_libgcj_reduced_reflection" = "yes"; then
19170 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19171 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19173 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19174 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19178 # What is the native OS API for MinGW?
19180 # Check whether --with-win32-nlsapi was given.
19181 if test "${with_win32_nlsapi+set}" = set; then :
19182 withval=$with_win32_nlsapi; case "${withval}" in
19183 ansi) with_win32_nlsapi=ansi ;;
19184 unicows) with_win32_nlsapi=unicows ;;
19185 unicode) with_win32_nlsapi=unicode ;;
19186 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19189 with_win32_nlsapi=ansi
19193 case "${with_win32_nlsapi}" in
19196 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19201 # configure.host sets slow_pthread_self if the synchronization code should
19202 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19203 if test "${slow_pthread_self}" = "yes"; then
19205 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19209 # Check for gc debugging. This option is handled both here and in the GC.
19210 # Check whether --enable-gc-debug was given.
19211 if test "${enable_gc_debug+set}" = set; then :
19212 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19214 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19220 # See if the user has the interpreter included.
19221 # Check whether --enable-interpreter was given.
19222 if test "${enable_interpreter+set}" = set; then :
19223 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19224 # This can also be set in configure.host.
19225 libgcj_interpreter=yes
19226 elif test "$enable_interpreter" = no; then
19227 libgcj_interpreter=no
19232 if test "$libgcj_interpreter" = yes; then
19234 $as_echo "#define INTERPRETER 1" >>confdefs.h
19237 INTERPRETER="$libgcj_interpreter"
19239 if test "$libgcj_interpreter" = yes; then
19241 INTERPRETER_FALSE='#'
19243 INTERPRETER_TRUE='#'
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19249 $as_echo_n "checking for exception model to use... " >&6; }
19251 ac_cpp='$CXXCPP $CPPFLAGS'
19252 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19253 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19254 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19256 # Check whether --enable-sjlj-exceptions was given.
19257 if test "${enable_sjlj_exceptions+set}" = set; then :
19258 enableval=$enable_sjlj_exceptions; :
19260 cat > conftest.$ac_ext << EOF
19261 #line 19261 "configure"
19262 struct S { ~S(); };
19270 old_CXXFLAGS="$CXXFLAGS"
19272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19273 (eval $ac_compile) 2>&5
19275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19276 test $ac_status = 0; }; then
19277 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19278 enable_sjlj_exceptions=yes
19279 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19280 enable_sjlj_exceptions=no
19281 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19283 enable_sjlj_exceptions=no
19286 CXXFLAGS="$old_CXXFLAGS"
19290 if test x$enable_sjlj_exceptions = xyes; then
19292 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19294 ac_exception_model_name=sjlj
19295 elif test x$enable_sjlj_exceptions = xno; then
19296 ac_exception_model_name="call frame"
19298 as_fn_error "unable to detect exception model" "$LINENO" 5
19301 ac_cpp='$CPP $CPPFLAGS'
19302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19307 $as_echo "$ac_exception_model_name" >&6; }
19309 # If we are non using SJLJ exceptions, and this host does not have support
19310 # for unwinding from a signal handler, enable checked dereferences and divides.
19311 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19312 CHECKREFSPEC=-fcheck-references
19313 DIVIDESPEC=-fuse-divide-subroutine
19317 # See if the user wants to disable java.net. This is the mildly
19318 # ugly way that we admit that target-side configuration sucks.
19319 # Check whether --enable-java-net was given.
19320 if test "${enable_java_net+set}" = set; then :
19321 enableval=$enable_java_net;
19325 # Whether java.net is built by default can depend on the target.
19326 if test -z "$enable_java_net"; then
19327 enable_java_net=${enable_java_net_default-yes}
19329 if test "$enable_java_net" = no; then
19331 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19335 # See if the user wants to configure without libffi. Some
19336 # architectures don't support it, and default values are set in
19339 # Check whether --with-libffi was given.
19340 if test "${with_libffi+set}" = set; then :
19341 withval=$with_libffi; :
19343 with_libffi=${with_libffi_default-yes}
19349 if test "$with_libffi" != no; then
19351 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19353 LIBFFI=../libffi/libffi_convenience.la
19354 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19359 # See if the user wants to disable JVMPI support.
19360 # Check whether --enable-jvmpi was given.
19361 if test "${enable_jvmpi+set}" = set; then :
19362 enableval=$enable_jvmpi;
19366 if test "$enable_jvmpi" != no; then
19368 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19372 # If the target is an eCos system, use the appropriate eCos
19374 # FIXME: this should not be a local option but a global target
19375 # system; at present there is no eCos target.
19376 TARGET_ECOS=${PROCESS-"no"}
19378 # Check whether --with-ecos was given.
19379 if test "${with_ecos+set}" = set; then :
19380 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19385 case "$TARGET_ECOS" in
19386 no) case "$host" in
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19393 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19394 LD_PROG=`$CC --print-prog-name=ld`
19395 LD_VERSION=`$LD_PROG --version`
19396 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19397 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19398 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19401 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19405 if test "x$LD_OK" != x; then
19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19407 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19410 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19412 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19414 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19429 $as_echo "#define ECOS 1" >>confdefs.h
19435 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19439 /* end confdefs.h. */
19440 #include <stdint.h>
19443 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19444 $EGREP "uint32_t" >/dev/null 2>&1; then :
19446 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h. */
19453 #include <inttypes.h>
19456 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19457 $EGREP "uint32_t" >/dev/null 2>&1; then :
19459 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19465 /* end confdefs.h. */
19466 #include <sys/types.h>
19469 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19470 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19472 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19478 /* end confdefs.h. */
19479 #include <sys/config.h>
19482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19483 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19485 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19491 if test "$PLATFORM" = Win32; then
19492 USING_WIN32_PLATFORM_TRUE=
19493 USING_WIN32_PLATFORM_FALSE='#'
19495 USING_WIN32_PLATFORM_TRUE='#'
19496 USING_WIN32_PLATFORM_FALSE=
19499 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19500 USING_POSIX_PLATFORM_TRUE=
19501 USING_POSIX_PLATFORM_FALSE='#'
19503 USING_POSIX_PLATFORM_TRUE='#'
19504 USING_POSIX_PLATFORM_FALSE=
19509 *-darwin*) DARWIN_CRT=true ;;
19510 *) DARWIN_CRT=false ;;
19512 if $DARWIN_CRT; then
19513 USING_DARWIN_CRT_TRUE=
19514 USING_DARWIN_CRT_FALSE='#'
19516 USING_DARWIN_CRT_TRUE='#'
19517 USING_DARWIN_CRT_FALSE=
19521 # This may not be defined in a non-ANS conformant embedded system.
19522 # FIXME: Should these case a runtime exception in that case?
19523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19524 /* end confdefs.h. */
19528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19529 $EGREP "localtime" >/dev/null 2>&1; then :
19531 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19537 # Create the subdirectory for natFile.cc, or the attempt
19538 # to create the link will fail.
19539 test -d java || mkdir java
19540 test -d java/io || mkdir java/io
19541 test -d gnu || mkdir gnu
19542 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19545 # Likewise for natConcreteProcess.cc.
19546 test -d java/lang || mkdir java/lang
19547 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19550 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19551 test -d java/net || mkdir java/net
19552 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19554 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19557 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19558 test -d gnu/java || mkdir gnu/java
19559 test -d gnu/java/net || mkdir gnu/java/net
19560 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19562 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19565 # Likewise for natVMPipe.cc and natVMSelector.cc.
19566 test -d gnu/java/nio || mkdir gnu/java/nio
19567 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19569 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19572 # Likewise for natFileChannelImpl.cc
19573 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19574 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19577 # Likewise for natVMSecureRandom.cc
19578 test -d gnu/java/security || mkdir gnu/java/security
19579 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19580 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19581 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19586 SYSTEMSPEC="-lgdi32 -lws2_32"
19587 if test "${with_win32_nlsapi}" = "unicows"; then
19588 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19598 # Check whether --with-system-zlib was given.
19599 if test "${with_system_zlib+set}" = set; then :
19600 withval=$with_system_zlib;
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19609 $as_echo_n "checking for X... " >&6; }
19612 # Check whether --with-x was given.
19613 if test "${with_x+set}" = set; then :
19617 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19618 if test "x$with_x" = xno; then
19619 # The user explicitly disabled X.
19622 case $x_includes,$x_libraries in #(
19623 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19624 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19625 $as_echo_n "(cached) " >&6
19627 # One or both of the vars are not set, and there is no cached value.
19628 ac_x_includes=no ac_x_libraries=no
19629 rm -f -r conftest.dir
19630 if mkdir conftest.dir; then
19632 cat >Imakefile <<'_ACEOF'
19634 @echo incroot='${INCROOT}'
19636 @echo usrlibdir='${USRLIBDIR}'
19638 @echo libdir='${LIBDIR}'
19640 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19641 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19642 for ac_var in incroot usrlibdir libdir; do
19643 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19645 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19646 for ac_extension in a so sl dylib la dll; do
19647 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19648 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19649 ac_im_usrlibdir=$ac_im_libdir; break
19652 # Screen out bogus values from the imake configuration. They are
19653 # bogus both because they are the default anyway, and because
19654 # using them would break gcc on systems where it needs fixed includes.
19655 case $ac_im_incroot in
19656 /usr/include) ac_x_includes= ;;
19657 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19659 case $ac_im_usrlibdir in
19660 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19661 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19665 rm -f -r conftest.dir
19668 # Standard set of common directories for X headers.
19669 # Check X11 before X11Rn because it is often a symlink to the current release.
19683 /usr/local/X11/include
19684 /usr/local/X11R7/include
19685 /usr/local/X11R6/include
19686 /usr/local/X11R5/include
19687 /usr/local/X11R4/include
19689 /usr/local/include/X11
19690 /usr/local/include/X11R7
19691 /usr/local/include/X11R6
19692 /usr/local/include/X11R5
19693 /usr/local/include/X11R4
19697 /usr/XFree86/include/X11
19701 /usr/unsupported/include
19702 /usr/athena/include
19703 /usr/local/x11r5/include
19704 /usr/lpp/Xamples/include
19706 /usr/openwin/include
19707 /usr/openwin/share/include'
19709 if test "$ac_x_includes" = no; then
19710 # Guess where to find include files, by looking for Xlib.h.
19711 # First, try using that file with no special directory specified.
19712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19713 /* end confdefs.h. */
19714 #include <X11/Xlib.h>
19716 if ac_fn_c_try_cpp "$LINENO"; then :
19717 # We can compile using X headers with no special include directory.
19720 for ac_dir in $ac_x_header_dirs; do
19721 if test -r "$ac_dir/X11/Xlib.h"; then
19722 ac_x_includes=$ac_dir
19727 rm -f conftest.err conftest.$ac_ext
19728 fi # $ac_x_includes = no
19730 if test "$ac_x_libraries" = no; then
19731 # Check for the libraries.
19732 # See if we find them without any special options.
19733 # Don't add to $LIBS permanently.
19736 if test x$gcc_no_link = xyes; then
19737 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19740 /* end confdefs.h. */
19741 #include <X11/Xlib.h>
19750 if ac_fn_c_try_link "$LINENO"; then :
19752 # We can link X programs with no special library path.
19756 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19758 # Don't even attempt the hair of trying to link an X program!
19759 for ac_extension in a so sl dylib la dll; do
19760 if test -r "$ac_dir/libX11.$ac_extension"; then
19761 ac_x_libraries=$ac_dir
19767 rm -f core conftest.err conftest.$ac_objext \
19768 conftest$ac_exeext conftest.$ac_ext
19769 fi # $ac_x_libraries = no
19771 case $ac_x_includes,$ac_x_libraries in #(
19772 no,* | *,no | *\'*)
19773 # Didn't find X, or a directory has "'" in its name.
19774 ac_cv_have_x="have_x=no";; #(
19776 # Record where we found X for the cache.
19777 ac_cv_have_x="have_x=yes\
19778 ac_x_includes='$ac_x_includes'\
19779 ac_x_libraries='$ac_x_libraries'"
19785 eval "$ac_cv_have_x"
19788 if test "$have_x" != yes; then
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19790 $as_echo "$have_x" >&6; }
19793 # If each of the values was on the command line, it overrides each guess.
19794 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19795 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19796 # Update the cache value to reflect the command line values.
19797 ac_cv_have_x="have_x=yes\
19798 ac_x_includes='$x_includes'\
19799 ac_x_libraries='$x_libraries'"
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19801 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19804 if test "$no_x" = yes; then
19805 # Not all programs may use this symbol, but it does not hurt to define it.
19807 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19809 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19811 if test -n "$x_includes"; then
19812 X_CFLAGS="$X_CFLAGS -I$x_includes"
19815 # It would also be nice to do this for all -L options, not just this one.
19816 if test -n "$x_libraries"; then
19817 X_LIBS="$X_LIBS -L$x_libraries"
19818 # For Solaris; some versions of Sun CC require a space after -R and
19819 # others require no space. Words are not sufficient . . . .
19820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19821 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19822 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19823 ac_xsave_c_werror_flag=$ac_c_werror_flag
19824 ac_c_werror_flag=yes
19825 if test x$gcc_no_link = xyes; then
19826 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19829 /* end confdefs.h. */
19839 if ac_fn_c_try_link "$LINENO"; then :
19840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19841 $as_echo "no" >&6; }
19842 X_LIBS="$X_LIBS -R$x_libraries"
19844 LIBS="$ac_xsave_LIBS -R $x_libraries"
19845 if test x$gcc_no_link = xyes; then
19846 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19849 /* end confdefs.h. */
19859 if ac_fn_c_try_link "$LINENO"; then :
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19861 $as_echo "yes" >&6; }
19862 X_LIBS="$X_LIBS -R $x_libraries"
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19865 $as_echo "neither works" >&6; }
19867 rm -f core conftest.err conftest.$ac_objext \
19868 conftest$ac_exeext conftest.$ac_ext
19870 rm -f core conftest.err conftest.$ac_objext \
19871 conftest$ac_exeext conftest.$ac_ext
19872 ac_c_werror_flag=$ac_xsave_c_werror_flag
19873 LIBS=$ac_xsave_LIBS
19876 # Check for system-dependent libraries X programs must link with.
19877 # Do this before checking for the system-independent R6 libraries
19878 # (-lICE), since we may need -lsocket or whatever for X linking.
19880 if test "$ISC" = yes; then
19881 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19883 # Martyn Johnson says this is needed for Ultrix, if the X
19884 # libraries were built with DECnet support. And Karl Berry says
19885 # the Alpha needs dnet_stub (dnet does not exist).
19886 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19887 if test x$gcc_no_link = xyes; then
19888 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19891 /* end confdefs.h. */
19893 /* Override any GCC internal prototype to avoid an error.
19894 Use char because int might match the return type of a GCC
19895 builtin and then its argument prototype would still apply. */
19899 char XOpenDisplay ();
19903 return XOpenDisplay ();
19908 if ac_fn_c_try_link "$LINENO"; then :
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19912 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19913 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19914 $as_echo_n "(cached) " >&6
19916 ac_check_lib_save_LIBS=$LIBS
19917 LIBS="-ldnet $LIBS"
19918 if test x$gcc_no_link = xyes; then
19919 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19922 /* end confdefs.h. */
19924 /* Override any GCC internal prototype to avoid an error.
19925 Use char because int might match the return type of a GCC
19926 builtin and then its argument prototype would still apply. */
19934 return dnet_ntoa ();
19939 if ac_fn_c_try_link "$LINENO"; then :
19940 ac_cv_lib_dnet_dnet_ntoa=yes
19942 ac_cv_lib_dnet_dnet_ntoa=no
19944 rm -f core conftest.err conftest.$ac_objext \
19945 conftest$ac_exeext conftest.$ac_ext
19946 LIBS=$ac_check_lib_save_LIBS
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19949 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19950 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19951 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19954 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19956 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19957 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19958 $as_echo_n "(cached) " >&6
19960 ac_check_lib_save_LIBS=$LIBS
19961 LIBS="-ldnet_stub $LIBS"
19962 if test x$gcc_no_link = xyes; then
19963 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19966 /* end confdefs.h. */
19968 /* Override any GCC internal prototype to avoid an error.
19969 Use char because int might match the return type of a GCC
19970 builtin and then its argument prototype would still apply. */
19978 return dnet_ntoa ();
19983 if ac_fn_c_try_link "$LINENO"; then :
19984 ac_cv_lib_dnet_stub_dnet_ntoa=yes
19986 ac_cv_lib_dnet_stub_dnet_ntoa=no
19988 rm -f core conftest.err conftest.$ac_objext \
19989 conftest$ac_exeext conftest.$ac_ext
19990 LIBS=$ac_check_lib_save_LIBS
19992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19993 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19994 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19995 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20000 rm -f core conftest.err conftest.$ac_objext \
20001 conftest$ac_exeext conftest.$ac_ext
20002 LIBS="$ac_xsave_LIBS"
20004 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20005 # to get the SysV transport functions.
20006 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20008 # The nsl library prevents programs from opening the X display
20009 # on Irix 5.2, according to T.E. Dickey.
20010 # The functions gethostbyname, getservbyname, and inet_addr are
20011 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20012 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20013 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20017 if test $ac_cv_func_gethostbyname = no; then
20018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20019 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20020 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20021 $as_echo_n "(cached) " >&6
20023 ac_check_lib_save_LIBS=$LIBS
20025 if test x$gcc_no_link = xyes; then
20026 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20029 /* end confdefs.h. */
20031 /* Override any GCC internal prototype to avoid an error.
20032 Use char because int might match the return type of a GCC
20033 builtin and then its argument prototype would still apply. */
20037 char gethostbyname ();
20041 return gethostbyname ();
20046 if ac_fn_c_try_link "$LINENO"; then :
20047 ac_cv_lib_nsl_gethostbyname=yes
20049 ac_cv_lib_nsl_gethostbyname=no
20051 rm -f core conftest.err conftest.$ac_objext \
20052 conftest$ac_exeext conftest.$ac_ext
20053 LIBS=$ac_check_lib_save_LIBS
20055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20056 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20057 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20058 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20061 if test $ac_cv_lib_nsl_gethostbyname = no; then
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20063 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20064 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20065 $as_echo_n "(cached) " >&6
20067 ac_check_lib_save_LIBS=$LIBS
20069 if test x$gcc_no_link = xyes; then
20070 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20073 /* end confdefs.h. */
20075 /* Override any GCC internal prototype to avoid an error.
20076 Use char because int might match the return type of a GCC
20077 builtin and then its argument prototype would still apply. */
20081 char gethostbyname ();
20085 return gethostbyname ();
20090 if ac_fn_c_try_link "$LINENO"; then :
20091 ac_cv_lib_bsd_gethostbyname=yes
20093 ac_cv_lib_bsd_gethostbyname=no
20095 rm -f core conftest.err conftest.$ac_objext \
20096 conftest$ac_exeext conftest.$ac_ext
20097 LIBS=$ac_check_lib_save_LIBS
20099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20100 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20101 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20102 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20108 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20109 # socket/setsockopt and other routines are undefined under SCO ODT
20110 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20111 # on later versions), says Simon Leinen: it contains gethostby*
20112 # variants that don't use the name server (or something). -lsocket
20113 # must be given before -lnsl if both are needed. We assume that
20114 # if connect needs -lnsl, so does gethostbyname.
20115 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20116 if test "x$ac_cv_func_connect" = x""yes; then :
20120 if test $ac_cv_func_connect = no; then
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20122 $as_echo_n "checking for connect in -lsocket... " >&6; }
20123 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20124 $as_echo_n "(cached) " >&6
20126 ac_check_lib_save_LIBS=$LIBS
20127 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20128 if test x$gcc_no_link = xyes; then
20129 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20132 /* end confdefs.h. */
20134 /* Override any GCC internal prototype to avoid an error.
20135 Use char because int might match the return type of a GCC
20136 builtin and then its argument prototype would still apply. */
20149 if ac_fn_c_try_link "$LINENO"; then :
20150 ac_cv_lib_socket_connect=yes
20152 ac_cv_lib_socket_connect=no
20154 rm -f core conftest.err conftest.$ac_objext \
20155 conftest$ac_exeext conftest.$ac_ext
20156 LIBS=$ac_check_lib_save_LIBS
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20159 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20160 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20161 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20166 # Guillermo Gomez says -lposix is necessary on A/UX.
20167 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20168 if test "x$ac_cv_func_remove" = x""yes; then :
20172 if test $ac_cv_func_remove = no; then
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20174 $as_echo_n "checking for remove in -lposix... " >&6; }
20175 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20176 $as_echo_n "(cached) " >&6
20178 ac_check_lib_save_LIBS=$LIBS
20179 LIBS="-lposix $LIBS"
20180 if test x$gcc_no_link = xyes; then
20181 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20184 /* end confdefs.h. */
20186 /* Override any GCC internal prototype to avoid an error.
20187 Use char because int might match the return type of a GCC
20188 builtin and then its argument prototype would still apply. */
20201 if ac_fn_c_try_link "$LINENO"; then :
20202 ac_cv_lib_posix_remove=yes
20204 ac_cv_lib_posix_remove=no
20206 rm -f core conftest.err conftest.$ac_objext \
20207 conftest$ac_exeext conftest.$ac_ext
20208 LIBS=$ac_check_lib_save_LIBS
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20211 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20212 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20218 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20219 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20220 if test "x$ac_cv_func_shmat" = x""yes; then :
20224 if test $ac_cv_func_shmat = no; then
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20226 $as_echo_n "checking for shmat in -lipc... " >&6; }
20227 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20228 $as_echo_n "(cached) " >&6
20230 ac_check_lib_save_LIBS=$LIBS
20232 if test x$gcc_no_link = xyes; then
20233 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20236 /* end confdefs.h. */
20238 /* Override any GCC internal prototype to avoid an error.
20239 Use char because int might match the return type of a GCC
20240 builtin and then its argument prototype would still apply. */
20253 if ac_fn_c_try_link "$LINENO"; then :
20254 ac_cv_lib_ipc_shmat=yes
20256 ac_cv_lib_ipc_shmat=no
20258 rm -f core conftest.err conftest.$ac_objext \
20259 conftest$ac_exeext conftest.$ac_ext
20260 LIBS=$ac_check_lib_save_LIBS
20262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20263 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20264 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20265 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20271 # Check for libraries that X11R6 Xt/Xaw programs need.
20272 ac_save_LDFLAGS=$LDFLAGS
20273 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20274 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20275 # check for ICE first), but we must link in the order -lSM -lICE or
20276 # we get undefined symbols. So assume we have SM if we have ICE.
20277 # These have to be linked with before -lX11, unlike the other
20278 # libraries we check for below, so use a different variable.
20279 # John Interrante, Karl Berry
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20281 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20282 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20283 $as_echo_n "(cached) " >&6
20285 ac_check_lib_save_LIBS=$LIBS
20286 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20287 if test x$gcc_no_link = xyes; then
20288 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h. */
20293 /* Override any GCC internal prototype to avoid an error.
20294 Use char because int might match the return type of a GCC
20295 builtin and then its argument prototype would still apply. */
20299 char IceConnectionNumber ();
20303 return IceConnectionNumber ();
20308 if ac_fn_c_try_link "$LINENO"; then :
20309 ac_cv_lib_ICE_IceConnectionNumber=yes
20311 ac_cv_lib_ICE_IceConnectionNumber=no
20313 rm -f core conftest.err conftest.$ac_objext \
20314 conftest$ac_exeext conftest.$ac_ext
20315 LIBS=$ac_check_lib_save_LIBS
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20318 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20319 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20320 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20323 LDFLAGS=$ac_save_LDFLAGS
20328 # FIXME: this should be _libs on some hosts.
20331 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20334 # extra LD Flags which are required for targets
20337 # For now we have to disable it on darwin[8-9] because it slows down
20338 # the linking phase. A possible bug in ld?
20339 # on Darwin -single_module speeds up loading of the dynamic libraries.
20340 extra_ldflags_libjava=-Wl,-single_module
20343 extra_gij_ldflags=-Wl,-allow_stack_execute
20346 # Some of the ARM unwinder code is actually in libstdc++. We
20347 # could in principle replicate it in libgcj, but it's better to
20348 # have a dependency on libstdc++.
20349 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20350 LIBSTDCXXSPEC=-lstdc++
20351 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20354 extra_ldflags_libjava=-liconv
20364 # Allow the GC to be disabled. Can be useful when debugging.
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20366 $as_echo_n "checking for garbage collector to use... " >&6; }
20367 # Check whether --enable-java-gc was given.
20368 if test "${enable_java_gc+set}" = set; then :
20369 enableval=$enable_java_gc; GC=$enableval
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20383 $as_echo "boehm" >&6; }
20384 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20385 JC1GCSPEC='-fuse-boehm-gc'
20386 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20387 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20390 # The POSIX thread support needs to know this.
20392 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20397 $as_echo "none" >&6; }
20401 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20410 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20412 if test "$GC" = boehm; then
20413 USING_BOEHMGC_TRUE=
20414 USING_BOEHMGC_FALSE='#'
20416 USING_BOEHMGC_TRUE='#'
20417 USING_BOEHMGC_FALSE=
20420 if test "$GC" = no; then
20422 USING_NOGC_FALSE='#'
20424 USING_NOGC_TRUE='#'
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20431 $as_echo_n "checking for thread model used by GCC... " >&6; }
20432 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20434 $as_echo "$THREADS" >&6; }
20437 no | none | single)
20440 aix | posix | posix95 | pthreads)
20445 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20452 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20453 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20456 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20467 THREADSTARTFILESPEC=
20472 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20474 *-*-freebsd[1234]*)
20475 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20476 # merely adds pthread_* functions) but it does have a -pthread switch
20477 # which is required at link-time to select -lc_r *instead* of -lc.
20478 THREADLDFLAGS=-pthread
20479 # Don't set THREADSPEC here as might be expected since -pthread is
20480 # not processed when found within a spec file, it must come from
20481 # the command line. For now, the user must provide the -pthread
20482 # switch to link code compiled with gcj. In future, consider adding
20483 # support for weak references to pthread_* functions ala gthr.h API.
20484 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20487 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20488 # systems which support threads and -lpthread.
20489 THREADLDFLAGS=-pthread
20490 THREADSPEC=-lpthread
20492 alpha*-dec-osf* | hppa*-hp-hpux*)
20493 THREADCXXFLAGS=-pthread
20494 # boehm-gc needs some functions from librt, so link that too.
20495 THREADLIBS='-lpthread -lrt'
20496 THREADSPEC='-lpthread -lrt'
20499 THREADLIBS=-lpthread
20500 THREADSPEC=-lpthread
20503 THREADH=posix-threads.h
20504 # MIT pthreads doesn't seem to have the mutexattr functions.
20505 # But for now we don't check for it. We just assume you aren't
20506 # using MIT pthreads.
20508 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20511 # If we're using the Boehm GC, then we happen to know that it
20512 # defines _REENTRANT, so we don't bother. Eww.
20513 if test "$GC" != boehm; then
20515 $as_echo "#define _REENTRANT 1" >>confdefs.h
20519 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20524 THREADH=win32-threads.h
20525 THREADCXXFLAGS=-mthreads
20526 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20527 # But we do not want the executables created to be dependent on
20528 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20529 # exception handling contexts. The following kludge achieves this effect
20530 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20531 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20532 # A workaround is to explicitly use -mthreads while linking Java programs.
20533 # See PR libgcj/28263.
20535 # FIXME: In Java we are able to detect thread death at the end of
20536 # Thread.run() so we should be able to clean up the exception handling
20537 # contexts ourselves.
20538 THREADSTARTFILESPEC='crtmt%O%s'
20542 THREADH=no-threads.h
20545 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20554 if test "$THREADS" = posix; then
20555 USING_POSIX_THREADS_TRUE=
20556 USING_POSIX_THREADS_FALSE='#'
20558 USING_POSIX_THREADS_TRUE='#'
20559 USING_POSIX_THREADS_FALSE=
20562 if test "$THREADS" = win32; then
20563 USING_WIN32_THREADS_TRUE=
20564 USING_WIN32_THREADS_FALSE='#'
20566 USING_WIN32_THREADS_TRUE='#'
20567 USING_WIN32_THREADS_FALSE=
20570 if test "$THREADS" = none; then
20571 USING_NO_THREADS_TRUE=
20572 USING_NO_THREADS_FALSE='#'
20574 USING_NO_THREADS_TRUE='#'
20575 USING_NO_THREADS_FALSE=
20578 if test "$enable_shared" != yes; then
20581 if test "$use_libgcj_bc" = yes; then
20582 USE_LIBGCJ_BC_TRUE=
20583 USE_LIBGCJ_BC_FALSE='#'
20585 USE_LIBGCJ_BC_TRUE='#'
20586 USE_LIBGCJ_BC_FALSE=
20590 if test -d sysdep; then true; else mkdir sysdep; fi
20591 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20593 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20595 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20598 LIBGCJ_SPEC_LGCJ=-lgcj
20599 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20600 if test x"$libgcj_spec_lgcj_override" != x ; then
20601 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20603 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20604 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20606 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20607 if test "$use_libgcj_bc" = yes; then
20608 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20609 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20615 # Hash synchronization is only useful with posix threads right now.
20616 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20617 HASH_SYNC_SPEC=-fhash-synchronization
20619 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20624 if test "$GCC" = yes; then
20626 USING_GCC_FALSE='#'
20633 # We're in the tree with gcc, and need to include some of its headers.
20634 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20636 if test "x${with_newlib}" = "xyes"; then
20637 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20638 # may not work correctly, because the compiler may not be able to
20639 # link executables.
20641 # We assume newlib. This lets us hard-code the functions we know
20644 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20647 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20650 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20653 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20656 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20659 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20661 # This is only for POSIX threads.
20663 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20666 # Assume we do not have getuid and friends.
20668 $as_echo "#define NO_GETUID 1" >>confdefs.h
20672 for ac_func in strerror_r select fstat open fsync sleep opendir \
20673 localtime_r getpwuid_r getcwd \
20674 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20675 nl_langinfo setlocale \
20676 inet_pton uname inet_ntoa \
20677 getrlimit sigaction ftruncate mmap \
20680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20681 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20682 eval as_val=\$$as_ac_var
20683 if test "x$as_val" = x""yes; then :
20684 cat >>confdefs.h <<_ACEOF
20685 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20691 for ac_func in inet_aton inet_addr
20693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20694 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20695 eval as_val=\$$as_ac_var
20696 if test "x$as_val" = x""yes; then :
20697 cat >>confdefs.h <<_ACEOF
20698 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20704 for ac_header in unistd.h dlfcn.h sys/resource.h
20706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20707 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20708 eval as_val=\$$as_ac_Header
20709 if test "x$as_val" = x""yes; then :
20710 cat >>confdefs.h <<_ACEOF
20711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20718 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20720 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20721 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20722 $as_echo_n "(cached) " >&6
20724 ac_check_lib_save_LIBS=$LIBS
20726 if test x$gcc_no_link = xyes; then
20727 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20730 /* end confdefs.h. */
20732 /* Override any GCC internal prototype to avoid an error.
20733 Use char because int might match the return type of a GCC
20734 builtin and then its argument prototype would still apply. */
20747 if ac_fn_c_try_link "$LINENO"; then :
20748 ac_cv_lib_dl_dladdr=yes
20750 ac_cv_lib_dl_dladdr=no
20752 rm -f core conftest.err conftest.$ac_objext \
20753 conftest$ac_exeext conftest.$ac_ext
20754 LIBS=$ac_check_lib_save_LIBS
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20757 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20758 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20761 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20766 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20767 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20768 $as_echo_n "(cached) " >&6
20770 ac_check_lib_save_LIBS=$LIBS
20772 if test x$gcc_no_link = xyes; then
20773 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20776 /* end confdefs.h. */
20778 /* Override any GCC internal prototype to avoid an error.
20779 Use char because int might match the return type of a GCC
20780 builtin and then its argument prototype would still apply. */
20793 if ac_fn_c_try_link "$LINENO"; then :
20794 ac_cv_lib_dld_dladdr=yes
20796 ac_cv_lib_dld_dladdr=no
20798 rm -f core conftest.err conftest.$ac_objext \
20799 conftest$ac_exeext conftest.$ac_ext
20800 LIBS=$ac_check_lib_save_LIBS
20802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
20803 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
20804 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
20807 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20814 if test x"$cross_compiling" = x"no"; then
20815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
20816 $as_echo_n "checking for /proc/self/exe... " >&6; }
20817 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
20818 $as_echo_n "(cached) " >&6
20820 test "$cross_compiling" = yes &&
20821 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20822 if test -r "/proc/self/exe"; then
20823 ac_cv_file__proc_self_exe=yes
20825 ac_cv_file__proc_self_exe=no
20828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
20829 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
20830 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
20832 cat >>confdefs.h <<_ACEOF
20833 #define HAVE__PROC_SELF_EXE 1
20837 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
20842 $as_echo_n "checking for /proc/self/maps... " >&6; }
20843 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
20844 $as_echo_n "(cached) " >&6
20846 test "$cross_compiling" = yes &&
20847 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20848 if test -r "/proc/self/maps"; then
20849 ac_cv_file__proc_self_maps=yes
20851 ac_cv_file__proc_self_maps=no
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
20855 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
20856 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
20858 cat >>confdefs.h <<_ACEOF
20859 #define HAVE__PROC_SELF_MAPS 1
20863 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20871 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20874 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20881 if test "X$prefix" = "XNONE"; then
20882 acl_final_prefix="$ac_default_prefix"
20884 acl_final_prefix="$prefix"
20886 if test "X$exec_prefix" = "XNONE"; then
20887 acl_final_exec_prefix='${prefix}'
20889 acl_final_exec_prefix="$exec_prefix"
20891 acl_save_prefix="$prefix"
20892 prefix="$acl_final_prefix"
20893 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20894 prefix="$acl_save_prefix"
20897 # Check whether --with-gnu-ld was given.
20898 if test "${with_gnu_ld+set}" = set; then :
20899 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20904 # Prepare PATH_SEPARATOR.
20905 # The user is always right.
20906 if test "${PATH_SEPARATOR+set}" != set; then
20907 echo "#! /bin/sh" >conf$$.sh
20908 echo "exit 0" >>conf$$.sh
20910 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20918 if test "$GCC" = yes; then
20919 # Check if gcc -print-prog-name=ld gives a path.
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
20921 $as_echo_n "checking for ld used by GCC... " >&6; }
20924 # gcc leaves a trailing carriage return which upsets mingw
20925 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20927 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20930 # Accept absolute paths.
20931 [\\/]* | [A-Za-z]:[\\/]*)
20932 re_direlt='/[^/][^/]*/\.\./'
20933 # Canonicalize the path of ld
20934 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20935 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20936 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20938 test -z "$LD" && LD="$ac_prog"
20941 # If it fails, then pretend we aren't using GCC.
20945 # If it is relative, then search for the first ld in PATH.
20946 with_gnu_ld=unknown
20949 elif test "$with_gnu_ld" = yes; then
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20951 $as_echo_n "checking for GNU ld... " >&6; }
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20954 $as_echo_n "checking for non-GNU ld... " >&6; }
20956 if test "${acl_cv_path_LD+set}" = set; then :
20957 $as_echo_n "(cached) " >&6
20959 if test -z "$LD"; then
20960 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20961 for ac_dir in $PATH; do
20962 test -z "$ac_dir" && ac_dir=.
20963 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20964 acl_cv_path_LD="$ac_dir/$ac_prog"
20965 # Check to see if the program is GNU ld. I'd rather use --version,
20966 # but apparently some GNU ld's only accept -v.
20967 # Break only if it was the GNU/non-GNU ld that we prefer.
20968 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
20969 test "$with_gnu_ld" != no && break
20971 test "$with_gnu_ld" != yes && break
20977 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20981 LD="$acl_cv_path_LD"
20982 if test -n "$LD"; then
20983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20984 $as_echo "$LD" >&6; }
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20987 $as_echo "no" >&6; }
20989 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20991 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
20992 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
20993 $as_echo_n "(cached) " >&6
20995 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20996 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
20997 acl_cv_prog_gnu_ld=yes
20999 acl_cv_prog_gnu_ld=no
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21003 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21004 with_gnu_ld=$acl_cv_prog_gnu_ld
21008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21009 $as_echo_n "checking for shared library run path origin... " >&6; }
21010 if test "${acl_cv_rpath+set}" = set; then :
21011 $as_echo_n "(cached) " >&6
21014 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21015 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21017 rm -f ./conftest.sh
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21022 $as_echo "$acl_cv_rpath" >&6; }
21024 libext="$acl_cv_libext"
21025 shlibext="$acl_cv_shlibext"
21026 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21027 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21028 hardcode_direct="$acl_cv_hardcode_direct"
21029 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21030 # Check whether --enable-rpath was given.
21031 if test "${enable_rpath+set}" = set; then :
21032 enableval=$enable_rpath; :
21046 acl_save_prefix="$prefix"
21047 prefix="$acl_final_prefix"
21048 acl_save_exec_prefix="$exec_prefix"
21049 exec_prefix="$acl_final_exec_prefix"
21051 eval additional_includedir=\"$includedir\"
21052 eval additional_libdir=\"$libdir\"
21054 exec_prefix="$acl_save_exec_prefix"
21055 prefix="$acl_save_prefix"
21058 # Check whether --with-libiconv-prefix was given.
21059 if test "${with_libiconv_prefix+set}" = set; then :
21060 withval=$with_libiconv_prefix;
21061 if test "X$withval" = "Xno"; then
21064 if test "X$withval" = "X"; then
21066 acl_save_prefix="$prefix"
21067 prefix="$acl_final_prefix"
21068 acl_save_exec_prefix="$exec_prefix"
21069 exec_prefix="$acl_final_exec_prefix"
21071 eval additional_includedir=\"$includedir\"
21072 eval additional_libdir=\"$libdir\"
21074 exec_prefix="$acl_save_exec_prefix"
21075 prefix="$acl_save_prefix"
21078 additional_includedir="$withval/include"
21079 additional_libdir="$withval/lib"
21090 names_already_handled=
21091 names_next_round='iconv '
21092 while test -n "$names_next_round"; do
21093 names_this_round="$names_next_round"
21095 for name in $names_this_round; do
21097 for n in $names_already_handled; do
21098 if test "$n" = "$name"; then
21099 already_handled=yes
21103 if test -z "$already_handled"; then
21104 names_already_handled="$names_already_handled $name"
21105 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21106 eval value=\"\$HAVE_LIB$uppername\"
21107 if test -n "$value"; then
21108 if test "$value" = yes; then
21109 eval value=\"\$LIB$uppername\"
21110 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21111 eval value=\"\$LTLIB$uppername\"
21112 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21121 if test $use_additional = yes; then
21122 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21123 found_dir="$additional_libdir"
21124 found_so="$additional_libdir/lib$name.$shlibext"
21125 if test -f "$additional_libdir/lib$name.la"; then
21126 found_la="$additional_libdir/lib$name.la"
21129 if test -f "$additional_libdir/lib$name.$libext"; then
21130 found_dir="$additional_libdir"
21131 found_a="$additional_libdir/lib$name.$libext"
21132 if test -f "$additional_libdir/lib$name.la"; then
21133 found_la="$additional_libdir/lib$name.la"
21138 if test "X$found_dir" = "X"; then
21139 for x in $LDFLAGS $LTLIBICONV; do
21141 acl_save_prefix="$prefix"
21142 prefix="$acl_final_prefix"
21143 acl_save_exec_prefix="$exec_prefix"
21144 exec_prefix="$acl_final_exec_prefix"
21146 exec_prefix="$acl_save_exec_prefix"
21147 prefix="$acl_save_prefix"
21151 dir=`echo "X$x" | sed -e 's/^X-L//'`
21152 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21154 found_so="$dir/lib$name.$shlibext"
21155 if test -f "$dir/lib$name.la"; then
21156 found_la="$dir/lib$name.la"
21159 if test -f "$dir/lib$name.$libext"; then
21161 found_a="$dir/lib$name.$libext"
21162 if test -f "$dir/lib$name.la"; then
21163 found_la="$dir/lib$name.la"
21169 if test "X$found_dir" != "X"; then
21174 if test "X$found_dir" != "X"; then
21175 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21176 if test "X$found_so" != "X"; then
21177 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21178 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21181 for x in $ltrpathdirs; do
21182 if test "X$x" = "X$found_dir"; then
21187 if test -z "$haveit"; then
21188 ltrpathdirs="$ltrpathdirs $found_dir"
21190 if test "$hardcode_direct" = yes; then
21191 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21193 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21194 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21196 for x in $rpathdirs; do
21197 if test "X$x" = "X$found_dir"; then
21202 if test -z "$haveit"; then
21203 rpathdirs="$rpathdirs $found_dir"
21207 for x in $LDFLAGS $LIBICONV; do
21209 acl_save_prefix="$prefix"
21210 prefix="$acl_final_prefix"
21211 acl_save_exec_prefix="$exec_prefix"
21212 exec_prefix="$acl_final_exec_prefix"
21214 exec_prefix="$acl_save_exec_prefix"
21215 prefix="$acl_save_prefix"
21217 if test "X$x" = "X-L$found_dir"; then
21222 if test -z "$haveit"; then
21223 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21225 if test "$hardcode_minus_L" != no; then
21226 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21228 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21234 if test "X$found_a" != "X"; then
21235 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21237 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21240 additional_includedir=
21241 case "$found_dir" in
21243 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21244 additional_includedir="$basedir/include"
21247 if test "X$additional_includedir" != "X"; then
21248 if test "X$additional_includedir" != "X/usr/include"; then
21250 if test "X$additional_includedir" = "X/usr/local/include"; then
21251 if test -n "$GCC"; then
21253 linux*) haveit=yes;;
21257 if test -z "$haveit"; then
21258 for x in $CPPFLAGS $INCICONV; do
21260 acl_save_prefix="$prefix"
21261 prefix="$acl_final_prefix"
21262 acl_save_exec_prefix="$exec_prefix"
21263 exec_prefix="$acl_final_exec_prefix"
21265 exec_prefix="$acl_save_exec_prefix"
21266 prefix="$acl_save_prefix"
21268 if test "X$x" = "X-I$additional_includedir"; then
21273 if test -z "$haveit"; then
21274 if test -d "$additional_includedir"; then
21275 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21281 if test -n "$found_la"; then
21282 save_libdir="$libdir"
21283 case "$found_la" in
21284 */* | *\\*) . "$found_la" ;;
21285 *) . "./$found_la" ;;
21287 libdir="$save_libdir"
21288 for dep in $dependency_libs; do
21291 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21292 if test "X$additional_libdir" != "X/usr/lib"; then
21294 if test "X$additional_libdir" = "X/usr/local/lib"; then
21295 if test -n "$GCC"; then
21297 linux*) haveit=yes;;
21301 if test -z "$haveit"; then
21303 for x in $LDFLAGS $LIBICONV; do
21305 acl_save_prefix="$prefix"
21306 prefix="$acl_final_prefix"
21307 acl_save_exec_prefix="$exec_prefix"
21308 exec_prefix="$acl_final_exec_prefix"
21310 exec_prefix="$acl_save_exec_prefix"
21311 prefix="$acl_save_prefix"
21313 if test "X$x" = "X-L$additional_libdir"; then
21318 if test -z "$haveit"; then
21319 if test -d "$additional_libdir"; then
21320 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21324 for x in $LDFLAGS $LTLIBICONV; do
21326 acl_save_prefix="$prefix"
21327 prefix="$acl_final_prefix"
21328 acl_save_exec_prefix="$exec_prefix"
21329 exec_prefix="$acl_final_exec_prefix"
21331 exec_prefix="$acl_save_exec_prefix"
21332 prefix="$acl_save_prefix"
21334 if test "X$x" = "X-L$additional_libdir"; then
21339 if test -z "$haveit"; then
21340 if test -d "$additional_libdir"; then
21341 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21348 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21349 if test "$enable_rpath" != no; then
21351 for x in $rpathdirs; do
21352 if test "X$x" = "X$dir"; then
21357 if test -z "$haveit"; then
21358 rpathdirs="$rpathdirs $dir"
21361 for x in $ltrpathdirs; do
21362 if test "X$x" = "X$dir"; then
21367 if test -z "$haveit"; then
21368 ltrpathdirs="$ltrpathdirs $dir"
21373 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21376 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21379 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21380 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21386 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21387 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21393 if test "X$rpathdirs" != "X"; then
21394 if test -n "$hardcode_libdir_separator"; then
21396 for found_dir in $rpathdirs; do
21397 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21399 acl_save_libdir="$libdir"
21401 eval flag=\"$hardcode_libdir_flag_spec\"
21402 libdir="$acl_save_libdir"
21403 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21405 for found_dir in $rpathdirs; do
21406 acl_save_libdir="$libdir"
21407 libdir="$found_dir"
21408 eval flag=\"$hardcode_libdir_flag_spec\"
21409 libdir="$acl_save_libdir"
21410 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21414 if test "X$ltrpathdirs" != "X"; then
21415 for found_dir in $ltrpathdirs; do
21416 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21426 am_save_CPPFLAGS="$CPPFLAGS"
21428 for element in $INCICONV; do
21430 for x in $CPPFLAGS; do
21432 acl_save_prefix="$prefix"
21433 prefix="$acl_final_prefix"
21434 acl_save_exec_prefix="$exec_prefix"
21435 exec_prefix="$acl_final_exec_prefix"
21437 exec_prefix="$acl_save_exec_prefix"
21438 prefix="$acl_save_prefix"
21440 if test "X$x" = "X$element"; then
21445 if test -z "$haveit"; then
21446 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21452 $as_echo_n "checking for iconv... " >&6; }
21453 if test "${am_cv_func_iconv+set}" = set; then :
21454 $as_echo_n "(cached) " >&6
21457 am_cv_func_iconv="no, consider installing GNU libiconv"
21459 if test x$gcc_no_link = xyes; then
21460 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21463 /* end confdefs.h. */
21464 #include <stdlib.h>
21469 iconv_t cd = iconv_open("","");
21470 iconv(cd,NULL,NULL,NULL,NULL);
21476 if ac_fn_c_try_link "$LINENO"; then :
21477 am_cv_func_iconv=yes
21479 rm -f core conftest.err conftest.$ac_objext \
21480 conftest$ac_exeext conftest.$ac_ext
21481 if test "$am_cv_func_iconv" != yes; then
21482 am_save_LIBS="$LIBS"
21483 LIBS="$LIBS $LIBICONV"
21484 if test x$gcc_no_link = xyes; then
21485 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21488 /* end confdefs.h. */
21489 #include <stdlib.h>
21494 iconv_t cd = iconv_open("","");
21495 iconv(cd,NULL,NULL,NULL,NULL);
21501 if ac_fn_c_try_link "$LINENO"; then :
21502 am_cv_lib_iconv=yes
21503 am_cv_func_iconv=yes
21505 rm -f core conftest.err conftest.$ac_objext \
21506 conftest$ac_exeext conftest.$ac_ext
21507 LIBS="$am_save_LIBS"
21511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21512 $as_echo "$am_cv_func_iconv" >&6; }
21513 if test "$am_cv_func_iconv" = yes; then
21515 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21518 if test "$am_cv_lib_iconv" = yes; then
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21520 $as_echo_n "checking how to link with libiconv... " >&6; }
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21522 $as_echo "$LIBICONV" >&6; }
21524 CPPFLAGS="$am_save_CPPFLAGS"
21531 if test "$am_cv_func_iconv" = yes; then
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21533 $as_echo_n "checking for iconv declaration... " >&6; }
21534 if test "${am_cv_proto_iconv+set}" = set; then :
21535 $as_echo_n "(cached) " >&6
21538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21539 /* end confdefs.h. */
21541 #include <stdlib.h>
21547 #if defined(__STDC__) || defined(__cplusplus)
21548 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21561 if ac_fn_c_try_compile "$LINENO"; then :
21562 am_cv_proto_iconv_arg1=""
21564 am_cv_proto_iconv_arg1="const"
21566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21567 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);"
21570 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21572 }$am_cv_proto_iconv" >&5
21574 }$am_cv_proto_iconv" >&6; }
21576 cat >>confdefs.h <<_ACEOF
21577 #define ICONV_CONST $am_cv_proto_iconv_arg1
21583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21584 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21585 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21586 $as_echo_n "(cached) " >&6
21588 if test x$gcc_no_link = xyes; then
21589 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21592 /* end confdefs.h. */
21593 #include <locale.h>
21602 if ac_fn_c_try_link "$LINENO"; then :
21603 am_cv_val_LC_MESSAGES=yes
21605 am_cv_val_LC_MESSAGES=no
21607 rm -f core conftest.err conftest.$ac_objext \
21608 conftest$ac_exeext conftest.$ac_ext
21610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21611 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21612 if test $am_cv_val_LC_MESSAGES = yes; then
21614 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21619 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21620 if test "${ac_cv_struct_tm+set}" = set; then :
21621 $as_echo_n "(cached) " >&6
21623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21624 /* end confdefs.h. */
21625 #include <sys/types.h>
21632 int *p = &tm.tm_sec;
21638 if ac_fn_c_try_compile "$LINENO"; then :
21639 ac_cv_struct_tm=time.h
21641 ac_cv_struct_tm=sys/time.h
21643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21646 $as_echo "$ac_cv_struct_tm" >&6; }
21647 if test $ac_cv_struct_tm = sys/time.h; then
21649 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21653 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21654 #include <$ac_cv_struct_tm>
21657 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21659 cat >>confdefs.h <<_ACEOF
21660 #define HAVE_STRUCT_TM_TM_ZONE 1
21666 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21668 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21671 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21673 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21679 cat >>confdefs.h <<_ACEOF
21680 #define HAVE_DECL_TZNAME $ac_have_decl
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21684 $as_echo_n "checking for tzname... " >&6; }
21685 if test "${ac_cv_var_tzname+set}" = set; then :
21686 $as_echo_n "(cached) " >&6
21688 if test x$gcc_no_link = xyes; then
21689 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21692 /* end confdefs.h. */
21694 #if !HAVE_DECL_TZNAME
21695 extern char *tzname[];
21701 return tzname[0][0];
21706 if ac_fn_c_try_link "$LINENO"; then :
21707 ac_cv_var_tzname=yes
21709 ac_cv_var_tzname=no
21711 rm -f core conftest.err conftest.$ac_objext \
21712 conftest$ac_exeext conftest.$ac_ext
21714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21715 $as_echo "$ac_cv_var_tzname" >&6; }
21716 if test $ac_cv_var_tzname = yes; then
21718 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21724 for ac_func in gethostbyname_r
21726 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21727 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21728 cat >>confdefs.h <<_ACEOF
21729 #define HAVE_GETHOSTBYNAME_R 1
21733 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21735 # There are two different kinds of gethostbyname_r.
21736 # We look for the one that returns `int'.
21737 # Hopefully this check is robust enough.
21738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21739 /* end confdefs.h. */
21743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21744 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21747 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21753 case " $GCINCS " in
21754 *" -D_REENTRANT "*) ;;
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21757 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21758 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21759 $as_echo_n "(cached) " >&6
21762 ac_cpp='$CXXCPP $CPPFLAGS'
21763 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21764 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21765 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21768 /* end confdefs.h. */
21773 gethostbyname_r("", 0, 0);
21778 if ac_fn_cxx_try_compile "$LINENO"; then :
21779 libjava_cv_gethostbyname_r_needs_reentrant=no
21781 CPPFLAGS_SAVE="$CPPFLAGS"
21782 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21784 /* end confdefs.h. */
21789 gethostbyname_r("", 0, 0);
21794 if ac_fn_cxx_try_compile "$LINENO"; then :
21795 libjava_cv_gethostbyname_r_needs_reentrant=yes
21797 libjava_cv_gethostbyname_r_needs_reentrant=fail
21799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21800 CPPFLAGS="$CPPFLAGS_SAVE"
21803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21805 ac_cpp='$CPP $CPPFLAGS'
21806 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21807 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21808 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
21813 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
21814 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
21816 $as_echo "#define _REENTRANT 1" >>confdefs.h
21822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
21823 $as_echo_n "checking for struct hostent_data... " >&6; }
21824 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
21825 $as_echo_n "(cached) " >&6
21827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21828 /* end confdefs.h. */
21830 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
21831 # define _REENTRANT 1
21837 struct hostent_data data;
21842 if ac_fn_c_try_compile "$LINENO"; then :
21843 libjava_cv_struct_hostent_data=yes
21845 libjava_cv_struct_hostent_data=no
21847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
21850 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
21851 if test "x$libjava_cv_struct_hostent_data" = xyes; then
21853 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
21861 # FIXME: libjava source code expects to find a prototype for
21862 # gethostbyaddr_r in netdb.h. The outer check ensures that
21863 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
21864 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
21865 # linkage check is enough, yet C++ code requires proper prototypes.)
21866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21867 /* end confdefs.h. */
21871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21872 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
21874 for ac_func in gethostbyaddr_r
21876 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
21877 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
21878 cat >>confdefs.h <<_ACEOF
21879 #define HAVE_GETHOSTBYADDR_R 1
21883 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
21885 # There are two different kinds of gethostbyaddr_r.
21886 # We look for the one that returns `int'.
21887 # Hopefully this check is robust enough.
21888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21889 /* end confdefs.h. */
21893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21894 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
21897 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
21909 for ac_func in gethostname
21911 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
21912 if test "x$ac_cv_func_gethostname" = x""yes; then :
21913 cat >>confdefs.h <<_ACEOF
21914 #define HAVE_GETHOSTNAME 1
21918 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
21920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21921 /* end confdefs.h. */
21922 #include <unistd.h>
21925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21926 $EGREP "gethostname" >/dev/null 2>&1; then :
21929 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
21938 for ac_func in usleep
21940 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
21941 if test "x$ac_cv_func_usleep" = x""yes; then :
21942 cat >>confdefs.h <<_ACEOF
21943 #define HAVE_USLEEP 1
21946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21947 /* end confdefs.h. */
21948 #include <unistd.h>
21951 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21952 $EGREP "usleep" >/dev/null 2>&1; then :
21955 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
21964 # Look for these functions in the thread library, but only bother
21965 # if using POSIX threads.
21966 if test "$THREADS" = posix; then
21968 LIBS="$LIBS $THREADLIBS"
21970 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
21971 # Solaris 7 the name librt is preferred.
21972 for ac_func in sched_yield
21974 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
21975 if test "x$ac_cv_func_sched_yield" = x""yes; then :
21976 cat >>confdefs.h <<_ACEOF
21977 #define HAVE_SCHED_YIELD 1
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
21983 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
21984 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
21985 $as_echo_n "(cached) " >&6
21987 ac_check_lib_save_LIBS=$LIBS
21989 if test x$gcc_no_link = xyes; then
21990 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21993 /* end confdefs.h. */
21995 /* Override any GCC internal prototype to avoid an error.
21996 Use char because int might match the return type of a GCC
21997 builtin and then its argument prototype would still apply. */
22001 char sched_yield ();
22005 return sched_yield ();
22010 if ac_fn_c_try_link "$LINENO"; then :
22011 ac_cv_lib_rt_sched_yield=yes
22013 ac_cv_lib_rt_sched_yield=no
22015 rm -f core conftest.err conftest.$ac_objext \
22016 conftest$ac_exeext conftest.$ac_ext
22017 LIBS=$ac_check_lib_save_LIBS
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22020 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22021 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22023 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22025 THREADLIBS="$THREADLIBS -lrt"
22026 THREADSPEC="$THREADSPEC -lrt"
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22030 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22031 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22032 $as_echo_n "(cached) " >&6
22034 ac_check_lib_save_LIBS=$LIBS
22035 LIBS="-lposix4 $LIBS"
22036 if test x$gcc_no_link = xyes; then
22037 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22040 /* end confdefs.h. */
22042 /* Override any GCC internal prototype to avoid an error.
22043 Use char because int might match the return type of a GCC
22044 builtin and then its argument prototype would still apply. */
22048 char sched_yield ();
22052 return sched_yield ();
22057 if ac_fn_c_try_link "$LINENO"; then :
22058 ac_cv_lib_posix4_sched_yield=yes
22060 ac_cv_lib_posix4_sched_yield=no
22062 rm -f core conftest.err conftest.$ac_objext \
22063 conftest$ac_exeext conftest.$ac_ext
22064 LIBS=$ac_check_lib_save_LIBS
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22067 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22068 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22070 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22072 THREADLIBS="$THREADLIBS -lposix4"
22073 THREADSPEC="$THREADSPEC -lposix4"
22082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22083 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22084 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22085 $as_echo_n "(cached) " >&6
22087 ac_check_lib_save_LIBS=$LIBS
22089 if test x$gcc_no_link = xyes; then
22090 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22093 /* end confdefs.h. */
22095 /* Override any GCC internal prototype to avoid an error.
22096 Use char because int might match the return type of a GCC
22097 builtin and then its argument prototype would still apply. */
22101 char clock_gettime ();
22105 return clock_gettime ();
22110 if ac_fn_c_try_link "$LINENO"; then :
22111 ac_cv_lib_rt_clock_gettime=yes
22113 ac_cv_lib_rt_clock_gettime=no
22115 rm -f core conftest.err conftest.$ac_objext \
22116 conftest$ac_exeext conftest.$ac_ext
22117 LIBS=$ac_check_lib_save_LIBS
22119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22120 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22121 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22124 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22126 case "$THREADSPEC" in
22129 THREADSPEC="$THREADSPEC -lrt"
22130 THREADLIBS="$THREADLIBS -lrt"
22138 # We can save a little space at runtime if the mutex has m_count
22139 # or __m_count. This is a nice hack for Linux.
22140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22141 /* end confdefs.h. */
22142 #include <pthread.h>
22147 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22153 if ac_fn_c_try_compile "$LINENO"; then :
22155 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22160 /* end confdefs.h. */
22161 #include <pthread.h>
22166 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22172 if ac_fn_c_try_compile "$LINENO"; then :
22174 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22182 # We require a way to get the time.
22184 for ac_func in gettimeofday time ftime
22186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22187 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22188 eval as_val=\$$as_ac_var
22189 if test "x$as_val" = x""yes; then :
22190 cat >>confdefs.h <<_ACEOF
22191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22197 if test "$time_found" = no; then
22198 as_fn_error "no function found to get the time" "$LINENO" 5
22201 for ac_func in memmove
22203 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22204 if test "x$ac_cv_func_memmove" = x""yes; then :
22205 cat >>confdefs.h <<_ACEOF
22206 #define HAVE_MEMMOVE 1
22213 # We require memcpy.
22215 for ac_func in memcpy
22217 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22218 if test "x$ac_cv_func_memcpy" = x""yes; then :
22219 cat >>confdefs.h <<_ACEOF
22220 #define HAVE_MEMCPY 1
22226 if test "$memcpy_found" = no; then
22227 as_fn_error "memcpy is required" "$LINENO" 5
22229 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22231 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22233 $as_echo_n "(cached) " >&6
22235 ac_check_lib_save_LIBS=$LIBS
22237 if test x$gcc_no_link = xyes; then
22238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22241 /* end confdefs.h. */
22243 /* Override any GCC internal prototype to avoid an error.
22244 Use char because int might match the return type of a GCC
22245 builtin and then its argument prototype would still apply. */
22258 if ac_fn_c_try_link "$LINENO"; then :
22259 ac_cv_lib_dl_dlopen=yes
22261 ac_cv_lib_dl_dlopen=no
22263 rm -f core conftest.err conftest.$ac_objext \
22264 conftest$ac_exeext conftest.$ac_ext
22265 LIBS=$ac_check_lib_save_LIBS
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22268 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22269 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22272 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22277 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22278 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22279 $as_echo_n "(cached) " >&6
22281 ac_check_lib_save_LIBS=$LIBS
22283 if test x$gcc_no_link = xyes; then
22284 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22287 /* end confdefs.h. */
22289 /* Override any GCC internal prototype to avoid an error.
22290 Use char because int might match the return type of a GCC
22291 builtin and then its argument prototype would still apply. */
22304 if ac_fn_c_try_link "$LINENO"; then :
22305 ac_cv_lib_dld_dlopen=yes
22307 ac_cv_lib_dld_dlopen=no
22309 rm -f core conftest.err conftest.$ac_objext \
22310 conftest$ac_exeext conftest.$ac_ext
22311 LIBS=$ac_check_lib_save_LIBS
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22314 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22315 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22318 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22325 # Some library-finding code we stole from Tcl.
22326 #--------------------------------------------------------------------
22327 # Check for the existence of the -lsocket and -lnsl libraries.
22328 # The order here is important, so that they end up in the right
22329 # order in the command line generated by make. Here are some
22330 # special considerations:
22331 # 1. Use "connect" and "accept" to check for -lsocket, and
22332 # "gethostbyname" to check for -lnsl.
22333 # 2. Use each function name only once: can't redo a check because
22334 # autoconf caches the results of the last check and won't redo it.
22335 # 3. Use -lnsl and -lsocket only if they supply procedures that
22336 # aren't already present in the normal libraries. This is because
22337 # IRIX 5.2 has libraries, but they aren't needed and they're
22338 # bogus: they goof up name resolution if used.
22339 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22340 # To get around this problem, check for both libraries together
22341 # if -lsocket doesn't work by itself.
22342 #--------------------------------------------------------------------
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22345 $as_echo_n "checking for socket libraries... " >&6; }
22346 if test "${gcj_cv_lib_sockets+set}" = set; then :
22347 $as_echo_n "(cached) " >&6
22349 gcj_cv_lib_sockets=
22351 unset ac_cv_func_connect
22352 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22353 if test "x$ac_cv_func_connect" = x""yes; then :
22359 if test "$gcj_checkSocket" = 1; then
22360 unset ac_cv_func_connect
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22362 $as_echo_n "checking for main in -lsocket... " >&6; }
22363 if test "${ac_cv_lib_socket_main+set}" = set; then :
22364 $as_echo_n "(cached) " >&6
22366 ac_check_lib_save_LIBS=$LIBS
22367 LIBS="-lsocket $LIBS"
22368 if test x$gcc_no_link = xyes; then
22369 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22372 /* end confdefs.h. */
22383 if ac_fn_c_try_link "$LINENO"; then :
22384 ac_cv_lib_socket_main=yes
22386 ac_cv_lib_socket_main=no
22388 rm -f core conftest.err conftest.$ac_objext \
22389 conftest$ac_exeext conftest.$ac_ext
22390 LIBS=$ac_check_lib_save_LIBS
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22393 $as_echo "$ac_cv_lib_socket_main" >&6; }
22394 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22395 gcj_cv_lib_sockets="-lsocket"
22401 if test "$gcj_checkBoth" = 1; then
22403 LIBS="$LIBS -lsocket -lnsl"
22404 unset ac_cv_func_accept
22405 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22406 if test "x$ac_cv_func_accept" = x""yes; then :
22408 gcj_cv_lib_sockets="-lsocket -lnsl"
22411 unset ac_cv_func_accept
22414 unset ac_cv_func_gethostbyname
22416 LIBS="$LIBS $gcj_cv_lib_sockets"
22417 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22418 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22422 $as_echo_n "checking for main in -lnsl... " >&6; }
22423 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22424 $as_echo_n "(cached) " >&6
22426 ac_check_lib_save_LIBS=$LIBS
22428 if test x$gcc_no_link = xyes; then
22429 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22432 /* end confdefs.h. */
22443 if ac_fn_c_try_link "$LINENO"; then :
22444 ac_cv_lib_nsl_main=yes
22446 ac_cv_lib_nsl_main=no
22448 rm -f core conftest.err conftest.$ac_objext \
22449 conftest$ac_exeext conftest.$ac_ext
22450 LIBS=$ac_check_lib_save_LIBS
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22453 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22454 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22455 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22460 unset ac_cv_func_gethostbyname
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22465 $as_echo "$gcj_cv_lib_sockets" >&6; }
22466 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22468 if test "$with_system_zlib" = yes; then
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22470 $as_echo_n "checking for deflate in -lz... " >&6; }
22471 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22472 $as_echo_n "(cached) " >&6
22474 ac_check_lib_save_LIBS=$LIBS
22476 if test x$gcc_no_link = xyes; then
22477 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22480 /* end confdefs.h. */
22482 /* Override any GCC internal prototype to avoid an error.
22483 Use char because int might match the return type of a GCC
22484 builtin and then its argument prototype would still apply. */
22497 if ac_fn_c_try_link "$LINENO"; then :
22498 ac_cv_lib_z_deflate=yes
22500 ac_cv_lib_z_deflate=no
22502 rm -f core conftest.err conftest.$ac_objext \
22503 conftest$ac_exeext conftest.$ac_ext
22504 LIBS=$ac_check_lib_save_LIBS
22506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22507 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22508 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22516 # Test for Gtk stuff, if asked for.
22517 if test "$use_gtk_awt" = yes; then
22521 if test -z "$PKG_CONFIG"; then
22522 # Extract the first word of "pkg-config", so it can be a program name with args.
22523 set dummy pkg-config; ac_word=$2
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22525 $as_echo_n "checking for $ac_word... " >&6; }
22526 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22527 $as_echo_n "(cached) " >&6
22529 case $PKG_CONFIG in
22531 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22535 for as_dir in $PATH
22538 test -z "$as_dir" && as_dir=.
22539 for ac_exec_ext in '' $ac_executable_extensions; do
22540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22541 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22549 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22553 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22554 if test -n "$PKG_CONFIG"; then
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22556 $as_echo "$PKG_CONFIG" >&6; }
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22559 $as_echo "no" >&6; }
22565 if test "$PKG_CONFIG" = "no" ; then
22566 echo "*** The pkg-config script could not be found. Make sure it is"
22567 echo "*** in your path, or set the PKG_CONFIG environment variable"
22568 echo "*** to the full path to pkg-config."
22569 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22571 PKG_CONFIG_MIN_VERSION=0.9.0
22572 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22574 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22576 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22578 $as_echo "yes" >&6; }
22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22582 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22583 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22585 $as_echo "$GTK_CFLAGS" >&6; }
22587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22588 $as_echo_n "checking GTK_LIBS... " >&6; }
22589 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22591 $as_echo "$GTK_LIBS" >&6; }
22595 ## If we have a custom action on failure, don't print errors, but
22596 ## do set a variable so people can do so.
22597 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22598 echo $GTK_PKG_ERRORS
22604 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22605 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22609 if test $succeeded = yes; then
22612 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
22621 if test -z "$PKG_CONFIG"; then
22622 # Extract the first word of "pkg-config", so it can be a program name with args.
22623 set dummy pkg-config; ac_word=$2
22624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22625 $as_echo_n "checking for $ac_word... " >&6; }
22626 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22627 $as_echo_n "(cached) " >&6
22629 case $PKG_CONFIG in
22631 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22635 for as_dir in $PATH
22638 test -z "$as_dir" && as_dir=.
22639 for ac_exec_ext in '' $ac_executable_extensions; do
22640 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22641 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22649 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22653 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22654 if test -n "$PKG_CONFIG"; then
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22656 $as_echo "$PKG_CONFIG" >&6; }
22658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22659 $as_echo "no" >&6; }
22665 if test "$PKG_CONFIG" = "no" ; then
22666 echo "*** The pkg-config script could not be found. Make sure it is"
22667 echo "*** in your path, or set the PKG_CONFIG environment variable"
22668 echo "*** to the full path to pkg-config."
22669 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22671 PKG_CONFIG_MIN_VERSION=0.9.0
22672 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22674 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22676 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22678 $as_echo "yes" >&6; }
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22682 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22683 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22685 $as_echo "$GLIB_CFLAGS" >&6; }
22687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22688 $as_echo_n "checking GLIB_LIBS... " >&6; }
22689 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22691 $as_echo "$GLIB_LIBS" >&6; }
22695 ## If we have a custom action on failure, don't print errors, but
22696 ## do set a variable so people can do so.
22697 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22698 echo $GLIB_PKG_ERRORS
22704 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22705 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22709 if test $succeeded = yes; then
22712 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
22721 if test -z "$PKG_CONFIG"; then
22722 # Extract the first word of "pkg-config", so it can be a program name with args.
22723 set dummy pkg-config; ac_word=$2
22724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22725 $as_echo_n "checking for $ac_word... " >&6; }
22726 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22727 $as_echo_n "(cached) " >&6
22729 case $PKG_CONFIG in
22731 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22735 for as_dir in $PATH
22738 test -z "$as_dir" && as_dir=.
22739 for ac_exec_ext in '' $ac_executable_extensions; do
22740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22741 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22749 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22753 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22754 if test -n "$PKG_CONFIG"; then
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22756 $as_echo "$PKG_CONFIG" >&6; }
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22759 $as_echo "no" >&6; }
22765 if test "$PKG_CONFIG" = "no" ; then
22766 echo "*** The pkg-config script could not be found. Make sure it is"
22767 echo "*** in your path, or set the PKG_CONFIG environment variable"
22768 echo "*** to the full path to pkg-config."
22769 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22771 PKG_CONFIG_MIN_VERSION=0.9.0
22772 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22774 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22776 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22778 $as_echo "yes" >&6; }
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22782 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
22783 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
22785 $as_echo "$LIBART_CFLAGS" >&6; }
22787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
22788 $as_echo_n "checking LIBART_LIBS... " >&6; }
22789 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
22791 $as_echo "$LIBART_LIBS" >&6; }
22795 ## If we have a custom action on failure, don't print errors, but
22796 ## do set a variable so people can do so.
22797 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
22798 echo $LIBART_PKG_ERRORS
22804 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22805 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22809 if test $succeeded = yes; then
22812 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
22818 # We require the XTest Extension to support java.awt.Robot.
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
22820 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
22821 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
22822 $as_echo_n "(cached) " >&6
22824 ac_check_lib_save_LIBS=$LIBS
22825 LIBS="-lXtst ${X_LIBS} $LIBS"
22826 if test x$gcc_no_link = xyes; then
22827 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22830 /* end confdefs.h. */
22832 /* Override any GCC internal prototype to avoid an error.
22833 Use char because int might match the return type of a GCC
22834 builtin and then its argument prototype would still apply. */
22838 char XTestQueryExtension ();
22842 return XTestQueryExtension ();
22847 if ac_fn_c_try_link "$LINENO"; then :
22848 ac_cv_lib_Xtst_XTestQueryExtension=yes
22850 ac_cv_lib_Xtst_XTestQueryExtension=no
22852 rm -f core conftest.err conftest.$ac_objext \
22853 conftest$ac_exeext conftest.$ac_ext
22854 LIBS=$ac_check_lib_save_LIBS
22856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
22857 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
22858 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
22861 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
22866 # On Solaris, and maybe other architectures, the Boehm collector
22868 if test "$GC" = boehm; then
22871 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
22872 # libgcj.spec is used, so override here
22873 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
22876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
22877 $as_echo_n "checking for main in -ldl... " >&6; }
22878 if test "${ac_cv_lib_dl_main+set}" = set; then :
22879 $as_echo_n "(cached) " >&6
22881 ac_check_lib_save_LIBS=$LIBS
22883 if test x$gcc_no_link = xyes; then
22884 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22887 /* end confdefs.h. */
22898 if ac_fn_c_try_link "$LINENO"; then :
22899 ac_cv_lib_dl_main=yes
22901 ac_cv_lib_dl_main=no
22903 rm -f core conftest.err conftest.$ac_objext \
22904 conftest$ac_exeext conftest.$ac_ext
22905 LIBS=$ac_check_lib_save_LIBS
22907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
22908 $as_echo "$ac_cv_lib_dl_main" >&6; }
22909 if test "x$ac_cv_lib_dl_main" = x""yes; then :
22910 SYSTEMSPEC="$SYSTEMSPEC -ldl"
22918 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
22920 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
22921 *) CLASSPATH_SEPARATOR=':' ;;
22925 # We must search the source tree for java.lang, since we still don't
22926 # have libgcj.jar nor java/lang/*.class
22927 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
22928 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
22930 # Since some classes depend on this one, we need its source available
22931 # before we can do any GCJ compilation test :-(
22932 if test ! -f gnu/classpath/Configuration.java; then
22933 test -d gnu || mkdir gnu
22934 test -d gnu/classpath || mkdir gnu/classpath
22935 # Note that it is not crucial that all the values here be correct.
22936 sed -e "s,@prefix@,$prefix," \
22937 -e "s,@VERSION@,$VERSION," \
22938 -e "s,@LIBDEBUG@,false," \
22939 -e "s,@INIT_LOAD_LIBRARY@,false," \
22940 -e "s,@@,$LIBGCJDEBUG," \
22941 -e "s,@default_toolkit@,$TOOLKIT," \
22942 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
22943 -e "s,@GTK_CAIRO_ENABLED@,false," \
22944 -e "s,@ECJ_JAR@,," \
22945 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
22946 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
22947 > gnu/classpath/Configuration.java
22948 # We do not want to redirect the output of the grep below to /dev/null,
22949 # but we add /dev/null to the input list so that grep will print the
22950 # filename of Configuration.java in case it finds any matches.
22951 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
22952 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
22959 # Extract the first word of "$ac_prog", so it can be a program name with args.
22960 set dummy $ac_prog; ac_word=$2
22961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22962 $as_echo_n "checking for $ac_word... " >&6; }
22963 if test "${ac_cv_prog_GCJ+set}" = set; then :
22964 $as_echo_n "(cached) " >&6
22966 if test -n "$GCJ"; then
22967 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
22969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22970 for as_dir in $PATH
22973 test -z "$as_dir" && as_dir=.
22974 for ac_exec_ext in '' $ac_executable_extensions; do
22975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22976 ac_cv_prog_GCJ="$ac_prog"
22977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22986 GCJ=$ac_cv_prog_GCJ
22987 if test -n "$GCJ"; then
22988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
22989 $as_echo "$GCJ" >&6; }
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22992 $as_echo "no" >&6; }
22996 test -n "$GCJ" && break
22998 test -n "$GCJ" || GCJ="gcj"
23000 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23001 if test "x${GCJFLAGS-unset}" = xunset; then
23006 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23009 $as_echo_n "checking dependency style of $depcc... " >&6; }
23010 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23011 $as_echo_n "(cached) " >&6
23013 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23014 # We make a subdir and do the tests there. Otherwise we can end up
23015 # making bogus files that we don't know about and never remove. For
23016 # instance it was reported that on HP-UX the gcc test will end up
23017 # making a dummy file named `D' -- because `-MD' means `put the output
23020 # Copy depcomp to subdir because otherwise we won't find it if we're
23021 # using a relative directory.
23022 cp "$am_depcomp" conftest.dir
23024 # We will build objects and dependencies in a subdirectory because
23025 # it helps to detect inapplicable dependency modes. For instance
23026 # both Tru64's cc and ICC support -MD to output dependencies as a
23027 # side effect of compilation, but ICC will put the dependencies in
23028 # the current directory while Tru64 will put them in the object
23032 am_cv_GCJ_dependencies_compiler_type=none
23033 if test "$am_compiler_list" = ""; then
23034 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23036 am__universal=false
23039 for depmode in $am_compiler_list; do
23040 # Setup a source with many dependencies, because some compilers
23041 # like to wrap large dependency lists on column 80 (with \), and
23042 # we should not choose a depcomp mode which is confused by this.
23044 # We need to recreate these files for each test, as the compiler may
23045 # overwrite some of them when testing with obscure command lines.
23046 # This happens at least with the AIX C compiler.
23048 for i in 1 2 3 4 5 6; do
23049 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23050 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23051 # Solaris 8's {/usr,}/bin/sh.
23052 touch sub/conftst$i.h
23054 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23056 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23057 # mode. It turns out that the SunPro C++ compiler does not properly
23058 # handle `-M -o', and we need to detect this. Also, some Intel
23059 # versions had trouble with output in subdirs
23060 am__obj=sub/conftest.${OBJEXT-o}
23061 am__minus_obj="-o $am__obj"
23064 # This depmode causes a compiler race in universal mode.
23065 test "$am__universal" = false || continue
23068 # after this tag, mechanisms are not by side-effect, so they'll
23069 # only be used when explicitly requested
23070 if test "x$enable_dependency_tracking" = xyes; then
23076 msvisualcpp | msvcmsys)
23077 # This compiler won't grok `-c -o', but also, the minuso test has
23078 # not run yet. These depmodes are late enough in the game, and
23079 # so weak that their functioning should not be impacted.
23080 am__obj=conftest.${OBJEXT-o}
23085 if depmode=$depmode \
23086 source=sub/conftest.c object=$am__obj \
23087 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23088 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23089 >/dev/null 2>conftest.err &&
23090 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23091 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23092 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23093 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23094 # icc doesn't choke on unknown options, it will just issue warnings
23095 # or remarks (even with -Werror). So we grep stderr for any message
23096 # that says an option was ignored or not supported.
23097 # When given -MP, icc 7.0 and 7.1 complain thusly:
23098 # icc: Command line warning: ignoring option '-M'; no argument required
23099 # The diagnosis changed in icc 8.0:
23100 # icc: Command line remark: option '-MP' not supported
23101 if (grep 'ignoring option' conftest.err ||
23102 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23103 am_cv_GCJ_dependencies_compiler_type=$depmode
23110 rm -rf conftest.dir
23112 am_cv_GCJ_dependencies_compiler_type=none
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23117 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23118 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23121 test "x$enable_dependency_tracking" != xno \
23122 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23123 am__fastdepGCJ_TRUE=
23124 am__fastdepGCJ_FALSE='#'
23126 am__fastdepGCJ_TRUE='#'
23127 am__fastdepGCJ_FALSE=
23134 rm -f gnu/classpath/Configuration.java
23136 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23138 # The cast to long int works around a bug in the HP C Compiler
23139 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23140 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23141 # This bug is HP SR number 8606223364.
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23143 $as_echo_n "checking size of void *... " >&6; }
23144 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23145 $as_echo_n "(cached) " >&6
23147 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23150 if test "$ac_cv_type_void_p" = yes; then
23151 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23152 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23153 { as_fn_set_status 77
23154 as_fn_error "cannot compute sizeof (void *)
23155 See \`config.log' for more details." "$LINENO" 5; }; }
23157 ac_cv_sizeof_void_p=0
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23163 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23167 cat >>confdefs.h <<_ACEOF
23168 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23174 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23175 if test "${ac_cv_c_bigendian+set}" = set; then :
23176 $as_echo_n "(cached) " >&6
23178 ac_cv_c_bigendian=unknown
23179 # See if we're dealing with a universal compiler.
23180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23181 /* end confdefs.h. */
23182 #ifndef __APPLE_CC__
23183 not a universal capable compiler
23188 if ac_fn_c_try_compile "$LINENO"; then :
23190 # Check for potential -arch flags. It is not universal unless
23191 # there are at least two -arch flags with different values.
23194 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23195 if test -n "$ac_prev"; then
23197 i?86 | x86_64 | ppc | ppc64)
23198 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23201 ac_cv_c_bigendian=universal
23207 elif test "x$ac_word" = "x-arch"; then
23212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23213 if test $ac_cv_c_bigendian = unknown; then
23214 # See if sys/param.h defines the BYTE_ORDER macro.
23215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23216 /* end confdefs.h. */
23217 #include <sys/types.h>
23218 #include <sys/param.h>
23223 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23224 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23226 bogus endian macros
23233 if ac_fn_c_try_compile "$LINENO"; then :
23234 # It does; now see whether it defined to BIG_ENDIAN or not.
23235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23236 /* end confdefs.h. */
23237 #include <sys/types.h>
23238 #include <sys/param.h>
23243 #if BYTE_ORDER != BIG_ENDIAN
23251 if ac_fn_c_try_compile "$LINENO"; then :
23252 ac_cv_c_bigendian=yes
23254 ac_cv_c_bigendian=no
23256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23260 if test $ac_cv_c_bigendian = unknown; then
23261 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23263 /* end confdefs.h. */
23264 #include <limits.h>
23269 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23270 bogus endian macros
23277 if ac_fn_c_try_compile "$LINENO"; then :
23278 # It does; now see whether it defined to _BIG_ENDIAN or not.
23279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23280 /* end confdefs.h. */
23281 #include <limits.h>
23286 #ifndef _BIG_ENDIAN
23294 if ac_fn_c_try_compile "$LINENO"; then :
23295 ac_cv_c_bigendian=yes
23297 ac_cv_c_bigendian=no
23299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23303 if test $ac_cv_c_bigendian = unknown; then
23304 # Compile a test program.
23305 if test "$cross_compiling" = yes; then :
23306 # Try to guess by grepping values from an object file.
23307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23308 /* end confdefs.h. */
23309 short int ascii_mm[] =
23310 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23311 short int ascii_ii[] =
23312 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23313 int use_ascii (int i) {
23314 return ascii_mm[i] + ascii_ii[i];
23316 short int ebcdic_ii[] =
23317 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23318 short int ebcdic_mm[] =
23319 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23320 int use_ebcdic (int i) {
23321 return ebcdic_mm[i] + ebcdic_ii[i];
23328 return use_ascii (foo) == use_ebcdic (foo);
23333 if ac_fn_c_try_compile "$LINENO"; then :
23334 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23335 ac_cv_c_bigendian=yes
23337 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23338 if test "$ac_cv_c_bigendian" = unknown; then
23339 ac_cv_c_bigendian=no
23341 # finding both strings is unlikely to happen, but who knows?
23342 ac_cv_c_bigendian=unknown
23346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23349 /* end confdefs.h. */
23350 $ac_includes_default
23355 /* Are we little or big endian? From Harbison&Steele. */
23359 char c[sizeof (long int)];
23362 return u.c[sizeof (long int) - 1] == 1;
23368 if ac_fn_c_try_run "$LINENO"; then :
23369 ac_cv_c_bigendian=no
23371 ac_cv_c_bigendian=yes
23373 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23374 conftest.$ac_objext conftest.beam conftest.$ac_ext
23379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23380 $as_echo "$ac_cv_c_bigendian" >&6; }
23381 case $ac_cv_c_bigendian in #(
23383 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23389 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23393 as_fn_error "unknown endianness
23394 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23402 if test -z "$ZLIBSPEC"; then
23403 # Use zlib from the GCC tree.
23404 ZINCS='-I$(top_srcdir)/../zlib'
23405 ZLIBS=../zlib/libzgcj_convenience.la
23408 SYS_ZLIBS="$ZLIBSPEC"
23420 if test "$NATIVE" = yes; then
23428 if test "$enable_shared" = yes; then
23429 ENABLE_SHARED_TRUE=
23430 ENABLE_SHARED_FALSE='#'
23432 ENABLE_SHARED_TRUE='#'
23433 ENABLE_SHARED_FALSE=
23436 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23437 NEEDS_DATA_START_TRUE=
23438 NEEDS_DATA_START_FALSE='#'
23440 NEEDS_DATA_START_TRUE='#'
23441 NEEDS_DATA_START_FALSE=
23444 if test -z "${with_multisubdir}"; then
23445 INSTALL_BINARIES_TRUE=
23446 INSTALL_BINARIES_FALSE='#'
23448 INSTALL_BINARIES_TRUE='#'
23449 INSTALL_BINARIES_FALSE=
23454 # Process the option "--enable-version-specific-runtime-libs"
23455 # Calculate toolexeclibdir
23456 case ${version_specific_libs} in
23458 # Need the gcc compiler version to know where to install libraries
23459 # and header files if --enable-version-specific-runtime-libs option
23461 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23462 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23463 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23464 toolexeclibdir=$toolexecmainlibdir
23467 if test -n "$with_cross_host" &&
23468 test x"$with_cross_host" != x"no"; then
23469 # Install a library built with a cross compiler in tooldir, not libdir.
23470 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23471 toolexecmainlibdir='$(toolexecdir)/lib'
23473 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23474 toolexecmainlibdir='$(libdir)'
23476 multi_os_directory=`$CC -print-multi-os-directory`
23477 case $multi_os_directory in
23478 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23479 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23487 # Determine gcj and libgcj version number.
23488 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23489 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23490 GCJVERSION=$gcjversion
23493 cat >>confdefs.h <<_ACEOF
23494 #define GCJVERSION "$GCJVERSION"
23498 # Determine where the standard .db file and GNU Classpath JNI
23499 # libraries are found.
23500 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23501 multi_os_directory=`$CC -print-multi-os-directory`
23502 case $multi_os_directory in
23504 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23507 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23514 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23517 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23521 case "${with_gxx_include_dir}" in
23523 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23526 case "${enable_version_specific_runtime_libs}" in
23527 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23529 libstdcxx_incdir='c++/$(gcc_version)'
23530 gxx_include_dir='include/$(libstdcxx_incdir)'
23531 if test -n "$with_cross_host" &&
23532 test x"$with_cross_host" != x"no"; then
23533 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23535 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23538 *) gxx_include_dir=${with_gxx_include_dir} ;;
23544 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23545 # On that system, sys/ioctl.h will not include sys/filio.h unless
23546 # BSD_COMP is defined; just including sys/filio.h is simpler.
23547 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23548 # for now. If you change this, you also must update natFile.cc.
23549 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23550 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23551 sys/socket.h netinet/in.h arpa/inet.h netdb.h net/if.h \
23552 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23553 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23556 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23557 eval as_val=\$$as_ac_Header
23558 if test "x$as_val" = x""yes; then :
23559 cat >>confdefs.h <<_ACEOF
23560 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23567 for ac_header in inttypes.h
23569 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23570 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23571 cat >>confdefs.h <<_ACEOF
23572 #define HAVE_INTTYPES_H 1
23576 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23579 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23587 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23588 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23592 cat >>confdefs.h <<_ACEOF
23593 #define ssize_t int
23598 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23599 #ifdef HAVE_MAGIC_H
23603 if test "x$ac_cv_type_magic_t" = x""yes; then :
23606 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23612 $as_echo_n "checking for in_addr_t... " >&6; }
23613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23614 /* end confdefs.h. */
23615 #include <sys/types.h>
23617 #include <stdlib.h>
23618 #include <stddef.h>
23620 #if HAVE_NETINET_IN_H
23621 #include <netinet/in.h>
23631 if ac_fn_c_try_compile "$LINENO"; then :
23633 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23636 $as_echo "yes" >&6; }
23638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23639 $as_echo "no" >&6; }
23641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23644 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23646 /* end confdefs.h. */
23647 #include <netinet/in.h>
23651 struct ip_mreq mreq;
23656 if ac_fn_c_try_compile "$LINENO"; then :
23658 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23661 $as_echo "yes" >&6; }
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23664 $as_echo "no" >&6; }
23666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23669 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23671 /* end confdefs.h. */
23672 #include <netinet/in.h>
23676 struct ipv6_mreq mreq6;
23681 if ac_fn_c_try_compile "$LINENO"; then :
23683 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23686 $as_echo "yes" >&6; }
23688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23689 $as_echo "no" >&6; }
23691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23694 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23696 /* end confdefs.h. */
23697 #include <netinet/in.h>
23701 struct sockaddr_in6 addr6;
23706 if ac_fn_c_try_compile "$LINENO"; then :
23708 $as_echo "#define HAVE_INET6 1" >>confdefs.h
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23711 $as_echo "yes" >&6; }
23713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23714 $as_echo "no" >&6; }
23716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
23719 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
23720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23721 /* end confdefs.h. */
23722 #define _POSIX_PII_SOCKET
23723 #include <sys/types.h>
23724 #include <sys/socket.h>
23733 if ac_fn_c_try_compile "$LINENO"; then :
23735 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23738 $as_echo "yes" >&6; }
23740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23741 $as_echo "no" >&6; }
23743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
23746 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
23747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23748 /* end confdefs.h. */
23753 struct tm tim; tim.tm_gmtoff = 0;
23758 if ac_fn_c_try_compile "$LINENO"; then :
23760 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23763 $as_echo "yes" >&6; }
23765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23766 $as_echo "no" >&6; }
23767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
23768 $as_echo_n "checking for global timezone variable... " >&6; }
23769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23770 /* end confdefs.h. */
23775 void i(){long z2 = 2*timezone;}
23780 if ac_fn_c_try_compile "$LINENO"; then :
23782 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
23784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23785 $as_echo "yes" >&6; }
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23788 $as_echo "no" >&6; }
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
23790 $as_echo_n "checking for global _timezone variable... " >&6; }
23791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23792 /* end confdefs.h. */
23797 long z2 = _timezone;
23802 if ac_fn_c_try_compile "$LINENO"; then :
23804 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23807 $as_echo "yes" >&6; }
23809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23810 $as_echo "no" >&6; }
23812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23818 for ac_prog in perl
23820 # Extract the first word of "$ac_prog", so it can be a program name with args.
23821 set dummy $ac_prog; ac_word=$2
23822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23823 $as_echo_n "checking for $ac_word... " >&6; }
23824 if test "${ac_cv_prog_PERL+set}" = set; then :
23825 $as_echo_n "(cached) " >&6
23827 if test -n "$PERL"; then
23828 ac_cv_prog_PERL="$PERL" # Let the user override the test.
23830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23831 for as_dir in $PATH
23834 test -z "$as_dir" && as_dir=.
23835 for ac_exec_ext in '' $ac_executable_extensions; do
23836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23837 ac_cv_prog_PERL="$ac_prog"
23838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23847 PERL=$ac_cv_prog_PERL
23848 if test -n "$PERL"; then
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23850 $as_echo "$PERL" >&6; }
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23853 $as_echo "no" >&6; }
23857 test -n "$PERL" && break
23859 test -n "$PERL" || PERL="false"
23863 SIGNAL_HANDLER_AUX=
23867 SIGNAL_HANDLER=include/i386-signal.h
23869 sparc*-sun-solaris*)
23870 SIGNAL_HANDLER=include/sparc-signal.h
23873 # SYSDEP_SOURCES=sysdep/ia64.c
23874 # test -d sysdep || mkdir sysdep
23877 SIGNAL_HANDLER=include/pa-signal.h
23880 SIGNAL_HANDLER=include/hppa-signal.h
23883 SIGNAL_HANDLER=include/dwarf2-signal.h
23886 SIGNAL_HANDLER=include/powerpc-signal.h
23889 SIGNAL_HANDLER=include/dwarf2-signal.h
23892 SIGNAL_HANDLER=include/s390-signal.h
23895 SIGNAL_HANDLER=include/x86_64-signal.h
23896 SIGNAL_HANDLER_AUX=include/i386-signal.h
23899 SIGNAL_HANDLER=include/dwarf2-signal.h
23902 SIGNAL_HANDLER=include/sh-signal.h
23905 SIGNAL_HANDLER=include/win32-signal.h
23908 SIGNAL_HANDLER=include/mips-signal.h
23911 SIGNAL_HANDLER=include/dwarf2-signal.h
23913 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
23914 SIGNAL_HANDLER=include/darwin-signal.h
23917 SIGNAL_HANDLER=include/aix-signal.h
23920 SIGNAL_HANDLER=include/default-signal.h
23924 # If we're using sjlj exceptions, forget what we just learned.
23925 if test "$enable_sjlj_exceptions" = yes; then
23926 SIGNAL_HANDLER=include/default-signal.h
23927 SIGNAL_HANDLER_AUX=
23932 if test -z "$SIGNAL_HANDLER_AUX"; then
23933 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
23936 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
23939 if test "${multilib}" = "yes"; then
23940 multilib_arg="--enable-multilib"
23945 # See if we support thread-local storage.
23948 # Check whether --enable-tls was given.
23949 if test "${enable_tls+set}" = set; then :
23950 enableval=$enable_tls;
23951 case "$enableval" in
23953 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
23962 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
23963 if test "${gcc_cv_have_tls+set}" = set; then :
23964 $as_echo_n "(cached) " >&6
23967 if test "$cross_compiling" = yes; then :
23968 if test x$gcc_no_link = xyes; then
23969 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23972 /* end confdefs.h. */
23973 __thread int a; int b; int main() { return a = b; }
23975 if ac_fn_c_try_link "$LINENO"; then :
23976 chktls_save_LDFLAGS="$LDFLAGS"
23979 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
23982 chktls_save_CFLAGS="$CFLAGS"
23983 CFLAGS="-fPIC $CFLAGS"
23984 if test x$gcc_no_link = xyes; then
23985 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23988 /* end confdefs.h. */
23989 int f() { return 0; }
23991 if ac_fn_c_try_link "$LINENO"; then :
23992 if test x$gcc_no_link = xyes; then
23993 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23996 /* end confdefs.h. */
23997 __thread int a; int b; int f() { return a = b; }
23999 if ac_fn_c_try_link "$LINENO"; then :
24000 gcc_cv_have_tls=yes
24004 rm -f core conftest.err conftest.$ac_objext \
24005 conftest$ac_exeext conftest.$ac_ext
24007 gcc_cv_have_tls=yes
24009 rm -f core conftest.err conftest.$ac_objext \
24010 conftest$ac_exeext conftest.$ac_ext
24011 CFLAGS="$chktls_save_CFLAGS"
24012 LDFLAGS="$chktls_save_LDFLAGS"
24016 rm -f core conftest.err conftest.$ac_objext \
24017 conftest$ac_exeext conftest.$ac_ext
24021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24022 /* end confdefs.h. */
24023 __thread int a; int b; int main() { return a = b; }
24025 if ac_fn_c_try_run "$LINENO"; then :
24026 chktls_save_LDFLAGS="$LDFLAGS"
24027 LDFLAGS="-static $LDFLAGS"
24028 if test x$gcc_no_link = xyes; then
24029 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24032 /* end confdefs.h. */
24033 int main() { return 0; }
24035 if ac_fn_c_try_link "$LINENO"; then :
24036 if test "$cross_compiling" = yes; then :
24037 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24038 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24039 as_fn_error "cannot run test program while cross compiling
24040 See \`config.log' for more details." "$LINENO" 5; }
24042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24043 /* end confdefs.h. */
24044 __thread int a; int b; int main() { return a = b; }
24046 if ac_fn_c_try_run "$LINENO"; then :
24047 gcc_cv_have_tls=yes
24051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24052 conftest.$ac_objext conftest.beam conftest.$ac_ext
24056 gcc_cv_have_tls=yes
24058 rm -f core conftest.err conftest.$ac_objext \
24059 conftest$ac_exeext conftest.$ac_ext
24060 LDFLAGS="$chktls_save_LDFLAGS"
24061 if test $gcc_cv_have_tls = yes; then
24062 chktls_save_CFLAGS="$CFLAGS"
24063 thread_CFLAGS=failed
24064 for flag in '' '-pthread' '-lpthread'; do
24065 CFLAGS="$flag $chktls_save_CFLAGS"
24066 if test x$gcc_no_link = xyes; then
24067 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24070 /* end confdefs.h. */
24071 #include <pthread.h>
24072 void *g(void *d) { return NULL; }
24076 pthread_t t; pthread_create(&t,NULL,g,NULL);
24081 if ac_fn_c_try_link "$LINENO"; then :
24082 thread_CFLAGS="$flag"
24084 rm -f core conftest.err conftest.$ac_objext \
24085 conftest$ac_exeext conftest.$ac_ext
24086 if test "X$thread_CFLAGS" != Xfailed; then
24090 CFLAGS="$chktls_save_CFLAGS"
24091 if test "X$thread_CFLAGS" != Xfailed; then
24092 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24093 if test "$cross_compiling" = yes; then :
24094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24096 as_fn_error "cannot run test program while cross compiling
24097 See \`config.log' for more details." "$LINENO" 5; }
24099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24100 /* end confdefs.h. */
24101 #include <pthread.h>
24103 static int *a_in_other_thread;
24105 thread_func (void *arg)
24107 a_in_other_thread = &a;
24114 void *thread_retval;
24115 int *a_in_main_thread;
24116 if (pthread_create (&thread, (pthread_attr_t *)0,
24117 thread_func, (void *)0))
24119 a_in_main_thread = &a;
24120 if (pthread_join (thread, &thread_retval))
24122 return (a_in_other_thread == a_in_main_thread);
24127 if ac_fn_c_try_run "$LINENO"; then :
24128 gcc_cv_have_tls=yes
24132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24133 conftest.$ac_objext conftest.beam conftest.$ac_ext
24136 CFLAGS="$chktls_save_CFLAGS"
24142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24143 conftest.$ac_objext conftest.beam conftest.$ac_ext
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24148 $as_echo "$gcc_cv_have_tls" >&6; }
24149 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24151 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24155 # For _Unwind_GetIPInfo.
24158 # Check whether --with-system-libunwind was given.
24159 if test "${with_system_libunwind+set}" = set; then :
24160 withval=$with_system_libunwind;
24163 # If system-libunwind was not specifically set, pick a default setting.
24164 if test x$with_system_libunwind = x; then
24166 ia64-*-hpux*) with_system_libunwind=yes ;;
24167 *) with_system_libunwind=no ;;
24170 # Based on system-libunwind and target, do we have ipinfo?
24171 if test x$with_system_libunwind = xyes; then
24173 ia64-*-*) have_unwind_getipinfo=no ;;
24174 *) have_unwind_getipinfo=yes ;;
24177 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24180 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24181 *) have_unwind_getipinfo=yes ;;
24186 if test x$have_unwind_getipinfo = xyes; then
24188 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24193 # See if linker supports anonymous version scripts.
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24195 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24196 if test "${libjava_cv_anon_version_script+set}" = set; then :
24197 $as_echo_n "(cached) " >&6
24199 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24200 libjava_cv_anon_version_script=no
24201 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24202 echo '{ global: globalsymb*; local: *; };' > conftest.map
24203 if test x$gcc_no_link = xyes; then
24204 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24207 /* end confdefs.h. */
24208 void globalsymbol (void) {} void localsymbol (void) {}
24217 if ac_fn_c_try_link "$LINENO"; then :
24218 libjava_cv_anon_version_script=yes
24220 rm -f core conftest.err conftest.$ac_objext \
24221 conftest$ac_exeext conftest.$ac_ext
24222 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24226 $as_echo "$libjava_cv_anon_version_script" >&6; }
24227 if test "$libjava_cv_anon_version_script" = yes; then
24228 ANONVERSCRIPT_TRUE=
24229 ANONVERSCRIPT_FALSE='#'
24231 ANONVERSCRIPT_TRUE='#'
24232 ANONVERSCRIPT_FALSE=
24236 # Check if linker supports static linking on a per library basis
24237 LD_START_STATIC_SPEC=
24238 LD_FINISH_STATIC_SPEC=
24239 if $LD --help 2>&1 | grep -q -e -call_shared ; then
24240 if $LD --help 2>&1 | grep -q -e -non_shared ; then
24241 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24242 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24248 here=`${PWDCMD-pwd}`
24251 # We get this from the environment.
24255 # Check whether --with-python-dir was given.
24256 if test "${with_python_dir+set}" = set; then :
24257 withval=$with_python_dir; with_python_dir=$withval
24263 if test "x${with_python_dir}" = "x"
24265 # Needed for installing Python modules during make install.
24266 python_mod_dir="\${prefix}/share/python"
24267 # Needed for substituting into aot-compile*
24268 python_mod_dir_expanded="${prefix}/share/python"
24270 python_mod_dir="\${prefix}${with_python_dir}"
24271 python_mod_dir_expanded="${prefix}${with_python_dir}"
24273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24274 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24278 # needed for aot-compile-rpm
24282 # Check whether --enable-aot-compile-rpm was given.
24283 if test "${enable_aot_compile_rpm+set}" = set; then :
24284 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24285 yes) AOT_RPM_ENABLED=yes ;;
24286 no) AOT_RPM_ENABLED=no ;;
24287 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24294 if test "x${AOT_RPM_ENABLED}" = xyes; then
24295 INSTALL_AOT_RPM_TRUE=
24296 INSTALL_AOT_RPM_FALSE='#'
24298 INSTALL_AOT_RPM_TRUE='#'
24299 INSTALL_AOT_RPM_FALSE=
24303 # Check whether --enable-java-home was given.
24304 if test "${enable_java_home+set}" = set; then :
24305 enableval=$enable_java_home; case "${enableval}" in
24306 yes) JAVA_HOME_ENABLED=yes ;;
24307 no) JAVA_HOME_ENABLED=no ;;
24308 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24311 JAVA_HOME_ENABLED=no
24315 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24316 CREATE_JAVA_HOME_TRUE=
24317 CREATE_JAVA_HOME_FALSE='#'
24319 CREATE_JAVA_HOME_TRUE='#'
24320 CREATE_JAVA_HOME_FALSE=
24324 # Only do these checks if java-home above is enabled.
24325 if test "x${JAVA_HOME_ENABLED}" = xyes
24329 # Check whether --with-gcc-suffix was given.
24330 if test "${with_gcc_suffix+set}" = set; then :
24331 withval=$with_gcc_suffix; gcc_suffix=$withval
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24337 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24341 # Check whether --with-arch-directory was given.
24342 if test "${with_arch_directory+set}" = set; then :
24343 withval=$with_arch_directory; host_cpu=$withval
24350 # Check whether --with-os-directory was given.
24351 if test "${with_os_directory+set}" = set; then :
24352 withval=$with_os_directory; host_os=$withval
24359 # Check whether --with-origin-name was given.
24360 if test "${with_origin_name+set}" = set; then :
24361 withval=$with_origin_name; origin_name=$withval
24363 origin_name=gcj${gcc_suffix}
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24367 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24370 # Check whether --with-arch-suffix was given.
24371 if test "${with_arch_suffix+set}" = set; then :
24372 withval=$with_arch_suffix; arch_suffix=$withval
24377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24378 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24381 # Check whether --with-jvm-root-dir was given.
24382 if test "${with_jvm_root_dir+set}" = set; then :
24383 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24385 jvm_root_dir="\${prefix}/lib/jvm"
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24389 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24392 # Check whether --with-jvm-jar-dir was given.
24393 if test "${with_jvm_jar_dir+set}" = set; then :
24394 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24396 jvm_jar_dir=\${prefix}/lib/jvm-exports
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24400 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24407 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24410 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24411 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24413 JVM_ROOT_DIR=${jvm_root_dir}
24415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24416 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24418 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24421 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24423 JVM_JAR_DIR=${jvm_jar_dir}
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24426 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24437 SDK_BIN_DIR=${jvm_root_dir}/bin
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24440 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24442 SDK_LIB_DIR=${jvm_root_dir}/lib
24444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24445 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24447 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24450 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24452 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24455 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24457 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24460 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24462 # Find gcj prefix using gcj found in PATH.
24463 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24465 # Where do the gcj binaries live?
24466 # For jhbuild based builds, they all live in a sibling of bin called
24467 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24468 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24471 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24474 $as_echo "host is ${host}" >&6; }
24475 if test "x${host_cpu}" = "x"
24478 *-mingw* | *-cygwin*)
24480 i486-* | i586-* | i686-*)
24485 host_cpu=${host_cpu};;
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24489 $as_echo "arch directory: ${host_cpu}" >&6; }
24493 if test "x${host_os}" = "x"
24496 *-mingw* | *-cygwin*)
24501 host_os=${host_os};;
24504 echo os directory: ${host_os}
24508 # make an expanded $libdir, for substituting into
24509 # scripts (and other non-Makefile things).
24511 if test "x${exec_prefix}" = "xNONE"
24513 lib_exec_prefix=$prefix
24515 lib_exec_prefix=$exec_prefix
24517 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24521 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"
24524 if test ${multilib} = yes; then
24525 multilib_arg="--enable-multilib"
24530 ac_config_files="$ac_config_files scripts/jar"
24532 cat >confcache <<\_ACEOF
24533 # This file is a shell script that caches the results of configure
24534 # tests run on this system so they can be shared between configure
24535 # scripts and configure runs, see configure's option --config-cache.
24536 # It is not useful on other systems. If it contains results you don't
24537 # want to keep, you may remove or edit it.
24539 # config.status only pays attention to the cache file if you give it
24540 # the --recheck option to rerun configure.
24542 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24543 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24544 # following values.
24548 # The following way of writing the cache mishandles newlines in values,
24549 # but we know of no workaround that is simple, portable, and efficient.
24550 # So, we kill variables containing newlines.
24551 # Ultrix sh set writes to stderr and can't be redirected directly,
24552 # and sets the high bit in the cache file unless we assign to the vars.
24554 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24555 eval ac_val=\$$ac_var
24559 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24560 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24563 _ | IFS | as_nl) ;; #(
24564 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24565 *) { eval $ac_var=; unset $ac_var;} ;;
24571 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24572 *${as_nl}ac_space=\ *)
24573 # `set' does not quote correctly, so add quotes: double-quote
24574 # substitution turns \\\\ into \\, and sed turns \\ into \.
24577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24580 # `set' quotes correctly as required by POSIX, so do not add quotes.
24581 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24590 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24592 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24594 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24595 if test -w "$cache_file"; then
24596 test "x$cache_file" != "x/dev/null" &&
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24598 $as_echo "$as_me: updating cache $cache_file" >&6;}
24599 cat confcache >$cache_file
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24602 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24607 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24608 # Let make expand exec_prefix.
24609 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24611 DEFS=-DHAVE_CONFIG_H
24615 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24616 # 1. Remove the extension, and $U if already installed.
24617 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24618 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24619 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24620 # will be set to the directory where LIBOBJS objects are built.
24621 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24622 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24624 LIBOBJS=$ac_libobjs
24626 LTLIBOBJS=$ac_ltlibobjs
24629 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24630 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24633 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24634 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24637 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24638 as_fn_error "conditional \"AMDEP\" was never defined.
24639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24641 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24642 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24645 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24646 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24649 if test -n "$EXEEXT"; then
24651 am__EXEEXT_FALSE='#'
24653 am__EXEEXT_TRUE='#'
24657 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24658 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24661 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
24662 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
24663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24665 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
24666 as_fn_error "conditional \"XLIB_AWT\" was never defined.
24667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24669 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
24670 as_fn_error "conditional \"X_AWT\" was never defined.
24671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24673 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24674 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24677 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24678 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24681 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
24682 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
24683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24685 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
24686 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
24687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24689 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
24690 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
24691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24693 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
24694 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
24695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24697 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
24698 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
24699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24701 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
24702 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
24703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24705 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
24706 as_fn_error "conditional \"INTERPRETER\" was never defined.
24707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24709 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
24710 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
24711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24713 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
24714 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
24715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24717 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
24718 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
24719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24721 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
24722 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
24723 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24725 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
24726 as_fn_error "conditional \"USING_NOGC\" was never defined.
24727 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24729 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
24730 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
24731 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24733 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
24734 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
24735 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24737 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
24738 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
24739 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24741 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
24742 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
24743 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24745 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
24746 as_fn_error "conditional \"USING_GCC\" was never defined.
24747 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24749 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24750 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24751 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24754 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
24755 as_fn_error "conditional \"NATIVE\" was never defined.
24756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24758 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
24759 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
24760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24762 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
24763 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
24764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24766 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24767 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24770 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
24771 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
24772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24774 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
24775 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
24776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24778 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
24779 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
24780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24783 : ${CONFIG_STATUS=./config.status}
24785 ac_clean_files_save=$ac_clean_files
24786 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24787 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24788 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24790 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24792 # Generated by $as_me.
24793 # Run this file to recreate the current configuration.
24794 # Compiler output produced by configure, useful for debugging
24795 # configure, is in config.log if it exists.
24798 ac_cs_recheck=false
24801 SHELL=\${CONFIG_SHELL-$SHELL}
24804 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24805 ## -------------------- ##
24806 ## M4sh Initialization. ##
24807 ## -------------------- ##
24809 # Be more Bourne compatible
24810 DUALCASE=1; export DUALCASE # for MKS sh
24811 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24814 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24815 # is contrary to our usage. Disable this feature.
24816 alias -g '${1+"$@"}'='"$@"'
24817 setopt NO_GLOB_SUBST
24819 case `(set -o) 2>/dev/null` in #(
24831 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24832 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24833 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24834 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24835 # Prefer a ksh shell builtin over an external printf program on Solaris,
24836 # but without wasting forks for bash or zsh.
24837 if test -z "$BASH_VERSION$ZSH_VERSION" \
24838 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24839 as_echo='print -r --'
24840 as_echo_n='print -rn --'
24841 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24842 as_echo='printf %s\n'
24843 as_echo_n='printf %s'
24845 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24846 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24847 as_echo_n='/usr/ucb/echo -n'
24849 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24850 as_echo_n_body='eval
24854 expr "X$arg" : "X\\(.*\\)$as_nl";
24855 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24857 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24859 export as_echo_n_body
24860 as_echo_n='sh -c $as_echo_n_body as_echo'
24862 export as_echo_body
24863 as_echo='sh -c $as_echo_body as_echo'
24866 # The user is always right.
24867 if test "${PATH_SEPARATOR+set}" != set; then
24869 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24870 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24877 # We need space, tab and new line, in precisely that order. Quoting is
24878 # there to prevent editors from complaining about space-tab.
24879 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24880 # splitting by setting IFS to empty value.)
24883 # Find who we are. Look in the path if we contain no directory separator.
24885 *[\\/]* ) as_myself=$0 ;;
24886 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24887 for as_dir in $PATH
24890 test -z "$as_dir" && as_dir=.
24891 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24897 # We did not find ourselves, most probably we were run as `sh COMMAND'
24898 # in which case we are not to be found in the path.
24899 if test "x$as_myself" = x; then
24902 if test ! -f "$as_myself"; then
24903 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24907 # Unset variables that we do not need and which cause bugs (e.g. in
24908 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24909 # suppresses any "Segmentation fault" message there. '((' could
24910 # trigger a bug in pdksh 5.2.14.
24911 for as_var in BASH_ENV ENV MAIL MAILPATH
24912 do eval test x\${$as_var+set} = xset \
24913 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24926 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24929 # as_fn_error ERROR [LINENO LOG_FD]
24930 # ---------------------------------
24931 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24932 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24933 # script with status $?, using 1 if that was 0.
24936 as_status=$?; test $as_status -eq 0 && as_status=1
24938 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24939 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24941 $as_echo "$as_me: error: $1" >&2
24942 as_fn_exit $as_status
24946 # as_fn_set_status STATUS
24947 # -----------------------
24948 # Set $? to STATUS, without forking.
24949 as_fn_set_status ()
24952 } # as_fn_set_status
24954 # as_fn_exit STATUS
24955 # -----------------
24956 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24960 as_fn_set_status $1
24966 # Portably unset VAR.
24969 { eval $1=; unset $1;}
24971 as_unset=as_fn_unset
24972 # as_fn_append VAR VALUE
24973 # ----------------------
24974 # Append the text in VALUE to the end of the definition contained in VAR. Take
24975 # advantage of any shell optimizations that allow amortized linear growth over
24976 # repeated appends, instead of the typical quadratic growth present in naive
24978 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
24979 eval 'as_fn_append ()
24990 # as_fn_arith ARG...
24991 # ------------------
24992 # Perform arithmetic evaluation on the ARGs, and store the result in the
24993 # global $as_val. Take advantage of shells that can avoid forks. The arguments
24994 # must be portable across $(()) and expr.
24995 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
24996 eval 'as_fn_arith ()
25003 as_val=`expr "$@" || test $? -eq 1`
25008 if expr a : '\(a\)' >/dev/null 2>&1 &&
25009 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25015 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25016 as_basename=basename
25021 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25027 as_me=`$as_basename -- "$0" ||
25028 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25029 X"$0" : 'X\(//\)$' \| \
25030 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25032 sed '/^.*\/\([^/][^/]*\)\/*$/{
25046 # Avoid depending upon Character Ranges.
25047 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25048 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25049 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25050 as_cr_digits='0123456789'
25051 as_cr_alnum=$as_cr_Letters$as_cr_digits
25053 ECHO_C= ECHO_N= ECHO_T=
25054 case `echo -n x` in #(((((
25056 case `echo 'xy\c'` in
25057 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25059 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25066 rm -f conf$$ conf$$.exe conf$$.file
25067 if test -d conf$$.dir; then
25068 rm -f conf$$.dir/conf$$.file
25071 mkdir conf$$.dir 2>/dev/null
25073 if (echo >conf$$.file) 2>/dev/null; then
25074 if ln -s conf$$.file conf$$ 2>/dev/null; then
25076 # ... but there are two gotchas:
25077 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25078 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25079 # In both cases, we have to default to `cp -p'.
25080 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25082 elif ln conf$$.file conf$$ 2>/dev/null; then
25090 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25091 rmdir conf$$.dir 2>/dev/null
25096 # Create "$as_dir" as a directory, including parents if necessary.
25101 -*) as_dir=./$as_dir;;
25103 test -d "$as_dir" || eval $as_mkdir_p || {
25107 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25108 *) as_qdir=$as_dir;;
25110 as_dirs="'$as_qdir' $as_dirs"
25111 as_dir=`$as_dirname -- "$as_dir" ||
25112 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25113 X"$as_dir" : 'X\(//\)[^/]' \| \
25114 X"$as_dir" : 'X\(//\)$' \| \
25115 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25116 $as_echo X"$as_dir" |
25117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25121 /^X\(\/\/\)[^/].*/{
25134 test -d "$as_dir" && break
25136 test -z "$as_dirs" || eval "mkdir $as_dirs"
25137 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25141 if mkdir -p . 2>/dev/null; then
25142 as_mkdir_p='mkdir -p "$as_dir"'
25144 test -d ./-p && rmdir ./-p
25148 if test -x / >/dev/null 2>&1; then
25149 as_test_x='test -x'
25151 if ls -dL / >/dev/null 2>&1; then
25158 if test -d "$1"; then
25164 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25165 ???[sx]*):;;*)false;;esac;fi
25169 as_executable_p=$as_test_x
25171 # Sed expression to map a string onto a valid CPP name.
25172 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25174 # Sed expression to map a string onto a valid variable name.
25175 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25179 ## ----------------------------------- ##
25180 ## Main body of $CONFIG_STATUS script. ##
25181 ## ----------------------------------- ##
25183 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25185 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25186 # Save the log message, to keep $0 and so on meaningful, and to
25187 # report actual input values of CONFIG_FILES etc. instead of their
25188 # values after options handling.
25190 This file was extended by libjava $as_me version-unused, which was
25191 generated by GNU Autoconf 2.64. Invocation command line was
25193 CONFIG_FILES = $CONFIG_FILES
25194 CONFIG_HEADERS = $CONFIG_HEADERS
25195 CONFIG_LINKS = $CONFIG_LINKS
25196 CONFIG_COMMANDS = $CONFIG_COMMANDS
25199 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25204 case $ac_config_files in *"
25205 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25208 case $ac_config_headers in *"
25209 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25214 # Files that config.status was made for.
25215 config_files="$ac_config_files"
25216 config_headers="$ac_config_headers"
25217 config_links="$ac_config_links"
25218 config_commands="$ac_config_commands"
25222 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25224 \`$as_me' instantiates files and other configuration actions
25225 from templates according to the current configuration. Unless the files
25226 and actions are specified as TAGs, all are instantiated by default.
25228 Usage: $0 [OPTION]... [TAG]...
25230 -h, --help print this help, then exit
25231 -V, --version print version number and configuration settings, then exit
25232 -q, --quiet, --silent
25233 do not print progress messages
25234 -d, --debug don't remove temporary files
25235 --recheck update $as_me by reconfiguring in the same conditions
25236 --file=FILE[:TEMPLATE]
25237 instantiate the configuration file FILE
25238 --header=FILE[:TEMPLATE]
25239 instantiate the configuration header FILE
25241 Configuration files:
25244 Configuration headers:
25247 Configuration links:
25250 Configuration commands:
25253 Report bugs to the package provider."
25256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25258 libjava config.status version-unused
25259 configured by $0, generated by GNU Autoconf 2.64,
25260 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25262 Copyright (C) 2009 Free Software Foundation, Inc.
25263 This config.status script is free software; the Free Software Foundation
25264 gives unlimited permission to copy, distribute and modify it."
25271 test -n "\$AWK" || AWK=awk
25274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25275 # The default lists apply if the user does not specify any file.
25281 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25282 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25293 # Handling of the options.
25294 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25296 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25297 $as_echo "$ac_cs_version"; exit ;;
25298 --debug | --debu | --deb | --de | --d | -d )
25300 --file | --fil | --fi | --f )
25303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25305 as_fn_append CONFIG_FILES " '$ac_optarg'"
25306 ac_need_defaults=false;;
25307 --header | --heade | --head | --hea )
25310 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25312 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25313 ac_need_defaults=false;;
25315 # Conflict between --help and --header
25316 as_fn_error "ambiguous option: \`$1'
25317 Try \`$0 --help' for more information.";;
25318 --help | --hel | -h )
25319 $as_echo "$ac_cs_usage"; exit ;;
25320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25321 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25324 # This is an error.
25325 -*) as_fn_error "unrecognized option: \`$1'
25326 Try \`$0 --help' for more information." ;;
25328 *) as_fn_append ac_config_targets " $1"
25329 ac_need_defaults=false ;;
25335 ac_configure_extra_args=
25337 if $ac_cs_silent; then
25339 ac_configure_extra_args="$ac_configure_extra_args --silent"
25343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25344 if \$ac_cs_recheck; then
25345 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25347 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25348 CONFIG_SHELL='$SHELL'
25349 export CONFIG_SHELL
25354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25358 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25359 ## Running $as_me. ##
25365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25373 with_multisubdir="$with_multisubdir"
25374 with_multisrctop="$with_multisrctop"
25375 with_target_subdir="$with_target_subdir"
25376 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25377 multi_basedir="$multi_basedir"
25378 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25381 GFORTRAN="$GFORTRAN"
25383 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25386 # The HP-UX ksh and POSIX shell print the target directory to stdout
25387 # if CDPATH is set.
25388 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25390 sed_quote_subst='$sed_quote_subst'
25391 double_quote_subst='$double_quote_subst'
25392 delay_variable_subst='$delay_variable_subst'
25393 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25394 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25395 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25396 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25397 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25398 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
25399 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
25400 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
25401 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
25402 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
25403 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
25404 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
25405 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
25406 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
25407 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
25408 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
25409 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
25410 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
25411 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
25412 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
25413 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
25414 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
25415 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
25416 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
25417 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
25418 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
25419 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
25420 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25421 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
25422 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
25423 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
25424 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
25425 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25426 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
25427 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
25428 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25429 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25430 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25431 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
25432 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25433 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
25434 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
25435 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
25436 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
25437 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"`'
25438 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"`'
25439 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
25440 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
25441 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
25442 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
25443 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
25444 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
25445 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
25446 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
25447 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
25448 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
25449 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
25450 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
25451 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
25452 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
25453 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
25454 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
25455 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25456 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25457 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
25458 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
25459 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25460 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25461 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
25462 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25463 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25464 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25465 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25466 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25467 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25468 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
25469 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25470 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25471 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25472 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
25473 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
25474 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
25475 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
25476 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
25477 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25478 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
25479 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
25480 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
25481 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
25482 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
25483 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25484 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25485 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25486 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25487 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
25488 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
25489 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25490 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
25491 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
25492 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25493 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25494 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
25495 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25496 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
25497 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25498 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25499 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25500 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25501 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
25502 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
25503 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25504 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25505 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
25506 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
25507 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
25508 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
25509 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
25510 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
25511 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
25512 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25513 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
25514 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
25515 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
25516 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
25517 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25518 LD_GCJ='`$ECHO "X$LD_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25519 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25520 old_archive_cmds_GCJ='`$ECHO "X$old_archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25521 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25522 compiler_GCJ='`$ECHO "X$compiler_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25523 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25524 GCC_GCJ='`$ECHO "X$GCC_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25525 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25526 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "X$lt_prog_compiler_no_builtin_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25527 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25528 lt_prog_compiler_wl_GCJ='`$ECHO "X$lt_prog_compiler_wl_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25529 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25530 lt_prog_compiler_pic_GCJ='`$ECHO "X$lt_prog_compiler_pic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25531 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25532 lt_prog_compiler_static_GCJ='`$ECHO "X$lt_prog_compiler_static_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25533 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25534 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "X$lt_cv_prog_compiler_c_o_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25535 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25536 archive_cmds_need_lc_GCJ='`$ECHO "X$archive_cmds_need_lc_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25537 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25538 enable_shared_with_static_runtimes_GCJ='`$ECHO "X$enable_shared_with_static_runtimes_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25539 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25540 export_dynamic_flag_spec_GCJ='`$ECHO "X$export_dynamic_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25541 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25542 whole_archive_flag_spec_GCJ='`$ECHO "X$whole_archive_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25543 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25544 compiler_needs_object_GCJ='`$ECHO "X$compiler_needs_object_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25545 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25546 old_archive_from_new_cmds_GCJ='`$ECHO "X$old_archive_from_new_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25547 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25548 old_archive_from_expsyms_cmds_GCJ='`$ECHO "X$old_archive_from_expsyms_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25549 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25550 archive_cmds_GCJ='`$ECHO "X$archive_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25551 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25552 archive_expsym_cmds_GCJ='`$ECHO "X$archive_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25553 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25554 module_cmds_GCJ='`$ECHO "X$module_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25555 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25556 module_expsym_cmds_GCJ='`$ECHO "X$module_expsym_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25557 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25558 with_gnu_ld_GCJ='`$ECHO "X$with_gnu_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25559 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25560 allow_undefined_flag_GCJ='`$ECHO "X$allow_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25561 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25562 no_undefined_flag_GCJ='`$ECHO "X$no_undefined_flag_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25563 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25564 hardcode_libdir_flag_spec_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25565 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25566 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "X$hardcode_libdir_flag_spec_ld_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25567 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25568 hardcode_libdir_separator_GCJ='`$ECHO "X$hardcode_libdir_separator_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25569 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25570 hardcode_direct_GCJ='`$ECHO "X$hardcode_direct_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25571 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25572 hardcode_direct_absolute_GCJ='`$ECHO "X$hardcode_direct_absolute_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25573 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25574 hardcode_minus_L_GCJ='`$ECHO "X$hardcode_minus_L_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25575 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25576 hardcode_shlibpath_var_GCJ='`$ECHO "X$hardcode_shlibpath_var_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25577 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25578 hardcode_automatic_GCJ='`$ECHO "X$hardcode_automatic_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25579 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25580 inherit_rpath_GCJ='`$ECHO "X$inherit_rpath_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25581 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25582 link_all_deplibs_GCJ='`$ECHO "X$link_all_deplibs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25583 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25584 fix_srcfile_path_GCJ='`$ECHO "X$fix_srcfile_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25585 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25586 always_export_symbols_GCJ='`$ECHO "X$always_export_symbols_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25587 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25588 export_symbols_cmds_GCJ='`$ECHO "X$export_symbols_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25589 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25590 exclude_expsyms_GCJ='`$ECHO "X$exclude_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25591 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25592 include_expsyms_GCJ='`$ECHO "X$include_expsyms_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25593 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25594 prelink_cmds_GCJ='`$ECHO "X$prelink_cmds_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25595 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25596 file_list_spec_GCJ='`$ECHO "X$file_list_spec_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25597 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25598 hardcode_action_GCJ='`$ECHO "X$hardcode_action_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25599 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25600 compiler_lib_search_dirs_GCJ='`$ECHO "X$compiler_lib_search_dirs_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25601 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25602 predep_objects_GCJ='`$ECHO "X$predep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25603 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25604 postdep_objects_GCJ='`$ECHO "X$postdep_objects_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25605 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25606 predeps_GCJ='`$ECHO "X$predeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25607 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25608 postdeps_GCJ='`$ECHO "X$postdeps_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25609 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
25610 compiler_lib_search_path_GCJ='`$ECHO "X$compiler_lib_search_path_GCJ" | $Xsed -e "$delay_single_quote_subst"`'
25613 LTCFLAGS='$LTCFLAGS'
25614 compiler='$compiler_DEFAULT'
25616 # Quote evaled strings.
25628 deplibs_check_method \
25637 lt_cv_sys_global_symbol_pipe \
25638 lt_cv_sys_global_symbol_to_cdecl \
25639 lt_cv_sys_global_symbol_to_c_name_address \
25640 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25643 lt_prog_compiler_no_builtin_flag \
25644 lt_prog_compiler_wl \
25645 lt_prog_compiler_pic \
25646 lt_prog_compiler_static \
25647 lt_cv_prog_compiler_c_o \
25655 export_dynamic_flag_spec \
25656 whole_archive_flag_spec \
25657 compiler_needs_object \
25659 allow_undefined_flag \
25660 no_undefined_flag \
25661 hardcode_libdir_flag_spec \
25662 hardcode_libdir_flag_spec_ld \
25663 hardcode_libdir_separator \
25668 variables_saved_for_relink \
25670 library_names_spec \
25675 compiler_lib_search_dirs \
25680 compiler_lib_search_path \
25685 lt_prog_compiler_no_builtin_flag_CXX \
25686 lt_prog_compiler_no_builtin_flag_GCJ \
25687 lt_prog_compiler_wl_CXX \
25688 lt_prog_compiler_wl_GCJ \
25689 lt_prog_compiler_pic_CXX \
25690 lt_prog_compiler_pic_GCJ \
25691 lt_prog_compiler_static_CXX \
25692 lt_prog_compiler_static_GCJ \
25693 lt_cv_prog_compiler_c_o_CXX \
25694 lt_cv_prog_compiler_c_o_GCJ \
25695 export_dynamic_flag_spec_CXX \
25696 export_dynamic_flag_spec_GCJ \
25697 whole_archive_flag_spec_CXX \
25698 whole_archive_flag_spec_GCJ \
25699 compiler_needs_object_CXX \
25700 compiler_needs_object_GCJ \
25703 allow_undefined_flag_CXX \
25704 allow_undefined_flag_GCJ \
25705 no_undefined_flag_CXX \
25706 no_undefined_flag_GCJ \
25707 hardcode_libdir_flag_spec_CXX \
25708 hardcode_libdir_flag_spec_GCJ \
25709 hardcode_libdir_flag_spec_ld_CXX \
25710 hardcode_libdir_flag_spec_ld_GCJ \
25711 hardcode_libdir_separator_CXX \
25712 hardcode_libdir_separator_GCJ \
25713 fix_srcfile_path_CXX \
25714 fix_srcfile_path_GCJ \
25715 exclude_expsyms_CXX \
25716 exclude_expsyms_GCJ \
25717 include_expsyms_CXX \
25718 include_expsyms_GCJ \
25719 file_list_spec_CXX \
25720 file_list_spec_GCJ \
25721 compiler_lib_search_dirs_CXX \
25722 compiler_lib_search_dirs_GCJ \
25723 predep_objects_CXX \
25724 predep_objects_GCJ \
25725 postdep_objects_CXX \
25726 postdep_objects_GCJ \
25731 compiler_lib_search_path_CXX \
25732 compiler_lib_search_path_GCJ; do
25733 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25734 *[\\\\\\\`\\"\\\$]*)
25735 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25738 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25743 # Double-quote double-evaled strings.
25744 for var in reload_cmds \
25745 old_postinstall_cmds \
25746 old_postuninstall_cmds \
25748 extract_expsyms_cmds \
25749 old_archive_from_new_cmds \
25750 old_archive_from_expsyms_cmds \
25752 archive_expsym_cmds \
25754 module_expsym_cmds \
25755 export_symbols_cmds \
25758 postuninstall_cmds \
25760 sys_lib_search_path_spec \
25761 sys_lib_dlsearch_path_spec \
25762 old_archive_cmds_CXX \
25763 old_archive_cmds_GCJ \
25764 old_archive_from_new_cmds_CXX \
25765 old_archive_from_new_cmds_GCJ \
25766 old_archive_from_expsyms_cmds_CXX \
25767 old_archive_from_expsyms_cmds_GCJ \
25770 archive_expsym_cmds_CXX \
25771 archive_expsym_cmds_GCJ \
25774 module_expsym_cmds_CXX \
25775 module_expsym_cmds_GCJ \
25776 export_symbols_cmds_CXX \
25777 export_symbols_cmds_GCJ \
25779 prelink_cmds_GCJ; do
25780 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25781 *[\\\\\\\`\\"\\\$]*)
25782 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25785 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25790 # Fix-up fallback echo if it was mangled by the above quoting rules.
25792 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
25796 ac_aux_dir='$ac_aux_dir'
25797 xsi_shell='$xsi_shell'
25798 lt_shell_append='$lt_shell_append'
25800 # See if we are running on zsh, and set the options which allow our
25801 # commands through without removal of \ escapes INIT.
25802 if test -n "\${ZSH_VERSION+set}" ; then
25803 setopt NO_GLOB_SUBST
25809 TIMESTAMP='$TIMESTAMP'
25822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25824 # Handling of arguments.
25825 for ac_config_target in $ac_config_targets
25827 case $ac_config_target in
25828 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25829 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25830 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25831 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
25832 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25833 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
25834 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
25835 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
25836 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
25837 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
25838 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
25839 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
25840 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
25841 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
25842 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
25843 "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" ;;
25844 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
25845 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
25846 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
25847 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
25848 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
25849 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
25850 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
25851 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25852 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
25853 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
25854 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
25855 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
25856 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25857 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
25858 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
25859 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
25860 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
25861 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
25862 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
25863 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
25865 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25870 # If the user did not use the arguments to specify the items to instantiate,
25871 # then the envvar interface is used. Set only those that are not.
25872 # We use the long form for the default assignment because of an extremely
25873 # bizarre bug on SunOS 4.1.3.
25874 if $ac_need_defaults; then
25875 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25876 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25877 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25878 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25881 # Have a temporary directory for convenience. Make it in the build tree
25882 # simply because there is no reason against having it here, and in addition,
25883 # creating and moving files from /tmp can sometimes cause problems.
25884 # Hook for its removal unless debugging.
25885 # Note that there is a small window in which the directory will not be cleaned:
25886 # after its creation but before its name has been assigned to `$tmp'.
25890 trap 'exit_status=$?
25891 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25893 trap 'as_fn_exit 1' 1 2 13 15
25895 # Create a (secure) tmp directory for tmp files.
25898 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25899 test -n "$tmp" && test -d "$tmp"
25902 tmp=./conf$$-$RANDOM
25903 (umask 077 && mkdir "$tmp")
25904 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25906 # Set up the scripts for CONFIG_FILES section.
25907 # No need to generate them if there are no CONFIG_FILES.
25908 # This happens for instance with `./config.status config.h'.
25909 if test -n "$CONFIG_FILES"; then
25912 ac_cr=`echo X | tr X '\015'`
25913 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25914 # But we know of no other shell where ac_cr would be empty at this
25915 # point, so we can use a bashism as a fallback.
25916 if test "x$ac_cr" = x; then
25917 eval ac_cr=\$\'\\r\'
25919 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25920 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25923 ac_cs_awk_cr=$ac_cr
25926 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25931 echo "cat >conf$$subs.awk <<_ACEOF" &&
25932 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25934 } >conf$$subs.sh ||
25935 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25936 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25938 for ac_last_try in false false false false false :; do
25939 . ./conf$$subs.sh ||
25940 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25943 if test $ac_delim_n = $ac_delim_num; then
25945 elif $ac_last_try; then
25946 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25948 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25951 rm -f conf$$subs.sh
25953 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25954 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25958 s/^/S["/; s/!.*/"]=/
25968 s/\(.\{148\}\).*/\1/
25970 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25975 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25982 s/\(.\{148\}\).*/\1/
25984 s/["\\]/\\&/g; s/^/"/; s/$/"/
25988 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25993 ' <conf$$subs.awk | sed '
25998 ' >>$CONFIG_STATUS || ac_write_fail=1
25999 rm -f conf$$subs.awk
26000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26002 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26003 for (key in S) S_is_set[key] = 1
26009 nfields = split(line, field, "@")
26011 len = length(field[1])
26012 for (i = 2; i < nfields; i++) {
26014 keylen = length(key)
26015 if (S_is_set[key]) {
26017 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26018 len += length(value) + length(field[++i])
26029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26030 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26031 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26034 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26035 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26038 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26039 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26040 # trailing colons and then remove the whole line if VPATH becomes empty
26041 # (actually we leave an empty line to preserve line numbers).
26042 if test "x$srcdir" = x.; then
26043 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26044 s/:*\$(srcdir):*/:/
26045 s/:*\${srcdir}:*/:/
26047 s/^\([^=]*=[ ]*\):*/\1/
26053 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26054 fi # test -n "$CONFIG_FILES"
26056 # Set up the scripts for CONFIG_HEADERS section.
26057 # No need to generate them if there are no CONFIG_HEADERS.
26058 # This happens for instance with `./config.status Makefile'.
26059 if test -n "$CONFIG_HEADERS"; then
26060 cat >"$tmp/defines.awk" <<\_ACAWK ||
26064 # Transform confdefs.h into an awk script `defines.awk', embedded as
26065 # here-document in config.status, that substitutes the proper values into
26066 # config.h.in to produce config.h.
26068 # Create a delimiter string that does not exist in confdefs.h, to ease
26069 # handling of long lines.
26071 for ac_last_try in false false :; do
26072 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26073 if test -z "$ac_t"; then
26075 elif $ac_last_try; then
26076 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26078 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26082 # For the awk script, D is an array of macro values keyed by name,
26083 # likewise P contains macro parameters if any. Preserve backslash
26084 # newline sequences.
26086 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26088 s/.\{148\}/&'"$ac_delim"'/g
26091 s/^[ ]*#[ ]*define[ ][ ]*/ /
26098 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26100 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26104 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26105 D["\1"]=" \3\\\\\\n"\\/p
26107 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26112 s/.\{148\}/&'"$ac_delim"'/g
26117 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26120 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26122 ' <confdefs.h | sed '
26123 s/'"$ac_delim"'/"\\\
26124 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26126 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26127 for (key in D) D_is_set[key] = 1
26130 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26132 split(line, arg, " ")
26133 if (arg[1] == "#") {
26137 defundef = substr(arg[1], 2)
26140 split(mac1, mac2, "(") #)
26142 prefix = substr(line, 1, index(line, defundef) - 1)
26143 if (D_is_set[macro]) {
26144 # Preserve the white space surrounding the "#".
26145 print prefix "define", macro P[macro] D[macro]
26148 # Replace #undef with comments. This is necessary, for example,
26149 # in the case of _POSIX_SOURCE, which is predefined and required
26150 # on some systems where configure will not decide to define it.
26151 if (defundef == "undef") {
26152 print "/*", prefix defundef, macro, "*/"
26160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26161 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26162 fi # test -n "$CONFIG_HEADERS"
26165 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26170 :[FHLC]) ac_mode=$ac_tag; continue;;
26172 case $ac_mode$ac_tag in
26174 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26175 :[FH]-) ac_tag=-:-;;
26176 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26193 -) ac_f="$tmp/stdin";;
26194 *) # Look for the file first in the build tree, then in the source tree
26195 # (if the path is not absolute). The absolute path cannot be DOS-style,
26196 # because $ac_f cannot contain `:'.
26200 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26202 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26204 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26205 as_fn_append ac_file_inputs " '$ac_f'"
26208 # Let's still pretend it is `configure' which instantiates (i.e., don't
26209 # use $as_me), people would be surprised to read:
26210 # /* config.h. Generated by config.status. */
26211 configure_input='Generated from '`
26212 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26214 if test x"$ac_file" != x-; then
26215 configure_input="$ac_file. $configure_input"
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26217 $as_echo "$as_me: creating $ac_file" >&6;}
26219 # Neutralize special characters interpreted by sed in replacement strings.
26220 case $configure_input in #(
26221 *\&* | *\|* | *\\* )
26222 ac_sed_conf_input=`$as_echo "$configure_input" |
26223 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26224 *) ac_sed_conf_input=$configure_input;;
26228 *:-:* | *:-) cat >"$tmp/stdin" \
26229 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26234 ac_dir=`$as_dirname -- "$ac_file" ||
26235 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26236 X"$ac_file" : 'X\(//\)[^/]' \| \
26237 X"$ac_file" : 'X\(//\)$' \| \
26238 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26239 $as_echo X"$ac_file" |
26240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26244 /^X\(\/\/\)[^/].*/{
26257 as_dir="$ac_dir"; as_fn_mkdir_p
26261 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26263 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26264 # A ".." for each directory in $ac_dir_suffix.
26265 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26266 case $ac_top_builddir_sub in
26267 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26268 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26271 ac_abs_top_builddir=$ac_pwd
26272 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26273 # for backward compatibility:
26274 ac_top_builddir=$ac_top_build_prefix
26277 .) # We are building in place.
26279 ac_top_srcdir=$ac_top_builddir_sub
26280 ac_abs_top_srcdir=$ac_pwd ;;
26281 [\\/]* | ?:[\\/]* ) # Absolute name.
26282 ac_srcdir=$srcdir$ac_dir_suffix;
26283 ac_top_srcdir=$srcdir
26284 ac_abs_top_srcdir=$srcdir ;;
26285 *) # Relative name.
26286 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26287 ac_top_srcdir=$ac_top_build_prefix$srcdir
26288 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26290 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26300 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26301 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26303 ac_MKDIR_P=$MKDIR_P
26305 [\\/$]* | ?:[\\/]* ) ;;
26306 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26311 # If the template does not know about datarootdir, expand it.
26312 # FIXME: This hack should be removed a few years after 2.60.
26313 ac_datarootdir_hack=; ac_datarootdir_seen=
26324 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26325 *datarootdir*) ac_datarootdir_seen=yes;;
26326 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26328 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26331 ac_datarootdir_hack='
26332 s&@datadir@&$datadir&g
26333 s&@docdir@&$docdir&g
26334 s&@infodir@&$infodir&g
26335 s&@localedir@&$localedir&g
26336 s&@mandir@&$mandir&g
26337 s&\\\${datarootdir}&$datarootdir&g' ;;
26341 # Neutralize VPATH when `$srcdir' = `.'.
26342 # Shell code in configure.ac might set extrasub.
26343 # FIXME: do we really want to maintain this feature?
26344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26345 ac_sed_extra="$ac_vpsub
26348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26350 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26351 s|@configure_input@|$ac_sed_conf_input|;t t
26352 s&@top_builddir@&$ac_top_builddir_sub&;t t
26353 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26354 s&@srcdir@&$ac_srcdir&;t t
26355 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26356 s&@top_srcdir@&$ac_top_srcdir&;t t
26357 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26358 s&@builddir@&$ac_builddir&;t t
26359 s&@abs_builddir@&$ac_abs_builddir&;t t
26360 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26361 s&@INSTALL@&$ac_INSTALL&;t t
26362 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26363 $ac_datarootdir_hack
26365 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26366 || as_fn_error "could not create $ac_file" "$LINENO" 5
26368 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26369 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26370 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26372 which seems to be undefined. Please make sure it is defined." >&5
26373 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26374 which seems to be undefined. Please make sure it is defined." >&2;}
26378 -) cat "$tmp/out" && rm -f "$tmp/out";;
26379 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26381 || as_fn_error "could not create $ac_file" "$LINENO" 5
26387 if test x"$ac_file" != x-; then
26389 $as_echo "/* $configure_input */" \
26390 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26391 } >"$tmp/config.h" \
26392 || as_fn_error "could not create $ac_file" "$LINENO" 5
26393 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26394 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26395 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26398 mv "$tmp/config.h" "$ac_file" \
26399 || as_fn_error "could not create $ac_file" "$LINENO" 5
26402 $as_echo "/* $configure_input */" \
26403 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26404 || as_fn_error "could not create -" "$LINENO" 5
26406 # Compute "$ac_file"'s index in $config_headers.
26409 for _am_header in $config_headers :; do
26410 case $_am_header in
26411 $_am_arg | $_am_arg:* )
26414 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26417 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26418 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26419 X"$_am_arg" : 'X\(//\)[^/]' \| \
26420 X"$_am_arg" : 'X\(//\)$' \| \
26421 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26422 $as_echo X"$_am_arg" |
26423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26427 /^X\(\/\/\)[^/].*/{
26439 s/.*/./; q'`/stamp-h$_am_stamp_count
26446 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26449 # Prefer the file from the source tree if names are identical.
26450 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26451 ac_source=$srcdir/$ac_source
26454 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26455 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26457 if test ! -r "$ac_source"; then
26458 as_fn_error "$ac_source: file not found" "$LINENO" 5
26462 # Try a relative symlink, then a hard link, then a copy.
26464 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26465 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26467 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26468 ln "$ac_source" "$ac_file" 2>/dev/null ||
26469 cp -p "$ac_source" "$ac_file" ||
26470 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26473 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26474 $as_echo "$as_me: executing $ac_file commands" >&6;}
26479 case $ac_file$ac_mode in
26481 # Only add multilib support code if we just rebuilt the top-level
26483 case " $CONFIG_FILES " in
26485 ac_file=Makefile . ${multi_basedir}/config-ml.in
26488 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26489 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26490 # are listed without --file. Let's play safe and only enable the eval
26491 # if we detect the quoting.
26492 case $CONFIG_FILES in
26493 *\'*) eval set x "$CONFIG_FILES" ;;
26494 *) set x $CONFIG_FILES ;;
26499 # Strip MF so we end up with the name of the file.
26500 mf=`echo "$mf" | sed -e 's/:.*$//'`
26501 # Check whether this is an Automake generated Makefile or not.
26502 # We used to match only the files named `Makefile.in', but
26503 # some people rename them; so instead we look at the file content.
26504 # Grep'ing the first line is not enough: some people post-process
26505 # each Makefile.in and add a new line on top of each file to say so.
26506 # Grep'ing the whole file is not good either: AIX grep has a line
26507 # limit of 2048, but all sed's we know have understand at least 4000.
26508 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26509 dirpart=`$as_dirname -- "$mf" ||
26510 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26511 X"$mf" : 'X\(//\)[^/]' \| \
26512 X"$mf" : 'X\(//\)$' \| \
26513 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26515 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26519 /^X\(\/\/\)[^/].*/{
26535 # Extract the definition of DEPDIR, am__include, and am__quote
26536 # from the Makefile without running `make'.
26537 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26538 test -z "$DEPDIR" && continue
26539 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26540 test -z "am__include" && continue
26541 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26542 # When using ansi2knr, U may be empty or an underscore; expand it
26543 U=`sed -n 's/^U = //p' < "$mf"`
26544 # Find all dependency output files, they are included files with
26545 # $(DEPDIR) in their names. We invoke sed twice because it is the
26546 # simplest approach to changing $(DEPDIR) to its actual value in the
26548 for file in `sed -n "
26549 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26550 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26551 # Make sure the directory exists.
26552 test -f "$dirpart/$file" && continue
26553 fdir=`$as_dirname -- "$file" ||
26554 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26555 X"$file" : 'X\(//\)[^/]' \| \
26556 X"$file" : 'X\(//\)$' \| \
26557 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26558 $as_echo X"$file" |
26559 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26563 /^X\(\/\/\)[^/].*/{
26576 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26577 # echo "creating $dirpart/$file"
26578 echo '# dummy' > "$dirpart/$file"
26585 # See if we are running on zsh, and set the options which allow our
26586 # commands through without removal of \ escapes.
26587 if test -n "${ZSH_VERSION+set}" ; then
26588 setopt NO_GLOB_SUBST
26591 cfgfile="${ofile}T"
26592 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26595 cat <<_LT_EOF >> "$cfgfile"
26598 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26599 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26600 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26601 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26603 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26604 # 2006, 2007, 2008 Free Software Foundation, Inc.
26605 # Written by Gordon Matzigkeit, 1996
26607 # This file is part of GNU Libtool.
26609 # GNU Libtool is free software; you can redistribute it and/or
26610 # modify it under the terms of the GNU General Public License as
26611 # published by the Free Software Foundation; either version 2 of
26612 # the License, or (at your option) any later version.
26614 # As a special exception to the GNU General Public License,
26615 # if you distribute this file as part of a program or library that
26616 # is built using GNU Libtool, you may include this file under the
26617 # same distribution terms that you use for the rest of that program.
26619 # GNU Libtool is distributed in the hope that it will be useful,
26620 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26621 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26622 # GNU General Public License for more details.
26624 # You should have received a copy of the GNU General Public License
26625 # along with GNU Libtool; see the file COPYING. If not, a copy
26626 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26627 # obtained by writing to the Free Software Foundation, Inc.,
26628 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26631 # The names of the tagged configurations supported by this script.
26632 available_tags="CXX GCJ "
26634 # ### BEGIN LIBTOOL CONFIG
26636 # Which release of libtool.m4 was used?
26637 macro_version=$macro_version
26638 macro_revision=$macro_revision
26640 # Whether or not to build shared libraries.
26641 build_libtool_libs=$enable_shared
26643 # Whether or not to build static libraries.
26644 build_old_libs=$enable_static
26646 # What type of objects to build.
26649 # Whether or not to optimize for fast installation.
26650 fast_install=$enable_fast_install
26653 host_alias=$host_alias
26657 # The build system.
26658 build_alias=$build_alias
26662 # A sed program that does not truncate output.
26665 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26666 Xsed="\$SED -e 1s/^X//"
26668 # A grep program that handles long lines.
26674 # A literal string matcher.
26677 # A BSD- or MS-compatible name lister.
26680 # Whether we need soft or hard links.
26683 # What is the maximum length of a command?
26684 max_cmd_len=$max_cmd_len
26686 # Object file suffix (normally "o").
26689 # Executable file suffix (normally "").
26692 # whether the shell understands "unset".
26695 # turn spaces into newlines.
26698 # turn newlines into spaces.
26701 # How to create reloadable object files.
26702 reload_flag=$lt_reload_flag
26703 reload_cmds=$lt_reload_cmds
26705 # An object symbol dumper.
26706 OBJDUMP=$lt_OBJDUMP
26708 # Method to check whether dependent libraries are shared objects.
26709 deplibs_check_method=$lt_deplibs_check_method
26711 # Command to use when deplibs_check_method == "file_magic".
26712 file_magic_cmd=$lt_file_magic_cmd
26716 AR_FLAGS=$lt_AR_FLAGS
26718 # A symbol stripping program.
26721 # Commands used to install an old-style archive.
26723 old_postinstall_cmds=$lt_old_postinstall_cmds
26724 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26729 # LTCC compiler flags.
26730 LTCFLAGS=$lt_CFLAGS
26732 # Take the output of nm and produce a listing of raw symbols and C names.
26733 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26735 # Transform the output of nm in a proper C declaration.
26736 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26738 # Transform the output of nm in a C name address pair.
26739 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26741 # Transform the output of nm in a C name address pair when lib prefix is needed.
26742 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26744 # The name of the directory that contains temporary libtool files.
26747 # Shell to use when invoking shell scripts.
26750 # An echo program that does not interpret backslashes.
26753 # Used to examine libraries when file_magic_cmd begins with "file".
26754 MAGIC_CMD=$MAGIC_CMD
26756 # Must we lock files when doing compilation?
26757 need_locks=$lt_need_locks
26759 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26760 DSYMUTIL=$lt_DSYMUTIL
26762 # Tool to change global to local symbols on Mac OS X.
26765 # Tool to manipulate fat objects and archives on Mac OS X.
26768 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26771 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26772 OTOOL64=$lt_OTOOL64
26774 # Old archive suffix (normally "a").
26777 # Shared library suffix (normally ".so").
26778 shrext_cmds=$lt_shrext_cmds
26780 # The commands to extract the exported symbol list from a shared archive.
26781 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26783 # Variables whose values should be saved in libtool wrapper scripts and
26784 # restored at link time.
26785 variables_saved_for_relink=$lt_variables_saved_for_relink
26787 # Do we need the "lib" prefix for modules?
26788 need_lib_prefix=$need_lib_prefix
26790 # Do we need a version for libraries?
26791 need_version=$need_version
26793 # Library versioning type.
26794 version_type=$version_type
26796 # Shared library runtime path variable.
26797 runpath_var=$runpath_var
26799 # Shared library path variable.
26800 shlibpath_var=$shlibpath_var
26802 # Is shlibpath searched before the hard-coded library search path?
26803 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26805 # Format of library name prefix.
26806 libname_spec=$lt_libname_spec
26808 # List of archive names. First name is the real one, the rest are links.
26809 # The last name is the one that the linker finds with -lNAME
26810 library_names_spec=$lt_library_names_spec
26812 # The coded name of the library, if different from the real name.
26813 soname_spec=$lt_soname_spec
26815 # Command to use after installation of a shared archive.
26816 postinstall_cmds=$lt_postinstall_cmds
26818 # Command to use after uninstallation of a shared archive.
26819 postuninstall_cmds=$lt_postuninstall_cmds
26821 # Commands used to finish a libtool library installation in a directory.
26822 finish_cmds=$lt_finish_cmds
26824 # As "finish_cmds", except a single script fragment to be evaled but
26826 finish_eval=$lt_finish_eval
26828 # Whether we should hardcode library paths into libraries.
26829 hardcode_into_libs=$hardcode_into_libs
26831 # Compile-time system search path for libraries.
26832 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26834 # Run-time system search path for libraries.
26835 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26837 # Whether dlopen is supported.
26838 dlopen_support=$enable_dlopen
26840 # Whether dlopen of programs is supported.
26841 dlopen_self=$enable_dlopen_self
26843 # Whether dlopen of statically linked programs is supported.
26844 dlopen_self_static=$enable_dlopen_self_static
26846 # Commands to strip libraries.
26847 old_striplib=$lt_old_striplib
26848 striplib=$lt_striplib
26851 # The linker used to build libraries.
26854 # Commands used to build an old-style archive.
26855 old_archive_cmds=$lt_old_archive_cmds
26857 # A language specific compiler.
26860 # Is the compiler the GNU compiler?
26863 # Compiler flag to turn off builtin functions.
26864 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26866 # How to pass a linker flag through the compiler.
26867 wl=$lt_lt_prog_compiler_wl
26869 # Additional compiler flags for building library objects.
26870 pic_flag=$lt_lt_prog_compiler_pic
26872 # Compiler flag to prevent dynamic linking.
26873 link_static_flag=$lt_lt_prog_compiler_static
26875 # Does compiler simultaneously support -c and -o options?
26876 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26878 # Whether or not to add -lc for building shared libraries.
26879 build_libtool_need_lc=$archive_cmds_need_lc
26881 # Whether or not to disallow shared libs when runtime libs are static.
26882 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26884 # Compiler flag to allow reflexive dlopens.
26885 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26887 # Compiler flag to generate shared objects directly from archives.
26888 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26890 # Whether the compiler copes with passing no objects directly.
26891 compiler_needs_object=$lt_compiler_needs_object
26893 # Create an old-style archive from a shared archive.
26894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26896 # Create a temporary old-style archive to link instead of a shared archive.
26897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26899 # Commands used to build a shared archive.
26900 archive_cmds=$lt_archive_cmds
26901 archive_expsym_cmds=$lt_archive_expsym_cmds
26903 # Commands used to build a loadable module if different from building
26904 # a shared archive.
26905 module_cmds=$lt_module_cmds
26906 module_expsym_cmds=$lt_module_expsym_cmds
26908 # Whether we are building with GNU ld or not.
26909 with_gnu_ld=$lt_with_gnu_ld
26911 # Flag that allows shared libraries with undefined symbols to be built.
26912 allow_undefined_flag=$lt_allow_undefined_flag
26914 # Flag that enforces no undefined symbols.
26915 no_undefined_flag=$lt_no_undefined_flag
26917 # Flag to hardcode \$libdir into a binary during linking.
26918 # This must work even if \$libdir does not exist
26919 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26921 # If ld is used when linking, flag to hardcode \$libdir into a binary
26922 # during linking. This must work even if \$libdir does not exist.
26923 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26925 # Whether we need a single "-rpath" flag with a separated argument.
26926 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26928 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26929 # DIR into the resulting binary.
26930 hardcode_direct=$hardcode_direct
26932 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26933 # DIR into the resulting binary and the resulting library dependency is
26934 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26935 # library is relocated.
26936 hardcode_direct_absolute=$hardcode_direct_absolute
26938 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26939 # into the resulting binary.
26940 hardcode_minus_L=$hardcode_minus_L
26942 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26943 # into the resulting binary.
26944 hardcode_shlibpath_var=$hardcode_shlibpath_var
26946 # Set to "yes" if building a shared library automatically hardcodes DIR
26947 # into the library and all subsequent libraries and executables linked
26949 hardcode_automatic=$hardcode_automatic
26951 # Set to yes if linker adds runtime paths of dependent libraries
26952 # to runtime path list.
26953 inherit_rpath=$inherit_rpath
26955 # Whether libtool must link a program against all its dependency libraries.
26956 link_all_deplibs=$link_all_deplibs
26958 # Fix the shell variable \$srcfile for the compiler.
26959 fix_srcfile_path=$lt_fix_srcfile_path
26961 # Set to "yes" if exported symbols are required.
26962 always_export_symbols=$always_export_symbols
26964 # The commands to list exported symbols.
26965 export_symbols_cmds=$lt_export_symbols_cmds
26967 # Symbols that should not be listed in the preloaded symbols.
26968 exclude_expsyms=$lt_exclude_expsyms
26970 # Symbols that must always be exported.
26971 include_expsyms=$lt_include_expsyms
26973 # Commands necessary for linking programs (against libraries) with templates.
26974 prelink_cmds=$lt_prelink_cmds
26976 # Specify filename containing input files.
26977 file_list_spec=$lt_file_list_spec
26979 # How to hardcode a shared library path into an executable.
26980 hardcode_action=$hardcode_action
26982 # The directories searched by this compiler when creating a shared library.
26983 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
26985 # Dependencies to place before and after the objects being linked to
26986 # create a shared library.
26987 predep_objects=$lt_predep_objects
26988 postdep_objects=$lt_postdep_objects
26989 predeps=$lt_predeps
26990 postdeps=$lt_postdeps
26992 # The library search path used internally by the compiler when linking
26993 # a shared library.
26994 compiler_lib_search_path=$lt_compiler_lib_search_path
26996 # ### END LIBTOOL CONFIG
27002 cat <<\_LT_EOF >> "$cfgfile"
27003 # AIX sometimes has problems with the GCC collect2 program. For some
27004 # reason, if we set the COLLECT_NAMES environment variable, the problems
27005 # vanish in a puff of smoke.
27006 if test "X${COLLECT_NAMES+set}" != Xset; then
27008 export COLLECT_NAMES
27015 ltmain="$ac_aux_dir/ltmain.sh"
27018 # We use sed instead of cat because bash on DJGPP gets confused if
27019 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27020 # text mode, it properly converts lines to CR/LF. This bash problem
27021 # is reportedly fixed, but why not run on old versions too?
27022 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27023 || (rm -f "$cfgfile"; exit 1)
27027 cat << \_LT_EOF >> "$cfgfile"
27029 # func_dirname file append nondir_replacement
27030 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27031 # otherwise set result to NONDIR_REPLACEMENT.
27035 */*) func_dirname_result="${1%/*}${2}" ;;
27036 * ) func_dirname_result="${3}" ;;
27040 # func_basename file
27043 func_basename_result="${1##*/}"
27046 # func_dirname_and_basename file append nondir_replacement
27047 # perform func_basename and func_dirname in a single function
27049 # dirname: Compute the dirname of FILE. If nonempty,
27050 # add APPEND to the result, otherwise set result
27051 # to NONDIR_REPLACEMENT.
27052 # value returned in "$func_dirname_result"
27053 # basename: Compute filename of FILE.
27054 # value retuned in "$func_basename_result"
27055 # Implementation must be kept synchronized with func_dirname
27056 # and func_basename. For efficiency, we do not delegate to
27057 # those functions but instead duplicate the functionality here.
27058 func_dirname_and_basename ()
27061 */*) func_dirname_result="${1%/*}${2}" ;;
27062 * ) func_dirname_result="${3}" ;;
27064 func_basename_result="${1##*/}"
27067 # func_stripname prefix suffix name
27068 # strip PREFIX and SUFFIX off of NAME.
27069 # PREFIX and SUFFIX must not contain globbing or regex special
27070 # characters, hashes, percent signs, but SUFFIX may contain a leading
27071 # dot (in which case that matches only a dot).
27074 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27075 # positional parameters, so assign one to ordinary parameter first.
27076 func_stripname_result=${3}
27077 func_stripname_result=${func_stripname_result#"${1}"}
27078 func_stripname_result=${func_stripname_result%"${2}"}
27084 func_opt_split_opt=${1%%=*}
27085 func_opt_split_arg=${1#*=}
27092 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27093 *) func_lo2o_result=${1} ;;
27097 # func_xform libobj-or-source
27100 func_xform_result=${1%.*}.lo
27103 # func_arith arithmetic-term...
27106 func_arith_result=$(( $* ))
27110 # STRING may not start with a hyphen.
27113 func_len_result=${#1}
27118 *) # Bourne compatible functions.
27119 cat << \_LT_EOF >> "$cfgfile"
27121 # func_dirname file append nondir_replacement
27122 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27123 # otherwise set result to NONDIR_REPLACEMENT.
27126 # Extract subdirectory from the argument.
27127 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
27128 if test "X$func_dirname_result" = "X${1}"; then
27129 func_dirname_result="${3}"
27131 func_dirname_result="$func_dirname_result${2}"
27135 # func_basename file
27138 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
27142 # func_stripname prefix suffix name
27143 # strip PREFIX and SUFFIX off of NAME.
27144 # PREFIX and SUFFIX must not contain globbing or regex special
27145 # characters, hashes, percent signs, but SUFFIX may contain a leading
27146 # dot (in which case that matches only a dot).
27147 # func_strip_suffix prefix name
27151 .*) func_stripname_result=`$ECHO "X${3}" \
27152 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27153 *) func_stripname_result=`$ECHO "X${3}" \
27154 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27159 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27160 my_sed_long_arg='1s/^-[^=]*=//'
27165 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27166 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27172 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27175 # func_xform libobj-or-source
27178 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27181 # func_arith arithmetic-term...
27184 func_arith_result=`expr "$@"`
27188 # STRING may not start with a hyphen.
27191 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27197 case $lt_shell_append in
27199 cat << \_LT_EOF >> "$cfgfile"
27201 # func_append var value
27202 # Append VALUE to the end of shell variable VAR.
27210 cat << \_LT_EOF >> "$cfgfile"
27212 # func_append var value
27213 # Append VALUE to the end of shell variable VAR.
27224 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27225 || (rm -f "$cfgfile"; exit 1)
27227 mv -f "$cfgfile" "$ofile" ||
27228 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27232 cat <<_LT_EOF >> "$ofile"
27234 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27236 # The linker used to build libraries.
27239 # Commands used to build an old-style archive.
27240 old_archive_cmds=$lt_old_archive_cmds_CXX
27242 # A language specific compiler.
27243 CC=$lt_compiler_CXX
27245 # Is the compiler the GNU compiler?
27248 # Compiler flag to turn off builtin functions.
27249 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27251 # How to pass a linker flag through the compiler.
27252 wl=$lt_lt_prog_compiler_wl_CXX
27254 # Additional compiler flags for building library objects.
27255 pic_flag=$lt_lt_prog_compiler_pic_CXX
27257 # Compiler flag to prevent dynamic linking.
27258 link_static_flag=$lt_lt_prog_compiler_static_CXX
27260 # Does compiler simultaneously support -c and -o options?
27261 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27263 # Whether or not to add -lc for building shared libraries.
27264 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27266 # Whether or not to disallow shared libs when runtime libs are static.
27267 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27269 # Compiler flag to allow reflexive dlopens.
27270 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27272 # Compiler flag to generate shared objects directly from archives.
27273 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27275 # Whether the compiler copes with passing no objects directly.
27276 compiler_needs_object=$lt_compiler_needs_object_CXX
27278 # Create an old-style archive from a shared archive.
27279 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27281 # Create a temporary old-style archive to link instead of a shared archive.
27282 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27284 # Commands used to build a shared archive.
27285 archive_cmds=$lt_archive_cmds_CXX
27286 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27288 # Commands used to build a loadable module if different from building
27289 # a shared archive.
27290 module_cmds=$lt_module_cmds_CXX
27291 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27293 # Whether we are building with GNU ld or not.
27294 with_gnu_ld=$lt_with_gnu_ld_CXX
27296 # Flag that allows shared libraries with undefined symbols to be built.
27297 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27299 # Flag that enforces no undefined symbols.
27300 no_undefined_flag=$lt_no_undefined_flag_CXX
27302 # Flag to hardcode \$libdir into a binary during linking.
27303 # This must work even if \$libdir does not exist
27304 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27306 # If ld is used when linking, flag to hardcode \$libdir into a binary
27307 # during linking. This must work even if \$libdir does not exist.
27308 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27310 # Whether we need a single "-rpath" flag with a separated argument.
27311 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27313 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27314 # DIR into the resulting binary.
27315 hardcode_direct=$hardcode_direct_CXX
27317 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27318 # DIR into the resulting binary and the resulting library dependency is
27319 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27320 # library is relocated.
27321 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27323 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27324 # into the resulting binary.
27325 hardcode_minus_L=$hardcode_minus_L_CXX
27327 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27328 # into the resulting binary.
27329 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27331 # Set to "yes" if building a shared library automatically hardcodes DIR
27332 # into the library and all subsequent libraries and executables linked
27334 hardcode_automatic=$hardcode_automatic_CXX
27336 # Set to yes if linker adds runtime paths of dependent libraries
27337 # to runtime path list.
27338 inherit_rpath=$inherit_rpath_CXX
27340 # Whether libtool must link a program against all its dependency libraries.
27341 link_all_deplibs=$link_all_deplibs_CXX
27343 # Fix the shell variable \$srcfile for the compiler.
27344 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27346 # Set to "yes" if exported symbols are required.
27347 always_export_symbols=$always_export_symbols_CXX
27349 # The commands to list exported symbols.
27350 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27352 # Symbols that should not be listed in the preloaded symbols.
27353 exclude_expsyms=$lt_exclude_expsyms_CXX
27355 # Symbols that must always be exported.
27356 include_expsyms=$lt_include_expsyms_CXX
27358 # Commands necessary for linking programs (against libraries) with templates.
27359 prelink_cmds=$lt_prelink_cmds_CXX
27361 # Specify filename containing input files.
27362 file_list_spec=$lt_file_list_spec_CXX
27364 # How to hardcode a shared library path into an executable.
27365 hardcode_action=$hardcode_action_CXX
27367 # The directories searched by this compiler when creating a shared library.
27368 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27370 # Dependencies to place before and after the objects being linked to
27371 # create a shared library.
27372 predep_objects=$lt_predep_objects_CXX
27373 postdep_objects=$lt_postdep_objects_CXX
27374 predeps=$lt_predeps_CXX
27375 postdeps=$lt_postdeps_CXX
27377 # The library search path used internally by the compiler when linking
27378 # a shared library.
27379 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27381 # ### END LIBTOOL TAG CONFIG: CXX
27385 cat <<_LT_EOF >> "$ofile"
27387 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27389 # The linker used to build libraries.
27392 # Commands used to build an old-style archive.
27393 old_archive_cmds=$lt_old_archive_cmds_GCJ
27395 # A language specific compiler.
27396 CC=$lt_compiler_GCJ
27398 # Is the compiler the GNU compiler?
27401 # Compiler flag to turn off builtin functions.
27402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27404 # How to pass a linker flag through the compiler.
27405 wl=$lt_lt_prog_compiler_wl_GCJ
27407 # Additional compiler flags for building library objects.
27408 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27410 # Compiler flag to prevent dynamic linking.
27411 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27413 # Does compiler simultaneously support -c and -o options?
27414 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27416 # Whether or not to add -lc for building shared libraries.
27417 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27419 # Whether or not to disallow shared libs when runtime libs are static.
27420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27422 # Compiler flag to allow reflexive dlopens.
27423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27425 # Compiler flag to generate shared objects directly from archives.
27426 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27428 # Whether the compiler copes with passing no objects directly.
27429 compiler_needs_object=$lt_compiler_needs_object_GCJ
27431 # Create an old-style archive from a shared archive.
27432 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27434 # Create a temporary old-style archive to link instead of a shared archive.
27435 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27437 # Commands used to build a shared archive.
27438 archive_cmds=$lt_archive_cmds_GCJ
27439 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27441 # Commands used to build a loadable module if different from building
27442 # a shared archive.
27443 module_cmds=$lt_module_cmds_GCJ
27444 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27446 # Whether we are building with GNU ld or not.
27447 with_gnu_ld=$lt_with_gnu_ld_GCJ
27449 # Flag that allows shared libraries with undefined symbols to be built.
27450 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27452 # Flag that enforces no undefined symbols.
27453 no_undefined_flag=$lt_no_undefined_flag_GCJ
27455 # Flag to hardcode \$libdir into a binary during linking.
27456 # This must work even if \$libdir does not exist
27457 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27459 # If ld is used when linking, flag to hardcode \$libdir into a binary
27460 # during linking. This must work even if \$libdir does not exist.
27461 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27463 # Whether we need a single "-rpath" flag with a separated argument.
27464 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27466 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27467 # DIR into the resulting binary.
27468 hardcode_direct=$hardcode_direct_GCJ
27470 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27471 # DIR into the resulting binary and the resulting library dependency is
27472 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27473 # library is relocated.
27474 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27476 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27477 # into the resulting binary.
27478 hardcode_minus_L=$hardcode_minus_L_GCJ
27480 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27481 # into the resulting binary.
27482 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27484 # Set to "yes" if building a shared library automatically hardcodes DIR
27485 # into the library and all subsequent libraries and executables linked
27487 hardcode_automatic=$hardcode_automatic_GCJ
27489 # Set to yes if linker adds runtime paths of dependent libraries
27490 # to runtime path list.
27491 inherit_rpath=$inherit_rpath_GCJ
27493 # Whether libtool must link a program against all its dependency libraries.
27494 link_all_deplibs=$link_all_deplibs_GCJ
27496 # Fix the shell variable \$srcfile for the compiler.
27497 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27499 # Set to "yes" if exported symbols are required.
27500 always_export_symbols=$always_export_symbols_GCJ
27502 # The commands to list exported symbols.
27503 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27505 # Symbols that should not be listed in the preloaded symbols.
27506 exclude_expsyms=$lt_exclude_expsyms_GCJ
27508 # Symbols that must always be exported.
27509 include_expsyms=$lt_include_expsyms_GCJ
27511 # Commands necessary for linking programs (against libraries) with templates.
27512 prelink_cmds=$lt_prelink_cmds_GCJ
27514 # Specify filename containing input files.
27515 file_list_spec=$lt_file_list_spec_GCJ
27517 # How to hardcode a shared library path into an executable.
27518 hardcode_action=$hardcode_action_GCJ
27520 # The directories searched by this compiler when creating a shared library.
27521 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27523 # Dependencies to place before and after the objects being linked to
27524 # create a shared library.
27525 predep_objects=$lt_predep_objects_GCJ
27526 postdep_objects=$lt_postdep_objects_GCJ
27527 predeps=$lt_predeps_GCJ
27528 postdeps=$lt_postdeps_GCJ
27530 # The library search path used internally by the compiler when linking
27531 # a shared library.
27532 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27534 # ### END LIBTOOL TAG CONFIG: GCJ
27538 "scripts/jar":F) chmod +x scripts/jar ;;
27546 ac_clean_files=$ac_clean_files_save
27548 test $ac_write_fail = 0 ||
27549 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27552 # configure is writing to config.log, and then calls config.status.
27553 # config.status does its own redirection, appending to config.log.
27554 # Unfortunately, on DOS this fails, as config.log is still kept open
27555 # by configure, so config.status won't be able to write to it; its
27556 # output is simply discarded. So we exec the FD to /dev/null,
27557 # effectively closing config.log, so it can be properly (re)opened and
27558 # appended to by config.status. When coming back to configure, we
27559 # need to make the FD available again.
27560 if test "$no_create" != yes; then
27562 ac_config_status_args=
27563 test "$silent" = yes &&
27564 ac_config_status_args="$ac_config_status_args --quiet"
27566 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27568 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27569 # would make configure fail if this is the last instruction.
27570 $ac_cs_success || as_fn_exit $?
27574 # CONFIG_SUBDIRS section.
27576 if test "$no_recursion" != yes; then
27578 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27579 # so they do not pile up.
27580 ac_sub_configure_args=
27582 eval "set x $ac_configure_args"
27586 if test -n "$ac_prev"; then
27591 -cache-file | --cache-file | --cache-fil | --cache-fi \
27592 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27593 ac_prev=cache_file ;;
27594 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27595 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27598 --config-cache | -C)
27600 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27602 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27604 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27606 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27608 --disable-option-checking)
27612 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27614 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27618 # Always prepend --prefix to ensure using the same prefix
27619 # in subdir configurations.
27620 ac_arg="--prefix=$prefix"
27622 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27624 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27627 if test "$silent" = yes; then
27628 ac_sub_configure_args="--silent $ac_sub_configure_args"
27631 # Always prepend --disable-option-checking to silence warnings, since
27632 # different subdirs can have different --enable and --with options.
27633 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27636 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27638 # Do not complain, so a configure script can configure whichever
27639 # parts of a large source tree are present.
27640 test -d "$srcdir/$ac_dir" || continue
27642 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27643 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27644 $as_echo "$ac_msg" >&6
27645 as_dir="$ac_dir"; as_fn_mkdir_p
27649 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27651 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27652 # A ".." for each directory in $ac_dir_suffix.
27653 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27654 case $ac_top_builddir_sub in
27655 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27656 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27659 ac_abs_top_builddir=$ac_pwd
27660 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27661 # for backward compatibility:
27662 ac_top_builddir=$ac_top_build_prefix
27665 .) # We are building in place.
27667 ac_top_srcdir=$ac_top_builddir_sub
27668 ac_abs_top_srcdir=$ac_pwd ;;
27669 [\\/]* | ?:[\\/]* ) # Absolute name.
27670 ac_srcdir=$srcdir$ac_dir_suffix;
27671 ac_top_srcdir=$srcdir
27672 ac_abs_top_srcdir=$srcdir ;;
27673 *) # Relative name.
27674 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27675 ac_top_srcdir=$ac_top_build_prefix$srcdir
27676 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27678 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27683 # Check for guested configure; otherwise get Cygnus style configure.
27684 if test -f "$ac_srcdir/configure.gnu"; then
27685 ac_sub_configure=$ac_srcdir/configure.gnu
27686 elif test -f "$ac_srcdir/configure"; then
27687 ac_sub_configure=$ac_srcdir/configure
27688 elif test -f "$ac_srcdir/configure.in"; then
27689 # This should be Cygnus configure.
27690 ac_sub_configure=$ac_aux_dir/configure
27692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27697 # The recursion is here.
27698 if test -n "$ac_sub_configure"; then
27699 # Make the cache file name correct relative to the subdirectory.
27700 case $cache_file in
27701 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27702 *) # Relative name.
27703 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27706 { $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
27707 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27708 # The eval makes quoting arguments work.
27709 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27710 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27711 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27717 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27719 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}