2010-04-01 Paul Thomas <pault@gcc.gnu.org>
[official-gcc.git] / libjava / configure
blob0d2fb703eced6b07bb19fbdec082689b54a25550
1 #! /bin/sh
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
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
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+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
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
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
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'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
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.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
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
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
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 || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
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 :
136 emulate sh
137 NULLCMD=:
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+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
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; }
157 exitcode=0
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 :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='libjava'
558 PACKAGE_TARNAME='libjava'
559 PACKAGE_VERSION='version-unused'
560 PACKAGE_STRING='libjava version-unused'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 ac_unique_file="java/lang/System.java"
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 enable_option_checking=no
602 ac_subst_vars='am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 LIBDIR
609 GCJ_BIN_DIR
610 JRE_LIB_DIR
611 JRE_BIN_DIR
612 SDK_INCLUDE_DIR
613 SDK_LIB_DIR
614 SDK_BIN_DIR
615 SDK_LNK
616 JRE_LNK
617 JRE_DIR
618 JVM_JAR_DIR
619 JVM_JAR_ROOT_DIR
620 JVM_ROOT_DIR
621 BUILD_VERSION
622 JAVA_VERSION
623 gcc_suffix
624 CREATE_JAVA_HOME_FALSE
625 CREATE_JAVA_HOME_TRUE
626 INSTALL_AOT_RPM_FALSE
627 INSTALL_AOT_RPM_TRUE
628 MAKE
629 python_mod_dir_expanded
630 python_mod_dir
631 here
632 LD_FINISH_STATIC_SPEC
633 LD_START_STATIC_SPEC
634 ANONVERSCRIPT_FALSE
635 ANONVERSCRIPT_TRUE
636 SYSDEP_SOURCES
637 PERL
638 libstdcxx_incdir
639 gxx_include_dir
640 gcjsubdir
641 dbexecdir
642 GCJVERSION
643 toolexeclibdir
644 toolexecmainlibdir
645 toolexecdir
646 GCC_UNWIND_INCLUDE
647 INSTALL_BINARIES_FALSE
648 INSTALL_BINARIES_TRUE
649 NEEDS_DATA_START_FALSE
650 NEEDS_DATA_START_TRUE
651 ENABLE_SHARED_FALSE
652 ENABLE_SHARED_TRUE
653 NATIVE_FALSE
654 NATIVE_TRUE
655 ATOMICSPEC
656 IEEESPEC
657 BACKTRACESPEC
658 EXCEPTIONSPEC
659 CHECKREFSPEC
660 DIVIDESPEC
661 ZINCS
662 SYS_ZLIBS
663 ZLIBS
664 CLASSPATH_SEPARATOR
665 LIBART_LIBS
666 LIBART_CFLAGS
667 GLIB_LIBS
668 GLIB_CFLAGS
669 GTK_LIBS
670 GTK_CFLAGS
671 PKG_CONFIG
672 LTLIBICONV
673 LIBICONV
674 USING_GCC_FALSE
675 USING_GCC_TRUE
676 HASH_SYNC_SPEC
677 LIBGCJ_BC_SPEC
678 LIBGCJ_SPEC
679 USE_LIBGCJ_BC_FALSE
680 USE_LIBGCJ_BC_TRUE
681 USING_NO_THREADS_FALSE
682 USING_NO_THREADS_TRUE
683 USING_WIN32_THREADS_FALSE
684 USING_WIN32_THREADS_TRUE
685 USING_POSIX_THREADS_FALSE
686 USING_POSIX_THREADS_TRUE
687 THREADCXXFLAGS
688 THREADLDFLAGS
689 THREADSTARTFILESPEC
690 THREADSPEC
691 THREADDEPS
692 THREADINCS
693 THREADLIBS
694 USING_NOGC_FALSE
695 USING_NOGC_TRUE
696 USING_BOEHMGC_FALSE
697 USING_BOEHMGC_TRUE
698 GCTESTSPEC
699 JC1GCSPEC
700 GCSPEC
701 GCDEPS
702 GCINCS
703 GCLIBS
704 LIBGCJTESTSPEC
705 LIBSTDCXXSPEC
706 extra_ldflags
707 extra_ldflags_libjava
708 X_EXTRA_LIBS
709 X_LIBS
710 X_PRE_LIBS
711 X_CFLAGS
712 XMKMF
713 ZLIBTESTSPEC
714 ZLIBSPEC
715 SYSTEMSPEC
716 USING_DARWIN_CRT_FALSE
717 USING_DARWIN_CRT_TRUE
718 USING_POSIX_PLATFORM_FALSE
719 USING_POSIX_PLATFORM_TRUE
720 USING_WIN32_PLATFORM_FALSE
721 USING_WIN32_PLATFORM_TRUE
722 PLATFORM
723 LIBFFIINCS
724 LIBFFI
725 INTERPRETER_FALSE
726 INTERPRETER_TRUE
727 INTERPRETER
728 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
729 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
730 SUPPRESS_LIBGCJ_BC_FALSE
731 SUPPRESS_LIBGCJ_BC_TRUE
732 JAVA_HOME
733 JAVA_HOME_SET_FALSE
734 JAVA_HOME_SET_TRUE
735 INSTALL_ECJ_JAR_FALSE
736 INSTALL_ECJ_JAR_TRUE
737 BUILD_ECJ1_FALSE
738 BUILD_ECJ1_TRUE
739 ECJ_JAR
740 ECJ_BUILD_JAR
741 TESTSUBDIR_FALSE
742 TESTSUBDIR_TRUE
743 subdirs
744 am__fastdepGCJ_FALSE
745 am__fastdepGCJ_TRUE
746 GCJDEPMODE
747 GCJFLAGS
749 CXXCPP
751 OTOOL64
752 OTOOL
753 LIPO
754 NMEDIT
755 DSYMUTIL
756 OBJDUMP
758 ac_ct_DUMPBIN
759 DUMPBIN
760 FGREP
761 EGREP
762 GREP
764 LIBTOOL
765 DIRLTDL
766 LIBLTDL
767 INCLTDL
768 host_exeext
769 GCJH
770 GCJ_FOR_ECJX
771 X_AWT_FALSE
772 X_AWT_TRUE
773 XLIB_AWT_FALSE
774 XLIB_AWT_TRUE
775 TOOLKIT
776 LIBGCJDEBUG
777 BUILD_SUBLIBS_FALSE
778 BUILD_SUBLIBS_TRUE
779 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
780 LIBGCJ_LD_SYMBOLIC
781 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
782 LIBGCJ_SUBLIB_LTFLAGS
783 LIBGCJ_JAVAFLAGS
784 LIBGCJ_CXXFLAGS
785 LIBGCJ_CFLAGS
786 MAINT
787 MAINTAINER_MODE_FALSE
788 MAINTAINER_MODE_TRUE
789 UNZIP
792 DLLTOOL
793 RANLIB
797 am__fastdepCXX_FALSE
798 am__fastdepCXX_TRUE
799 CXXDEPMODE
800 am__fastdepCC_FALSE
801 am__fastdepCC_TRUE
802 CCDEPMODE
803 AMDEPBACKSLASH
804 AMDEP_FALSE
805 AMDEP_TRUE
806 am__quote
807 am__include
808 DEPDIR
809 am__untar
810 am__tar
811 AMTAR
812 am__leading_dot
813 SET_MAKE
815 mkdir_p
816 MKDIR_P
817 INSTALL_STRIP_PROGRAM
818 STRIP
819 install_sh
820 MAKEINFO
821 AUTOHEADER
822 AUTOMAKE
823 AUTOCONF
824 ACLOCAL
825 VERSION
826 PACKAGE
827 CYGPATH_W
828 am__isrc
829 INSTALL_DATA
830 INSTALL_SCRIPT
831 INSTALL_PROGRAM
832 ac_ct_CXX
833 CXXFLAGS
835 OBJEXT
836 EXEEXT
837 ac_ct_CC
838 CPPFLAGS
839 LDFLAGS
840 CFLAGS
842 JAVA_MAINTAINER_MODE_FALSE
843 JAVA_MAINTAINER_MODE_TRUE
844 CREATE_GJDOC_FALSE
845 CREATE_GJDOC_TRUE
846 ANTLR_JAR
847 mkinstalldirs
848 LN_S
849 target_noncanonical
850 target_os
851 target_vendor
852 target_cpu
853 target
854 host_os
855 host_vendor
856 host_cpu
857 host
858 multi_basedir
859 target_subdir
860 host_subdir
861 build_subdir
862 build_libsubdir
863 build_os
864 build_vendor
865 build_cpu
866 build
867 target_alias
868 host_alias
869 build_alias
870 LIBS
871 ECHO_T
872 ECHO_N
873 ECHO_C
874 DEFS
875 mandir
876 localedir
877 libdir
878 psdir
879 pdfdir
880 dvidir
881 htmldir
882 infodir
883 docdir
884 oldincludedir
885 includedir
886 localstatedir
887 sharedstatedir
888 sysconfdir
889 datadir
890 datarootdir
891 libexecdir
892 sbindir
893 bindir
894 program_transform_name
895 prefix
896 exec_prefix
897 PACKAGE_URL
898 PACKAGE_BUGREPORT
899 PACKAGE_STRING
900 PACKAGE_VERSION
901 PACKAGE_TARNAME
902 PACKAGE_NAME
903 PATH_SEPARATOR
904 SHELL'
905 ac_subst_files=''
906 ac_user_opts='
907 enable_option_checking
908 with_build_libsubdir
909 with_target_subdir
910 enable_multilib
911 with_cross_host
912 with_newlib
913 enable_version_specific_runtime_libs
914 enable_browser_plugin
915 enable_gconf_peer
916 with_antlr_jar
917 enable_gjdoc
918 enable_java_maintainer_mode
919 enable_dependency_tracking
920 enable_maintainer_mode
921 enable_libgcj_sublibs
922 enable_libgcj_debug
923 with_escher
924 enable_java_awt
925 enable_shared
926 enable_static
927 with_pic
928 enable_fast_install
929 with_gnu_ld
930 enable_libtool_lock
931 enable_getenv_properties
932 enable_hash_synchronization
933 with_ecj_jar
934 with_java_home
935 enable_libgcj_bc
936 enable_reduced_reflection
937 with_win32_nlsapi
938 enable_gc_debug
939 enable_interpreter
940 enable_sjlj_exceptions
941 enable_java_net
942 with_libffi
943 enable_jvmpi
944 with_ecos
945 with_system_zlib
946 with_x
947 enable_java_gc
948 enable_rpath
949 with_libiconv_prefix
950 enable_tls
951 with_system_libunwind
952 with_python_dir
953 enable_aot_compile_rpm
954 enable_java_home
955 with_gcc_suffix
956 with_arch_directory
957 with_os_directory
958 with_origin_name
959 with_arch_suffix
960 with_jvm_root_dir
961 with_jvm_jar_dir
963 ac_precious_vars='build_alias
964 host_alias
965 target_alias
967 CFLAGS
968 LDFLAGS
969 LIBS
970 CPPFLAGS
972 CXXFLAGS
975 CXXCPP
976 XMKMF'
977 ac_subdirs_all='classpath libltdl'
979 # Initialize some variables set by options.
980 ac_init_help=
981 ac_init_version=false
982 ac_unrecognized_opts=
983 ac_unrecognized_sep=
984 # The variables have the same names as the options, with
985 # dashes changed to underlines.
986 cache_file=/dev/null
987 exec_prefix=NONE
988 no_create=
989 no_recursion=
990 prefix=NONE
991 program_prefix=NONE
992 program_suffix=NONE
993 program_transform_name=s,x,x,
994 silent=
995 site=
996 srcdir=
997 verbose=
998 x_includes=NONE
999 x_libraries=NONE
1001 # Installation directory options.
1002 # These are left unexpanded so users can "make install exec_prefix=/foo"
1003 # and all the variables that are supposed to be based on exec_prefix
1004 # by default will actually change.
1005 # Use braces instead of parens because sh, perl, etc. also accept them.
1006 # (The list follows the same order as the GNU Coding Standards.)
1007 bindir='${exec_prefix}/bin'
1008 sbindir='${exec_prefix}/sbin'
1009 libexecdir='${exec_prefix}/libexec'
1010 datarootdir='${prefix}/share'
1011 datadir='${datarootdir}'
1012 sysconfdir='${prefix}/etc'
1013 sharedstatedir='${prefix}/com'
1014 localstatedir='${prefix}/var'
1015 includedir='${prefix}/include'
1016 oldincludedir='/usr/include'
1017 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1018 infodir='${datarootdir}/info'
1019 htmldir='${docdir}'
1020 dvidir='${docdir}'
1021 pdfdir='${docdir}'
1022 psdir='${docdir}'
1023 libdir='${exec_prefix}/lib'
1024 localedir='${datarootdir}/locale'
1025 mandir='${datarootdir}/man'
1027 ac_prev=
1028 ac_dashdash=
1029 for ac_option
1031 # If the previous option needs an argument, assign it.
1032 if test -n "$ac_prev"; then
1033 eval $ac_prev=\$ac_option
1034 ac_prev=
1035 continue
1038 case $ac_option in
1039 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1040 *) ac_optarg=yes ;;
1041 esac
1043 # Accept the important Cygnus configure options, so we can diagnose typos.
1045 case $ac_dashdash$ac_option in
1047 ac_dashdash=yes ;;
1049 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1050 ac_prev=bindir ;;
1051 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1052 bindir=$ac_optarg ;;
1054 -build | --build | --buil | --bui | --bu)
1055 ac_prev=build_alias ;;
1056 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1057 build_alias=$ac_optarg ;;
1059 -cache-file | --cache-file | --cache-fil | --cache-fi \
1060 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1061 ac_prev=cache_file ;;
1062 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1063 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1064 cache_file=$ac_optarg ;;
1066 --config-cache | -C)
1067 cache_file=config.cache ;;
1069 -datadir | --datadir | --datadi | --datad)
1070 ac_prev=datadir ;;
1071 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1072 datadir=$ac_optarg ;;
1074 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1075 | --dataroo | --dataro | --datar)
1076 ac_prev=datarootdir ;;
1077 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1078 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1079 datarootdir=$ac_optarg ;;
1081 -disable-* | --disable-*)
1082 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1083 # Reject names that are not valid shell variable names.
1084 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 as_fn_error "invalid feature name: $ac_useropt"
1086 ac_useropt_orig=$ac_useropt
1087 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088 case $ac_user_opts in
1090 "enable_$ac_useropt"
1091 "*) ;;
1092 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1093 ac_unrecognized_sep=', ';;
1094 esac
1095 eval enable_$ac_useropt=no ;;
1097 -docdir | --docdir | --docdi | --doc | --do)
1098 ac_prev=docdir ;;
1099 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1100 docdir=$ac_optarg ;;
1102 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1103 ac_prev=dvidir ;;
1104 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1105 dvidir=$ac_optarg ;;
1107 -enable-* | --enable-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error "invalid feature name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1116 "enable_$ac_useropt"
1117 "*) ;;
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1120 esac
1121 eval enable_$ac_useropt=\$ac_optarg ;;
1123 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1124 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1125 | --exec | --exe | --ex)
1126 ac_prev=exec_prefix ;;
1127 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1128 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1129 | --exec=* | --exe=* | --ex=*)
1130 exec_prefix=$ac_optarg ;;
1132 -gas | --gas | --ga | --g)
1133 # Obsolete; use --with-gas.
1134 with_gas=yes ;;
1136 -help | --help | --hel | --he | -h)
1137 ac_init_help=long ;;
1138 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1139 ac_init_help=recursive ;;
1140 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1141 ac_init_help=short ;;
1143 -host | --host | --hos | --ho)
1144 ac_prev=host_alias ;;
1145 -host=* | --host=* | --hos=* | --ho=*)
1146 host_alias=$ac_optarg ;;
1148 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1149 ac_prev=htmldir ;;
1150 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1151 | --ht=*)
1152 htmldir=$ac_optarg ;;
1154 -includedir | --includedir | --includedi | --included | --include \
1155 | --includ | --inclu | --incl | --inc)
1156 ac_prev=includedir ;;
1157 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1158 | --includ=* | --inclu=* | --incl=* | --inc=*)
1159 includedir=$ac_optarg ;;
1161 -infodir | --infodir | --infodi | --infod | --info | --inf)
1162 ac_prev=infodir ;;
1163 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1164 infodir=$ac_optarg ;;
1166 -libdir | --libdir | --libdi | --libd)
1167 ac_prev=libdir ;;
1168 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1169 libdir=$ac_optarg ;;
1171 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1172 | --libexe | --libex | --libe)
1173 ac_prev=libexecdir ;;
1174 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1175 | --libexe=* | --libex=* | --libe=*)
1176 libexecdir=$ac_optarg ;;
1178 -localedir | --localedir | --localedi | --localed | --locale)
1179 ac_prev=localedir ;;
1180 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1181 localedir=$ac_optarg ;;
1183 -localstatedir | --localstatedir | --localstatedi | --localstated \
1184 | --localstate | --localstat | --localsta | --localst | --locals)
1185 ac_prev=localstatedir ;;
1186 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1187 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1188 localstatedir=$ac_optarg ;;
1190 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1191 ac_prev=mandir ;;
1192 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1193 mandir=$ac_optarg ;;
1195 -nfp | --nfp | --nf)
1196 # Obsolete; use --without-fp.
1197 with_fp=no ;;
1199 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1200 | --no-cr | --no-c | -n)
1201 no_create=yes ;;
1203 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1204 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1205 no_recursion=yes ;;
1207 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1208 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1209 | --oldin | --oldi | --old | --ol | --o)
1210 ac_prev=oldincludedir ;;
1211 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1212 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1213 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1214 oldincludedir=$ac_optarg ;;
1216 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1217 ac_prev=prefix ;;
1218 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1219 prefix=$ac_optarg ;;
1221 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1222 | --program-pre | --program-pr | --program-p)
1223 ac_prev=program_prefix ;;
1224 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1225 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1226 program_prefix=$ac_optarg ;;
1228 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1229 | --program-suf | --program-su | --program-s)
1230 ac_prev=program_suffix ;;
1231 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1232 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1233 program_suffix=$ac_optarg ;;
1235 -program-transform-name | --program-transform-name \
1236 | --program-transform-nam | --program-transform-na \
1237 | --program-transform-n | --program-transform- \
1238 | --program-transform | --program-transfor \
1239 | --program-transfo | --program-transf \
1240 | --program-trans | --program-tran \
1241 | --progr-tra | --program-tr | --program-t)
1242 ac_prev=program_transform_name ;;
1243 -program-transform-name=* | --program-transform-name=* \
1244 | --program-transform-nam=* | --program-transform-na=* \
1245 | --program-transform-n=* | --program-transform-=* \
1246 | --program-transform=* | --program-transfor=* \
1247 | --program-transfo=* | --program-transf=* \
1248 | --program-trans=* | --program-tran=* \
1249 | --progr-tra=* | --program-tr=* | --program-t=*)
1250 program_transform_name=$ac_optarg ;;
1252 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1253 ac_prev=pdfdir ;;
1254 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1255 pdfdir=$ac_optarg ;;
1257 -psdir | --psdir | --psdi | --psd | --ps)
1258 ac_prev=psdir ;;
1259 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1260 psdir=$ac_optarg ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1264 silent=yes ;;
1266 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1267 ac_prev=sbindir ;;
1268 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1269 | --sbi=* | --sb=*)
1270 sbindir=$ac_optarg ;;
1272 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1273 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1274 | --sharedst | --shareds | --shared | --share | --shar \
1275 | --sha | --sh)
1276 ac_prev=sharedstatedir ;;
1277 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1278 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1279 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1280 | --sha=* | --sh=*)
1281 sharedstatedir=$ac_optarg ;;
1283 -site | --site | --sit)
1284 ac_prev=site ;;
1285 -site=* | --site=* | --sit=*)
1286 site=$ac_optarg ;;
1288 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1289 ac_prev=srcdir ;;
1290 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1291 srcdir=$ac_optarg ;;
1293 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1294 | --syscon | --sysco | --sysc | --sys | --sy)
1295 ac_prev=sysconfdir ;;
1296 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1297 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1298 sysconfdir=$ac_optarg ;;
1300 -target | --target | --targe | --targ | --tar | --ta | --t)
1301 ac_prev=target_alias ;;
1302 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1303 target_alias=$ac_optarg ;;
1305 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1306 verbose=yes ;;
1308 -version | --version | --versio | --versi | --vers | -V)
1309 ac_init_version=: ;;
1311 -with-* | --with-*)
1312 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1313 # Reject names that are not valid shell variable names.
1314 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1315 as_fn_error "invalid package name: $ac_useropt"
1316 ac_useropt_orig=$ac_useropt
1317 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1318 case $ac_user_opts in
1320 "with_$ac_useropt"
1321 "*) ;;
1322 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1323 ac_unrecognized_sep=', ';;
1324 esac
1325 eval with_$ac_useropt=\$ac_optarg ;;
1327 -without-* | --without-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1331 as_fn_error "invalid package name: $ac_useropt"
1332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1336 "with_$ac_useropt"
1337 "*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval with_$ac_useropt=no ;;
1343 --x)
1344 # Obsolete; use --with-x.
1345 with_x=yes ;;
1347 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1348 | --x-incl | --x-inc | --x-in | --x-i)
1349 ac_prev=x_includes ;;
1350 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1351 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1352 x_includes=$ac_optarg ;;
1354 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1355 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1356 ac_prev=x_libraries ;;
1357 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1358 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1359 x_libraries=$ac_optarg ;;
1361 -*) as_fn_error "unrecognized option: \`$ac_option'
1362 Try \`$0 --help' for more information."
1365 *=*)
1366 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1367 # Reject names that are not valid shell variable names.
1368 case $ac_envvar in #(
1369 '' | [0-9]* | *[!_$as_cr_alnum]* )
1370 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1371 esac
1372 eval $ac_envvar=\$ac_optarg
1373 export $ac_envvar ;;
1376 # FIXME: should be removed in autoconf 3.0.
1377 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1378 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1379 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1380 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1383 esac
1384 done
1386 if test -n "$ac_prev"; then
1387 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1388 as_fn_error "missing argument to $ac_option"
1391 if test -n "$ac_unrecognized_opts"; then
1392 case $enable_option_checking in
1393 no) ;;
1394 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1395 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1396 esac
1399 # Check all directory arguments for consistency.
1400 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1401 datadir sysconfdir sharedstatedir localstatedir includedir \
1402 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1403 libdir localedir mandir
1405 eval ac_val=\$$ac_var
1406 # Remove trailing slashes.
1407 case $ac_val in
1408 */ )
1409 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1410 eval $ac_var=\$ac_val;;
1411 esac
1412 # Be sure to have absolute directory names.
1413 case $ac_val in
1414 [\\/$]* | ?:[\\/]* ) continue;;
1415 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1416 esac
1417 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1418 done
1420 # There might be people who depend on the old broken behavior: `$host'
1421 # used to hold the argument of --host etc.
1422 # FIXME: To remove some day.
1423 build=$build_alias
1424 host=$host_alias
1425 target=$target_alias
1427 # FIXME: To remove some day.
1428 if test "x$host_alias" != x; then
1429 if test "x$build_alias" = x; then
1430 cross_compiling=maybe
1431 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1432 If a cross compiler is detected then cross compile mode will be used." >&2
1433 elif test "x$build_alias" != "x$host_alias"; then
1434 cross_compiling=yes
1438 ac_tool_prefix=
1439 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1441 test "$silent" = yes && exec 6>/dev/null
1444 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1445 ac_ls_di=`ls -di .` &&
1446 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1447 as_fn_error "working directory cannot be determined"
1448 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1449 as_fn_error "pwd does not report name of working directory"
1452 # Find the source files, if location was not specified.
1453 if test -z "$srcdir"; then
1454 ac_srcdir_defaulted=yes
1455 # Try the directory containing this script, then the parent directory.
1456 ac_confdir=`$as_dirname -- "$as_myself" ||
1457 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1458 X"$as_myself" : 'X\(//\)[^/]' \| \
1459 X"$as_myself" : 'X\(//\)$' \| \
1460 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1461 $as_echo X"$as_myself" |
1462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1463 s//\1/
1466 /^X\(\/\/\)[^/].*/{
1467 s//\1/
1470 /^X\(\/\/\)$/{
1471 s//\1/
1474 /^X\(\/\).*/{
1475 s//\1/
1478 s/.*/./; q'`
1479 srcdir=$ac_confdir
1480 if test ! -r "$srcdir/$ac_unique_file"; then
1481 srcdir=..
1483 else
1484 ac_srcdir_defaulted=no
1486 if test ! -r "$srcdir/$ac_unique_file"; then
1487 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1488 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1490 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1491 ac_abs_confdir=`(
1492 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1493 pwd)`
1494 # When building in place, set srcdir=.
1495 if test "$ac_abs_confdir" = "$ac_pwd"; then
1496 srcdir=.
1498 # Remove unnecessary trailing slashes from srcdir.
1499 # Double slashes in file names in object file debugging info
1500 # mess up M-x gdb in Emacs.
1501 case $srcdir in
1502 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1503 esac
1504 for ac_var in $ac_precious_vars; do
1505 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1506 eval ac_env_${ac_var}_value=\$${ac_var}
1507 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1508 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1509 done
1512 # Report the --help message.
1514 if test "$ac_init_help" = "long"; then
1515 # Omit some internal or obsolete options to make the list less imposing.
1516 # This message is too long to be a string in the A/UX 3.1 sh.
1517 cat <<_ACEOF
1518 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1520 Usage: $0 [OPTION]... [VAR=VALUE]...
1522 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1523 VAR=VALUE. See below for descriptions of some of the useful variables.
1525 Defaults for the options are specified in brackets.
1527 Configuration:
1528 -h, --help display this help and exit
1529 --help=short display options specific to this package
1530 --help=recursive display the short help of all the included packages
1531 -V, --version display version information and exit
1532 -q, --quiet, --silent do not print \`checking...' messages
1533 --cache-file=FILE cache test results in FILE [disabled]
1534 -C, --config-cache alias for \`--cache-file=config.cache'
1535 -n, --no-create do not create output files
1536 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1538 Installation directories:
1539 --prefix=PREFIX install architecture-independent files in PREFIX
1540 [$ac_default_prefix]
1541 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1542 [PREFIX]
1544 By default, \`make install' will install all the files in
1545 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1546 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1547 for instance \`--prefix=\$HOME'.
1549 For better control, use the options below.
1551 Fine tuning of the installation directories:
1552 --bindir=DIR user executables [EPREFIX/bin]
1553 --sbindir=DIR system admin executables [EPREFIX/sbin]
1554 --libexecdir=DIR program executables [EPREFIX/libexec]
1555 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1556 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1557 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1558 --libdir=DIR object code libraries [EPREFIX/lib]
1559 --includedir=DIR C header files [PREFIX/include]
1560 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1561 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1562 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1563 --infodir=DIR info documentation [DATAROOTDIR/info]
1564 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1565 --mandir=DIR man documentation [DATAROOTDIR/man]
1566 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1567 --htmldir=DIR html documentation [DOCDIR]
1568 --dvidir=DIR dvi documentation [DOCDIR]
1569 --pdfdir=DIR pdf documentation [DOCDIR]
1570 --psdir=DIR ps documentation [DOCDIR]
1571 _ACEOF
1573 cat <<\_ACEOF
1575 Program names:
1576 --program-prefix=PREFIX prepend PREFIX to installed program names
1577 --program-suffix=SUFFIX append SUFFIX to installed program names
1578 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1580 X features:
1581 --x-includes=DIR X include files are in DIR
1582 --x-libraries=DIR X library files are in DIR
1584 System types:
1585 --build=BUILD configure for building on BUILD [guessed]
1586 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1587 --target=TARGET configure for building compilers for TARGET [HOST]
1588 _ACEOF
1591 if test -n "$ac_init_help"; then
1592 case $ac_init_help in
1593 short | recursive ) echo "Configuration of libjava version-unused:";;
1594 esac
1595 cat <<\_ACEOF
1597 Optional Features:
1598 --disable-option-checking ignore unrecognized --enable/--with options
1599 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1600 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1601 --enable-multilib build many library versions (default)
1602 --enable-version-specific-runtime-libs
1603 specify that runtime libraries should be installed
1604 in a compiler-specific directory
1605 --enable-browser-plugin build gcjwebplugin web browser plugin
1606 --enable-gconf-peer compile GConf native peers for util.preferences
1607 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1608 default=yes
1609 --enable-java-maintainer-mode
1610 allow rebuilding of .class and .h files
1611 --disable-dependency-tracking speeds up one-time build
1612 --enable-dependency-tracking do not reject slow dependency extractors
1613 --enable-maintainer-mode enable make rules and dependencies not useful
1614 (and sometimes confusing) to the casual installer
1615 --enable-libgcj-sublibs build libgcj as many sub-libraries
1616 --enable-libgcj-debug enable runtime debugging code
1617 --enable-java-awt list of AWT peer implementations to be built
1618 --enable-shared[=PKGS] build shared libraries [default=yes]
1619 --enable-static[=PKGS] build static libraries [default=yes]
1620 --enable-fast-install[=PKGS]
1621 optimize for fast installation [default=yes]
1622 --disable-libtool-lock avoid locking (might break parallel builds)
1623 --disable-getenv-properties
1624 don't set system properties from GCJ_PROPERTIES
1625 --enable-hash-synchronization
1626 use global hash table for monitor locks
1627 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1628 libgcj
1629 --enable-reduced-reflection
1630 enable or disable(default) -freduced-reflection when
1631 building portions of libgcj
1632 --enable-gc-debug include full support for pointer backtracing etc.
1633 --enable-interpreter enable interpreter
1634 --enable-sjlj-exceptions
1635 force use of builtin_setjmp for exceptions
1636 --disable-java-net disable java.net
1637 --disable-jvmpi disable JVMPI support
1638 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1639 --disable-rpath do not hardcode runtime library paths
1640 --enable-tls Use thread-local storage [default=yes]
1641 --enable-aot-compile-rpm
1642 enable installation of aot-compile-rpm [default=no]
1643 --enable-java-home create a standard JDK-style directory layout in the
1644 install tree [default=no]
1646 Optional Packages:
1647 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1648 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1649 --with-build-libsubdir=DIR Directory where to find libraries for build system
1650 --with-target-subdir=SUBDIR
1651 configure in a subdirectory
1652 --with-cross-host=HOST configure with a cross compiler from HOST
1653 --with-newlib configure with newlib
1654 --with-antlr-jar=file Use ANTLR from the specified jar file
1655 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1656 --with-pic try to use only PIC/non-PIC objects [default=use
1657 both]
1658 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1659 --with-ecj-jar=FILE use preinstalled ecj jar
1660 --with-java-home=DIRECTORY
1661 value of java.home system property
1662 --with-win32-nlsapi=ansi or unicows or unicode
1663 native MinGW libgcj Win32 OS API (default is ansi)
1664 --without-libffi don't use libffi
1665 --with-ecos enable runtime eCos target support
1666 --with-system-zlib use installed libz
1667 --with-x use the X Window System
1668 --with-gnu-ld assume the C compiler uses GNU ld default=no
1669 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1670 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1671 --with-system-libunwind use installed libunwind
1672 --with-python-dir the location to install Python modules. This path
1673 should NOT include the prefix.
1674 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1675 --with-arch-directory the arch directory under jre/lib (defaults to
1676 auto-detect)
1677 --with-os-directory the os directory under include (defaults to
1678 auto-detect)
1679 --with-origin-name the JPackage origin name of this package (default is
1680 gcj${gcc_suffix}
1681 --with-arch-suffix the arch directory suffix (default is the empty
1682 string
1683 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1684 --with-jvm-jar-dir where to install jars (default is
1685 ${prefix}/lib/jvm-exports)
1687 Some influential environment variables:
1688 CC C compiler command
1689 CFLAGS C compiler flags
1690 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1691 nonstandard directory <lib dir>
1692 LIBS libraries to pass to the linker, e.g. -l<library>
1693 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1694 you have headers in a nonstandard directory <include dir>
1695 CXX C++ compiler command
1696 CXXFLAGS C++ compiler flags
1697 CPP C preprocessor
1698 CXXCPP C++ preprocessor
1699 XMKMF Path to xmkmf, Makefile generator for X Window System
1701 Use these variables to override the choices made by `configure' or to help
1702 it to find libraries and programs with nonstandard names/locations.
1704 Report bugs to the package provider.
1705 _ACEOF
1706 ac_status=$?
1709 if test "$ac_init_help" = "recursive"; then
1710 # If there are subdirs, report their specific --help.
1711 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1712 test -d "$ac_dir" ||
1713 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1714 continue
1715 ac_builddir=.
1717 case "$ac_dir" in
1718 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1720 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1721 # A ".." for each directory in $ac_dir_suffix.
1722 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1723 case $ac_top_builddir_sub in
1724 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1725 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1726 esac ;;
1727 esac
1728 ac_abs_top_builddir=$ac_pwd
1729 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1730 # for backward compatibility:
1731 ac_top_builddir=$ac_top_build_prefix
1733 case $srcdir in
1734 .) # We are building in place.
1735 ac_srcdir=.
1736 ac_top_srcdir=$ac_top_builddir_sub
1737 ac_abs_top_srcdir=$ac_pwd ;;
1738 [\\/]* | ?:[\\/]* ) # Absolute name.
1739 ac_srcdir=$srcdir$ac_dir_suffix;
1740 ac_top_srcdir=$srcdir
1741 ac_abs_top_srcdir=$srcdir ;;
1742 *) # Relative name.
1743 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1744 ac_top_srcdir=$ac_top_build_prefix$srcdir
1745 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1746 esac
1747 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1749 cd "$ac_dir" || { ac_status=$?; continue; }
1750 # Check for guested configure.
1751 if test -f "$ac_srcdir/configure.gnu"; then
1752 echo &&
1753 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1754 elif test -f "$ac_srcdir/configure"; then
1755 echo &&
1756 $SHELL "$ac_srcdir/configure" --help=recursive
1757 else
1758 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1759 fi || ac_status=$?
1760 cd "$ac_pwd" || { ac_status=$?; break; }
1761 done
1764 test -n "$ac_init_help" && exit $ac_status
1765 if $ac_init_version; then
1766 cat <<\_ACEOF
1767 libjava configure version-unused
1768 generated by GNU Autoconf 2.64
1770 Copyright (C) 2009 Free Software Foundation, Inc.
1771 This configure script is free software; the Free Software Foundation
1772 gives unlimited permission to copy, distribute and modify it.
1773 _ACEOF
1774 exit
1777 ## ------------------------ ##
1778 ## Autoconf initialization. ##
1779 ## ------------------------ ##
1781 # ac_fn_c_try_compile LINENO
1782 # --------------------------
1783 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1784 ac_fn_c_try_compile ()
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 rm -f conftest.$ac_objext
1788 if { { ac_try="$ac_compile"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_compile") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } && {
1804 test -z "$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 } && test -s conftest.$ac_objext; then :
1807 ac_retval=0
1808 else
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1812 ac_retval=1
1814 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1815 return $ac_retval
1817 } # ac_fn_c_try_compile
1819 # ac_fn_cxx_try_compile LINENO
1820 # ----------------------------
1821 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_cxx_try_compile ()
1824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1825 rm -f conftest.$ac_objext
1826 if { { ac_try="$ac_compile"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_compile") 2>conftest.err
1834 ac_status=$?
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_cxx_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest.$ac_objext; then :
1845 ac_retval=0
1846 else
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1850 ac_retval=1
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853 return $ac_retval
1855 } # ac_fn_cxx_try_compile
1857 # ac_fn_c_try_link LINENO
1858 # -----------------------
1859 # Try to link conftest.$ac_ext, and return whether this succeeded.
1860 ac_fn_c_try_link ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 rm -f conftest.$ac_objext conftest$ac_exeext
1864 if { { ac_try="$ac_link"
1865 case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868 esac
1869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_link") 2>conftest.err
1872 ac_status=$?
1873 if test -s conftest.err; then
1874 grep -v '^ *+' conftest.err >conftest.er1
1875 cat conftest.er1 >&5
1876 mv -f conftest.er1 conftest.err
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && {
1880 test -z "$ac_c_werror_flag" ||
1881 test ! -s conftest.err
1882 } && test -s conftest$ac_exeext && {
1883 test "$cross_compiling" = yes ||
1884 $as_test_x conftest$ac_exeext
1885 }; then :
1886 ac_retval=0
1887 else
1888 $as_echo "$as_me: failed program was:" >&5
1889 sed 's/^/| /' conftest.$ac_ext >&5
1891 ac_retval=1
1893 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1894 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1895 # interfere with the next link command; also delete a directory that is
1896 # left behind by Apple's compiler. We do this before executing the actions.
1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899 return $ac_retval
1901 } # ac_fn_c_try_link
1903 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1904 # -------------------------------------------------------
1905 # Tests whether HEADER exists and can be compiled using the include files in
1906 # INCLUDES, setting the cache variable VAR accordingly.
1907 ac_fn_c_check_header_compile ()
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1911 $as_echo_n "checking for $2... " >&6; }
1912 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1913 $as_echo_n "(cached) " >&6
1914 else
1915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1916 /* end confdefs.h. */
1918 #include <$2>
1919 _ACEOF
1920 if ac_fn_c_try_compile "$LINENO"; then :
1921 eval "$3=yes"
1922 else
1923 eval "$3=no"
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1927 eval ac_res=\$$3
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1932 } # ac_fn_c_check_header_compile
1934 # ac_fn_c_try_cpp LINENO
1935 # ----------------------
1936 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1937 ac_fn_c_try_cpp ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if { { ac_try="$ac_cpp conftest.$ac_ext"
1941 case "(($ac_try" in
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1944 esac
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1948 ac_status=$?
1949 if test -s conftest.err; then
1950 grep -v '^ *+' conftest.err >conftest.er1
1951 cat conftest.er1 >&5
1952 mv -f conftest.er1 conftest.err
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } >/dev/null && {
1956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1957 test ! -s conftest.err
1958 }; then :
1959 ac_retval=0
1960 else
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 ac_retval=1
1966 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1967 return $ac_retval
1969 } # ac_fn_c_try_cpp
1971 # ac_fn_c_try_run LINENO
1972 # ----------------------
1973 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1974 # that executables *can* be run.
1975 ac_fn_c_try_run ()
1977 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1978 if { { ac_try="$ac_link"
1979 case "(($ac_try" in
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1982 esac
1983 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984 $as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_link") 2>&5
1986 ac_status=$?
1987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1988 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1989 { { case "(($ac_try" in
1990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1991 *) ac_try_echo=$ac_try;;
1992 esac
1993 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1994 $as_echo "$ac_try_echo"; } >&5
1995 (eval "$ac_try") 2>&5
1996 ac_status=$?
1997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1998 test $ac_status = 0; }; }; then :
1999 ac_retval=0
2000 else
2001 $as_echo "$as_me: program exited with status $ac_status" >&5
2002 $as_echo "$as_me: failed program was:" >&5
2003 sed 's/^/| /' conftest.$ac_ext >&5
2005 ac_retval=$ac_status
2007 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009 return $ac_retval
2011 } # ac_fn_c_try_run
2013 # ac_fn_c_check_func LINENO FUNC VAR
2014 # ----------------------------------
2015 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2016 ac_fn_c_check_func ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020 $as_echo_n "checking for $2... " >&6; }
2021 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2022 $as_echo_n "(cached) " >&6
2023 else
2024 if test x$gcc_no_link = xyes; then
2025 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2029 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2031 #define $2 innocuous_$2
2033 /* System header to define __stub macros and hopefully few prototypes,
2034 which can conflict with char $2 (); below.
2035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2036 <limits.h> exists even on freestanding compilers. */
2038 #ifdef __STDC__
2039 # include <limits.h>
2040 #else
2041 # include <assert.h>
2042 #endif
2044 #undef $2
2046 /* Override any GCC internal prototype to avoid an error.
2047 Use char because int might match the return type of a GCC
2048 builtin and then its argument prototype would still apply. */
2049 #ifdef __cplusplus
2050 extern "C"
2051 #endif
2052 char $2 ();
2053 /* The GNU C library defines this for functions which it implements
2054 to always fail with ENOSYS. Some functions are actually named
2055 something starting with __ and the normal name is an alias. */
2056 #if defined __stub_$2 || defined __stub___$2
2057 choke me
2058 #endif
2061 main ()
2063 return $2 ();
2065 return 0;
2067 _ACEOF
2068 if ac_fn_c_try_link "$LINENO"; then :
2069 eval "$3=yes"
2070 else
2071 eval "$3=no"
2073 rm -f core conftest.err conftest.$ac_objext \
2074 conftest$ac_exeext conftest.$ac_ext
2076 eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078 $as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2081 } # ac_fn_c_check_func
2083 # ac_fn_cxx_try_cpp LINENO
2084 # ------------------------
2085 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2086 ac_fn_cxx_try_cpp ()
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 if { { ac_try="$ac_cpp conftest.$ac_ext"
2090 case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093 esac
2094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2095 $as_echo "$ac_try_echo"; } >&5
2096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2097 ac_status=$?
2098 if test -s conftest.err; then
2099 grep -v '^ *+' conftest.err >conftest.er1
2100 cat conftest.er1 >&5
2101 mv -f conftest.er1 conftest.err
2103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2104 test $ac_status = 0; } >/dev/null && {
2105 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2106 test ! -s conftest.err
2107 }; then :
2108 ac_retval=0
2109 else
2110 $as_echo "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2113 ac_retval=1
2115 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2116 return $ac_retval
2118 } # ac_fn_cxx_try_cpp
2120 # ac_fn_cxx_try_link LINENO
2121 # -------------------------
2122 # Try to link conftest.$ac_ext, and return whether this succeeded.
2123 ac_fn_cxx_try_link ()
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 rm -f conftest.$ac_objext conftest$ac_exeext
2127 if { { ac_try="$ac_link"
2128 case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131 esac
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_link") 2>conftest.err
2135 ac_status=$?
2136 if test -s conftest.err; then
2137 grep -v '^ *+' conftest.err >conftest.er1
2138 cat conftest.er1 >&5
2139 mv -f conftest.er1 conftest.err
2141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142 test $ac_status = 0; } && {
2143 test -z "$ac_cxx_werror_flag" ||
2144 test ! -s conftest.err
2145 } && test -s conftest$ac_exeext && {
2146 test "$cross_compiling" = yes ||
2147 $as_test_x conftest$ac_exeext
2148 }; then :
2149 ac_retval=0
2150 else
2151 $as_echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2154 ac_retval=1
2156 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2157 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2158 # interfere with the next link command; also delete a directory that is
2159 # left behind by Apple's compiler. We do this before executing the actions.
2160 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2161 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2162 return $ac_retval
2164 } # ac_fn_cxx_try_link
2166 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2167 # -------------------------------------------------------
2168 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2169 # the include files in INCLUDES and setting the cache variable VAR
2170 # accordingly.
2171 ac_fn_c_check_header_mongrel ()
2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2176 $as_echo_n "checking for $2... " >&6; }
2177 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2178 $as_echo_n "(cached) " >&6
2180 eval ac_res=\$$3
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2182 $as_echo "$ac_res" >&6; }
2183 else
2184 # Is the header compilable?
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2186 $as_echo_n "checking $2 usability... " >&6; }
2187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2188 /* end confdefs.h. */
2190 #include <$2>
2191 _ACEOF
2192 if ac_fn_c_try_compile "$LINENO"; then :
2193 ac_header_compiler=yes
2194 else
2195 ac_header_compiler=no
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2199 $as_echo "$ac_header_compiler" >&6; }
2201 # Is the header present?
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2203 $as_echo_n "checking $2 presence... " >&6; }
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2206 #include <$2>
2207 _ACEOF
2208 if ac_fn_c_try_cpp "$LINENO"; then :
2209 ac_header_preproc=yes
2210 else
2211 ac_header_preproc=no
2213 rm -f conftest.err conftest.$ac_ext
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2215 $as_echo "$ac_header_preproc" >&6; }
2217 # So? What about this header?
2218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2219 yes:no: )
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2221 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2223 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2225 no:yes:* )
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2227 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2229 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2231 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2233 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2235 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2237 esac
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2239 $as_echo_n "checking for $2... " >&6; }
2240 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2241 $as_echo_n "(cached) " >&6
2242 else
2243 eval "$3=\$ac_header_compiler"
2245 eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2249 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2251 } # ac_fn_c_check_header_mongrel
2253 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2254 # ----------------------------------------------------
2255 # Tries to find if the field MEMBER exists in type AGGR, after including
2256 # INCLUDES, setting cache variable VAR accordingly.
2257 ac_fn_c_check_member ()
2259 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2261 $as_echo_n "checking for $2.$3... " >&6; }
2262 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2263 $as_echo_n "(cached) " >&6
2264 else
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2269 main ()
2271 static $2 ac_aggr;
2272 if (ac_aggr.$3)
2273 return 0;
2275 return 0;
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279 eval "$4=yes"
2280 else
2281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h. */
2285 main ()
2287 static $2 ac_aggr;
2288 if (sizeof ac_aggr.$3)
2289 return 0;
2291 return 0;
2293 _ACEOF
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295 eval "$4=yes"
2296 else
2297 eval "$4=no"
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 eval ac_res=\$$4
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305 $as_echo "$ac_res" >&6; }
2306 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2308 } # ac_fn_c_check_member
2310 # ac_fn_c_check_decl LINENO SYMBOL VAR
2311 # ------------------------------------
2312 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2313 ac_fn_c_check_decl ()
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2317 $as_echo_n "checking whether $2 is declared... " >&6; }
2318 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2319 $as_echo_n "(cached) " >&6
2320 else
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322 /* end confdefs.h. */
2325 main ()
2327 #ifndef $2
2328 (void) $2;
2329 #endif
2332 return 0;
2334 _ACEOF
2335 if ac_fn_c_try_compile "$LINENO"; then :
2336 eval "$3=yes"
2337 else
2338 eval "$3=no"
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2342 eval ac_res=\$$3
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2344 $as_echo "$ac_res" >&6; }
2345 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2347 } # ac_fn_c_check_decl
2349 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2350 # --------------------------------------------
2351 # Tries to find the compile-time value of EXPR in a program that includes
2352 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2353 # computed
2354 ac_fn_c_compute_int ()
2356 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2357 if test "$cross_compiling" = yes; then
2358 # Depending upon the size, compute the lo and hi bounds.
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360 /* end confdefs.h. */
2363 main ()
2365 static int test_array [1 - 2 * !(($2) >= 0)];
2366 test_array [0] = 0
2369 return 0;
2371 _ACEOF
2372 if ac_fn_c_try_compile "$LINENO"; then :
2373 ac_lo=0 ac_mid=0
2374 while :; do
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376 /* end confdefs.h. */
2379 main ()
2381 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2382 test_array [0] = 0
2385 return 0;
2387 _ACEOF
2388 if ac_fn_c_try_compile "$LINENO"; then :
2389 ac_hi=$ac_mid; break
2390 else
2391 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2392 if test $ac_lo -le $ac_mid; then
2393 ac_lo= ac_hi=
2394 break
2396 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 done
2400 else
2401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2402 /* end confdefs.h. */
2405 main ()
2407 static int test_array [1 - 2 * !(($2) < 0)];
2408 test_array [0] = 0
2411 return 0;
2413 _ACEOF
2414 if ac_fn_c_try_compile "$LINENO"; then :
2415 ac_hi=-1 ac_mid=-1
2416 while :; do
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2421 main ()
2423 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2424 test_array [0] = 0
2427 return 0;
2429 _ACEOF
2430 if ac_fn_c_try_compile "$LINENO"; then :
2431 ac_lo=$ac_mid; break
2432 else
2433 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2434 if test $ac_mid -le $ac_hi; then
2435 ac_lo= ac_hi=
2436 break
2438 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 done
2442 else
2443 ac_lo= ac_hi=
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2448 # Binary search between lo and hi bounds.
2449 while test "x$ac_lo" != "x$ac_hi"; do
2450 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2452 /* end confdefs.h. */
2455 main ()
2457 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2458 test_array [0] = 0
2461 return 0;
2463 _ACEOF
2464 if ac_fn_c_try_compile "$LINENO"; then :
2465 ac_hi=$ac_mid
2466 else
2467 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2470 done
2471 case $ac_lo in #((
2472 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2473 '') ac_retval=1 ;;
2474 esac
2475 else
2476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2477 /* end confdefs.h. */
2479 static long int longval () { return $2; }
2480 static unsigned long int ulongval () { return $2; }
2481 #include <stdio.h>
2482 #include <stdlib.h>
2484 main ()
2487 FILE *f = fopen ("conftest.val", "w");
2488 if (! f)
2489 return 1;
2490 if (($2) < 0)
2492 long int i = longval ();
2493 if (i != ($2))
2494 return 1;
2495 fprintf (f, "%ld", i);
2497 else
2499 unsigned long int i = ulongval ();
2500 if (i != ($2))
2501 return 1;
2502 fprintf (f, "%lu", i);
2504 /* Do not output a trailing newline, as this causes \r\n confusion
2505 on some platforms. */
2506 return ferror (f) || fclose (f) != 0;
2509 return 0;
2511 _ACEOF
2512 if ac_fn_c_try_run "$LINENO"; then :
2513 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2514 else
2515 ac_retval=1
2517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2518 conftest.$ac_objext conftest.beam conftest.$ac_ext
2519 rm -f conftest.val
2522 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2523 return $ac_retval
2525 } # ac_fn_c_compute_int
2527 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2528 # -------------------------------------------
2529 # Tests whether TYPE exists after having included INCLUDES, setting cache
2530 # variable VAR accordingly.
2531 ac_fn_c_check_type ()
2533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2535 $as_echo_n "checking for $2... " >&6; }
2536 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 eval "$3=no"
2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h. */
2544 main ()
2546 if (sizeof ($2))
2547 return 0;
2549 return 0;
2551 _ACEOF
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2557 main ()
2559 if (sizeof (($2)))
2560 return 0;
2562 return 0;
2564 _ACEOF
2565 if ac_fn_c_try_compile "$LINENO"; then :
2567 else
2568 eval "$3=yes"
2570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 eval ac_res=\$$3
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2576 $as_echo "$ac_res" >&6; }
2577 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2579 } # ac_fn_c_check_type
2580 cat >config.log <<_ACEOF
2581 This file contains any messages produced by compilers while
2582 running configure, to aid debugging if configure makes a mistake.
2584 It was created by libjava $as_me version-unused, which was
2585 generated by GNU Autoconf 2.64. Invocation command line was
2587 $ $0 $@
2589 _ACEOF
2590 exec 5>>config.log
2592 cat <<_ASUNAME
2593 ## --------- ##
2594 ## Platform. ##
2595 ## --------- ##
2597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2604 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2606 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2607 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2609 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2610 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2611 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2612 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2614 _ASUNAME
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2619 IFS=$as_save_IFS
2620 test -z "$as_dir" && as_dir=.
2621 $as_echo "PATH: $as_dir"
2622 done
2623 IFS=$as_save_IFS
2625 } >&5
2627 cat >&5 <<_ACEOF
2630 ## ----------- ##
2631 ## Core tests. ##
2632 ## ----------- ##
2634 _ACEOF
2637 # Keep a trace of the command line.
2638 # Strip out --no-create and --no-recursion so they do not pile up.
2639 # Strip out --silent because we don't want to record it for future runs.
2640 # Also quote any args containing shell meta-characters.
2641 # Make two passes to allow for proper duplicate-argument suppression.
2642 ac_configure_args=
2643 ac_configure_args0=
2644 ac_configure_args1=
2645 ac_must_keep_next=false
2646 for ac_pass in 1 2
2648 for ac_arg
2650 case $ac_arg in
2651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2653 | -silent | --silent | --silen | --sile | --sil)
2654 continue ;;
2655 *\'*)
2656 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2657 esac
2658 case $ac_pass in
2659 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2661 as_fn_append ac_configure_args1 " '$ac_arg'"
2662 if test $ac_must_keep_next = true; then
2663 ac_must_keep_next=false # Got value, back to normal.
2664 else
2665 case $ac_arg in
2666 *=* | --config-cache | -C | -disable-* | --disable-* \
2667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2669 | -with-* | --with-* | -without-* | --without-* | --x)
2670 case "$ac_configure_args0 " in
2671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2672 esac
2674 -* ) ac_must_keep_next=true ;;
2675 esac
2677 as_fn_append ac_configure_args " '$ac_arg'"
2679 esac
2680 done
2681 done
2682 { ac_configure_args0=; unset ac_configure_args0;}
2683 { ac_configure_args1=; unset ac_configure_args1;}
2685 # When interrupted or exit'd, cleanup temporary files, and complete
2686 # config.log. We remove comments because anyway the quotes in there
2687 # would cause problems or look ugly.
2688 # WARNING: Use '\'' to represent an apostrophe within the trap.
2689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2690 trap 'exit_status=$?
2691 # Save into config.log some information that might help in debugging.
2693 echo
2695 cat <<\_ASBOX
2696 ## ---------------- ##
2697 ## Cache variables. ##
2698 ## ---------------- ##
2699 _ASBOX
2700 echo
2701 # The following way of writing the cache mishandles newlines in values,
2703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2704 eval ac_val=\$$ac_var
2705 case $ac_val in #(
2706 *${as_nl}*)
2707 case $ac_var in #(
2708 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2709 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2710 esac
2711 case $ac_var in #(
2712 _ | IFS | as_nl) ;; #(
2713 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2714 *) { eval $ac_var=; unset $ac_var;} ;;
2715 esac ;;
2716 esac
2717 done
2718 (set) 2>&1 |
2719 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2720 *${as_nl}ac_space=\ *)
2721 sed -n \
2722 "s/'\''/'\''\\\\'\'''\''/g;
2723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2724 ;; #(
2726 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2728 esac |
2729 sort
2731 echo
2733 cat <<\_ASBOX
2734 ## ----------------- ##
2735 ## Output variables. ##
2736 ## ----------------- ##
2737 _ASBOX
2738 echo
2739 for ac_var in $ac_subst_vars
2741 eval ac_val=\$$ac_var
2742 case $ac_val in
2743 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2744 esac
2745 $as_echo "$ac_var='\''$ac_val'\''"
2746 done | sort
2747 echo
2749 if test -n "$ac_subst_files"; then
2750 cat <<\_ASBOX
2751 ## ------------------- ##
2752 ## File substitutions. ##
2753 ## ------------------- ##
2754 _ASBOX
2755 echo
2756 for ac_var in $ac_subst_files
2758 eval ac_val=\$$ac_var
2759 case $ac_val in
2760 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2761 esac
2762 $as_echo "$ac_var='\''$ac_val'\''"
2763 done | sort
2764 echo
2767 if test -s confdefs.h; then
2768 cat <<\_ASBOX
2769 ## ----------- ##
2770 ## confdefs.h. ##
2771 ## ----------- ##
2772 _ASBOX
2773 echo
2774 cat confdefs.h
2775 echo
2777 test "$ac_signal" != 0 &&
2778 $as_echo "$as_me: caught signal $ac_signal"
2779 $as_echo "$as_me: exit $exit_status"
2780 } >&5
2781 rm -f core *.core core.conftest.* &&
2782 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2783 exit $exit_status
2785 for ac_signal in 1 2 13 15; do
2786 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2787 done
2788 ac_signal=0
2790 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2791 rm -f -r conftest* confdefs.h
2793 $as_echo "/* confdefs.h */" > confdefs.h
2795 # Predefined preprocessor variables.
2797 cat >>confdefs.h <<_ACEOF
2798 #define PACKAGE_NAME "$PACKAGE_NAME"
2799 _ACEOF
2801 cat >>confdefs.h <<_ACEOF
2802 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2803 _ACEOF
2805 cat >>confdefs.h <<_ACEOF
2806 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2807 _ACEOF
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE_STRING "$PACKAGE_STRING"
2811 _ACEOF
2813 cat >>confdefs.h <<_ACEOF
2814 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2815 _ACEOF
2817 cat >>confdefs.h <<_ACEOF
2818 #define PACKAGE_URL "$PACKAGE_URL"
2819 _ACEOF
2822 # Let the site file select an alternate cache file if it wants to.
2823 # Prefer an explicitly selected file to automatically selected ones.
2824 ac_site_file1=NONE
2825 ac_site_file2=NONE
2826 if test -n "$CONFIG_SITE"; then
2827 ac_site_file1=$CONFIG_SITE
2828 elif test "x$prefix" != xNONE; then
2829 ac_site_file1=$prefix/share/config.site
2830 ac_site_file2=$prefix/etc/config.site
2831 else
2832 ac_site_file1=$ac_default_prefix/share/config.site
2833 ac_site_file2=$ac_default_prefix/etc/config.site
2835 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2837 test "x$ac_site_file" = xNONE && continue
2838 if test -r "$ac_site_file"; then
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2840 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2841 sed 's/^/| /' "$ac_site_file" >&5
2842 . "$ac_site_file"
2844 done
2846 if test -r "$cache_file"; then
2847 # Some versions of bash will fail to source /dev/null (special
2848 # files actually), so we avoid doing that.
2849 if test -f "$cache_file"; then
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2851 $as_echo "$as_me: loading cache $cache_file" >&6;}
2852 case $cache_file in
2853 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2854 *) . "./$cache_file";;
2855 esac
2857 else
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2859 $as_echo "$as_me: creating cache $cache_file" >&6;}
2860 >$cache_file
2863 # Check that the precious variables saved in the cache have kept the same
2864 # value.
2865 ac_cache_corrupted=false
2866 for ac_var in $ac_precious_vars; do
2867 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2868 eval ac_new_set=\$ac_env_${ac_var}_set
2869 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2870 eval ac_new_val=\$ac_env_${ac_var}_value
2871 case $ac_old_set,$ac_new_set in
2872 set,)
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2874 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2875 ac_cache_corrupted=: ;;
2876 ,set)
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2878 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2879 ac_cache_corrupted=: ;;
2880 ,);;
2882 if test "x$ac_old_val" != "x$ac_new_val"; then
2883 # differences in whitespace do not lead to failure.
2884 ac_old_val_w=`echo x $ac_old_val`
2885 ac_new_val_w=`echo x $ac_new_val`
2886 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2888 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2889 ac_cache_corrupted=:
2890 else
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2892 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2893 eval $ac_var=\$ac_old_val
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2896 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2898 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2899 fi;;
2900 esac
2901 # Pass precious variables to config.status.
2902 if test "$ac_new_set" = set; then
2903 case $ac_new_val in
2904 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2905 *) ac_arg=$ac_var=$ac_new_val ;;
2906 esac
2907 case " $ac_configure_args " in
2908 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2909 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2910 esac
2912 done
2913 if $ac_cache_corrupted; then
2914 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2915 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2917 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2918 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2920 ## -------------------- ##
2921 ## Main body of script. ##
2922 ## -------------------- ##
2924 ac_ext=c
2925 ac_cpp='$CPP $CPPFLAGS'
2926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2937 ac_aux_dir=
2938 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2939 for ac_t in install-sh install.sh shtool; do
2940 if test -f "$ac_dir/$ac_t"; then
2941 ac_aux_dir=$ac_dir
2942 ac_install_sh="$ac_aux_dir/$ac_t -c"
2943 break 2
2945 done
2946 done
2947 if test -z "$ac_aux_dir"; then
2948 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2951 # These three variables are undocumented and unsupported,
2952 # and are intended to be withdrawn in a future Autoconf release.
2953 # They can cause serious problems if a builder's source tree is in a directory
2954 # whose full name contains unusual characters.
2955 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2956 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2957 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2960 # Make sure we can run config.sub.
2961 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2962 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2965 $as_echo_n "checking build system type... " >&6; }
2966 if test "${ac_cv_build+set}" = set; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 ac_build_alias=$build_alias
2970 test "x$ac_build_alias" = x &&
2971 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2972 test "x$ac_build_alias" = x &&
2973 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2974 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2975 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2979 $as_echo "$ac_cv_build" >&6; }
2980 case $ac_cv_build in
2981 *-*-*) ;;
2982 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2983 esac
2984 build=$ac_cv_build
2985 ac_save_IFS=$IFS; IFS='-'
2986 set x $ac_cv_build
2987 shift
2988 build_cpu=$1
2989 build_vendor=$2
2990 shift; shift
2991 # Remember, the first character of IFS is used to create $*,
2992 # except with old shells:
2993 build_os=$*
2994 IFS=$ac_save_IFS
2995 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2998 case ${build_alias} in
2999 "") build_noncanonical=${build} ;;
3000 *) build_noncanonical=${build_alias} ;;
3001 esac
3003 case ${host_alias} in
3004 "") host_noncanonical=${build_noncanonical} ;;
3005 *) host_noncanonical=${host_alias} ;;
3006 esac
3008 case ${target_alias} in
3009 "") target_noncanonical=${host_noncanonical} ;;
3010 *) target_noncanonical=${target_alias} ;;
3011 esac
3014 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3015 # have matching libraries, they should use host libraries: Makefile.tpl
3016 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3017 # However, they still use the build modules, because the corresponding
3018 # host modules (e.g. bison) are only built for the host when bootstrap
3019 # finishes. So:
3020 # - build_subdir is where we find build modules, and never changes.
3021 # - build_libsubdir is where we find build libraries, and can be overridden.
3023 # Prefix 'build-' so this never conflicts with target_subdir.
3024 build_subdir="build-${build_noncanonical}"
3026 # Check whether --with-build-libsubdir was given.
3027 if test "${with_build_libsubdir+set}" = set; then :
3028 withval=$with_build_libsubdir; build_libsubdir="$withval"
3029 else
3030 build_libsubdir="$build_subdir"
3033 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3034 if ( test $srcdir = . && test -d gcc ) \
3035 || test -d $srcdir/../host-${host_noncanonical}; then
3036 host_subdir="host-${host_noncanonical}"
3037 else
3038 host_subdir=.
3040 # No prefix.
3041 target_subdir=${target_noncanonical}
3044 # We use these options to decide which functions to include.
3046 # Check whether --with-target-subdir was given.
3047 if test "${with_target_subdir+set}" = set; then :
3048 withval=$with_target_subdir;
3052 # We may get other options which we don't document:
3053 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3055 # Find the rest of the source tree framework.
3056 # Default to --enable-multilib
3057 # Check whether --enable-multilib was given.
3058 if test "${enable_multilib+set}" = set; then :
3059 enableval=$enable_multilib; case "$enableval" in
3060 yes) multilib=yes ;;
3061 no) multilib=no ;;
3062 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3063 esac
3064 else
3065 multilib=yes
3069 # We may get other options which we leave undocumented:
3070 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3071 # See config-ml.in if you want the gory details.
3073 if test "$srcdir" = "."; then
3074 if test "$with_target_subdir" != "."; then
3075 multi_basedir="$srcdir/$with_multisrctop../.."
3076 else
3077 multi_basedir="$srcdir/$with_multisrctop.."
3079 else
3080 multi_basedir="$srcdir/.."
3084 # Even if the default multilib is not a cross compilation,
3085 # it may be that some of the other multilibs are.
3086 if test $cross_compiling = no && test $multilib = yes \
3087 && test "x${with_multisubdir}" != x ; then
3088 cross_compiling=maybe
3091 ac_config_commands="$ac_config_commands default-1"
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3095 $as_echo_n "checking host system type... " >&6; }
3096 if test "${ac_cv_host+set}" = set; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 if test "x$host_alias" = x; then
3100 ac_cv_host=$ac_cv_build
3101 else
3102 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3103 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3108 $as_echo "$ac_cv_host" >&6; }
3109 case $ac_cv_host in
3110 *-*-*) ;;
3111 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3112 esac
3113 host=$ac_cv_host
3114 ac_save_IFS=$IFS; IFS='-'
3115 set x $ac_cv_host
3116 shift
3117 host_cpu=$1
3118 host_vendor=$2
3119 shift; shift
3120 # Remember, the first character of IFS is used to create $*,
3121 # except with old shells:
3122 host_os=$*
3123 IFS=$ac_save_IFS
3124 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3128 $as_echo_n "checking target system type... " >&6; }
3129 if test "${ac_cv_target+set}" = set; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 if test "x$target_alias" = x; then
3133 ac_cv_target=$ac_cv_host
3134 else
3135 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3136 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3141 $as_echo "$ac_cv_target" >&6; }
3142 case $ac_cv_target in
3143 *-*-*) ;;
3144 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3145 esac
3146 target=$ac_cv_target
3147 ac_save_IFS=$IFS; IFS='-'
3148 set x $ac_cv_target
3149 shift
3150 target_cpu=$1
3151 target_vendor=$2
3152 shift; shift
3153 # Remember, the first character of IFS is used to create $*,
3154 # except with old shells:
3155 target_os=$*
3156 IFS=$ac_save_IFS
3157 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3160 # The aliases save the names the user supplied, while $host etc.
3161 # will get canonicalized.
3162 test -n "$target_alias" &&
3163 test "$program_prefix$program_suffix$program_transform_name" = \
3164 NONENONEs,x,x, &&
3165 program_prefix=${target_alias}-
3167 case ${build_alias} in
3168 "") build_noncanonical=${build} ;;
3169 *) build_noncanonical=${build_alias} ;;
3170 esac
3172 case ${target_alias} in
3173 "") target_noncanonical=${host_noncanonical} ;;
3174 *) target_noncanonical=${target_alias} ;;
3175 esac
3180 # This works around the fact that libtool configuration may change LD
3181 # for this particular configuration, but some shells, instead of
3182 # keeping the changes in LD private, export them just because LD is
3183 # exported.
3184 ORIGINAL_LD_FOR_MULTILIBS=$LD
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3187 $as_echo_n "checking whether ln -s works... " >&6; }
3188 LN_S=$as_ln_s
3189 if test "$LN_S" = "ln -s"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191 $as_echo "yes" >&6; }
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3194 $as_echo "no, using $LN_S" >&6; }
3198 # This works around an automake problem.
3199 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3203 # Check whether --with-cross-host was given.
3204 if test "${with_cross_host+set}" = set; then :
3205 withval=$with_cross_host;
3210 # Check whether --with-newlib was given.
3211 if test "${with_newlib+set}" = set; then :
3212 withval=$with_newlib;
3216 # Check whether --enable-version-specific-runtime-libs was given.
3217 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3218 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3219 yes) version_specific_libs=yes ;;
3220 no) version_specific_libs=no ;;
3221 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3222 esac
3223 else
3224 version_specific_libs=no
3229 # Check whether --enable-browser-plugin was given.
3230 if test "${enable_browser_plugin+set}" = set; then :
3231 enableval=$enable_browser_plugin; case "$enableval" in
3232 yes) browser_plugin_enabled=yes ;;
3233 no) browser_plugin_enabled=no ;;
3234 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3235 esac
3236 else
3237 browser_plugin_enabled=no
3242 # Check whether --enable-gconf-peer was given.
3243 if test "${enable_gconf_peer+set}" = set; then :
3244 enableval=$enable_gconf_peer; case "$enableval" in
3245 yes) gconf_enabled=yes ;;
3246 no) gconf_enabled=no ;;
3247 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3248 esac
3249 else
3250 gconf_enabled=no
3256 # Check whether --with-antlr-jar was given.
3257 if test "${with_antlr_jar+set}" = set; then :
3258 withval=$with_antlr_jar;
3259 ANTLR_JAR=$withval
3261 else
3263 ANTLR_JAR=
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3269 $as_echo_n "checking for antlr.jar... " >&6; }
3270 if test "x$ANTLR_JAR" = x; then
3271 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3272 /usr/share/antlr/lib /usr/share/java /usr/lib;
3274 if test -f "$antlr_lib_home/antlr.jar"; then
3275 # FIXME: version check for antlr needed without using a VM
3276 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3277 break
3279 done
3280 if test "x$ANTLR_JAR" = x; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3282 $as_echo "not found" >&6; }
3283 else
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3285 $as_echo "$ANTLR_JAR" >&6; }
3287 else
3288 if test -f "${ANTLR_JAR}"; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3290 $as_echo "$ANTLR_JAR" >&6; }
3291 else
3292 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3297 # Check whether --enable-gjdoc was given.
3298 if test "${enable_gjdoc+set}" = set; then :
3299 enableval=$enable_gjdoc; case "${enableval}" in
3300 yes) BUILD_GJDOC=yes ;;
3301 no) BUILD_GJDOC=no ;;
3302 *) BUILD_GJDOC=yes ;;
3303 esac
3304 else
3305 BUILD_GJDOC=maybe
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3310 $as_echo_n "checking whether to build gjdoc... " >&6; }
3311 if test "x$BUILD_GJDOC" = xmaybe; then
3312 if test -f "${ANTLR_JAR}"; then
3313 BUILD_GJDOC=yes
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3315 $as_echo "yes" >&6; }
3316 else
3317 BUILD_GJDOC=no
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3319 $as_echo "no, antlr.jar not found" >&6; }
3321 else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3323 $as_echo "$BUILD_GJDOC" >&6; }
3325 if test "x${BUILD_GJDOC}" = xyes; then
3326 CREATE_GJDOC_TRUE=
3327 CREATE_GJDOC_FALSE='#'
3328 else
3329 CREATE_GJDOC_TRUE='#'
3330 CREATE_GJDOC_FALSE=
3334 # Check whether --enable-java-maintainer-mode was given.
3335 if test "${enable_java_maintainer_mode+set}" = set; then :
3336 enableval=$enable_java_maintainer_mode;
3339 if test "$enable_java_maintainer_mode" = yes; then
3340 JAVA_MAINTAINER_MODE_TRUE=
3341 JAVA_MAINTAINER_MODE_FALSE='#'
3342 else
3343 JAVA_MAINTAINER_MODE_TRUE='#'
3344 JAVA_MAINTAINER_MODE_FALSE=
3348 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3351 # For libstdc++-v3, -fno-builtin must be present here so that a
3352 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3353 # used in later tests. This may not be necessary in libjava; I don't know.
3354 save_CXXFLAGS="$CXXFLAGS"
3355 CXXFLAGS="$CXXFLAGS -fno-builtin"
3356 ac_ext=c
3357 ac_cpp='$CPP $CPPFLAGS'
3358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3361 if test -n "$ac_tool_prefix"; then
3362 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3363 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3365 $as_echo_n "checking for $ac_word... " >&6; }
3366 if test "${ac_cv_prog_CC+set}" = set; then :
3367 $as_echo_n "(cached) " >&6
3368 else
3369 if test -n "$CC"; then
3370 ac_cv_prog_CC="$CC" # Let the user override the test.
3371 else
3372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373 for as_dir in $PATH
3375 IFS=$as_save_IFS
3376 test -z "$as_dir" && as_dir=.
3377 for ac_exec_ext in '' $ac_executable_extensions; do
3378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3381 break 2
3383 done
3384 done
3385 IFS=$as_save_IFS
3389 CC=$ac_cv_prog_CC
3390 if test -n "$CC"; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3392 $as_echo "$CC" >&6; }
3393 else
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3395 $as_echo "no" >&6; }
3400 if test -z "$ac_cv_prog_CC"; then
3401 ac_ct_CC=$CC
3402 # Extract the first word of "gcc", so it can be a program name with args.
3403 set dummy gcc; ac_word=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3407 $as_echo_n "(cached) " >&6
3408 else
3409 if test -n "$ac_ct_CC"; then
3410 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3411 else
3412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3413 for as_dir in $PATH
3415 IFS=$as_save_IFS
3416 test -z "$as_dir" && as_dir=.
3417 for ac_exec_ext in '' $ac_executable_extensions; do
3418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3419 ac_cv_prog_ac_ct_CC="gcc"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 break 2
3423 done
3424 done
3425 IFS=$as_save_IFS
3429 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3430 if test -n "$ac_ct_CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3432 $as_echo "$ac_ct_CC" >&6; }
3433 else
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3438 if test "x$ac_ct_CC" = x; then
3439 CC=""
3440 else
3441 case $cross_compiling:$ac_tool_warned in
3442 yes:)
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3444 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3445 ac_tool_warned=yes ;;
3446 esac
3447 CC=$ac_ct_CC
3449 else
3450 CC="$ac_cv_prog_CC"
3453 if test -z "$CC"; then
3454 if test -n "$ac_tool_prefix"; then
3455 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3456 set dummy ${ac_tool_prefix}cc; ac_word=$2
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3458 $as_echo_n "checking for $ac_word... " >&6; }
3459 if test "${ac_cv_prog_CC+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3461 else
3462 if test -n "$CC"; then
3463 ac_cv_prog_CC="$CC" # Let the user override the test.
3464 else
3465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3466 for as_dir in $PATH
3468 IFS=$as_save_IFS
3469 test -z "$as_dir" && as_dir=.
3470 for ac_exec_ext in '' $ac_executable_extensions; do
3471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3472 ac_cv_prog_CC="${ac_tool_prefix}cc"
3473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 break 2
3476 done
3477 done
3478 IFS=$as_save_IFS
3482 CC=$ac_cv_prog_CC
3483 if test -n "$CC"; then
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3485 $as_echo "$CC" >&6; }
3486 else
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488 $as_echo "no" >&6; }
3494 if test -z "$CC"; then
3495 # Extract the first word of "cc", so it can be a program name with args.
3496 set dummy cc; ac_word=$2
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3498 $as_echo_n "checking for $ac_word... " >&6; }
3499 if test "${ac_cv_prog_CC+set}" = set; then :
3500 $as_echo_n "(cached) " >&6
3501 else
3502 if test -n "$CC"; then
3503 ac_cv_prog_CC="$CC" # Let the user override the test.
3504 else
3505 ac_prog_rejected=no
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3507 for as_dir in $PATH
3509 IFS=$as_save_IFS
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3514 ac_prog_rejected=yes
3515 continue
3517 ac_cv_prog_CC="cc"
3518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 break 2
3521 done
3522 done
3523 IFS=$as_save_IFS
3525 if test $ac_prog_rejected = yes; then
3526 # We found a bogon in the path, so make sure we never use it.
3527 set dummy $ac_cv_prog_CC
3528 shift
3529 if test $# != 0; then
3530 # We chose a different compiler from the bogus one.
3531 # However, it has the same basename, so the bogon will be chosen
3532 # first if we set CC to just the basename; use the full file name.
3533 shift
3534 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3539 CC=$ac_cv_prog_CC
3540 if test -n "$CC"; then
3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3542 $as_echo "$CC" >&6; }
3543 else
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3545 $as_echo "no" >&6; }
3550 if test -z "$CC"; then
3551 if test -n "$ac_tool_prefix"; then
3552 for ac_prog in cl.exe
3554 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3555 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3557 $as_echo_n "checking for $ac_word... " >&6; }
3558 if test "${ac_cv_prog_CC+set}" = set; then :
3559 $as_echo_n "(cached) " >&6
3560 else
3561 if test -n "$CC"; then
3562 ac_cv_prog_CC="$CC" # Let the user override the test.
3563 else
3564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 for as_dir in $PATH
3567 IFS=$as_save_IFS
3568 test -z "$as_dir" && as_dir=.
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3571 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3573 break 2
3575 done
3576 done
3577 IFS=$as_save_IFS
3581 CC=$ac_cv_prog_CC
3582 if test -n "$CC"; then
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3584 $as_echo "$CC" >&6; }
3585 else
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3587 $as_echo "no" >&6; }
3591 test -n "$CC" && break
3592 done
3594 if test -z "$CC"; then
3595 ac_ct_CC=$CC
3596 for ac_prog in cl.exe
3598 # Extract the first word of "$ac_prog", so it can be a program name with args.
3599 set dummy $ac_prog; ac_word=$2
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601 $as_echo_n "checking for $ac_word... " >&6; }
3602 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3603 $as_echo_n "(cached) " >&6
3604 else
3605 if test -n "$ac_ct_CC"; then
3606 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3607 else
3608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609 for as_dir in $PATH
3611 IFS=$as_save_IFS
3612 test -z "$as_dir" && as_dir=.
3613 for ac_exec_ext in '' $ac_executable_extensions; do
3614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3615 ac_cv_prog_ac_ct_CC="$ac_prog"
3616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617 break 2
3619 done
3620 done
3621 IFS=$as_save_IFS
3625 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3626 if test -n "$ac_ct_CC"; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3628 $as_echo "$ac_ct_CC" >&6; }
3629 else
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631 $as_echo "no" >&6; }
3635 test -n "$ac_ct_CC" && break
3636 done
3638 if test "x$ac_ct_CC" = x; then
3639 CC=""
3640 else
3641 case $cross_compiling:$ac_tool_warned in
3642 yes:)
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3644 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3645 ac_tool_warned=yes ;;
3646 esac
3647 CC=$ac_ct_CC
3654 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3656 as_fn_error "no acceptable C compiler found in \$PATH
3657 See \`config.log' for more details." "$LINENO" 5; }
3659 # Provide some information about the compiler.
3660 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3661 set X $ac_compile
3662 ac_compiler=$2
3663 for ac_option in --version -v -V -qversion; do
3664 { { ac_try="$ac_compiler $ac_option >&5"
3665 case "(($ac_try" in
3666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667 *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3672 ac_status=$?
3673 if test -s conftest.err; then
3674 sed '10a\
3675 ... rest of stderr output deleted ...
3676 10q' conftest.err >conftest.er1
3677 cat conftest.er1 >&5
3678 rm -f conftest.er1 conftest.err
3680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3681 test $ac_status = 0; }
3682 done
3684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3685 /* end confdefs.h. */
3688 main ()
3692 return 0;
3694 _ACEOF
3695 # FIXME: Cleanup?
3696 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3697 (eval $ac_link) 2>&5
3698 ac_status=$?
3699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3700 test $ac_status = 0; }; then :
3701 gcc_no_link=no
3702 else
3703 gcc_no_link=yes
3705 if test x$gcc_no_link = xyes; then
3706 # Setting cross_compile will disable run tests; it will
3707 # also disable AC_CHECK_FILE but that's generally
3708 # correct if we can't link.
3709 cross_compiling=yes
3710 EXEEXT=
3711 else
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3716 main ()
3720 return 0;
3722 _ACEOF
3723 ac_clean_files_save=$ac_clean_files
3724 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3725 # Try to create an executable without -o first, disregard a.out.
3726 # It will help us diagnose broken compilers, and finding out an intuition
3727 # of exeext.
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3729 $as_echo_n "checking for C compiler default output file name... " >&6; }
3730 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3732 # The possible output files:
3733 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3735 ac_rmfiles=
3736 for ac_file in $ac_files
3738 case $ac_file in
3739 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3740 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3741 esac
3742 done
3743 rm -f $ac_rmfiles
3745 if { { ac_try="$ac_link_default"
3746 case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749 esac
3750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3751 $as_echo "$ac_try_echo"; } >&5
3752 (eval "$ac_link_default") 2>&5
3753 ac_status=$?
3754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3755 test $ac_status = 0; }; then :
3756 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3757 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3758 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3759 # so that the user can short-circuit this test for compilers unknown to
3760 # Autoconf.
3761 for ac_file in $ac_files ''
3763 test -f "$ac_file" || continue
3764 case $ac_file in
3765 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3767 [ab].out )
3768 # We found the default executable, but exeext='' is most
3769 # certainly right.
3770 break;;
3771 *.* )
3772 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3773 then :; else
3774 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776 # We set ac_cv_exeext here because the later test for it is not
3777 # safe: cross compilers may not add the suffix if given an `-o'
3778 # argument, so we may need to know it at that point already.
3779 # Even if this section looks crufty: it has the advantage of
3780 # actually working.
3781 break;;
3783 break;;
3784 esac
3785 done
3786 test "$ac_cv_exeext" = no && ac_cv_exeext=
3788 else
3789 ac_file=''
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3792 $as_echo "$ac_file" >&6; }
3793 if test -z "$ac_file"; then :
3794 $as_echo "$as_me: failed program was:" >&5
3795 sed 's/^/| /' conftest.$ac_ext >&5
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799 { as_fn_set_status 77
3800 as_fn_error "C compiler cannot create executables
3801 See \`config.log' for more details." "$LINENO" 5; }; }
3803 ac_exeext=$ac_cv_exeext
3805 # Check that the compiler produces executables we can run. If not, either
3806 # the compiler is broken, or we cross compile.
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3808 $as_echo_n "checking whether the C compiler works... " >&6; }
3809 # If not cross compiling, check that we can run a simple program.
3810 if test "$cross_compiling" != yes; then
3811 if { ac_try='./$ac_file'
3812 { { case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3815 esac
3816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3817 $as_echo "$ac_try_echo"; } >&5
3818 (eval "$ac_try") 2>&5
3819 ac_status=$?
3820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }; }; then
3822 cross_compiling=no
3823 else
3824 if test "$cross_compiling" = maybe; then
3825 cross_compiling=yes
3826 else
3827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3829 as_fn_error "cannot run C compiled programs.
3830 If you meant to cross compile, use \`--host'.
3831 See \`config.log' for more details." "$LINENO" 5; }
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3836 $as_echo "yes" >&6; }
3838 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3839 ac_clean_files=$ac_clean_files_save
3840 # Check that the compiler produces executables we can run. If not, either
3841 # the compiler is broken, or we cross compile.
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3843 $as_echo_n "checking whether we are cross compiling... " >&6; }
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3845 $as_echo "$cross_compiling" >&6; }
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3848 $as_echo_n "checking for suffix of executables... " >&6; }
3849 if { { ac_try="$ac_link"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link") 2>&5
3857 ac_status=$?
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3861 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3862 # work properly (i.e., refer to `conftest.exe'), while it won't with
3863 # `rm'.
3864 for ac_file in conftest.exe conftest conftest.*; do
3865 test -f "$ac_file" || continue
3866 case $ac_file in
3867 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3868 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3869 break;;
3870 * ) break;;
3871 esac
3872 done
3873 else
3874 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3875 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3876 as_fn_error "cannot compute suffix of executables: cannot compile and link
3877 See \`config.log' for more details." "$LINENO" 5; }
3879 rm -f conftest$ac_cv_exeext
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3881 $as_echo "$ac_cv_exeext" >&6; }
3883 rm -f conftest.$ac_ext
3884 EXEEXT=$ac_cv_exeext
3885 ac_exeext=$EXEEXT
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3888 $as_echo_n "checking for suffix of object files... " >&6; }
3889 if test "${ac_cv_objext+set}" = set; then :
3890 $as_echo_n "(cached) " >&6
3891 else
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3896 main ()
3900 return 0;
3902 _ACEOF
3903 rm -f conftest.o conftest.obj
3904 if { { ac_try="$ac_compile"
3905 case "(($ac_try" in
3906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3907 *) ac_try_echo=$ac_try;;
3908 esac
3909 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3910 $as_echo "$ac_try_echo"; } >&5
3911 (eval "$ac_compile") 2>&5
3912 ac_status=$?
3913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3914 test $ac_status = 0; }; then :
3915 for ac_file in conftest.o conftest.obj conftest.*; do
3916 test -f "$ac_file" || continue;
3917 case $ac_file in
3918 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3919 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3920 break;;
3921 esac
3922 done
3923 else
3924 $as_echo "$as_me: failed program was:" >&5
3925 sed 's/^/| /' conftest.$ac_ext >&5
3927 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3928 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3929 as_fn_error "cannot compute suffix of object files: cannot compile
3930 See \`config.log' for more details." "$LINENO" 5; }
3932 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3935 $as_echo "$ac_cv_objext" >&6; }
3936 OBJEXT=$ac_cv_objext
3937 ac_objext=$OBJEXT
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3939 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3940 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3947 main ()
3949 #ifndef __GNUC__
3950 choke me
3951 #endif
3954 return 0;
3956 _ACEOF
3957 if ac_fn_c_try_compile "$LINENO"; then :
3958 ac_compiler_gnu=yes
3959 else
3960 ac_compiler_gnu=no
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3963 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3967 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3968 if test $ac_compiler_gnu = yes; then
3969 GCC=yes
3970 else
3971 GCC=
3973 ac_test_CFLAGS=${CFLAGS+set}
3974 ac_save_CFLAGS=$CFLAGS
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3976 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3977 if test "${ac_cv_prog_cc_g+set}" = set; then :
3978 $as_echo_n "(cached) " >&6
3979 else
3980 ac_save_c_werror_flag=$ac_c_werror_flag
3981 ac_c_werror_flag=yes
3982 ac_cv_prog_cc_g=no
3983 CFLAGS="-g"
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985 /* end confdefs.h. */
3988 main ()
3992 return 0;
3994 _ACEOF
3995 if ac_fn_c_try_compile "$LINENO"; then :
3996 ac_cv_prog_cc_g=yes
3997 else
3998 CFLAGS=""
3999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4000 /* end confdefs.h. */
4003 main ()
4007 return 0;
4009 _ACEOF
4010 if ac_fn_c_try_compile "$LINENO"; then :
4012 else
4013 ac_c_werror_flag=$ac_save_c_werror_flag
4014 CFLAGS="-g"
4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016 /* end confdefs.h. */
4019 main ()
4023 return 0;
4025 _ACEOF
4026 if ac_fn_c_try_compile "$LINENO"; then :
4027 ac_cv_prog_cc_g=yes
4029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 ac_c_werror_flag=$ac_save_c_werror_flag
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4037 $as_echo "$ac_cv_prog_cc_g" >&6; }
4038 if test "$ac_test_CFLAGS" = set; then
4039 CFLAGS=$ac_save_CFLAGS
4040 elif test $ac_cv_prog_cc_g = yes; then
4041 if test "$GCC" = yes; then
4042 CFLAGS="-g -O2"
4043 else
4044 CFLAGS="-g"
4046 else
4047 if test "$GCC" = yes; then
4048 CFLAGS="-O2"
4049 else
4050 CFLAGS=
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4054 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4055 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4056 $as_echo_n "(cached) " >&6
4057 else
4058 ac_cv_prog_cc_c89=no
4059 ac_save_CC=$CC
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* end confdefs.h. */
4062 #include <stdarg.h>
4063 #include <stdio.h>
4064 #include <sys/types.h>
4065 #include <sys/stat.h>
4066 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4067 struct buf { int x; };
4068 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4069 static char *e (p, i)
4070 char **p;
4071 int i;
4073 return p[i];
4075 static char *f (char * (*g) (char **, int), char **p, ...)
4077 char *s;
4078 va_list v;
4079 va_start (v,p);
4080 s = g (p, va_arg (v,int));
4081 va_end (v);
4082 return s;
4085 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4086 function prototypes and stuff, but not '\xHH' hex character constants.
4087 These don't provoke an error unfortunately, instead are silently treated
4088 as 'x'. The following induces an error, until -std is added to get
4089 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4090 array size at least. It's necessary to write '\x00'==0 to get something
4091 that's true only with -std. */
4092 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4094 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4095 inside strings and character constants. */
4096 #define FOO(x) 'x'
4097 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4099 int test (int i, double x);
4100 struct s1 {int (*f) (int a);};
4101 struct s2 {int (*f) (double a);};
4102 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4103 int argc;
4104 char **argv;
4106 main ()
4108 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4110 return 0;
4112 _ACEOF
4113 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4114 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4116 CC="$ac_save_CC $ac_arg"
4117 if ac_fn_c_try_compile "$LINENO"; then :
4118 ac_cv_prog_cc_c89=$ac_arg
4120 rm -f core conftest.err conftest.$ac_objext
4121 test "x$ac_cv_prog_cc_c89" != "xno" && break
4122 done
4123 rm -f conftest.$ac_ext
4124 CC=$ac_save_CC
4127 # AC_CACHE_VAL
4128 case "x$ac_cv_prog_cc_c89" in
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4131 $as_echo "none needed" >&6; } ;;
4132 xno)
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4134 $as_echo "unsupported" >&6; } ;;
4136 CC="$CC $ac_cv_prog_cc_c89"
4137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4138 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4139 esac
4140 if test "x$ac_cv_prog_cc_c89" != xno; then :
4144 ac_ext=c
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150 ac_ext=cpp
4151 ac_cpp='$CXXCPP $CPPFLAGS'
4152 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4153 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4154 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4155 if test -z "$CXX"; then
4156 if test -n "$CCC"; then
4157 CXX=$CCC
4158 else
4159 if test -n "$ac_tool_prefix"; then
4160 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4162 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4163 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4165 $as_echo_n "checking for $ac_word... " >&6; }
4166 if test "${ac_cv_prog_CXX+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 if test -n "$CXX"; then
4170 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4171 else
4172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4173 for as_dir in $PATH
4175 IFS=$as_save_IFS
4176 test -z "$as_dir" && as_dir=.
4177 for ac_exec_ext in '' $ac_executable_extensions; do
4178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4179 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4181 break 2
4183 done
4184 done
4185 IFS=$as_save_IFS
4189 CXX=$ac_cv_prog_CXX
4190 if test -n "$CXX"; then
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4192 $as_echo "$CXX" >&6; }
4193 else
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4195 $as_echo "no" >&6; }
4199 test -n "$CXX" && break
4200 done
4202 if test -z "$CXX"; then
4203 ac_ct_CXX=$CXX
4204 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4206 # Extract the first word of "$ac_prog", so it can be a program name with args.
4207 set dummy $ac_prog; ac_word=$2
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4209 $as_echo_n "checking for $ac_word... " >&6; }
4210 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4211 $as_echo_n "(cached) " >&6
4212 else
4213 if test -n "$ac_ct_CXX"; then
4214 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4215 else
4216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4217 for as_dir in $PATH
4219 IFS=$as_save_IFS
4220 test -z "$as_dir" && as_dir=.
4221 for ac_exec_ext in '' $ac_executable_extensions; do
4222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4223 ac_cv_prog_ac_ct_CXX="$ac_prog"
4224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4225 break 2
4227 done
4228 done
4229 IFS=$as_save_IFS
4233 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4234 if test -n "$ac_ct_CXX"; then
4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4236 $as_echo "$ac_ct_CXX" >&6; }
4237 else
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4239 $as_echo "no" >&6; }
4243 test -n "$ac_ct_CXX" && break
4244 done
4246 if test "x$ac_ct_CXX" = x; then
4247 CXX="g++"
4248 else
4249 case $cross_compiling:$ac_tool_warned in
4250 yes:)
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4253 ac_tool_warned=yes ;;
4254 esac
4255 CXX=$ac_ct_CXX
4261 # Provide some information about the compiler.
4262 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4263 set X $ac_compile
4264 ac_compiler=$2
4265 for ac_option in --version -v -V -qversion; do
4266 { { ac_try="$ac_compiler $ac_option >&5"
4267 case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270 esac
4271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4272 $as_echo "$ac_try_echo"; } >&5
4273 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4274 ac_status=$?
4275 if test -s conftest.err; then
4276 sed '10a\
4277 ... rest of stderr output deleted ...
4278 10q' conftest.err >conftest.er1
4279 cat conftest.er1 >&5
4280 rm -f conftest.er1 conftest.err
4282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4283 test $ac_status = 0; }
4284 done
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4287 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4288 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4289 $as_echo_n "(cached) " >&6
4290 else
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4295 main ()
4297 #ifndef __GNUC__
4298 choke me
4299 #endif
4302 return 0;
4304 _ACEOF
4305 if ac_fn_cxx_try_compile "$LINENO"; then :
4306 ac_compiler_gnu=yes
4307 else
4308 ac_compiler_gnu=no
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4315 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4316 if test $ac_compiler_gnu = yes; then
4317 GXX=yes
4318 else
4319 GXX=
4321 ac_test_CXXFLAGS=${CXXFLAGS+set}
4322 ac_save_CXXFLAGS=$CXXFLAGS
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4324 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4325 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4329 ac_cxx_werror_flag=yes
4330 ac_cv_prog_cxx_g=no
4331 CXXFLAGS="-g"
4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4333 /* end confdefs.h. */
4336 main ()
4340 return 0;
4342 _ACEOF
4343 if ac_fn_cxx_try_compile "$LINENO"; then :
4344 ac_cv_prog_cxx_g=yes
4345 else
4346 CXXFLAGS=""
4347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4348 /* end confdefs.h. */
4351 main ()
4355 return 0;
4357 _ACEOF
4358 if ac_fn_cxx_try_compile "$LINENO"; then :
4360 else
4361 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4362 CXXFLAGS="-g"
4363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4364 /* end confdefs.h. */
4367 main ()
4371 return 0;
4373 _ACEOF
4374 if ac_fn_cxx_try_compile "$LINENO"; then :
4375 ac_cv_prog_cxx_g=yes
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4382 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4385 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4386 if test "$ac_test_CXXFLAGS" = set; then
4387 CXXFLAGS=$ac_save_CXXFLAGS
4388 elif test $ac_cv_prog_cxx_g = yes; then
4389 if test "$GXX" = yes; then
4390 CXXFLAGS="-g -O2"
4391 else
4392 CXXFLAGS="-g"
4394 else
4395 if test "$GXX" = yes; then
4396 CXXFLAGS="-O2"
4397 else
4398 CXXFLAGS=
4401 ac_ext=c
4402 ac_cpp='$CPP $CPPFLAGS'
4403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407 CXXFLAGS="$save_CXXFLAGS"
4409 am__api_version='1.11'
4411 # Find a good install program. We prefer a C program (faster),
4412 # so one script is as good as another. But avoid the broken or
4413 # incompatible versions:
4414 # SysV /etc/install, /usr/sbin/install
4415 # SunOS /usr/etc/install
4416 # IRIX /sbin/install
4417 # AIX /bin/install
4418 # AmigaOS /C/install, which installs bootblocks on floppy discs
4419 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4420 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4421 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4422 # OS/2's system install, which has a completely different semantic
4423 # ./install, which can be erroneously created by make from ./install.sh.
4424 # Reject install programs that cannot install multiple files.
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4426 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4427 if test -z "$INSTALL"; then
4428 if test "${ac_cv_path_install+set}" = set; then :
4429 $as_echo_n "(cached) " >&6
4430 else
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432 for as_dir in $PATH
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
4436 # Account for people who put trailing slashes in PATH elements.
4437 case $as_dir/ in #((
4438 ./ | .// | /[cC]/* | \
4439 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4440 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4441 /usr/ucb/* ) ;;
4443 # OSF1 and SCO ODT 3.0 have their own names for install.
4444 # Don't use installbsd from OSF since it installs stuff as root
4445 # by default.
4446 for ac_prog in ginstall scoinst install; do
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4449 if test $ac_prog = install &&
4450 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4451 # AIX install. It has an incompatible calling convention.
4453 elif test $ac_prog = install &&
4454 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4455 # program-specific install script used by HP pwplus--don't use.
4457 else
4458 rm -rf conftest.one conftest.two conftest.dir
4459 echo one > conftest.one
4460 echo two > conftest.two
4461 mkdir conftest.dir
4462 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4463 test -s conftest.one && test -s conftest.two &&
4464 test -s conftest.dir/conftest.one &&
4465 test -s conftest.dir/conftest.two
4466 then
4467 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4468 break 3
4472 done
4473 done
4475 esac
4477 done
4478 IFS=$as_save_IFS
4480 rm -rf conftest.one conftest.two conftest.dir
4483 if test "${ac_cv_path_install+set}" = set; then
4484 INSTALL=$ac_cv_path_install
4485 else
4486 # As a last resort, use the slow shell script. Don't cache a
4487 # value for INSTALL within a source directory, because that will
4488 # break other packages using the cache if that directory is
4489 # removed, or if the value is a relative name.
4490 INSTALL=$ac_install_sh
4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4494 $as_echo "$INSTALL" >&6; }
4496 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4497 # It thinks the first close brace ends the variable substitution.
4498 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4500 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4502 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4505 $as_echo_n "checking whether build environment is sane... " >&6; }
4506 # Just in case
4507 sleep 1
4508 echo timestamp > conftest.file
4509 # Reject unsafe characters in $srcdir or the absolute working directory
4510 # name. Accept space and tab only in the latter.
4511 am_lf='
4513 case `pwd` in
4514 *[\\\"\#\$\&\'\`$am_lf]*)
4515 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4516 esac
4517 case $srcdir in
4518 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4519 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4520 esac
4522 # Do `set' in a subshell so we don't clobber the current shell's
4523 # arguments. Must try -L first in case configure is actually a
4524 # symlink; some systems play weird games with the mod time of symlinks
4525 # (eg FreeBSD returns the mod time of the symlink's containing
4526 # directory).
4527 if (
4528 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4529 if test "$*" = "X"; then
4530 # -L didn't work.
4531 set X `ls -t "$srcdir/configure" conftest.file`
4533 rm -f conftest.file
4534 if test "$*" != "X $srcdir/configure conftest.file" \
4535 && test "$*" != "X conftest.file $srcdir/configure"; then
4537 # If neither matched, then we have a broken ls. This can happen
4538 # if, for instance, CONFIG_SHELL is bash and it inherits a
4539 # broken ls alias from the environment. This has actually
4540 # happened. Such a system could not be considered "sane".
4541 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4542 alias in your environment" "$LINENO" 5
4545 test "$2" = conftest.file
4547 then
4548 # Ok.
4550 else
4551 as_fn_error "newly created file is older than distributed files!
4552 Check your system clock" "$LINENO" 5
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4555 $as_echo "yes" >&6; }
4556 test "$program_prefix" != NONE &&
4557 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4558 # Use a double $ so make ignores it.
4559 test "$program_suffix" != NONE &&
4560 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4561 # Double any \ or $.
4562 # By default was `s,x,x', remove it if useless.
4563 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4564 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4566 # expand $ac_aux_dir to an absolute path
4567 am_aux_dir=`cd $ac_aux_dir && pwd`
4569 if test x"${MISSING+set}" != xset; then
4570 case $am_aux_dir in
4571 *\ * | *\ *)
4572 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4574 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4575 esac
4577 # Use eval to expand $SHELL
4578 if eval "$MISSING --run true"; then
4579 am_missing_run="$MISSING --run "
4580 else
4581 am_missing_run=
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4583 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4586 if test x"${install_sh}" != xset; then
4587 case $am_aux_dir in
4588 *\ * | *\ *)
4589 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4591 install_sh="\${SHELL} $am_aux_dir/install-sh"
4592 esac
4595 # Installed binaries are usually stripped using `strip' when the user
4596 # run `make install-strip'. However `strip' might not be the right
4597 # tool to use in cross-compilation environments, therefore Automake
4598 # will honor the `STRIP' environment variable to overrule this program.
4599 if test "$cross_compiling" != no; then
4600 if test -n "$ac_tool_prefix"; then
4601 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4602 set dummy ${ac_tool_prefix}strip; ac_word=$2
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4604 $as_echo_n "checking for $ac_word... " >&6; }
4605 if test "${ac_cv_prog_STRIP+set}" = set; then :
4606 $as_echo_n "(cached) " >&6
4607 else
4608 if test -n "$STRIP"; then
4609 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4614 IFS=$as_save_IFS
4615 test -z "$as_dir" && as_dir=.
4616 for ac_exec_ext in '' $ac_executable_extensions; do
4617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4618 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4620 break 2
4622 done
4623 done
4624 IFS=$as_save_IFS
4628 STRIP=$ac_cv_prog_STRIP
4629 if test -n "$STRIP"; then
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4631 $as_echo "$STRIP" >&6; }
4632 else
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4634 $as_echo "no" >&6; }
4639 if test -z "$ac_cv_prog_STRIP"; then
4640 ac_ct_STRIP=$STRIP
4641 # Extract the first word of "strip", so it can be a program name with args.
4642 set dummy strip; ac_word=$2
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4644 $as_echo_n "checking for $ac_word... " >&6; }
4645 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4646 $as_echo_n "(cached) " >&6
4647 else
4648 if test -n "$ac_ct_STRIP"; then
4649 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4654 IFS=$as_save_IFS
4655 test -z "$as_dir" && as_dir=.
4656 for ac_exec_ext in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658 ac_cv_prog_ac_ct_STRIP="strip"
4659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 break 2
4662 done
4663 done
4664 IFS=$as_save_IFS
4668 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4669 if test -n "$ac_ct_STRIP"; then
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4671 $as_echo "$ac_ct_STRIP" >&6; }
4672 else
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4674 $as_echo "no" >&6; }
4677 if test "x$ac_ct_STRIP" = x; then
4678 STRIP=":"
4679 else
4680 case $cross_compiling:$ac_tool_warned in
4681 yes:)
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4684 ac_tool_warned=yes ;;
4685 esac
4686 STRIP=$ac_ct_STRIP
4688 else
4689 STRIP="$ac_cv_prog_STRIP"
4693 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4696 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4697 if test -z "$MKDIR_P"; then
4698 if test "${ac_cv_path_mkdir+set}" = set; then :
4699 $as_echo_n "(cached) " >&6
4700 else
4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4702 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4704 IFS=$as_save_IFS
4705 test -z "$as_dir" && as_dir=.
4706 for ac_prog in mkdir gmkdir; do
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4709 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4710 'mkdir (GNU coreutils) '* | \
4711 'mkdir (coreutils) '* | \
4712 'mkdir (fileutils) '4.1*)
4713 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4714 break 3;;
4715 esac
4716 done
4717 done
4718 done
4719 IFS=$as_save_IFS
4723 if test "${ac_cv_path_mkdir+set}" = set; then
4724 MKDIR_P="$ac_cv_path_mkdir -p"
4725 else
4726 # As a last resort, use the slow shell script. Don't cache a
4727 # value for MKDIR_P within a source directory, because that will
4728 # break other packages using the cache if that directory is
4729 # removed, or if the value is a relative name.
4730 test -d ./--version && rmdir ./--version
4731 MKDIR_P="$ac_install_sh -d"
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4735 $as_echo "$MKDIR_P" >&6; }
4737 mkdir_p="$MKDIR_P"
4738 case $mkdir_p in
4739 [\\/$]* | ?:[\\/]*) ;;
4740 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4741 esac
4743 for ac_prog in gawk mawk nawk awk
4745 # Extract the first word of "$ac_prog", so it can be a program name with args.
4746 set dummy $ac_prog; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if test "${ac_cv_prog_AWK+set}" = set; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 if test -n "$AWK"; then
4753 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4762 ac_cv_prog_AWK="$ac_prog"
4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4766 done
4767 done
4768 IFS=$as_save_IFS
4772 AWK=$ac_cv_prog_AWK
4773 if test -n "$AWK"; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4775 $as_echo "$AWK" >&6; }
4776 else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4782 test -n "$AWK" && break
4783 done
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4786 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4787 set x ${MAKE-make}
4788 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4789 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4790 $as_echo_n "(cached) " >&6
4791 else
4792 cat >conftest.make <<\_ACEOF
4793 SHELL = /bin/sh
4794 all:
4795 @echo '@@@%%%=$(MAKE)=@@@%%%'
4796 _ACEOF
4797 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4798 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4799 *@@@%%%=?*=@@@%%%*)
4800 eval ac_cv_prog_make_${ac_make}_set=yes;;
4802 eval ac_cv_prog_make_${ac_make}_set=no;;
4803 esac
4804 rm -f conftest.make
4806 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4808 $as_echo "yes" >&6; }
4809 SET_MAKE=
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4813 SET_MAKE="MAKE=${MAKE-make}"
4816 rm -rf .tst 2>/dev/null
4817 mkdir .tst 2>/dev/null
4818 if test -d .tst; then
4819 am__leading_dot=.
4820 else
4821 am__leading_dot=_
4823 rmdir .tst 2>/dev/null
4825 DEPDIR="${am__leading_dot}deps"
4827 ac_config_commands="$ac_config_commands depfiles"
4830 am_make=${MAKE-make}
4831 cat > confinc << 'END'
4832 am__doit:
4833 @echo this is the am__doit target
4834 .PHONY: am__doit
4836 # If we don't find an include directive, just comment out the code.
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4838 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4839 am__include="#"
4840 am__quote=
4841 _am_result=none
4842 # First try GNU make style include.
4843 echo "include confinc" > confmf
4844 # Ignore all kinds of additional output from `make'.
4845 case `$am_make -s -f confmf 2> /dev/null` in #(
4846 *the\ am__doit\ target*)
4847 am__include=include
4848 am__quote=
4849 _am_result=GNU
4851 esac
4852 # Now try BSD make style include.
4853 if test "$am__include" = "#"; then
4854 echo '.include "confinc"' > confmf
4855 case `$am_make -s -f confmf 2> /dev/null` in #(
4856 *the\ am__doit\ target*)
4857 am__include=.include
4858 am__quote="\""
4859 _am_result=BSD
4861 esac
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4866 $as_echo "$_am_result" >&6; }
4867 rm -f confinc confmf
4869 # Check whether --enable-dependency-tracking was given.
4870 if test "${enable_dependency_tracking+set}" = set; then :
4871 enableval=$enable_dependency_tracking;
4874 if test "x$enable_dependency_tracking" != xno; then
4875 am_depcomp="$ac_aux_dir/depcomp"
4876 AMDEPBACKSLASH='\'
4878 if test "x$enable_dependency_tracking" != xno; then
4879 AMDEP_TRUE=
4880 AMDEP_FALSE='#'
4881 else
4882 AMDEP_TRUE='#'
4883 AMDEP_FALSE=
4887 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4888 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4889 # is not polluted with repeated "-I."
4890 am__isrc=' -I$(srcdir)'
4891 # test to see if srcdir already configured
4892 if test -f $srcdir/config.status; then
4893 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4897 # test whether we have cygpath
4898 if test -z "$CYGPATH_W"; then
4899 if (cygpath --version) >/dev/null 2>/dev/null; then
4900 CYGPATH_W='cygpath -w'
4901 else
4902 CYGPATH_W=echo
4907 # Define the identity of the package.
4908 PACKAGE='libjava'
4909 VERSION='version-unused'
4912 cat >>confdefs.h <<_ACEOF
4913 #define PACKAGE "$PACKAGE"
4914 _ACEOF
4917 cat >>confdefs.h <<_ACEOF
4918 #define VERSION "$VERSION"
4919 _ACEOF
4921 # Some tools Automake needs.
4923 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4926 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4929 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4932 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4935 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4937 # We need awk for the "check" target. The system "awk" is bad on
4938 # some platforms.
4939 # Always define AMTAR for backward compatibility.
4941 AMTAR=${AMTAR-"${am_missing_run}tar"}
4943 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4948 depcc="$CC" am_compiler_list=
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4951 $as_echo_n "checking dependency style of $depcc... " >&6; }
4952 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4953 $as_echo_n "(cached) " >&6
4954 else
4955 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4956 # We make a subdir and do the tests there. Otherwise we can end up
4957 # making bogus files that we don't know about and never remove. For
4958 # instance it was reported that on HP-UX the gcc test will end up
4959 # making a dummy file named `D' -- because `-MD' means `put the output
4960 # in D'.
4961 mkdir conftest.dir
4962 # Copy depcomp to subdir because otherwise we won't find it if we're
4963 # using a relative directory.
4964 cp "$am_depcomp" conftest.dir
4965 cd conftest.dir
4966 # We will build objects and dependencies in a subdirectory because
4967 # it helps to detect inapplicable dependency modes. For instance
4968 # both Tru64's cc and ICC support -MD to output dependencies as a
4969 # side effect of compilation, but ICC will put the dependencies in
4970 # the current directory while Tru64 will put them in the object
4971 # directory.
4972 mkdir sub
4974 am_cv_CC_dependencies_compiler_type=none
4975 if test "$am_compiler_list" = ""; then
4976 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4978 am__universal=false
4979 case " $depcc " in #(
4980 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4981 esac
4983 for depmode in $am_compiler_list; do
4984 # Setup a source with many dependencies, because some compilers
4985 # like to wrap large dependency lists on column 80 (with \), and
4986 # we should not choose a depcomp mode which is confused by this.
4988 # We need to recreate these files for each test, as the compiler may
4989 # overwrite some of them when testing with obscure command lines.
4990 # This happens at least with the AIX C compiler.
4991 : > sub/conftest.c
4992 for i in 1 2 3 4 5 6; do
4993 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4994 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4995 # Solaris 8's {/usr,}/bin/sh.
4996 touch sub/conftst$i.h
4997 done
4998 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5000 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5001 # mode. It turns out that the SunPro C++ compiler does not properly
5002 # handle `-M -o', and we need to detect this. Also, some Intel
5003 # versions had trouble with output in subdirs
5004 am__obj=sub/conftest.${OBJEXT-o}
5005 am__minus_obj="-o $am__obj"
5006 case $depmode in
5007 gcc)
5008 # This depmode causes a compiler race in universal mode.
5009 test "$am__universal" = false || continue
5011 nosideeffect)
5012 # after this tag, mechanisms are not by side-effect, so they'll
5013 # only be used when explicitly requested
5014 if test "x$enable_dependency_tracking" = xyes; then
5015 continue
5016 else
5017 break
5020 msvisualcpp | msvcmsys)
5021 # This compiler won't grok `-c -o', but also, the minuso test has
5022 # not run yet. These depmodes are late enough in the game, and
5023 # so weak that their functioning should not be impacted.
5024 am__obj=conftest.${OBJEXT-o}
5025 am__minus_obj=
5027 none) break ;;
5028 esac
5029 if depmode=$depmode \
5030 source=sub/conftest.c object=$am__obj \
5031 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5032 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5033 >/dev/null 2>conftest.err &&
5034 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5035 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5036 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5037 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5038 # icc doesn't choke on unknown options, it will just issue warnings
5039 # or remarks (even with -Werror). So we grep stderr for any message
5040 # that says an option was ignored or not supported.
5041 # When given -MP, icc 7.0 and 7.1 complain thusly:
5042 # icc: Command line warning: ignoring option '-M'; no argument required
5043 # The diagnosis changed in icc 8.0:
5044 # icc: Command line remark: option '-MP' not supported
5045 if (grep 'ignoring option' conftest.err ||
5046 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5047 am_cv_CC_dependencies_compiler_type=$depmode
5048 break
5051 done
5053 cd ..
5054 rm -rf conftest.dir
5055 else
5056 am_cv_CC_dependencies_compiler_type=none
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5061 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5062 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5065 test "x$enable_dependency_tracking" != xno \
5066 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5067 am__fastdepCC_TRUE=
5068 am__fastdepCC_FALSE='#'
5069 else
5070 am__fastdepCC_TRUE='#'
5071 am__fastdepCC_FALSE=
5075 depcc="$CXX" am_compiler_list=
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5078 $as_echo_n "checking dependency style of $depcc... " >&6; }
5079 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5080 $as_echo_n "(cached) " >&6
5081 else
5082 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5083 # We make a subdir and do the tests there. Otherwise we can end up
5084 # making bogus files that we don't know about and never remove. For
5085 # instance it was reported that on HP-UX the gcc test will end up
5086 # making a dummy file named `D' -- because `-MD' means `put the output
5087 # in D'.
5088 mkdir conftest.dir
5089 # Copy depcomp to subdir because otherwise we won't find it if we're
5090 # using a relative directory.
5091 cp "$am_depcomp" conftest.dir
5092 cd conftest.dir
5093 # We will build objects and dependencies in a subdirectory because
5094 # it helps to detect inapplicable dependency modes. For instance
5095 # both Tru64's cc and ICC support -MD to output dependencies as a
5096 # side effect of compilation, but ICC will put the dependencies in
5097 # the current directory while Tru64 will put them in the object
5098 # directory.
5099 mkdir sub
5101 am_cv_CXX_dependencies_compiler_type=none
5102 if test "$am_compiler_list" = ""; then
5103 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5105 am__universal=false
5106 case " $depcc " in #(
5107 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5108 esac
5110 for depmode in $am_compiler_list; do
5111 # Setup a source with many dependencies, because some compilers
5112 # like to wrap large dependency lists on column 80 (with \), and
5113 # we should not choose a depcomp mode which is confused by this.
5115 # We need to recreate these files for each test, as the compiler may
5116 # overwrite some of them when testing with obscure command lines.
5117 # This happens at least with the AIX C compiler.
5118 : > sub/conftest.c
5119 for i in 1 2 3 4 5 6; do
5120 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5121 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5122 # Solaris 8's {/usr,}/bin/sh.
5123 touch sub/conftst$i.h
5124 done
5125 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5127 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5128 # mode. It turns out that the SunPro C++ compiler does not properly
5129 # handle `-M -o', and we need to detect this. Also, some Intel
5130 # versions had trouble with output in subdirs
5131 am__obj=sub/conftest.${OBJEXT-o}
5132 am__minus_obj="-o $am__obj"
5133 case $depmode in
5134 gcc)
5135 # This depmode causes a compiler race in universal mode.
5136 test "$am__universal" = false || continue
5138 nosideeffect)
5139 # after this tag, mechanisms are not by side-effect, so they'll
5140 # only be used when explicitly requested
5141 if test "x$enable_dependency_tracking" = xyes; then
5142 continue
5143 else
5144 break
5147 msvisualcpp | msvcmsys)
5148 # This compiler won't grok `-c -o', but also, the minuso test has
5149 # not run yet. These depmodes are late enough in the game, and
5150 # so weak that their functioning should not be impacted.
5151 am__obj=conftest.${OBJEXT-o}
5152 am__minus_obj=
5154 none) break ;;
5155 esac
5156 if depmode=$depmode \
5157 source=sub/conftest.c object=$am__obj \
5158 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5159 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5160 >/dev/null 2>conftest.err &&
5161 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5162 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5163 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5164 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5165 # icc doesn't choke on unknown options, it will just issue warnings
5166 # or remarks (even with -Werror). So we grep stderr for any message
5167 # that says an option was ignored or not supported.
5168 # When given -MP, icc 7.0 and 7.1 complain thusly:
5169 # icc: Command line warning: ignoring option '-M'; no argument required
5170 # The diagnosis changed in icc 8.0:
5171 # icc: Command line remark: option '-MP' not supported
5172 if (grep 'ignoring option' conftest.err ||
5173 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5174 am_cv_CXX_dependencies_compiler_type=$depmode
5175 break
5178 done
5180 cd ..
5181 rm -rf conftest.dir
5182 else
5183 am_cv_CXX_dependencies_compiler_type=none
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5188 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5189 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5192 test "x$enable_dependency_tracking" != xno \
5193 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5194 am__fastdepCXX_TRUE=
5195 am__fastdepCXX_FALSE='#'
5196 else
5197 am__fastdepCXX_TRUE='#'
5198 am__fastdepCXX_FALSE=
5204 if test -n "$ac_tool_prefix"; then
5205 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5206 set dummy ${ac_tool_prefix}as; ac_word=$2
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208 $as_echo_n "checking for $ac_word... " >&6; }
5209 if test "${ac_cv_prog_AS+set}" = set; then :
5210 $as_echo_n "(cached) " >&6
5211 else
5212 if test -n "$AS"; then
5213 ac_cv_prog_AS="$AS" # Let the user override the test.
5214 else
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_prog_AS="${ac_tool_prefix}as"
5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5226 done
5227 done
5228 IFS=$as_save_IFS
5232 AS=$ac_cv_prog_AS
5233 if test -n "$AS"; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5235 $as_echo "$AS" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5238 $as_echo "no" >&6; }
5243 if test -z "$ac_cv_prog_AS"; then
5244 ac_ct_AS=$AS
5245 # Extract the first word of "as", so it can be a program name with args.
5246 set dummy as; ac_word=$2
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5248 $as_echo_n "checking for $ac_word... " >&6; }
5249 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5250 $as_echo_n "(cached) " >&6
5251 else
5252 if test -n "$ac_ct_AS"; then
5253 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5254 else
5255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5256 for as_dir in $PATH
5258 IFS=$as_save_IFS
5259 test -z "$as_dir" && as_dir=.
5260 for ac_exec_ext in '' $ac_executable_extensions; do
5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5262 ac_cv_prog_ac_ct_AS="as"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5272 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5273 if test -n "$ac_ct_AS"; then
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5275 $as_echo "$ac_ct_AS" >&6; }
5276 else
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5278 $as_echo "no" >&6; }
5281 if test "x$ac_ct_AS" = x; then
5282 AS=""
5283 else
5284 case $cross_compiling:$ac_tool_warned in
5285 yes:)
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5288 ac_tool_warned=yes ;;
5289 esac
5290 AS=$ac_ct_AS
5292 else
5293 AS="$ac_cv_prog_AS"
5296 if test -n "$ac_tool_prefix"; then
5297 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5298 set dummy ${ac_tool_prefix}ld; ac_word=$2
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5300 $as_echo_n "checking for $ac_word... " >&6; }
5301 if test "${ac_cv_prog_LD+set}" = set; then :
5302 $as_echo_n "(cached) " >&6
5303 else
5304 if test -n "$LD"; then
5305 ac_cv_prog_LD="$LD" # Let the user override the test.
5306 else
5307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5308 for as_dir in $PATH
5310 IFS=$as_save_IFS
5311 test -z "$as_dir" && as_dir=.
5312 for ac_exec_ext in '' $ac_executable_extensions; do
5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_prog_LD="${ac_tool_prefix}ld"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316 break 2
5318 done
5319 done
5320 IFS=$as_save_IFS
5324 LD=$ac_cv_prog_LD
5325 if test -n "$LD"; then
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5327 $as_echo "$LD" >&6; }
5328 else
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5330 $as_echo "no" >&6; }
5335 if test -z "$ac_cv_prog_LD"; then
5336 ac_ct_LD=$LD
5337 # Extract the first word of "ld", so it can be a program name with args.
5338 set dummy ld; ac_word=$2
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5340 $as_echo_n "checking for $ac_word... " >&6; }
5341 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5342 $as_echo_n "(cached) " >&6
5343 else
5344 if test -n "$ac_ct_LD"; then
5345 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5346 else
5347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348 for as_dir in $PATH
5350 IFS=$as_save_IFS
5351 test -z "$as_dir" && as_dir=.
5352 for ac_exec_ext in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_prog_ac_ct_LD="ld"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5356 break 2
5358 done
5359 done
5360 IFS=$as_save_IFS
5364 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5365 if test -n "$ac_ct_LD"; then
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5367 $as_echo "$ac_ct_LD" >&6; }
5368 else
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5370 $as_echo "no" >&6; }
5373 if test "x$ac_ct_LD" = x; then
5374 LD=""
5375 else
5376 case $cross_compiling:$ac_tool_warned in
5377 yes:)
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5380 ac_tool_warned=yes ;;
5381 esac
5382 LD=$ac_ct_LD
5384 else
5385 LD="$ac_cv_prog_LD"
5388 if test -n "$ac_tool_prefix"; then
5389 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5390 set dummy ${ac_tool_prefix}ar; ac_word=$2
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5392 $as_echo_n "checking for $ac_word... " >&6; }
5393 if test "${ac_cv_prog_AR+set}" = set; then :
5394 $as_echo_n "(cached) " >&6
5395 else
5396 if test -n "$AR"; then
5397 ac_cv_prog_AR="$AR" # Let the user override the test.
5398 else
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400 for as_dir in $PATH
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
5404 for ac_exec_ext in '' $ac_executable_extensions; do
5405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5406 ac_cv_prog_AR="${ac_tool_prefix}ar"
5407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5408 break 2
5410 done
5411 done
5412 IFS=$as_save_IFS
5416 AR=$ac_cv_prog_AR
5417 if test -n "$AR"; then
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5419 $as_echo "$AR" >&6; }
5420 else
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5427 if test -z "$ac_cv_prog_AR"; then
5428 ac_ct_AR=$AR
5429 # Extract the first word of "ar", so it can be a program name with args.
5430 set dummy ar; ac_word=$2
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5432 $as_echo_n "checking for $ac_word... " >&6; }
5433 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5435 else
5436 if test -n "$ac_ct_AR"; then
5437 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5438 else
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5446 ac_cv_prog_ac_ct_AR="ar"
5447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 break 2
5450 done
5451 done
5452 IFS=$as_save_IFS
5456 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5457 if test -n "$ac_ct_AR"; then
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5459 $as_echo "$ac_ct_AR" >&6; }
5460 else
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5465 if test "x$ac_ct_AR" = x; then
5466 AR=""
5467 else
5468 case $cross_compiling:$ac_tool_warned in
5469 yes:)
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5472 ac_tool_warned=yes ;;
5473 esac
5474 AR=$ac_ct_AR
5476 else
5477 AR="$ac_cv_prog_AR"
5480 if test -n "$ac_tool_prefix"; then
5481 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5482 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5486 $as_echo_n "(cached) " >&6
5487 else
5488 if test -n "$RANLIB"; then
5489 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5490 else
5491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5494 IFS=$as_save_IFS
5495 test -z "$as_dir" && as_dir=.
5496 for ac_exec_ext in '' $ac_executable_extensions; do
5497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500 break 2
5502 done
5503 done
5504 IFS=$as_save_IFS
5508 RANLIB=$ac_cv_prog_RANLIB
5509 if test -n "$RANLIB"; then
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5511 $as_echo "$RANLIB" >&6; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5514 $as_echo "no" >&6; }
5519 if test -z "$ac_cv_prog_RANLIB"; then
5520 ac_ct_RANLIB=$RANLIB
5521 # Extract the first word of "ranlib", so it can be a program name with args.
5522 set dummy ranlib; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if test -n "$ac_ct_RANLIB"; then
5529 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5530 else
5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5532 for as_dir in $PATH
5534 IFS=$as_save_IFS
5535 test -z "$as_dir" && as_dir=.
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5538 ac_cv_prog_ac_ct_RANLIB="ranlib"
5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5540 break 2
5542 done
5543 done
5544 IFS=$as_save_IFS
5548 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5549 if test -n "$ac_ct_RANLIB"; then
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5551 $as_echo "$ac_ct_RANLIB" >&6; }
5552 else
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554 $as_echo "no" >&6; }
5557 if test "x$ac_ct_RANLIB" = x; then
5558 RANLIB=":"
5559 else
5560 case $cross_compiling:$ac_tool_warned in
5561 yes:)
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5563 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5564 ac_tool_warned=yes ;;
5565 esac
5566 RANLIB=$ac_ct_RANLIB
5568 else
5569 RANLIB="$ac_cv_prog_RANLIB"
5572 if test -n "$ac_tool_prefix"; then
5573 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5574 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5576 $as_echo_n "checking for $ac_word... " >&6; }
5577 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 if test -n "$DLLTOOL"; then
5581 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5582 else
5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5584 for as_dir in $PATH
5586 IFS=$as_save_IFS
5587 test -z "$as_dir" && as_dir=.
5588 for ac_exec_ext in '' $ac_executable_extensions; do
5589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5590 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5592 break 2
5594 done
5595 done
5596 IFS=$as_save_IFS
5600 DLLTOOL=$ac_cv_prog_DLLTOOL
5601 if test -n "$DLLTOOL"; then
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5603 $as_echo "$DLLTOOL" >&6; }
5604 else
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; }
5611 if test -z "$ac_cv_prog_DLLTOOL"; then
5612 ac_ct_DLLTOOL=$DLLTOOL
5613 # Extract the first word of "dlltool", so it can be a program name with args.
5614 set dummy dlltool; ac_word=$2
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; }
5617 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5618 $as_echo_n "(cached) " >&6
5619 else
5620 if test -n "$ac_ct_DLLTOOL"; then
5621 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5622 else
5623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5624 for as_dir in $PATH
5626 IFS=$as_save_IFS
5627 test -z "$as_dir" && as_dir=.
5628 for ac_exec_ext in '' $ac_executable_extensions; do
5629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5630 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5632 break 2
5634 done
5635 done
5636 IFS=$as_save_IFS
5640 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5641 if test -n "$ac_ct_DLLTOOL"; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5643 $as_echo "$ac_ct_DLLTOOL" >&6; }
5644 else
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5646 $as_echo "no" >&6; }
5649 if test "x$ac_ct_DLLTOOL" = x; then
5650 DLLTOOL=":"
5651 else
5652 case $cross_compiling:$ac_tool_warned in
5653 yes:)
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5656 ac_tool_warned=yes ;;
5657 esac
5658 DLLTOOL=$ac_ct_DLLTOOL
5660 else
5661 DLLTOOL="$ac_cv_prog_DLLTOOL"
5664 for ac_prog in gawk mawk nawk awk
5666 # Extract the first word of "$ac_prog", so it can be a program name with args.
5667 set dummy $ac_prog; ac_word=$2
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5669 $as_echo_n "checking for $ac_word... " >&6; }
5670 if test "${ac_cv_prog_AWK+set}" = set; then :
5671 $as_echo_n "(cached) " >&6
5672 else
5673 if test -n "$AWK"; then
5674 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5675 else
5676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5677 for as_dir in $PATH
5679 IFS=$as_save_IFS
5680 test -z "$as_dir" && as_dir=.
5681 for ac_exec_ext in '' $ac_executable_extensions; do
5682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5683 ac_cv_prog_AWK="$ac_prog"
5684 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5685 break 2
5687 done
5688 done
5689 IFS=$as_save_IFS
5693 AWK=$ac_cv_prog_AWK
5694 if test -n "$AWK"; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5696 $as_echo "$AWK" >&6; }
5697 else
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5699 $as_echo "no" >&6; }
5703 test -n "$AWK" && break
5704 done
5706 for ac_prog in jar fastjar gjar
5708 # Extract the first word of "$ac_prog", so it can be a program name with args.
5709 set dummy $ac_prog; ac_word=$2
5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5711 $as_echo_n "checking for $ac_word... " >&6; }
5712 if test "${ac_cv_prog_JAR+set}" = set; then :
5713 $as_echo_n "(cached) " >&6
5714 else
5715 if test -n "$JAR"; then
5716 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5717 else
5718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5719 for as_dir in $PATH
5721 IFS=$as_save_IFS
5722 test -z "$as_dir" && as_dir=.
5723 for ac_exec_ext in '' $ac_executable_extensions; do
5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5725 ac_cv_prog_JAR="$ac_prog"
5726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5727 break 2
5729 done
5730 done
5731 IFS=$as_save_IFS
5735 JAR=$ac_cv_prog_JAR
5736 if test -n "$JAR"; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5738 $as_echo "$JAR" >&6; }
5739 else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5745 test -n "$JAR" && break
5746 done
5747 test -n "$JAR" || JAR="no"
5749 # Extract the first word of "zip", so it can be a program name with args.
5750 set dummy zip; ac_word=$2
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5752 $as_echo_n "checking for $ac_word... " >&6; }
5753 if test "${ac_cv_path_ZIP+set}" = set; then :
5754 $as_echo_n "(cached) " >&6
5755 else
5756 case $ZIP in
5757 [\\/]* | ?:[\\/]*)
5758 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5762 for as_dir in $PATH
5764 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2
5772 done
5773 done
5774 IFS=$as_save_IFS
5776 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5778 esac
5780 ZIP=$ac_cv_path_ZIP
5781 if test -n "$ZIP"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5783 $as_echo "$ZIP" >&6; }
5784 else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5790 # Extract the first word of "unzip", so it can be a program name with args.
5791 set dummy unzip; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 $as_echo_n "checking for $ac_word... " >&6; }
5794 if test "${ac_cv_path_UNZIP+set}" = set; then :
5795 $as_echo_n "(cached) " >&6
5796 else
5797 case $UNZIP in
5798 [\\/]* | ?:[\\/]*)
5799 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5809 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5813 done
5814 done
5815 IFS=$as_save_IFS
5817 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5819 esac
5821 UNZIP=$ac_cv_path_UNZIP
5822 if test -n "$UNZIP"; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5824 $as_echo "$UNZIP" >&6; }
5825 else
5826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5827 $as_echo "no" >&6; }
5832 # We need a jar that supports -@. This is a GNU extension.
5833 if test "$JAR" != no; then
5834 rm -f config-test.jar
5835 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5836 if test -f config-test.jar; then
5837 rm -f config-test.jar
5838 else
5839 JAR=no
5843 # Prefer the jar we found, but fall back to our jar script.
5844 if test "$JAR" = no; then
5845 if test "$ZIP" = no; then
5846 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5847 else
5848 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5849 JAR=`pwd`/scripts/jar
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5857 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5858 # Check whether --enable-maintainer-mode was given.
5859 if test "${enable_maintainer_mode+set}" = set; then :
5860 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5861 else
5862 USE_MAINTAINER_MODE=no
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5866 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5867 if test $USE_MAINTAINER_MODE = yes; then
5868 MAINTAINER_MODE_TRUE=
5869 MAINTAINER_MODE_FALSE='#'
5870 else
5871 MAINTAINER_MODE_TRUE='#'
5872 MAINTAINER_MODE_FALSE=
5875 MAINT=$MAINTAINER_MODE_TRUE
5881 # configure.host sets the following important variables
5882 # libgcj_cflags - host specific C compiler flags
5883 # libgcj_cxxflags - host specific C++ compiler flags
5884 # libgcj_javaflags - host specific Java compiler flags
5885 # libgcj_sublib_ltflags - host specific Libtool flags
5886 # libgcj_sublib_core_extra_deps - host specific extra
5887 # dependencies for core sublib
5888 # (these last two only used when building sublibs)
5889 # and a number of others; see the list at the start of the file.
5891 libgcj_cflags=
5892 libgcj_cxxflags=
5893 libgcj_javaflags=
5894 libgcj_sublib_ltflags=
5895 libgcj_sublib_core_extra_deps=
5897 . ${srcdir}/configure.host
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5900 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5901 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5902 $as_echo_n "(cached) " >&6
5903 else
5904 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5905 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5906 acl_cv_prog_gnu_ld=yes
5907 else
5908 acl_cv_prog_gnu_ld=no
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5912 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5913 with_gnu_ld=$acl_cv_prog_gnu_ld
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5916 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5917 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5918 $as_echo_n "(cached) " >&6
5919 else
5921 acl_cv_prog_gnu_ld_symbolic=no
5923 if test x"$with_gnu_ld" = x"yes"; then
5924 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5925 acl_cv_prog_gnu_ld_symbolic=yes
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5930 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5931 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5932 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5933 else
5934 SYMBOLIC_LDFLAGS=''
5937 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5938 if test -z "$libgcj_ld_symbolic"; then
5939 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5942 LIBGCJ_CFLAGS="${libgcj_cflags}"
5943 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5944 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5945 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5946 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5947 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5948 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5957 # Only use libltdl for non-newlib builds.
5958 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5960 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5961 library_names_spec=
5962 libname_spec='lib$name'
5963 soname_spec=
5964 shrext=".so"
5965 postinstall_cmds=
5966 postuninstall_cmds=
5967 finish_cmds=
5968 finish_eval=
5969 shlibpath_var=
5970 shlibpath_overrides_runpath=unknown
5971 version_type=none
5972 dynamic_linker="$host_os ld.so"
5973 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5974 if test "$GCC" = yes; then
5975 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5976 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5977 # if the path contains ";" then we assume it to be the separator
5978 # otherwise default to the standard path separator (i.e. ":") - it is
5979 # assumed that no part of a normal pathname contains ";" but that should
5980 # okay in the real world where ";" in dirpaths is itself problematic.
5981 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5982 else
5983 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5985 else
5986 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5988 need_lib_prefix=unknown
5989 hardcode_into_libs=no
5991 # when you set need_version to no, make sure it does not cause -set_version
5992 # flags to be left without arguments
5993 need_version=unknown
5995 case $host_os in
5996 aix3*)
5997 version_type=linux
5998 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
5999 shlibpath_var=LIBPATH
6001 # AIX 3 has no versioning support, so we append a major version to the name.
6002 soname_spec='${libname}${release}${shared_ext}$major'
6005 aix[4-9]*)
6006 version_type=linux
6007 need_lib_prefix=no
6008 need_version=no
6009 hardcode_into_libs=yes
6010 if test "$host_cpu" = ia64; then
6011 # AIX 5 supports IA64
6012 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6013 shlibpath_var=LD_LIBRARY_PATH
6014 else
6015 # With GCC up to 2.95.x, collect2 would create an import file
6016 # for dependence libraries. The import file would start with
6017 # the line `#! .'. This would cause the generated library to
6018 # depend on `.', always an invalid library. This was fixed in
6019 # development snapshots of GCC prior to 3.0.
6020 case $host_os in
6021 aix4 | aix4.[01] | aix4.[01].*)
6022 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6023 echo ' yes '
6024 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6026 else
6027 can_build_shared=no
6030 esac
6031 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6032 # soname into executable. Probably we can add versioning support to
6033 # collect2, so additional links can be useful in future.
6034 if test "$aix_use_runtimelinking" = yes; then
6035 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6036 # instead of lib<name>.a to let people know that these are not
6037 # typical AIX shared libraries.
6038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6039 else
6040 # We preserve .a as extension for shared libraries through AIX4.2
6041 # and later when we are not doing run time linking.
6042 library_names_spec='${libname}${release}.a $libname.a'
6043 soname_spec='${libname}${release}${shared_ext}$major'
6045 shlibpath_var=LIBPATH
6049 amigaos*)
6050 library_names_spec='$libname.ixlibrary $libname.a'
6051 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6052 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'
6055 beos*)
6056 library_names_spec='${libname}${shared_ext}'
6057 dynamic_linker="$host_os ld.so"
6058 shlibpath_var=LIBRARY_PATH
6061 bsdi4*)
6062 version_type=linux
6063 need_version=no
6064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6065 soname_spec='${libname}${release}${shared_ext}$major'
6066 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6067 shlibpath_var=LD_LIBRARY_PATH
6068 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6069 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6070 # the default ld.so.conf also contains /usr/contrib/lib and
6071 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6072 # libtool to hard-code these into programs
6075 cygwin* | mingw* | pw32*)
6076 version_type=windows
6077 shrext=".dll"
6078 need_version=no
6079 need_lib_prefix=no
6081 case $GCC,$host_os in
6082 yes,cygwin* | yes,mingw* | yes,pw32*)
6083 library_names_spec='$libname.dll.a'
6084 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6085 postinstall_cmds='base_file=`basename \${file}`~
6086 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6087 dldir=$destdir/`dirname \$dlpath`~
6088 test -d \$dldir || mkdir -p \$dldir~
6089 $install_prog $dir/$dlname \$dldir/$dlname'
6090 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6091 dlpath=$dir/\$dldll~
6092 $rm \$dlpath'
6093 shlibpath_overrides_runpath=yes
6095 case $host_os in
6096 cygwin*)
6097 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6098 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6099 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6101 mingw*)
6102 # MinGW DLLs use traditional 'lib' prefix
6103 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6104 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6105 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6106 # It is most probably a Windows format PATH printed by
6107 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6108 # path with ; separators, and with drive letters. We can handle the
6109 # drive letters (cygwin fileutils understands them), so leave them,
6110 # especially as we might pass files found there to a mingw objdump,
6111 # which wouldn't understand a cygwinified path. Ahh.
6112 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6113 else
6114 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6117 pw32*)
6118 # pw32 DLLs use 'pw' prefix rather than 'lib'
6119 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6121 esac
6125 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6127 esac
6128 dynamic_linker='Win32 ld.exe'
6129 # FIXME: first we should search . and the directory the executable is in
6130 shlibpath_var=PATH
6133 darwin* | rhapsody*)
6134 dynamic_linker="$host_os dyld"
6135 version_type=darwin
6136 need_lib_prefix=no
6137 need_version=no
6138 # FIXME: Relying on posixy $() will cause problems for
6139 # cross-compilation, but unfortunately the echo tests do not
6140 # yet detect zsh echo's removal of \ escapes.
6141 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6142 soname_spec='${libname}${release}${major}$shared_ext'
6143 shlibpath_overrides_runpath=yes
6144 shlibpath_var=DYLD_LIBRARY_PATH
6145 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6146 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6147 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6148 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"`
6150 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6153 dgux*)
6154 version_type=linux
6155 need_lib_prefix=no
6156 need_version=no
6157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6158 soname_spec='${libname}${release}${shared_ext}$major'
6159 shlibpath_var=LD_LIBRARY_PATH
6162 freebsd1*)
6163 dynamic_linker=no
6166 freebsd*)
6167 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6168 version_type=freebsd-$objformat
6169 case $version_type in
6170 freebsd-elf*)
6171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6172 need_version=no
6173 need_lib_prefix=no
6175 freebsd-*)
6176 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6177 need_version=yes
6179 esac
6180 shlibpath_var=LD_LIBRARY_PATH
6181 case $host_os in
6182 freebsd2*)
6183 shlibpath_overrides_runpath=yes
6185 freebsd3.01* | freebsdelf3.01*)
6186 shlibpath_overrides_runpath=yes
6187 hardcode_into_libs=yes
6189 *) # from 3.2 on
6190 shlibpath_overrides_runpath=no
6191 hardcode_into_libs=yes
6193 esac
6196 gnu*)
6197 version_type=linux
6198 need_lib_prefix=no
6199 need_version=no
6200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6201 soname_spec='${libname}${release}${shared_ext}$major'
6202 shlibpath_var=LD_LIBRARY_PATH
6203 hardcode_into_libs=yes
6206 hpux9* | hpux10* | hpux11*)
6207 # Give a soname corresponding to the major version so that dld.sl refuses to
6208 # link against other versions.
6209 version_type=sunos
6210 need_lib_prefix=no
6211 need_version=no
6212 case "$host_cpu" in
6213 ia64*)
6214 shrext='.so'
6215 hardcode_into_libs=yes
6216 dynamic_linker="$host_os dld.so"
6217 shlibpath_var=LD_LIBRARY_PATH
6218 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6220 soname_spec='${libname}${release}${shared_ext}$major'
6221 if test "X$HPUX_IA64_MODE" = X32; then
6222 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6223 else
6224 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6226 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6228 hppa*64*)
6229 shrext='.sl'
6230 hardcode_into_libs=yes
6231 dynamic_linker="$host_os dld.sl"
6232 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6235 soname_spec='${libname}${release}${shared_ext}$major'
6236 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6240 shrext='.sl'
6241 dynamic_linker="$host_os dld.sl"
6242 shlibpath_var=SHLIB_PATH
6243 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6245 soname_spec='${libname}${release}${shared_ext}$major'
6247 esac
6248 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6249 postinstall_cmds='chmod 555 $lib'
6252 irix5* | irix6* | nonstopux*)
6253 case $host_os in
6254 nonstopux*) version_type=nonstopux ;;
6256 if test "$lt_cv_prog_gnu_ld" = yes; then
6257 version_type=linux
6258 else
6259 version_type=irix
6260 fi ;;
6261 esac
6262 need_lib_prefix=no
6263 need_version=no
6264 soname_spec='${libname}${release}${shared_ext}$major'
6265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6266 case $host_os in
6267 irix5* | nonstopux*)
6268 libsuff= shlibsuff=
6271 case $LD in # libtool.m4 will add one of these switches to LD
6272 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6273 libsuff= shlibsuff= libmagic=32-bit;;
6274 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6275 libsuff=32 shlibsuff=N32 libmagic=N32;;
6276 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6277 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6278 *) libsuff= shlibsuff= libmagic=never-match;;
6279 esac
6281 esac
6282 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6283 shlibpath_overrides_runpath=no
6284 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6285 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6286 hardcode_into_libs=yes
6289 # No shared lib support for Linux oldld, aout, or coff.
6290 linux*oldld* | linux*aout* | linux*coff*)
6291 dynamic_linker=no
6294 # This must be Linux ELF.
6295 linux*|k*bsd*-gnu)
6296 version_type=linux
6297 need_lib_prefix=no
6298 need_version=no
6299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6300 soname_spec='${libname}${release}${shared_ext}$major'
6301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6302 shlibpath_var=LD_LIBRARY_PATH
6303 shlibpath_overrides_runpath=no
6304 # This implies no fast_install, which is unacceptable.
6305 # Some rework will be needed to allow for fast_install
6306 # before this can be enabled.
6307 hardcode_into_libs=yes
6309 # We used to test for /lib/ld.so.1 and disable shared libraries on
6310 # powerpc, because MkLinux only supported shared libraries with the
6311 # GNU dynamic linker. Since this was broken with cross compilers,
6312 # most powerpc-linux boxes support dynamic linking these days and
6313 # people can always --disable-shared, the test was removed, and we
6314 # assume the GNU/Linux dynamic linker is in use.
6315 dynamic_linker='GNU/Linux ld.so'
6318 netbsd*)
6319 version_type=sunos
6320 need_lib_prefix=no
6321 need_version=no
6322 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6325 dynamic_linker='NetBSD (a.out) ld.so'
6326 else
6327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6328 soname_spec='${libname}${release}${shared_ext}$major'
6329 dynamic_linker='NetBSD ld.elf_so'
6331 shlibpath_var=LD_LIBRARY_PATH
6332 shlibpath_overrides_runpath=yes
6333 hardcode_into_libs=yes
6336 newsos6)
6337 version_type=linux
6338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6339 shlibpath_var=LD_LIBRARY_PATH
6340 shlibpath_overrides_runpath=yes
6343 nto-qnx)
6344 version_type=linux
6345 need_lib_prefix=no
6346 need_version=no
6347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6348 soname_spec='${libname}${release}${shared_ext}$major'
6349 shlibpath_var=LD_LIBRARY_PATH
6350 shlibpath_overrides_runpath=yes
6353 openbsd*)
6354 version_type=sunos
6355 need_lib_prefix=no
6356 need_version=no
6357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6358 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6359 shlibpath_var=LD_LIBRARY_PATH
6360 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6361 case $host_os in
6362 openbsd2.[89] | openbsd2.[89].*)
6363 shlibpath_overrides_runpath=no
6366 shlibpath_overrides_runpath=yes
6368 esac
6369 else
6370 shlibpath_overrides_runpath=yes
6374 os2*)
6375 libname_spec='$name'
6376 shrext=".dll"
6377 need_lib_prefix=no
6378 library_names_spec='$libname${shared_ext} $libname.a'
6379 dynamic_linker='OS/2 ld.exe'
6380 shlibpath_var=LIBPATH
6383 osf3* | osf4* | osf5*)
6384 version_type=osf
6385 need_lib_prefix=no
6386 need_version=no
6387 soname_spec='${libname}${release}${shared_ext}$major'
6388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6389 shlibpath_var=LD_LIBRARY_PATH
6390 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6391 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6394 sco3.2v5*)
6395 version_type=osf
6396 soname_spec='${libname}${release}${shared_ext}$major'
6397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6398 shlibpath_var=LD_LIBRARY_PATH
6401 solaris*)
6402 version_type=linux
6403 need_lib_prefix=no
6404 need_version=no
6405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6406 soname_spec='${libname}${release}${shared_ext}$major'
6407 shlibpath_var=LD_LIBRARY_PATH
6408 shlibpath_overrides_runpath=yes
6409 hardcode_into_libs=yes
6410 # ldd complains unless libraries are executable
6411 postinstall_cmds='chmod +x $lib'
6414 sunos4*)
6415 version_type=sunos
6416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6417 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6418 shlibpath_var=LD_LIBRARY_PATH
6419 shlibpath_overrides_runpath=yes
6420 if test "$with_gnu_ld" = yes; then
6421 need_lib_prefix=no
6423 need_version=yes
6426 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6427 version_type=linux
6428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6429 soname_spec='${libname}${release}${shared_ext}$major'
6430 shlibpath_var=LD_LIBRARY_PATH
6431 case $host_vendor in
6432 sni)
6433 shlibpath_overrides_runpath=no
6434 need_lib_prefix=no
6435 export_dynamic_flag_spec='${wl}-Blargedynsym'
6436 runpath_var=LD_RUN_PATH
6438 siemens)
6439 need_lib_prefix=no
6441 motorola)
6442 need_lib_prefix=no
6443 need_version=no
6444 shlibpath_overrides_runpath=no
6445 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6447 esac
6450 sysv4*MP*)
6451 if test -d /usr/nec ;then
6452 version_type=linux
6453 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6454 soname_spec='$libname${shared_ext}.$major'
6455 shlibpath_var=LD_LIBRARY_PATH
6459 uts4*)
6460 version_type=linux
6461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6462 soname_spec='${libname}${release}${shared_ext}$major'
6463 shlibpath_var=LD_LIBRARY_PATH
6467 dynamic_linker=no
6469 esac
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6471 $as_echo "$dynamic_linker" >&6; }
6472 test "$dynamic_linker" = no && can_build_shared=no
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6476 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6477 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6478 $as_echo_n "(cached) " >&6
6479 else
6480 libltdl_cv_shlibpath_var="$shlibpath_var"
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6483 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6484 if test -n "$libltdl_cv_shlibpath_var"; then
6486 cat >>confdefs.h <<_ACEOF
6487 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6488 _ACEOF
6494 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6497 # Possibly build libgcj as many sub-libraries.
6498 # Check whether --enable-libgcj-sublibs was given.
6499 if test "${enable_libgcj_sublibs+set}" = set; then :
6500 enableval=$enable_libgcj_sublibs;
6504 if test -z "$enable_libgcj_sublibs"; then
6505 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6507 if test "$enable_libgcj_sublibs" = yes; then
6508 BUILD_SUBLIBS_TRUE=
6509 BUILD_SUBLIBS_FALSE='#'
6510 else
6511 BUILD_SUBLIBS_TRUE='#'
6512 BUILD_SUBLIBS_FALSE=
6515 if test "$enable_libgcj_sublibs" = yes ; then
6516 # In theory we could make do with only one override and simply
6517 # tag "_bc" onto the end of it when we use it to generate the
6518 # spec, but that's an ugly thing to do when there are multiple
6519 # words in the string and you're relying on the ordering to
6520 # append the correct one.
6521 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6522 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6526 # See if the user has requested runtime debugging.
6527 LIBGCJDEBUG="disable"
6529 # Check whether --enable-libgcj-debug was given.
6530 if test "${enable_libgcj_debug+set}" = set; then :
6531 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6533 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6535 LIBGCJDEBUG="enable"
6541 # Check whether --with-escher was given.
6542 if test "${with_escher+set}" = set; then :
6543 withval=$with_escher;
6546 case "$with_escher" in
6548 use_escher=false
6550 "no")
6551 use_escher=false
6553 "yes")
6554 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6557 use_escher=true
6559 esac
6561 # Determine which AWT peer libraries to build
6562 # Check whether --enable-java-awt was given.
6563 if test "${enable_java_awt+set}" = set; then :
6564 enableval=$enable_java_awt;
6568 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6569 use_xlib_awt=""
6570 use_gtk_awt=""
6571 use_qt_awt=""
6572 use_x_awt=""
6573 # The default toolkit to use is the first one specified.
6574 TOOLKIT=
6577 for peer in $peerlibs ; do
6578 case $peer in
6579 xlib)
6580 if test "$no_x" = yes; then
6581 echo "*** xlib peers requested but no X library available" 1>&2
6582 exit 1
6583 else
6584 use_xlib_awt="yes"
6585 if test -z "$TOOLKIT"; then
6586 TOOLKIT=gnu.awt.xlib.XToolkit
6590 gtk)
6591 if test "$no_x" = yes; then
6592 echo "*** gtk peers requested but no X library available" 1>&2
6593 exit 1
6594 else
6595 use_gtk_awt=yes
6596 if test -z "$TOOLKIT"; then
6597 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6602 if test "$no_x" = yes; then
6603 # Perhaps we should admit the possibility of embedded Qt.
6604 echo "*** Qt peers requested but no X library available" 1>&2
6605 exit 1
6606 else
6607 use_qt_awt=yes
6608 if test -z "$TOOLKIT"; then
6609 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6614 use_x_awt=yes
6615 if test -z "$TOOLKIT"; then
6616 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6620 use_xlib_awt=
6621 use_gtk_awt=
6622 use_qt_awt=
6623 use_x_awt=
6624 break
6627 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6628 exit 1
6629 esac
6630 done
6632 if test "$use_xlib_awt" = yes; then
6633 XLIB_AWT_TRUE=
6634 XLIB_AWT_FALSE='#'
6635 else
6636 XLIB_AWT_TRUE='#'
6637 XLIB_AWT_FALSE=
6640 if test "$use_x_awt" = yes; then
6641 X_AWT_TRUE=
6642 X_AWT_FALSE='#'
6643 else
6644 X_AWT_TRUE='#'
6645 X_AWT_FALSE=
6650 cat >>confdefs.h <<_ACEOF
6651 #define AWT_TOOLKIT "$TOOLKIT"
6652 _ACEOF
6655 expanded_prefix=$prefix
6656 if test "X$prefix" = XNONE; then
6657 expanded_prefix=${ac_default_prefix}
6661 cat >>confdefs.h <<_ACEOF
6662 #define LIBGCJ_PREFIX "$expanded_prefix"
6663 _ACEOF
6666 # Create standard.omit based on decisions we just made.
6667 cp $srcdir/standard.omit.in standard.omit
6668 if test "$use_xlib_awt" != yes; then
6669 echo gnu/awt/xlib >> standard.omit
6670 echo gnu/gcj/xlib >> standard.omit
6672 if test "$use_x_awt" != yes; then
6673 echo gnu/java/awt/peer/x >> standard.omit
6676 # Tools that need to be compiled against classpath's tools classes
6677 : > vm-tools-packages
6678 for package in gnu/gcj/tools/gc_analyze ; do
6679 echo $package >> standard.omit
6680 echo $package >> vm-tools-packages
6681 done
6683 if test -z "${with_multisubdir}"; then
6684 builddotdot=.
6685 else
6686 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6689 NATIVE=yes
6691 # Which gcj and host gcj (for ecjx) do we use?
6692 which_gcj=default
6693 host_exeext=${ac_exeext}
6694 GCJ_FOR_ECJX=
6695 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6696 if test -n "${with_cross_host}"; then
6697 # We are being configured with a cross compiler. We can't
6698 # use ac_exeext, because that is for the target platform.
6699 NATIVE=no
6700 cross_host_exeext=
6701 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6702 case "${with_cross_host}" in
6703 *mingw* | *cygwin*)
6704 cross_host_exeext=.exe
6706 esac
6707 host_exeext=${cross_host_exeext}
6708 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6709 if test x"$build_noncanonical" = x"$with_cross_host"; then
6710 # Ordinary cross (host!=target and host=build)
6711 which_gcj=built
6712 else
6713 # Canadian cross (host!=target and host!=build)
6714 which_gcj=cross
6716 else
6717 which_gcj=cross
6719 else
6720 # We are being configured with a native or crossed-native compiler
6721 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6722 if test x"$build" = x"$host"; then
6723 # True native build (host=target and host=build)
6724 which_gcj=built
6725 else
6726 # Crossed-native build (host=target and host!=build)
6727 which_gcj=cross
6729 else
6730 which_gcj=path
6733 libgcjdir=`${PWDCMD-pwd}`
6734 case $GCJ in
6735 *" -B"*)
6736 # Just in case there is a comma in the build dir, quote it for the
6737 # sed command below.
6738 case $libgcjdir in
6739 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6740 *) qlibgcjdir=$libgcjdir;;
6741 esac
6742 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6745 GCJ=$GCJ" -B$libgcjdir/"
6747 esac
6748 case "${which_gcj}" in
6749 built)
6750 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6752 cross)
6753 if test "x${with_newlib}" = "xyes"; then
6754 # FIXME (comment): Why is this needed?
6755 GCC_UNWIND_INCLUDE=
6757 GCJH='$(target_noncanonical)-gcjh'
6759 path)
6760 GCJH=gcjh
6762 esac
6763 JAVAC="$GCJ -C"
6764 export JAVAC
6770 # Create it, so that compile/link tests don't fail
6771 test -f libgcj.spec || touch libgcj.spec
6775 # Set up to configure Classpath.
6776 # FIXME: no supported way to pass args in autoconf.
6777 # Disable tool wrappers to avoid ltdl.h configure check.
6778 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6779 ac_configure_args="$ac_configure_args --disable-load-library"
6780 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6781 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6782 dir1=`cd $srcdir && pwd`
6783 dir2=`pwd`
6784 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6785 ac_configure_args="$ac_configure_args --disable-core-jni"
6786 ac_configure_args="$ac_configure_args --disable-examples"
6787 ac_configure_args="$ac_configure_args --with-glibj=build"
6788 if test "$browser_plugin_enabled" != yes; then
6789 ac_configure_args="$ac_configure_args --disable-plugin"
6790 else
6791 ac_configure_args="$ac_configure_args --enable-plugin"
6793 if test "$gconf_enabled" != yes; then
6794 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6795 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6797 if test "$use_gtk_awt" != yes; then
6798 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6800 if test "$use_qt_awt" != yes; then
6801 ac_configure_args="$ac_configure_args --disable-qt-peer"
6802 else
6803 # We need this as qt is disabled by default in classpath.
6804 ac_configure_args="$ac_configure_args --enable-qt-peer"
6806 if test "$use_x_awt" != yes; then
6807 ac_configure_args="$ac_configure_args --without-escher"
6808 else
6809 # We need this as escher is disabled by default in classpath.
6810 if test "$use_escher" != true; then
6811 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6812 else
6813 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6816 if test "x$BUILD_GJDOC" = xno; then
6817 ac_configure_args="$ac_configure_args --disable-gjdoc"
6819 # -Werror causes unavoidable problems in code using alsa.
6820 ac_configure_args="$ac_configure_args --disable-regen-headers"
6821 ac_configure_args="$ac_configure_args --disable-Werror"
6823 # Only use libltdl for non-newlib builds.
6824 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6825 case $enable_ltdl_convenience in
6826 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6827 "") enable_ltdl_convenience=yes
6828 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6829 esac
6830 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6831 LTDLINCL='-I${top_srcdir}/''libltdl'
6832 # For backwards non-gettext consistent compatibility...
6833 INCLTDL="$LTDLINCL"
6835 enable_dlopen=yes
6839 DIRLTDL=libltdl
6841 $as_echo "#define USE_LTDL 1" >>confdefs.h
6843 # Sigh. Libtool's macro doesn't do the right thing.
6844 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6845 # FIXME: this is a hack.
6846 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6847 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6852 case `pwd` in
6853 *\ * | *\ *)
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6855 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6856 esac
6860 macro_version='2.2.7a'
6861 macro_revision='1.3134'
6875 ltmain="$ac_aux_dir/ltmain.sh"
6877 # Backslashify metacharacters that are still active within
6878 # double-quoted strings.
6879 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6881 # Same as above, but do not quote variable references.
6882 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6884 # Sed substitution to delay expansion of an escaped shell variable in a
6885 # double_quote_subst'ed string.
6886 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6888 # Sed substitution to delay expansion of an escaped single quote.
6889 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6891 # Sed substitution to avoid accidental globbing in evaled expressions
6892 no_glob_subst='s/\*/\\\*/g'
6894 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6895 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6896 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6899 $as_echo_n "checking how to print strings... " >&6; }
6900 # Test print first, because it will be a builtin if present.
6901 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6902 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6903 ECHO='print -r --'
6904 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6905 ECHO='printf %s\n'
6906 else
6907 # Use this function as a fallback that always works.
6908 func_fallback_echo ()
6910 eval 'cat <<_LTECHO_EOF
6912 _LTECHO_EOF'
6914 ECHO='func_fallback_echo'
6917 # func_echo_all arg...
6918 # Invoke $ECHO with all args, space-separated.
6919 func_echo_all ()
6921 $ECHO ""
6924 case "$ECHO" in
6925 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6926 $as_echo "printf" >&6; } ;;
6927 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6928 $as_echo "print -r" >&6; } ;;
6929 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6930 $as_echo "cat" >&6; } ;;
6931 esac
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6947 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6948 if test "${ac_cv_path_SED+set}" = set; then :
6949 $as_echo_n "(cached) " >&6
6950 else
6951 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6952 for ac_i in 1 2 3 4 5 6 7; do
6953 ac_script="$ac_script$as_nl$ac_script"
6954 done
6955 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6956 { ac_script=; unset ac_script;}
6957 if test -z "$SED"; then
6958 ac_path_SED_found=false
6959 # Loop through the user's path and test for each of PROGNAME-LIST
6960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6961 for as_dir in $PATH
6963 IFS=$as_save_IFS
6964 test -z "$as_dir" && as_dir=.
6965 for ac_prog in sed gsed; do
6966 for ac_exec_ext in '' $ac_executable_extensions; do
6967 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6968 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6969 # Check for GNU ac_path_SED and select it if it is found.
6970 # Check for GNU $ac_path_SED
6971 case `"$ac_path_SED" --version 2>&1` in
6972 *GNU*)
6973 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6975 ac_count=0
6976 $as_echo_n 0123456789 >"conftest.in"
6977 while :
6979 cat "conftest.in" "conftest.in" >"conftest.tmp"
6980 mv "conftest.tmp" "conftest.in"
6981 cp "conftest.in" "conftest.nl"
6982 $as_echo '' >> "conftest.nl"
6983 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6984 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6985 as_fn_arith $ac_count + 1 && ac_count=$as_val
6986 if test $ac_count -gt ${ac_path_SED_max-0}; then
6987 # Best one so far, save it but keep looking for a better one
6988 ac_cv_path_SED="$ac_path_SED"
6989 ac_path_SED_max=$ac_count
6991 # 10*(2^10) chars as input seems more than enough
6992 test $ac_count -gt 10 && break
6993 done
6994 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6995 esac
6997 $ac_path_SED_found && break 3
6998 done
6999 done
7000 done
7001 IFS=$as_save_IFS
7002 if test -z "$ac_cv_path_SED"; then
7003 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7005 else
7006 ac_cv_path_SED=$SED
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7011 $as_echo "$ac_cv_path_SED" >&6; }
7012 SED="$ac_cv_path_SED"
7013 rm -f conftest.sed
7015 test -z "$SED" && SED=sed
7016 Xsed="$SED -e 1s/^X//"
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7029 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7030 if test "${ac_cv_path_GREP+set}" = set; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 if test -z "$GREP"; then
7034 ac_path_GREP_found=false
7035 # Loop through the user's path and test for each of PROGNAME-LIST
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_prog in grep ggrep; do
7042 for ac_exec_ext in '' $ac_executable_extensions; do
7043 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7044 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7045 # Check for GNU ac_path_GREP and select it if it is found.
7046 # Check for GNU $ac_path_GREP
7047 case `"$ac_path_GREP" --version 2>&1` in
7048 *GNU*)
7049 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7051 ac_count=0
7052 $as_echo_n 0123456789 >"conftest.in"
7053 while :
7055 cat "conftest.in" "conftest.in" >"conftest.tmp"
7056 mv "conftest.tmp" "conftest.in"
7057 cp "conftest.in" "conftest.nl"
7058 $as_echo 'GREP' >> "conftest.nl"
7059 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7060 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7061 as_fn_arith $ac_count + 1 && ac_count=$as_val
7062 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7063 # Best one so far, save it but keep looking for a better one
7064 ac_cv_path_GREP="$ac_path_GREP"
7065 ac_path_GREP_max=$ac_count
7067 # 10*(2^10) chars as input seems more than enough
7068 test $ac_count -gt 10 && break
7069 done
7070 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7071 esac
7073 $ac_path_GREP_found && break 3
7074 done
7075 done
7076 done
7077 IFS=$as_save_IFS
7078 if test -z "$ac_cv_path_GREP"; then
7079 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7081 else
7082 ac_cv_path_GREP=$GREP
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7087 $as_echo "$ac_cv_path_GREP" >&6; }
7088 GREP="$ac_cv_path_GREP"
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7092 $as_echo_n "checking for egrep... " >&6; }
7093 if test "${ac_cv_path_EGREP+set}" = set; then :
7094 $as_echo_n "(cached) " >&6
7095 else
7096 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7097 then ac_cv_path_EGREP="$GREP -E"
7098 else
7099 if test -z "$EGREP"; then
7100 ac_path_EGREP_found=false
7101 # Loop through the user's path and test for each of PROGNAME-LIST
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
7107 for ac_prog in egrep; do
7108 for ac_exec_ext in '' $ac_executable_extensions; do
7109 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7110 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7111 # Check for GNU ac_path_EGREP and select it if it is found.
7112 # Check for GNU $ac_path_EGREP
7113 case `"$ac_path_EGREP" --version 2>&1` in
7114 *GNU*)
7115 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7117 ac_count=0
7118 $as_echo_n 0123456789 >"conftest.in"
7119 while :
7121 cat "conftest.in" "conftest.in" >"conftest.tmp"
7122 mv "conftest.tmp" "conftest.in"
7123 cp "conftest.in" "conftest.nl"
7124 $as_echo 'EGREP' >> "conftest.nl"
7125 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7126 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7127 as_fn_arith $ac_count + 1 && ac_count=$as_val
7128 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7129 # Best one so far, save it but keep looking for a better one
7130 ac_cv_path_EGREP="$ac_path_EGREP"
7131 ac_path_EGREP_max=$ac_count
7133 # 10*(2^10) chars as input seems more than enough
7134 test $ac_count -gt 10 && break
7135 done
7136 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7137 esac
7139 $ac_path_EGREP_found && break 3
7140 done
7141 done
7142 done
7143 IFS=$as_save_IFS
7144 if test -z "$ac_cv_path_EGREP"; then
7145 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7147 else
7148 ac_cv_path_EGREP=$EGREP
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7154 $as_echo "$ac_cv_path_EGREP" >&6; }
7155 EGREP="$ac_cv_path_EGREP"
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7159 $as_echo_n "checking for fgrep... " >&6; }
7160 if test "${ac_cv_path_FGREP+set}" = set; then :
7161 $as_echo_n "(cached) " >&6
7162 else
7163 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7164 then ac_cv_path_FGREP="$GREP -F"
7165 else
7166 if test -z "$FGREP"; then
7167 ac_path_FGREP_found=false
7168 # Loop through the user's path and test for each of PROGNAME-LIST
7169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7172 IFS=$as_save_IFS
7173 test -z "$as_dir" && as_dir=.
7174 for ac_prog in fgrep; do
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7177 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7178 # Check for GNU ac_path_FGREP and select it if it is found.
7179 # Check for GNU $ac_path_FGREP
7180 case `"$ac_path_FGREP" --version 2>&1` in
7181 *GNU*)
7182 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7184 ac_count=0
7185 $as_echo_n 0123456789 >"conftest.in"
7186 while :
7188 cat "conftest.in" "conftest.in" >"conftest.tmp"
7189 mv "conftest.tmp" "conftest.in"
7190 cp "conftest.in" "conftest.nl"
7191 $as_echo 'FGREP' >> "conftest.nl"
7192 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7194 as_fn_arith $ac_count + 1 && ac_count=$as_val
7195 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7196 # Best one so far, save it but keep looking for a better one
7197 ac_cv_path_FGREP="$ac_path_FGREP"
7198 ac_path_FGREP_max=$ac_count
7200 # 10*(2^10) chars as input seems more than enough
7201 test $ac_count -gt 10 && break
7202 done
7203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7204 esac
7206 $ac_path_FGREP_found && break 3
7207 done
7208 done
7209 done
7210 IFS=$as_save_IFS
7211 if test -z "$ac_cv_path_FGREP"; then
7212 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7214 else
7215 ac_cv_path_FGREP=$FGREP
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7221 $as_echo "$ac_cv_path_FGREP" >&6; }
7222 FGREP="$ac_cv_path_FGREP"
7225 test -z "$GREP" && GREP=grep
7245 # Check whether --with-gnu-ld was given.
7246 if test "${with_gnu_ld+set}" = set; then :
7247 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7248 else
7249 with_gnu_ld=no
7252 ac_prog=ld
7253 if test "$GCC" = yes; then
7254 # Check if gcc -print-prog-name=ld gives a path.
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7256 $as_echo_n "checking for ld used by $CC... " >&6; }
7257 case $host in
7258 *-*-mingw*)
7259 # gcc leaves a trailing carriage return which upsets mingw
7260 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7262 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7263 esac
7264 case $ac_prog in
7265 # Accept absolute paths.
7266 [\\/]* | ?:[\\/]*)
7267 re_direlt='/[^/][^/]*/\.\./'
7268 # Canonicalize the pathname of ld
7269 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7270 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7271 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7272 done
7273 test -z "$LD" && LD="$ac_prog"
7276 # If it fails, then pretend we aren't using GCC.
7277 ac_prog=ld
7280 # If it is relative, then search for the first ld in PATH.
7281 with_gnu_ld=unknown
7283 esac
7284 elif test "$with_gnu_ld" = yes; then
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7286 $as_echo_n "checking for GNU ld... " >&6; }
7287 else
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7289 $as_echo_n "checking for non-GNU ld... " >&6; }
7291 if test "${lt_cv_path_LD+set}" = set; then :
7292 $as_echo_n "(cached) " >&6
7293 else
7294 if test -z "$LD"; then
7295 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7296 for ac_dir in $PATH; do
7297 IFS="$lt_save_ifs"
7298 test -z "$ac_dir" && ac_dir=.
7299 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7300 lt_cv_path_LD="$ac_dir/$ac_prog"
7301 # Check to see if the program is GNU ld. I'd rather use --version,
7302 # but apparently some variants of GNU ld only accept -v.
7303 # Break only if it was the GNU/non-GNU ld that we prefer.
7304 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7305 *GNU* | *'with BFD'*)
7306 test "$with_gnu_ld" != no && break
7309 test "$with_gnu_ld" != yes && break
7311 esac
7313 done
7314 IFS="$lt_save_ifs"
7315 else
7316 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7320 LD="$lt_cv_path_LD"
7321 if test -n "$LD"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7323 $as_echo "$LD" >&6; }
7324 else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7328 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7330 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7331 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7332 $as_echo_n "(cached) " >&6
7333 else
7334 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7335 case `$LD -v 2>&1 </dev/null` in
7336 *GNU* | *'with BFD'*)
7337 lt_cv_prog_gnu_ld=yes
7340 lt_cv_prog_gnu_ld=no
7342 esac
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7345 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7346 with_gnu_ld=$lt_cv_prog_gnu_ld
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7357 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7358 if test "${lt_cv_path_NM+set}" = set; then :
7359 $as_echo_n "(cached) " >&6
7360 else
7361 if test -n "$NM"; then
7362 # Let the user override the test.
7363 lt_cv_path_NM="$NM"
7364 else
7365 lt_nm_to_check="${ac_tool_prefix}nm"
7366 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7367 lt_nm_to_check="$lt_nm_to_check nm"
7369 for lt_tmp_nm in $lt_nm_to_check; do
7370 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7371 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7372 IFS="$lt_save_ifs"
7373 test -z "$ac_dir" && ac_dir=.
7374 tmp_nm="$ac_dir/$lt_tmp_nm"
7375 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7376 # Check to see if the nm accepts a BSD-compat flag.
7377 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7378 # nm: unknown option "B" ignored
7379 # Tru64's nm complains that /dev/null is an invalid object file
7380 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7381 */dev/null* | *'Invalid file or object type'*)
7382 lt_cv_path_NM="$tmp_nm -B"
7383 break
7386 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7387 */dev/null*)
7388 lt_cv_path_NM="$tmp_nm -p"
7389 break
7392 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7393 continue # so that we can try to find one that supports BSD flags
7395 esac
7397 esac
7399 done
7400 IFS="$lt_save_ifs"
7401 done
7402 : ${lt_cv_path_NM=no}
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7406 $as_echo "$lt_cv_path_NM" >&6; }
7407 if test "$lt_cv_path_NM" != "no"; then
7408 NM="$lt_cv_path_NM"
7409 else
7410 # Didn't find any BSD compatible name lister, look for dumpbin.
7411 if test -n "$DUMPBIN"; then :
7412 # Let the user override the test.
7413 else
7414 if test -n "$ac_tool_prefix"; then
7415 for ac_prog in dumpbin "link -dump"
7417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7418 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7420 $as_echo_n "checking for $ac_word... " >&6; }
7421 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7422 $as_echo_n "(cached) " >&6
7423 else
7424 if test -n "$DUMPBIN"; then
7425 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7426 else
7427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 for as_dir in $PATH
7430 IFS=$as_save_IFS
7431 test -z "$as_dir" && as_dir=.
7432 for ac_exec_ext in '' $ac_executable_extensions; do
7433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7434 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7436 break 2
7438 done
7439 done
7440 IFS=$as_save_IFS
7444 DUMPBIN=$ac_cv_prog_DUMPBIN
7445 if test -n "$DUMPBIN"; then
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7447 $as_echo "$DUMPBIN" >&6; }
7448 else
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7450 $as_echo "no" >&6; }
7454 test -n "$DUMPBIN" && break
7455 done
7457 if test -z "$DUMPBIN"; then
7458 ac_ct_DUMPBIN=$DUMPBIN
7459 for ac_prog in dumpbin "link -dump"
7461 # Extract the first word of "$ac_prog", so it can be a program name with args.
7462 set dummy $ac_prog; ac_word=$2
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464 $as_echo_n "checking for $ac_word... " >&6; }
7465 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7466 $as_echo_n "(cached) " >&6
7467 else
7468 if test -n "$ac_ct_DUMPBIN"; then
7469 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7470 else
7471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7472 for as_dir in $PATH
7474 IFS=$as_save_IFS
7475 test -z "$as_dir" && as_dir=.
7476 for ac_exec_ext in '' $ac_executable_extensions; do
7477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7478 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 break 2
7482 done
7483 done
7484 IFS=$as_save_IFS
7488 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7489 if test -n "$ac_ct_DUMPBIN"; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7491 $as_echo "$ac_ct_DUMPBIN" >&6; }
7492 else
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7498 test -n "$ac_ct_DUMPBIN" && break
7499 done
7501 if test "x$ac_ct_DUMPBIN" = x; then
7502 DUMPBIN=":"
7503 else
7504 case $cross_compiling:$ac_tool_warned in
7505 yes:)
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7507 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7508 ac_tool_warned=yes ;;
7509 esac
7510 DUMPBIN=$ac_ct_DUMPBIN
7514 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7515 *COFF*)
7516 DUMPBIN="$DUMPBIN -symbols"
7519 DUMPBIN=:
7521 esac
7524 if test "$DUMPBIN" != ":"; then
7525 NM="$DUMPBIN"
7528 test -z "$NM" && NM=nm
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7536 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7537 if test "${lt_cv_nm_interface+set}" = set; then :
7538 $as_echo_n "(cached) " >&6
7539 else
7540 lt_cv_nm_interface="BSD nm"
7541 echo "int some_variable = 0;" > conftest.$ac_ext
7542 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7543 (eval "$ac_compile" 2>conftest.err)
7544 cat conftest.err >&5
7545 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7546 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7547 cat conftest.err >&5
7548 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7549 cat conftest.out >&5
7550 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7551 lt_cv_nm_interface="MS dumpbin"
7553 rm -f conftest*
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7556 $as_echo "$lt_cv_nm_interface" >&6; }
7558 # find the maximum length of command line arguments
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7560 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7561 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7562 $as_echo_n "(cached) " >&6
7563 else
7565 teststring="ABCD"
7567 case $build_os in
7568 msdosdjgpp*)
7569 # On DJGPP, this test can blow up pretty badly due to problems in libc
7570 # (any single argument exceeding 2000 bytes causes a buffer overrun
7571 # during glob expansion). Even if it were fixed, the result of this
7572 # check would be larger than it should be.
7573 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7576 gnu*)
7577 # Under GNU Hurd, this test is not required because there is
7578 # no limit to the length of command line arguments.
7579 # Libtool will interpret -1 as no limit whatsoever
7580 lt_cv_sys_max_cmd_len=-1;
7583 cygwin* | mingw* | cegcc*)
7584 # On Win9x/ME, this test blows up -- it succeeds, but takes
7585 # about 5 minutes as the teststring grows exponentially.
7586 # Worse, since 9x/ME are not pre-emptively multitasking,
7587 # you end up with a "frozen" computer, even though with patience
7588 # the test eventually succeeds (with a max line length of 256k).
7589 # Instead, let's just punt: use the minimum linelength reported by
7590 # all of the supported platforms: 8192 (on NT/2K/XP).
7591 lt_cv_sys_max_cmd_len=8192;
7594 mint*)
7595 # On MiNT this can take a long time and run out of memory.
7596 lt_cv_sys_max_cmd_len=8192;
7599 amigaos*)
7600 # On AmigaOS with pdksh, this test takes hours, literally.
7601 # So we just punt and use a minimum line length of 8192.
7602 lt_cv_sys_max_cmd_len=8192;
7605 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7606 # This has been around since 386BSD, at least. Likely further.
7607 if test -x /sbin/sysctl; then
7608 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7609 elif test -x /usr/sbin/sysctl; then
7610 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7611 else
7612 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7614 # And add a safety zone
7615 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7616 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7619 interix*)
7620 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7621 lt_cv_sys_max_cmd_len=196608
7624 osf*)
7625 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7626 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7627 # nice to cause kernel panics so lets avoid the loop below.
7628 # First set a reasonable default.
7629 lt_cv_sys_max_cmd_len=16384
7631 if test -x /sbin/sysconfig; then
7632 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7633 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7634 esac
7637 sco3.2v5*)
7638 lt_cv_sys_max_cmd_len=102400
7640 sysv5* | sco5v6* | sysv4.2uw2*)
7641 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7642 if test -n "$kargmax"; then
7643 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7644 else
7645 lt_cv_sys_max_cmd_len=32768
7649 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7650 if test -n "$lt_cv_sys_max_cmd_len"; then
7651 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7652 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7653 else
7654 # Make teststring a little bigger before we do anything with it.
7655 # a 1K string should be a reasonable start.
7656 for i in 1 2 3 4 5 6 7 8 ; do
7657 teststring=$teststring$teststring
7658 done
7659 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7660 # If test is not a shell built-in, we'll probably end up computing a
7661 # maximum length that is only half of the actual maximum length, but
7662 # we can't tell.
7663 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7664 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7665 test $i != 17 # 1/2 MB should be enough
7667 i=`expr $i + 1`
7668 teststring=$teststring$teststring
7669 done
7670 # Only check the string length outside the loop.
7671 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7672 teststring=
7673 # Add a significant safety factor because C++ compilers can tack on
7674 # massive amounts of additional arguments before passing them to the
7675 # linker. It appears as though 1/2 is a usable value.
7676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7679 esac
7683 if test -n $lt_cv_sys_max_cmd_len ; then
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7685 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7686 else
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7688 $as_echo "none" >&6; }
7690 max_cmd_len=$lt_cv_sys_max_cmd_len
7697 : ${CP="cp -f"}
7698 : ${MV="mv -f"}
7699 : ${RM="rm -f"}
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7702 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7703 # Try some XSI features
7704 xsi_shell=no
7705 ( _lt_dummy="a/b/c"
7706 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7707 = c,a/b,, \
7708 && eval 'test $(( 1 + 1 )) -eq 2 \
7709 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7710 && xsi_shell=yes
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7712 $as_echo "$xsi_shell" >&6; }
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7716 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7717 lt_shell_append=no
7718 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7719 >/dev/null 2>&1 \
7720 && lt_shell_append=yes
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7722 $as_echo "$lt_shell_append" >&6; }
7725 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7726 lt_unset=unset
7727 else
7728 lt_unset=false
7735 # test EBCDIC or ASCII
7736 case `echo X|tr X '\101'` in
7737 A) # ASCII based system
7738 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7739 lt_SP2NL='tr \040 \012'
7740 lt_NL2SP='tr \015\012 \040\040'
7742 *) # EBCDIC based system
7743 lt_SP2NL='tr \100 \n'
7744 lt_NL2SP='tr \r\n \100\100'
7746 esac
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7757 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7758 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 lt_cv_ld_reload_flag='-r'
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7764 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7765 reload_flag=$lt_cv_ld_reload_flag
7766 case $reload_flag in
7767 "" | " "*) ;;
7768 *) reload_flag=" $reload_flag" ;;
7769 esac
7770 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7771 case $host_os in
7772 darwin*)
7773 if test "$GCC" = yes; then
7774 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7775 else
7776 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7779 esac
7789 if test -n "$ac_tool_prefix"; then
7790 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7791 set dummy ${ac_tool_prefix}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_OBJDUMP+set}" = set; then :
7795 $as_echo_n "(cached) " >&6
7796 else
7797 if test -n "$OBJDUMP"; then
7798 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7799 else
7800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7801 for as_dir in $PATH
7803 IFS=$as_save_IFS
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_OBJDUMP="${ac_tool_prefix}objdump"
7808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7809 break 2
7811 done
7812 done
7813 IFS=$as_save_IFS
7817 OBJDUMP=$ac_cv_prog_OBJDUMP
7818 if test -n "$OBJDUMP"; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7820 $as_echo "$OBJDUMP" >&6; }
7821 else
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7823 $as_echo "no" >&6; }
7828 if test -z "$ac_cv_prog_OBJDUMP"; then
7829 ac_ct_OBJDUMP=$OBJDUMP
7830 # Extract the first word of "objdump", so it can be a program name with args.
7831 set dummy objdump; ac_word=$2
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7833 $as_echo_n "checking for $ac_word... " >&6; }
7834 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7835 $as_echo_n "(cached) " >&6
7836 else
7837 if test -n "$ac_ct_OBJDUMP"; then
7838 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7839 else
7840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7841 for as_dir in $PATH
7843 IFS=$as_save_IFS
7844 test -z "$as_dir" && as_dir=.
7845 for ac_exec_ext in '' $ac_executable_extensions; do
7846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7847 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7849 break 2
7851 done
7852 done
7853 IFS=$as_save_IFS
7857 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7858 if test -n "$ac_ct_OBJDUMP"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7860 $as_echo "$ac_ct_OBJDUMP" >&6; }
7861 else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7866 if test "x$ac_ct_OBJDUMP" = x; then
7867 OBJDUMP="false"
7868 else
7869 case $cross_compiling:$ac_tool_warned in
7870 yes:)
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7873 ac_tool_warned=yes ;;
7874 esac
7875 OBJDUMP=$ac_ct_OBJDUMP
7877 else
7878 OBJDUMP="$ac_cv_prog_OBJDUMP"
7881 test -z "$OBJDUMP" && OBJDUMP=objdump
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7892 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7893 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 lt_cv_file_magic_cmd='$MAGIC_CMD'
7897 lt_cv_file_magic_test_file=
7898 lt_cv_deplibs_check_method='unknown'
7899 # Need to set the preceding variable on all platforms that support
7900 # interlibrary dependencies.
7901 # 'none' -- dependencies not supported.
7902 # `unknown' -- same as none, but documents that we really don't know.
7903 # 'pass_all' -- all dependencies passed with no checks.
7904 # 'test_compile' -- check by making test program.
7905 # 'file_magic [[regex]]' -- check by looking for files in library path
7906 # which responds to the $file_magic_cmd with a given extended regex.
7907 # If you have `file' or equivalent on your system and you're not sure
7908 # whether `pass_all' will *always* work, you probably want this one.
7910 case $host_os in
7911 aix[4-9]*)
7912 lt_cv_deplibs_check_method=pass_all
7915 beos*)
7916 lt_cv_deplibs_check_method=pass_all
7919 bsdi[45]*)
7920 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7921 lt_cv_file_magic_cmd='/usr/bin/file -L'
7922 lt_cv_file_magic_test_file=/shlib/libc.so
7925 cygwin*)
7926 # func_win32_libid is a shell function defined in ltmain.sh
7927 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7928 lt_cv_file_magic_cmd='func_win32_libid'
7931 mingw* | pw32*)
7932 # Base MSYS/MinGW do not provide the 'file' command needed by
7933 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7934 # unless we find 'file', for example because we are cross-compiling.
7935 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7936 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7937 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7938 lt_cv_file_magic_cmd='func_win32_libid'
7939 else
7940 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7941 lt_cv_file_magic_cmd='$OBJDUMP -f'
7945 cegcc*)
7946 # use the weaker test based on 'objdump'. See mingw*.
7947 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7948 lt_cv_file_magic_cmd='$OBJDUMP -f'
7951 darwin* | rhapsody*)
7952 lt_cv_deplibs_check_method=pass_all
7955 freebsd* | dragonfly*)
7956 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7957 case $host_cpu in
7958 i*86 )
7959 # Not sure whether the presence of OpenBSD here was a mistake.
7960 # Let's accept both of them until this is cleared up.
7961 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7962 lt_cv_file_magic_cmd=/usr/bin/file
7963 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7965 esac
7966 else
7967 lt_cv_deplibs_check_method=pass_all
7971 gnu*)
7972 lt_cv_deplibs_check_method=pass_all
7975 haiku*)
7976 lt_cv_deplibs_check_method=pass_all
7979 hpux10.20* | hpux11*)
7980 lt_cv_file_magic_cmd=/usr/bin/file
7981 case $host_cpu in
7982 ia64*)
7983 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7984 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7986 hppa*64*)
7987 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7988 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7991 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7992 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7994 esac
7997 interix[3-9]*)
7998 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7999 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8002 irix5* | irix6* | nonstopux*)
8003 case $LD in
8004 *-32|*"-32 ") libmagic=32-bit;;
8005 *-n32|*"-n32 ") libmagic=N32;;
8006 *-64|*"-64 ") libmagic=64-bit;;
8007 *) libmagic=never-match;;
8008 esac
8009 lt_cv_deplibs_check_method=pass_all
8012 # This must be Linux ELF.
8013 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8014 lt_cv_deplibs_check_method=pass_all
8017 netbsd*)
8018 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8019 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8020 else
8021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8025 newos6*)
8026 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8027 lt_cv_file_magic_cmd=/usr/bin/file
8028 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8031 *nto* | *qnx*)
8032 lt_cv_deplibs_check_method=pass_all
8035 openbsd*)
8036 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8037 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8038 else
8039 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8043 osf3* | osf4* | osf5*)
8044 lt_cv_deplibs_check_method=pass_all
8047 rdos*)
8048 lt_cv_deplibs_check_method=pass_all
8051 solaris*)
8052 lt_cv_deplibs_check_method=pass_all
8055 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8056 lt_cv_deplibs_check_method=pass_all
8059 sysv4 | sysv4.3*)
8060 case $host_vendor in
8061 motorola)
8062 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]'
8063 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8065 ncr)
8066 lt_cv_deplibs_check_method=pass_all
8068 sequent)
8069 lt_cv_file_magic_cmd='/bin/file'
8070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8072 sni)
8073 lt_cv_file_magic_cmd='/bin/file'
8074 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8075 lt_cv_file_magic_test_file=/lib/libc.so
8077 siemens)
8078 lt_cv_deplibs_check_method=pass_all
8081 lt_cv_deplibs_check_method=pass_all
8083 esac
8086 tpf*)
8087 lt_cv_deplibs_check_method=pass_all
8089 esac
8092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8093 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8094 file_magic_cmd=$lt_cv_file_magic_cmd
8095 deplibs_check_method=$lt_cv_deplibs_check_method
8096 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8109 if test -n "$ac_tool_prefix"; then
8110 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8111 set dummy ${ac_tool_prefix}ar; ac_word=$2
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 $as_echo_n "checking for $ac_word... " >&6; }
8114 if test "${ac_cv_prog_AR+set}" = set; then :
8115 $as_echo_n "(cached) " >&6
8116 else
8117 if test -n "$AR"; then
8118 ac_cv_prog_AR="$AR" # Let the user override the test.
8119 else
8120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8121 for as_dir in $PATH
8123 IFS=$as_save_IFS
8124 test -z "$as_dir" && as_dir=.
8125 for ac_exec_ext in '' $ac_executable_extensions; do
8126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8127 ac_cv_prog_AR="${ac_tool_prefix}ar"
8128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8129 break 2
8131 done
8132 done
8133 IFS=$as_save_IFS
8137 AR=$ac_cv_prog_AR
8138 if test -n "$AR"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8140 $as_echo "$AR" >&6; }
8141 else
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8148 if test -z "$ac_cv_prog_AR"; then
8149 ac_ct_AR=$AR
8150 # Extract the first word of "ar", so it can be a program name with args.
8151 set dummy ar; ac_word=$2
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153 $as_echo_n "checking for $ac_word... " >&6; }
8154 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 if test -n "$ac_ct_AR"; then
8158 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8159 else
8160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8161 for as_dir in $PATH
8163 IFS=$as_save_IFS
8164 test -z "$as_dir" && as_dir=.
8165 for ac_exec_ext in '' $ac_executable_extensions; do
8166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8167 ac_cv_prog_ac_ct_AR="ar"
8168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8169 break 2
8171 done
8172 done
8173 IFS=$as_save_IFS
8177 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8178 if test -n "$ac_ct_AR"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8180 $as_echo "$ac_ct_AR" >&6; }
8181 else
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 $as_echo "no" >&6; }
8186 if test "x$ac_ct_AR" = x; then
8187 AR="false"
8188 else
8189 case $cross_compiling:$ac_tool_warned in
8190 yes:)
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8193 ac_tool_warned=yes ;;
8194 esac
8195 AR=$ac_ct_AR
8197 else
8198 AR="$ac_cv_prog_AR"
8201 test -z "$AR" && AR=ar
8202 test -z "$AR_FLAGS" && AR_FLAGS=cru
8214 if test -n "$ac_tool_prefix"; then
8215 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8216 set dummy ${ac_tool_prefix}strip; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if test "${ac_cv_prog_STRIP+set}" = set; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 if test -n "$STRIP"; then
8223 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8232 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8236 done
8237 done
8238 IFS=$as_save_IFS
8242 STRIP=$ac_cv_prog_STRIP
8243 if test -n "$STRIP"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8245 $as_echo "$STRIP" >&6; }
8246 else
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8253 if test -z "$ac_cv_prog_STRIP"; then
8254 ac_ct_STRIP=$STRIP
8255 # Extract the first word of "strip", so it can be a program name with args.
8256 set dummy strip; ac_word=$2
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 $as_echo_n "checking for $ac_word... " >&6; }
8259 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 if test -n "$ac_ct_STRIP"; then
8263 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8264 else
8265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8266 for as_dir in $PATH
8268 IFS=$as_save_IFS
8269 test -z "$as_dir" && as_dir=.
8270 for ac_exec_ext in '' $ac_executable_extensions; do
8271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8272 ac_cv_prog_ac_ct_STRIP="strip"
8273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 break 2
8276 done
8277 done
8278 IFS=$as_save_IFS
8282 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8283 if test -n "$ac_ct_STRIP"; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8285 $as_echo "$ac_ct_STRIP" >&6; }
8286 else
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8288 $as_echo "no" >&6; }
8291 if test "x$ac_ct_STRIP" = x; then
8292 STRIP=":"
8293 else
8294 case $cross_compiling:$ac_tool_warned in
8295 yes:)
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8297 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8298 ac_tool_warned=yes ;;
8299 esac
8300 STRIP=$ac_ct_STRIP
8302 else
8303 STRIP="$ac_cv_prog_STRIP"
8306 test -z "$STRIP" && STRIP=:
8313 if test -n "$ac_tool_prefix"; then
8314 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8315 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 if test -n "$RANLIB"; then
8322 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8331 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8335 done
8336 done
8337 IFS=$as_save_IFS
8341 RANLIB=$ac_cv_prog_RANLIB
8342 if test -n "$RANLIB"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8344 $as_echo "$RANLIB" >&6; }
8345 else
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8352 if test -z "$ac_cv_prog_RANLIB"; then
8353 ac_ct_RANLIB=$RANLIB
8354 # Extract the first word of "ranlib", so it can be a program name with args.
8355 set dummy ranlib; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 if test -n "$ac_ct_RANLIB"; then
8362 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_ac_ct_RANLIB="ranlib"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8375 done
8376 done
8377 IFS=$as_save_IFS
8381 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8382 if test -n "$ac_ct_RANLIB"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8384 $as_echo "$ac_ct_RANLIB" >&6; }
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8390 if test "x$ac_ct_RANLIB" = x; then
8391 RANLIB=":"
8392 else
8393 case $cross_compiling:$ac_tool_warned in
8394 yes:)
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8397 ac_tool_warned=yes ;;
8398 esac
8399 RANLIB=$ac_ct_RANLIB
8401 else
8402 RANLIB="$ac_cv_prog_RANLIB"
8405 test -z "$RANLIB" && RANLIB=:
8412 # Determine commands to create old-style static archives.
8413 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8414 old_postinstall_cmds='chmod 644 $oldlib'
8415 old_postuninstall_cmds=
8417 if test -n "$RANLIB"; then
8418 case $host_os in
8419 openbsd*)
8420 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8423 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8425 esac
8426 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8429 case $host_os in
8430 darwin*)
8431 lock_old_archive_extraction=yes ;;
8433 lock_old_archive_extraction=no ;;
8434 esac
8474 # If no C compiler was specified, use CC.
8475 LTCC=${LTCC-"$CC"}
8477 # If no C compiler flags were specified, use CFLAGS.
8478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8480 # Allow CC to be a program name with arguments.
8481 compiler=$CC
8484 # Check for command to grab the raw symbol name followed by C symbol from nm.
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8486 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8487 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8488 $as_echo_n "(cached) " >&6
8489 else
8491 # These are sane defaults that work on at least a few old systems.
8492 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8494 # Character class describing NM global symbol codes.
8495 symcode='[BCDEGRST]'
8497 # Regexp to match symbols that can be accessed directly from C.
8498 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8500 # Define system-specific variables.
8501 case $host_os in
8502 aix*)
8503 symcode='[BCDT]'
8505 cygwin* | mingw* | pw32* | cegcc*)
8506 symcode='[ABCDGISTW]'
8508 hpux*)
8509 if test "$host_cpu" = ia64; then
8510 symcode='[ABCDEGRST]'
8513 irix* | nonstopux*)
8514 symcode='[BCDEGRST]'
8516 osf*)
8517 symcode='[BCDEGQRST]'
8519 solaris*)
8520 symcode='[BDRT]'
8522 sco3.2v5*)
8523 symcode='[DT]'
8525 sysv4.2uw2*)
8526 symcode='[DT]'
8528 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8529 symcode='[ABDT]'
8531 sysv4)
8532 symcode='[DFNSTU]'
8534 esac
8536 # If we're using GNU nm, then use its standard symbol codes.
8537 case `$NM -V 2>&1` in
8538 *GNU* | *'with BFD'*)
8539 symcode='[ABCDGIRSTW]' ;;
8540 esac
8542 # Transform an extracted symbol line into a proper C declaration.
8543 # Some systems (esp. on ia64) link data and code symbols differently,
8544 # so use this general approach.
8545 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8547 # Transform an extracted symbol line into symbol name and symbol address
8548 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8549 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'"
8551 # Handle CRLF in mingw tool chain
8552 opt_cr=
8553 case $build_os in
8554 mingw*)
8555 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8557 esac
8559 # Try without a prefix underscore, then with it.
8560 for ac_symprfx in "" "_"; do
8562 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8563 symxfrm="\\1 $ac_symprfx\\2 \\2"
8565 # Write the raw and C identifiers.
8566 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8567 # Fake it for dumpbin and say T for any non-static function
8568 # and D for any global variable.
8569 # Also find C++ and __fastcall symbols from MSVC++,
8570 # which start with @ or ?.
8571 lt_cv_sys_global_symbol_pipe="$AWK '"\
8572 " {last_section=section; section=\$ 3};"\
8573 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8574 " \$ 0!~/External *\|/{next};"\
8575 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8576 " {if(hide[section]) next};"\
8577 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8578 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8579 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8580 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8581 " ' prfx=^$ac_symprfx"
8582 else
8583 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8586 # Check to see that the pipe works correctly.
8587 pipe_works=no
8589 rm -f conftest*
8590 cat > conftest.$ac_ext <<_LT_EOF
8591 #ifdef __cplusplus
8592 extern "C" {
8593 #endif
8594 char nm_test_var;
8595 void nm_test_func(void);
8596 void nm_test_func(void){}
8597 #ifdef __cplusplus
8599 #endif
8600 int main(){nm_test_var='a';nm_test_func();return(0);}
8601 _LT_EOF
8603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8604 (eval $ac_compile) 2>&5
8605 ac_status=$?
8606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8607 test $ac_status = 0; }; then
8608 # Now try to grab the symbols.
8609 nlist=conftest.nm
8610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8611 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8612 ac_status=$?
8613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8614 test $ac_status = 0; } && test -s "$nlist"; then
8615 # Try sorting and uniquifying the output.
8616 if sort "$nlist" | uniq > "$nlist"T; then
8617 mv -f "$nlist"T "$nlist"
8618 else
8619 rm -f "$nlist"T
8622 # Make sure that we snagged all the symbols we need.
8623 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8624 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8625 cat <<_LT_EOF > conftest.$ac_ext
8626 #ifdef __cplusplus
8627 extern "C" {
8628 #endif
8630 _LT_EOF
8631 # Now generate the symbol file.
8632 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8634 cat <<_LT_EOF >> conftest.$ac_ext
8636 /* The mapping between symbol names and symbols. */
8637 const struct {
8638 const char *name;
8639 void *address;
8641 lt__PROGRAM__LTX_preloaded_symbols[] =
8643 { "@PROGRAM@", (void *) 0 },
8644 _LT_EOF
8645 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8646 cat <<\_LT_EOF >> conftest.$ac_ext
8647 {0, (void *) 0}
8650 /* This works around a problem in FreeBSD linker */
8651 #ifdef FREEBSD_WORKAROUND
8652 static const void *lt_preloaded_setup() {
8653 return lt__PROGRAM__LTX_preloaded_symbols;
8655 #endif
8657 #ifdef __cplusplus
8659 #endif
8660 _LT_EOF
8661 # Now try linking the two files.
8662 mv conftest.$ac_objext conftstm.$ac_objext
8663 lt_save_LIBS="$LIBS"
8664 lt_save_CFLAGS="$CFLAGS"
8665 LIBS="conftstm.$ac_objext"
8666 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8667 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8668 (eval $ac_link) 2>&5
8669 ac_status=$?
8670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8671 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8672 pipe_works=yes
8674 LIBS="$lt_save_LIBS"
8675 CFLAGS="$lt_save_CFLAGS"
8676 else
8677 echo "cannot find nm_test_func in $nlist" >&5
8679 else
8680 echo "cannot find nm_test_var in $nlist" >&5
8682 else
8683 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8685 else
8686 echo "$progname: failed program was:" >&5
8687 cat conftest.$ac_ext >&5
8689 rm -rf conftest* conftst*
8691 # Do not use the global_symbol_pipe unless it works.
8692 if test "$pipe_works" = yes; then
8693 break
8694 else
8695 lt_cv_sys_global_symbol_pipe=
8697 done
8701 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8702 lt_cv_sys_global_symbol_to_cdecl=
8704 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8706 $as_echo "failed" >&6; }
8707 else
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8709 $as_echo "ok" >&6; }
8734 # Check whether --enable-libtool-lock was given.
8735 if test "${enable_libtool_lock+set}" = set; then :
8736 enableval=$enable_libtool_lock;
8739 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8741 # Some flags need to be propagated to the compiler or linker for good
8742 # libtool support.
8743 case $host in
8744 ia64-*-hpux*)
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
8749 ac_status=$?
8750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8751 test $ac_status = 0; }; then
8752 case `/usr/bin/file conftest.$ac_objext` in
8753 *ELF-32*)
8754 HPUX_IA64_MODE="32"
8756 *ELF-64*)
8757 HPUX_IA64_MODE="64"
8759 esac
8761 rm -rf conftest*
8763 *-*-irix6*)
8764 # Find out which ABI we are using.
8765 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8767 (eval $ac_compile) 2>&5
8768 ac_status=$?
8769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8770 test $ac_status = 0; }; then
8771 if test "$lt_cv_prog_gnu_ld" = yes; then
8772 case `/usr/bin/file conftest.$ac_objext` in
8773 *32-bit*)
8774 LD="${LD-ld} -melf32bsmip"
8776 *N32*)
8777 LD="${LD-ld} -melf32bmipn32"
8779 *64-bit*)
8780 LD="${LD-ld} -melf64bmip"
8782 esac
8783 else
8784 case `/usr/bin/file conftest.$ac_objext` in
8785 *32-bit*)
8786 LD="${LD-ld} -32"
8788 *N32*)
8789 LD="${LD-ld} -n32"
8791 *64-bit*)
8792 LD="${LD-ld} -64"
8794 esac
8797 rm -rf conftest*
8800 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8801 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8802 # Find out which ABI we are using.
8803 echo 'int i;' > conftest.$ac_ext
8804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8805 (eval $ac_compile) 2>&5
8806 ac_status=$?
8807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8808 test $ac_status = 0; }; then
8809 case `/usr/bin/file conftest.o` in
8810 *32-bit*)
8811 case $host in
8812 x86_64-*kfreebsd*-gnu)
8813 LD="${LD-ld} -m elf_i386_fbsd"
8815 x86_64-*linux*)
8816 LD="${LD-ld} -m elf_i386"
8818 ppc64-*linux*|powerpc64-*linux*)
8819 LD="${LD-ld} -m elf32ppclinux"
8821 s390x-*linux*)
8822 LD="${LD-ld} -m elf_s390"
8824 sparc64-*linux*)
8825 LD="${LD-ld} -m elf32_sparc"
8827 esac
8829 *64-bit*)
8830 case $host in
8831 x86_64-*kfreebsd*-gnu)
8832 LD="${LD-ld} -m elf_x86_64_fbsd"
8834 x86_64-*linux*)
8835 LD="${LD-ld} -m elf_x86_64"
8837 ppc*-*linux*|powerpc*-*linux*)
8838 LD="${LD-ld} -m elf64ppc"
8840 s390*-*linux*|s390*-*tpf*)
8841 LD="${LD-ld} -m elf64_s390"
8843 sparc*-*linux*)
8844 LD="${LD-ld} -m elf64_sparc"
8846 esac
8848 esac
8850 rm -rf conftest*
8853 *-*-sco3.2v5*)
8854 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8855 SAVE_CFLAGS="$CFLAGS"
8856 CFLAGS="$CFLAGS -belf"
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8858 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8859 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8860 $as_echo_n "(cached) " >&6
8861 else
8862 ac_ext=c
8863 ac_cpp='$CPP $CPPFLAGS'
8864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8868 if test x$gcc_no_link = xyes; then
8869 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8875 main ()
8879 return 0;
8881 _ACEOF
8882 if ac_fn_c_try_link "$LINENO"; then :
8883 lt_cv_cc_needs_belf=yes
8884 else
8885 lt_cv_cc_needs_belf=no
8887 rm -f core conftest.err conftest.$ac_objext \
8888 conftest$ac_exeext conftest.$ac_ext
8889 ac_ext=c
8890 ac_cpp='$CPP $CPPFLAGS'
8891 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8892 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8893 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8897 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8898 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8899 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8900 CFLAGS="$SAVE_CFLAGS"
8903 sparc*-*solaris*)
8904 # Find out which ABI we are using.
8905 echo 'int i;' > conftest.$ac_ext
8906 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8907 (eval $ac_compile) 2>&5
8908 ac_status=$?
8909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8910 test $ac_status = 0; }; then
8911 case `/usr/bin/file conftest.o` in
8912 *64-bit*)
8913 case $lt_cv_prog_gnu_ld in
8914 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8916 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8917 LD="${LD-ld} -64"
8920 esac
8922 esac
8924 rm -rf conftest*
8926 esac
8928 need_locks="$enable_libtool_lock"
8931 case $host_os in
8932 rhapsody* | darwin*)
8933 if test -n "$ac_tool_prefix"; then
8934 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8935 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8937 $as_echo_n "checking for $ac_word... " >&6; }
8938 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8939 $as_echo_n "(cached) " >&6
8940 else
8941 if test -n "$DSYMUTIL"; then
8942 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8943 else
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8951 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8955 done
8956 done
8957 IFS=$as_save_IFS
8961 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8962 if test -n "$DSYMUTIL"; then
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8964 $as_echo "$DSYMUTIL" >&6; }
8965 else
8966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8967 $as_echo "no" >&6; }
8972 if test -z "$ac_cv_prog_DSYMUTIL"; then
8973 ac_ct_DSYMUTIL=$DSYMUTIL
8974 # Extract the first word of "dsymutil", so it can be a program name with args.
8975 set dummy dsymutil; ac_word=$2
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8977 $as_echo_n "checking for $ac_word... " >&6; }
8978 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8979 $as_echo_n "(cached) " >&6
8980 else
8981 if test -n "$ac_ct_DSYMUTIL"; then
8982 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8983 else
8984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8985 for as_dir in $PATH
8987 IFS=$as_save_IFS
8988 test -z "$as_dir" && as_dir=.
8989 for ac_exec_ext in '' $ac_executable_extensions; do
8990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8991 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8993 break 2
8995 done
8996 done
8997 IFS=$as_save_IFS
9001 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9002 if test -n "$ac_ct_DSYMUTIL"; then
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9004 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9005 else
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9007 $as_echo "no" >&6; }
9010 if test "x$ac_ct_DSYMUTIL" = x; then
9011 DSYMUTIL=":"
9012 else
9013 case $cross_compiling:$ac_tool_warned in
9014 yes:)
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9016 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9017 ac_tool_warned=yes ;;
9018 esac
9019 DSYMUTIL=$ac_ct_DSYMUTIL
9021 else
9022 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9025 if test -n "$ac_tool_prefix"; then
9026 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9027 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9029 $as_echo_n "checking for $ac_word... " >&6; }
9030 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9031 $as_echo_n "(cached) " >&6
9032 else
9033 if test -n "$NMEDIT"; then
9034 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9035 else
9036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9037 for as_dir in $PATH
9039 IFS=$as_save_IFS
9040 test -z "$as_dir" && as_dir=.
9041 for ac_exec_ext in '' $ac_executable_extensions; do
9042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9043 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9045 break 2
9047 done
9048 done
9049 IFS=$as_save_IFS
9053 NMEDIT=$ac_cv_prog_NMEDIT
9054 if test -n "$NMEDIT"; then
9055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9056 $as_echo "$NMEDIT" >&6; }
9057 else
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9059 $as_echo "no" >&6; }
9064 if test -z "$ac_cv_prog_NMEDIT"; then
9065 ac_ct_NMEDIT=$NMEDIT
9066 # Extract the first word of "nmedit", so it can be a program name with args.
9067 set dummy nmedit; ac_word=$2
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9069 $as_echo_n "checking for $ac_word... " >&6; }
9070 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9071 $as_echo_n "(cached) " >&6
9072 else
9073 if test -n "$ac_ct_NMEDIT"; then
9074 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9075 else
9076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9077 for as_dir in $PATH
9079 IFS=$as_save_IFS
9080 test -z "$as_dir" && as_dir=.
9081 for ac_exec_ext in '' $ac_executable_extensions; do
9082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9083 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9085 break 2
9087 done
9088 done
9089 IFS=$as_save_IFS
9093 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9094 if test -n "$ac_ct_NMEDIT"; then
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9096 $as_echo "$ac_ct_NMEDIT" >&6; }
9097 else
9098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9099 $as_echo "no" >&6; }
9102 if test "x$ac_ct_NMEDIT" = x; then
9103 NMEDIT=":"
9104 else
9105 case $cross_compiling:$ac_tool_warned in
9106 yes:)
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9109 ac_tool_warned=yes ;;
9110 esac
9111 NMEDIT=$ac_ct_NMEDIT
9113 else
9114 NMEDIT="$ac_cv_prog_NMEDIT"
9117 if test -n "$ac_tool_prefix"; then
9118 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9119 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9121 $as_echo_n "checking for $ac_word... " >&6; }
9122 if test "${ac_cv_prog_LIPO+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125 if test -n "$LIPO"; then
9126 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9127 else
9128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9129 for as_dir in $PATH
9131 IFS=$as_save_IFS
9132 test -z "$as_dir" && as_dir=.
9133 for ac_exec_ext in '' $ac_executable_extensions; do
9134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9135 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9137 break 2
9139 done
9140 done
9141 IFS=$as_save_IFS
9145 LIPO=$ac_cv_prog_LIPO
9146 if test -n "$LIPO"; then
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9148 $as_echo "$LIPO" >&6; }
9149 else
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9151 $as_echo "no" >&6; }
9156 if test -z "$ac_cv_prog_LIPO"; then
9157 ac_ct_LIPO=$LIPO
9158 # Extract the first word of "lipo", so it can be a program name with args.
9159 set dummy lipo; ac_word=$2
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9161 $as_echo_n "checking for $ac_word... " >&6; }
9162 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9163 $as_echo_n "(cached) " >&6
9164 else
9165 if test -n "$ac_ct_LIPO"; then
9166 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9167 else
9168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9169 for as_dir in $PATH
9171 IFS=$as_save_IFS
9172 test -z "$as_dir" && as_dir=.
9173 for ac_exec_ext in '' $ac_executable_extensions; do
9174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9175 ac_cv_prog_ac_ct_LIPO="lipo"
9176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9177 break 2
9179 done
9180 done
9181 IFS=$as_save_IFS
9185 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9186 if test -n "$ac_ct_LIPO"; then
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9188 $as_echo "$ac_ct_LIPO" >&6; }
9189 else
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9191 $as_echo "no" >&6; }
9194 if test "x$ac_ct_LIPO" = x; then
9195 LIPO=":"
9196 else
9197 case $cross_compiling:$ac_tool_warned in
9198 yes:)
9199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9201 ac_tool_warned=yes ;;
9202 esac
9203 LIPO=$ac_ct_LIPO
9205 else
9206 LIPO="$ac_cv_prog_LIPO"
9209 if test -n "$ac_tool_prefix"; then
9210 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9211 set dummy ${ac_tool_prefix}otool; ac_word=$2
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9213 $as_echo_n "checking for $ac_word... " >&6; }
9214 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9215 $as_echo_n "(cached) " >&6
9216 else
9217 if test -n "$OTOOL"; then
9218 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9219 else
9220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9221 for as_dir in $PATH
9223 IFS=$as_save_IFS
9224 test -z "$as_dir" && as_dir=.
9225 for ac_exec_ext in '' $ac_executable_extensions; do
9226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9227 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9229 break 2
9231 done
9232 done
9233 IFS=$as_save_IFS
9237 OTOOL=$ac_cv_prog_OTOOL
9238 if test -n "$OTOOL"; then
9239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9240 $as_echo "$OTOOL" >&6; }
9241 else
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9243 $as_echo "no" >&6; }
9248 if test -z "$ac_cv_prog_OTOOL"; then
9249 ac_ct_OTOOL=$OTOOL
9250 # Extract the first word of "otool", so it can be a program name with args.
9251 set dummy otool; ac_word=$2
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9253 $as_echo_n "checking for $ac_word... " >&6; }
9254 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9255 $as_echo_n "(cached) " >&6
9256 else
9257 if test -n "$ac_ct_OTOOL"; then
9258 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9259 else
9260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9261 for as_dir in $PATH
9263 IFS=$as_save_IFS
9264 test -z "$as_dir" && as_dir=.
9265 for ac_exec_ext in '' $ac_executable_extensions; do
9266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9267 ac_cv_prog_ac_ct_OTOOL="otool"
9268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9269 break 2
9271 done
9272 done
9273 IFS=$as_save_IFS
9277 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9278 if test -n "$ac_ct_OTOOL"; then
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9280 $as_echo "$ac_ct_OTOOL" >&6; }
9281 else
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283 $as_echo "no" >&6; }
9286 if test "x$ac_ct_OTOOL" = x; then
9287 OTOOL=":"
9288 else
9289 case $cross_compiling:$ac_tool_warned in
9290 yes:)
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9293 ac_tool_warned=yes ;;
9294 esac
9295 OTOOL=$ac_ct_OTOOL
9297 else
9298 OTOOL="$ac_cv_prog_OTOOL"
9301 if test -n "$ac_tool_prefix"; then
9302 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9303 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9305 $as_echo_n "checking for $ac_word... " >&6; }
9306 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9307 $as_echo_n "(cached) " >&6
9308 else
9309 if test -n "$OTOOL64"; then
9310 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9311 else
9312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9313 for as_dir in $PATH
9315 IFS=$as_save_IFS
9316 test -z "$as_dir" && as_dir=.
9317 for ac_exec_ext in '' $ac_executable_extensions; do
9318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9319 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9321 break 2
9323 done
9324 done
9325 IFS=$as_save_IFS
9329 OTOOL64=$ac_cv_prog_OTOOL64
9330 if test -n "$OTOOL64"; then
9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9332 $as_echo "$OTOOL64" >&6; }
9333 else
9334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9335 $as_echo "no" >&6; }
9340 if test -z "$ac_cv_prog_OTOOL64"; then
9341 ac_ct_OTOOL64=$OTOOL64
9342 # Extract the first word of "otool64", so it can be a program name with args.
9343 set dummy otool64; ac_word=$2
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9345 $as_echo_n "checking for $ac_word... " >&6; }
9346 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9347 $as_echo_n "(cached) " >&6
9348 else
9349 if test -n "$ac_ct_OTOOL64"; then
9350 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9351 else
9352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9353 for as_dir in $PATH
9355 IFS=$as_save_IFS
9356 test -z "$as_dir" && as_dir=.
9357 for ac_exec_ext in '' $ac_executable_extensions; do
9358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9359 ac_cv_prog_ac_ct_OTOOL64="otool64"
9360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9361 break 2
9363 done
9364 done
9365 IFS=$as_save_IFS
9369 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9370 if test -n "$ac_ct_OTOOL64"; then
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9372 $as_echo "$ac_ct_OTOOL64" >&6; }
9373 else
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9375 $as_echo "no" >&6; }
9378 if test "x$ac_ct_OTOOL64" = x; then
9379 OTOOL64=":"
9380 else
9381 case $cross_compiling:$ac_tool_warned in
9382 yes:)
9383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9385 ac_tool_warned=yes ;;
9386 esac
9387 OTOOL64=$ac_ct_OTOOL64
9389 else
9390 OTOOL64="$ac_cv_prog_OTOOL64"
9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9420 $as_echo_n "checking for -single_module linker flag... " >&6; }
9421 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9422 $as_echo_n "(cached) " >&6
9423 else
9424 lt_cv_apple_cc_single_mod=no
9425 if test -z "${LT_MULTI_MODULE}"; then
9426 # By default we will add the -single_module flag. You can override
9427 # by either setting the environment variable LT_MULTI_MODULE
9428 # non-empty at configure time, or by adding -multi_module to the
9429 # link flags.
9430 rm -rf libconftest.dylib*
9431 echo "int foo(void){return 1;}" > conftest.c
9432 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9433 -dynamiclib -Wl,-single_module conftest.c" >&5
9434 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9435 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9436 _lt_result=$?
9437 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9438 lt_cv_apple_cc_single_mod=yes
9439 else
9440 cat conftest.err >&5
9442 rm -rf libconftest.dylib*
9443 rm -f conftest.*
9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9447 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9449 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9450 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9451 $as_echo_n "(cached) " >&6
9452 else
9453 lt_cv_ld_exported_symbols_list=no
9454 save_LDFLAGS=$LDFLAGS
9455 echo "_main" > conftest.sym
9456 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9457 if test x$gcc_no_link = xyes; then
9458 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* end confdefs.h. */
9464 main ()
9468 return 0;
9470 _ACEOF
9471 if ac_fn_c_try_link "$LINENO"; then :
9472 lt_cv_ld_exported_symbols_list=yes
9473 else
9474 lt_cv_ld_exported_symbols_list=no
9476 rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9478 LDFLAGS="$save_LDFLAGS"
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9482 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9484 $as_echo_n "checking for -force_load linker flag... " >&6; }
9485 if test "${lt_cv_ld_force_load+set}" = set; then :
9486 $as_echo_n "(cached) " >&6
9487 else
9488 lt_cv_ld_force_load=no
9489 cat > conftest.c << _LT_EOF
9490 int forced_loaded() { return 2;}
9491 _LT_EOF
9492 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9493 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9494 echo "$AR cru libconftest.a conftest.o" >&5
9495 $AR cru libconftest.a conftest.o 2>&5
9496 cat > conftest.c << _LT_EOF
9497 int main() { return 0;}
9498 _LT_EOF
9499 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9500 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9501 _lt_result=$?
9502 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9503 lt_cv_ld_force_load=yes
9504 else
9505 cat conftest.err >&5
9507 rm -f conftest.err libconftest.a conftest conftest.c
9508 rm -rf conftest.dSYM
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9512 $as_echo "$lt_cv_ld_force_load" >&6; }
9513 case $host_os in
9514 rhapsody* | darwin1.[012])
9515 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9516 darwin1.*)
9517 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9518 darwin*) # darwin 5.x on
9519 # if running on 10.5 or later, the deployment target defaults
9520 # to the OS version, if on x86, and 10.4, the deployment
9521 # target defaults to 10.4. Don't you love it?
9522 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9523 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9524 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9525 10.[012]*)
9526 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9527 10.*)
9528 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9529 esac
9531 esac
9532 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9533 _lt_dar_single_mod='$single_module'
9535 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9536 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9537 else
9538 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9540 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9541 _lt_dsymutil='~$DSYMUTIL $lib || :'
9542 else
9543 _lt_dsymutil=
9546 esac
9548 ac_ext=c
9549 ac_cpp='$CPP $CPPFLAGS'
9550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9554 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9555 # On Suns, sometimes $CPP names a directory.
9556 if test -n "$CPP" && test -d "$CPP"; then
9557 CPP=
9559 if test -z "$CPP"; then
9560 if test "${ac_cv_prog_CPP+set}" = set; then :
9561 $as_echo_n "(cached) " >&6
9562 else
9563 # Double quotes because CPP needs to be expanded
9564 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9566 ac_preproc_ok=false
9567 for ac_c_preproc_warn_flag in '' yes
9569 # Use a header file that comes with gcc, so configuring glibc
9570 # with a fresh cross-compiler works.
9571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9572 # <limits.h> exists even on freestanding compilers.
9573 # On the NeXT, cc -E runs the code through the compiler's parser,
9574 # not just through cpp. "Syntax error" is here to catch this case.
9575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9576 /* end confdefs.h. */
9577 #ifdef __STDC__
9578 # include <limits.h>
9579 #else
9580 # include <assert.h>
9581 #endif
9582 Syntax error
9583 _ACEOF
9584 if ac_fn_c_try_cpp "$LINENO"; then :
9586 else
9587 # Broken: fails on valid input.
9588 continue
9590 rm -f conftest.err conftest.$ac_ext
9592 # OK, works on sane cases. Now check whether nonexistent headers
9593 # can be detected and how.
9594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9595 /* end confdefs.h. */
9596 #include <ac_nonexistent.h>
9597 _ACEOF
9598 if ac_fn_c_try_cpp "$LINENO"; then :
9599 # Broken: success on invalid input.
9600 continue
9601 else
9602 # Passes both tests.
9603 ac_preproc_ok=:
9604 break
9606 rm -f conftest.err conftest.$ac_ext
9608 done
9609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9610 rm -f conftest.err conftest.$ac_ext
9611 if $ac_preproc_ok; then :
9612 break
9615 done
9616 ac_cv_prog_CPP=$CPP
9619 CPP=$ac_cv_prog_CPP
9620 else
9621 ac_cv_prog_CPP=$CPP
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9624 $as_echo "$CPP" >&6; }
9625 ac_preproc_ok=false
9626 for ac_c_preproc_warn_flag in '' yes
9628 # Use a header file that comes with gcc, so configuring glibc
9629 # with a fresh cross-compiler works.
9630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9631 # <limits.h> exists even on freestanding compilers.
9632 # On the NeXT, cc -E runs the code through the compiler's parser,
9633 # not just through cpp. "Syntax error" is here to catch this case.
9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9635 /* end confdefs.h. */
9636 #ifdef __STDC__
9637 # include <limits.h>
9638 #else
9639 # include <assert.h>
9640 #endif
9641 Syntax error
9642 _ACEOF
9643 if ac_fn_c_try_cpp "$LINENO"; then :
9645 else
9646 # Broken: fails on valid input.
9647 continue
9649 rm -f conftest.err conftest.$ac_ext
9651 # OK, works on sane cases. Now check whether nonexistent headers
9652 # can be detected and how.
9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9654 /* end confdefs.h. */
9655 #include <ac_nonexistent.h>
9656 _ACEOF
9657 if ac_fn_c_try_cpp "$LINENO"; then :
9658 # Broken: success on invalid input.
9659 continue
9660 else
9661 # Passes both tests.
9662 ac_preproc_ok=:
9663 break
9665 rm -f conftest.err conftest.$ac_ext
9667 done
9668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9669 rm -f conftest.err conftest.$ac_ext
9670 if $ac_preproc_ok; then :
9672 else
9673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9674 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9675 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9676 See \`config.log' for more details." "$LINENO" 5; }
9679 ac_ext=c
9680 ac_cpp='$CPP $CPPFLAGS'
9681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9687 $as_echo_n "checking for ANSI C header files... " >&6; }
9688 if test "${ac_cv_header_stdc+set}" = set; then :
9689 $as_echo_n "(cached) " >&6
9690 else
9691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9692 /* end confdefs.h. */
9693 #include <stdlib.h>
9694 #include <stdarg.h>
9695 #include <string.h>
9696 #include <float.h>
9699 main ()
9703 return 0;
9705 _ACEOF
9706 if ac_fn_c_try_compile "$LINENO"; then :
9707 ac_cv_header_stdc=yes
9708 else
9709 ac_cv_header_stdc=no
9711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9713 if test $ac_cv_header_stdc = yes; then
9714 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716 /* end confdefs.h. */
9717 #include <string.h>
9719 _ACEOF
9720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9721 $EGREP "memchr" >/dev/null 2>&1; then :
9723 else
9724 ac_cv_header_stdc=no
9726 rm -f conftest*
9730 if test $ac_cv_header_stdc = yes; then
9731 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9734 #include <stdlib.h>
9736 _ACEOF
9737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9738 $EGREP "free" >/dev/null 2>&1; then :
9740 else
9741 ac_cv_header_stdc=no
9743 rm -f conftest*
9747 if test $ac_cv_header_stdc = yes; then
9748 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9749 if test "$cross_compiling" = yes; then :
9751 else
9752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9753 /* end confdefs.h. */
9754 #include <ctype.h>
9755 #include <stdlib.h>
9756 #if ((' ' & 0x0FF) == 0x020)
9757 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9758 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9759 #else
9760 # define ISLOWER(c) \
9761 (('a' <= (c) && (c) <= 'i') \
9762 || ('j' <= (c) && (c) <= 'r') \
9763 || ('s' <= (c) && (c) <= 'z'))
9764 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9765 #endif
9767 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9769 main ()
9771 int i;
9772 for (i = 0; i < 256; i++)
9773 if (XOR (islower (i), ISLOWER (i))
9774 || toupper (i) != TOUPPER (i))
9775 return 2;
9776 return 0;
9778 _ACEOF
9779 if ac_fn_c_try_run "$LINENO"; then :
9781 else
9782 ac_cv_header_stdc=no
9784 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9785 conftest.$ac_objext conftest.beam conftest.$ac_ext
9790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9791 $as_echo "$ac_cv_header_stdc" >&6; }
9792 if test $ac_cv_header_stdc = yes; then
9794 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9798 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9799 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9800 inttypes.h stdint.h unistd.h
9801 do :
9802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9803 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9805 eval as_val=\$$as_ac_Header
9806 if test "x$as_val" = x""yes; then :
9807 cat >>confdefs.h <<_ACEOF
9808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9809 _ACEOF
9813 done
9816 for ac_header in dlfcn.h
9817 do :
9818 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9820 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9821 cat >>confdefs.h <<_ACEOF
9822 #define HAVE_DLFCN_H 1
9823 _ACEOF
9827 done
9834 # Set options
9839 enable_win32_dll=no
9842 # Check whether --enable-shared was given.
9843 if test "${enable_shared+set}" = set; then :
9844 enableval=$enable_shared; p=${PACKAGE-default}
9845 case $enableval in
9846 yes) enable_shared=yes ;;
9847 no) enable_shared=no ;;
9849 enable_shared=no
9850 # Look at the argument we got. We use all the common list separators.
9851 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9852 for pkg in $enableval; do
9853 IFS="$lt_save_ifs"
9854 if test "X$pkg" = "X$p"; then
9855 enable_shared=yes
9857 done
9858 IFS="$lt_save_ifs"
9860 esac
9861 else
9862 enable_shared=yes
9873 # Check whether --enable-static was given.
9874 if test "${enable_static+set}" = set; then :
9875 enableval=$enable_static; p=${PACKAGE-default}
9876 case $enableval in
9877 yes) enable_static=yes ;;
9878 no) enable_static=no ;;
9880 enable_static=no
9881 # Look at the argument we got. We use all the common list separators.
9882 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9883 for pkg in $enableval; do
9884 IFS="$lt_save_ifs"
9885 if test "X$pkg" = "X$p"; then
9886 enable_static=yes
9888 done
9889 IFS="$lt_save_ifs"
9891 esac
9892 else
9893 enable_static=yes
9905 # Check whether --with-pic was given.
9906 if test "${with_pic+set}" = set; then :
9907 withval=$with_pic; pic_mode="$withval"
9908 else
9909 pic_mode=default
9913 test -z "$pic_mode" && pic_mode=default
9921 # Check whether --enable-fast-install was given.
9922 if test "${enable_fast_install+set}" = set; then :
9923 enableval=$enable_fast_install; p=${PACKAGE-default}
9924 case $enableval in
9925 yes) enable_fast_install=yes ;;
9926 no) enable_fast_install=no ;;
9928 enable_fast_install=no
9929 # Look at the argument we got. We use all the common list separators.
9930 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9931 for pkg in $enableval; do
9932 IFS="$lt_save_ifs"
9933 if test "X$pkg" = "X$p"; then
9934 enable_fast_install=yes
9936 done
9937 IFS="$lt_save_ifs"
9939 esac
9940 else
9941 enable_fast_install=yes
9954 # This can be used to rebuild libtool when needed
9955 LIBTOOL_DEPS="$ltmain"
9957 # Always use our own libtool.
9958 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9985 test -z "$LN_S" && LN_S="ln -s"
10000 if test -n "${ZSH_VERSION+set}" ; then
10001 setopt NO_GLOB_SUBST
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10005 $as_echo_n "checking for objdir... " >&6; }
10006 if test "${lt_cv_objdir+set}" = set; then :
10007 $as_echo_n "(cached) " >&6
10008 else
10009 rm -f .libs 2>/dev/null
10010 mkdir .libs 2>/dev/null
10011 if test -d .libs; then
10012 lt_cv_objdir=.libs
10013 else
10014 # MS-DOS does not allow filenames that begin with a dot.
10015 lt_cv_objdir=_libs
10017 rmdir .libs 2>/dev/null
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10020 $as_echo "$lt_cv_objdir" >&6; }
10021 objdir=$lt_cv_objdir
10027 cat >>confdefs.h <<_ACEOF
10028 #define LT_OBJDIR "$lt_cv_objdir/"
10029 _ACEOF
10034 case $host_os in
10035 aix3*)
10036 # AIX sometimes has problems with the GCC collect2 program. For some
10037 # reason, if we set the COLLECT_NAMES environment variable, the problems
10038 # vanish in a puff of smoke.
10039 if test "X${COLLECT_NAMES+set}" != Xset; then
10040 COLLECT_NAMES=
10041 export COLLECT_NAMES
10044 esac
10046 # Global variables:
10047 ofile=libtool
10048 can_build_shared=yes
10050 # All known linkers require a `.a' archive for static linking (except MSVC,
10051 # which needs '.lib').
10052 libext=a
10054 with_gnu_ld="$lt_cv_prog_gnu_ld"
10056 old_CC="$CC"
10057 old_CFLAGS="$CFLAGS"
10059 # Set sane defaults for various variables
10060 test -z "$CC" && CC=cc
10061 test -z "$LTCC" && LTCC=$CC
10062 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10063 test -z "$LD" && LD=ld
10064 test -z "$ac_objext" && ac_objext=o
10066 for cc_temp in $compiler""; do
10067 case $cc_temp in
10068 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10069 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10070 \-*) ;;
10071 *) break;;
10072 esac
10073 done
10074 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10077 # Only perform the check for file, if the check method requires it
10078 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10079 case $deplibs_check_method in
10080 file_magic*)
10081 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10083 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10084 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10085 $as_echo_n "(cached) " >&6
10086 else
10087 case $MAGIC_CMD in
10088 [\\/*] | ?:[\\/]*)
10089 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10092 lt_save_MAGIC_CMD="$MAGIC_CMD"
10093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10094 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10095 for ac_dir in $ac_dummy; do
10096 IFS="$lt_save_ifs"
10097 test -z "$ac_dir" && ac_dir=.
10098 if test -f $ac_dir/${ac_tool_prefix}file; then
10099 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10100 if test -n "$file_magic_test_file"; then
10101 case $deplibs_check_method in
10102 "file_magic "*)
10103 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10106 $EGREP "$file_magic_regex" > /dev/null; then
10108 else
10109 cat <<_LT_EOF 1>&2
10111 *** Warning: the command libtool uses to detect shared libraries,
10112 *** $file_magic_cmd, produces output that libtool cannot recognize.
10113 *** The result is that libtool may fail to recognize shared libraries
10114 *** as such. This will affect the creation of libtool libraries that
10115 *** depend on shared libraries, but programs linked with such libtool
10116 *** libraries will work regardless of this problem. Nevertheless, you
10117 *** may want to report the problem to your system manager and/or to
10118 *** bug-libtool@gnu.org
10120 _LT_EOF
10121 fi ;;
10122 esac
10124 break
10126 done
10127 IFS="$lt_save_ifs"
10128 MAGIC_CMD="$lt_save_MAGIC_CMD"
10130 esac
10133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10134 if test -n "$MAGIC_CMD"; then
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10136 $as_echo "$MAGIC_CMD" >&6; }
10137 else
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10139 $as_echo "no" >&6; }
10146 if test -z "$lt_cv_path_MAGIC_CMD"; then
10147 if test -n "$ac_tool_prefix"; then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10149 $as_echo_n "checking for file... " >&6; }
10150 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10151 $as_echo_n "(cached) " >&6
10152 else
10153 case $MAGIC_CMD in
10154 [\\/*] | ?:[\\/]*)
10155 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10158 lt_save_MAGIC_CMD="$MAGIC_CMD"
10159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10160 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10161 for ac_dir in $ac_dummy; do
10162 IFS="$lt_save_ifs"
10163 test -z "$ac_dir" && ac_dir=.
10164 if test -f $ac_dir/file; then
10165 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10166 if test -n "$file_magic_test_file"; then
10167 case $deplibs_check_method in
10168 "file_magic "*)
10169 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10171 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10172 $EGREP "$file_magic_regex" > /dev/null; then
10174 else
10175 cat <<_LT_EOF 1>&2
10177 *** Warning: the command libtool uses to detect shared libraries,
10178 *** $file_magic_cmd, produces output that libtool cannot recognize.
10179 *** The result is that libtool may fail to recognize shared libraries
10180 *** as such. This will affect the creation of libtool libraries that
10181 *** depend on shared libraries, but programs linked with such libtool
10182 *** libraries will work regardless of this problem. Nevertheless, you
10183 *** may want to report the problem to your system manager and/or to
10184 *** bug-libtool@gnu.org
10186 _LT_EOF
10187 fi ;;
10188 esac
10190 break
10192 done
10193 IFS="$lt_save_ifs"
10194 MAGIC_CMD="$lt_save_MAGIC_CMD"
10196 esac
10199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10200 if test -n "$MAGIC_CMD"; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10202 $as_echo "$MAGIC_CMD" >&6; }
10203 else
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10205 $as_echo "no" >&6; }
10209 else
10210 MAGIC_CMD=:
10216 esac
10218 # Use C for the default configuration in the libtool script
10220 lt_save_CC="$CC"
10221 ac_ext=c
10222 ac_cpp='$CPP $CPPFLAGS'
10223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10228 # Source file extension for C test sources.
10229 ac_ext=c
10231 # Object file extension for compiled C test sources.
10232 objext=o
10233 objext=$objext
10235 # Code to be used in simple compile tests
10236 lt_simple_compile_test_code="int some_variable = 0;"
10238 # Code to be used in simple link tests
10239 lt_simple_link_test_code='int main(){return(0);}'
10247 # If no C compiler was specified, use CC.
10248 LTCC=${LTCC-"$CC"}
10250 # If no C compiler flags were specified, use CFLAGS.
10251 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10253 # Allow CC to be a program name with arguments.
10254 compiler=$CC
10256 # Save the default compiler, since it gets overwritten when the other
10257 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10258 compiler_DEFAULT=$CC
10260 # save warnings/boilerplate of simple test code
10261 ac_outfile=conftest.$ac_objext
10262 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10263 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10264 _lt_compiler_boilerplate=`cat conftest.err`
10265 $RM conftest*
10267 ac_outfile=conftest.$ac_objext
10268 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10269 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10270 _lt_linker_boilerplate=`cat conftest.err`
10271 $RM -r conftest*
10274 ## CAVEAT EMPTOR:
10275 ## There is no encapsulation within the following macros, do not change
10276 ## the running order or otherwise move them around unless you know exactly
10277 ## what you are doing...
10278 if test -n "$compiler"; then
10280 lt_prog_compiler_no_builtin_flag=
10282 if test "$GCC" = yes; then
10283 case $cc_basename in
10284 nvcc*)
10285 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10287 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10288 esac
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10291 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10292 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10293 $as_echo_n "(cached) " >&6
10294 else
10295 lt_cv_prog_compiler_rtti_exceptions=no
10296 ac_outfile=conftest.$ac_objext
10297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10298 lt_compiler_flag="-fno-rtti -fno-exceptions"
10299 # Insert the option either (1) after the last *FLAGS variable, or
10300 # (2) before a word containing "conftest.", or (3) at the end.
10301 # Note that $ac_compile itself does not contain backslashes and begins
10302 # with a dollar sign (not a hyphen), so the echo should work correctly.
10303 # The option is referenced via a variable to avoid confusing sed.
10304 lt_compile=`echo "$ac_compile" | $SED \
10305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10307 -e 's:$: $lt_compiler_flag:'`
10308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10309 (eval "$lt_compile" 2>conftest.err)
10310 ac_status=$?
10311 cat conftest.err >&5
10312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10313 if (exit $ac_status) && test -s "$ac_outfile"; then
10314 # The compiler can only warn and ignore the option if not recognized
10315 # So say no if there are warnings other than the usual output.
10316 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10318 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10319 lt_cv_prog_compiler_rtti_exceptions=yes
10322 $RM conftest*
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10326 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10328 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10329 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10330 else
10341 lt_prog_compiler_wl=
10342 lt_prog_compiler_pic=
10343 lt_prog_compiler_static=
10345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10346 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10348 if test "$GCC" = yes; then
10349 lt_prog_compiler_wl='-Wl,'
10350 lt_prog_compiler_static='-static'
10352 case $host_os in
10353 aix*)
10354 # All AIX code is PIC.
10355 if test "$host_cpu" = ia64; then
10356 # AIX 5 now supports IA64 processor
10357 lt_prog_compiler_static='-Bstatic'
10361 amigaos*)
10362 case $host_cpu in
10363 powerpc)
10364 # see comment about AmigaOS4 .so support
10365 lt_prog_compiler_pic='-fPIC'
10367 m68k)
10368 # FIXME: we need at least 68020 code to build shared libraries, but
10369 # adding the `-m68020' flag to GCC prevents building anything better,
10370 # like `-m68040'.
10371 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10373 esac
10376 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10377 # PIC is the default for these OSes.
10380 mingw* | cygwin* | pw32* | os2* | cegcc*)
10381 # This hack is so that the source file can tell whether it is being
10382 # built for inclusion in a dll (and should export symbols for example).
10383 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10384 # (--disable-auto-import) libraries
10385 lt_prog_compiler_pic='-DDLL_EXPORT'
10388 darwin* | rhapsody*)
10389 # PIC is the default on this platform
10390 # Common symbols not allowed in MH_DYLIB files
10391 lt_prog_compiler_pic='-fno-common'
10394 haiku*)
10395 # PIC is the default for Haiku.
10396 # The "-static" flag exists, but is broken.
10397 lt_prog_compiler_static=
10400 hpux*)
10401 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10402 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10403 # sets the default TLS model and affects inlining.
10404 case $host_cpu in
10405 hppa*64*)
10406 # +Z the default
10409 lt_prog_compiler_pic='-fPIC'
10411 esac
10414 interix[3-9]*)
10415 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10416 # Instead, we relocate shared libraries at runtime.
10419 msdosdjgpp*)
10420 # Just because we use GCC doesn't mean we suddenly get shared libraries
10421 # on systems that don't support them.
10422 lt_prog_compiler_can_build_shared=no
10423 enable_shared=no
10426 *nto* | *qnx*)
10427 # QNX uses GNU C++, but need to define -shared option too, otherwise
10428 # it will coredump.
10429 lt_prog_compiler_pic='-fPIC -shared'
10432 sysv4*MP*)
10433 if test -d /usr/nec; then
10434 lt_prog_compiler_pic=-Kconform_pic
10439 lt_prog_compiler_pic='-fPIC'
10441 esac
10443 case $cc_basename in
10444 nvcc*) # Cuda Compiler Driver 2.2
10445 lt_prog_compiler_wl='-Xlinker '
10446 lt_prog_compiler_pic='-Xcompiler -fPIC'
10448 esac
10449 else
10450 # PORTME Check for flag to pass linker flags through the system compiler.
10451 case $host_os in
10452 aix*)
10453 lt_prog_compiler_wl='-Wl,'
10454 if test "$host_cpu" = ia64; then
10455 # AIX 5 now supports IA64 processor
10456 lt_prog_compiler_static='-Bstatic'
10457 else
10458 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10462 mingw* | cygwin* | pw32* | os2* | cegcc*)
10463 # This hack is so that the source file can tell whether it is being
10464 # built for inclusion in a dll (and should export symbols for example).
10465 lt_prog_compiler_pic='-DDLL_EXPORT'
10468 hpux9* | hpux10* | hpux11*)
10469 lt_prog_compiler_wl='-Wl,'
10470 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10471 # not for PA HP-UX.
10472 case $host_cpu in
10473 hppa*64*|ia64*)
10474 # +Z the default
10477 lt_prog_compiler_pic='+Z'
10479 esac
10480 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10481 lt_prog_compiler_static='${wl}-a ${wl}archive'
10484 irix5* | irix6* | nonstopux*)
10485 lt_prog_compiler_wl='-Wl,'
10486 # PIC (with -KPIC) is the default.
10487 lt_prog_compiler_static='-non_shared'
10490 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10491 case $cc_basename in
10492 # old Intel for x86_64 which still supported -KPIC.
10493 ecc*)
10494 lt_prog_compiler_wl='-Wl,'
10495 lt_prog_compiler_pic='-KPIC'
10496 lt_prog_compiler_static='-static'
10498 # icc used to be incompatible with GCC.
10499 # ICC 10 doesn't accept -KPIC any more.
10500 icc* | ifort*)
10501 lt_prog_compiler_wl='-Wl,'
10502 lt_prog_compiler_pic='-fPIC'
10503 lt_prog_compiler_static='-static'
10505 # Lahey Fortran 8.1.
10506 lf95*)
10507 lt_prog_compiler_wl='-Wl,'
10508 lt_prog_compiler_pic='--shared'
10509 lt_prog_compiler_static='--static'
10511 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10512 # Portland Group compilers (*not* the Pentium gcc compiler,
10513 # which looks to be a dead project)
10514 lt_prog_compiler_wl='-Wl,'
10515 lt_prog_compiler_pic='-fpic'
10516 lt_prog_compiler_static='-Bstatic'
10518 ccc*)
10519 lt_prog_compiler_wl='-Wl,'
10520 # All Alpha code is PIC.
10521 lt_prog_compiler_static='-non_shared'
10523 xl* | bgxl* | bgf* | mpixl*)
10524 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10525 lt_prog_compiler_wl='-Wl,'
10526 lt_prog_compiler_pic='-qpic'
10527 lt_prog_compiler_static='-qstaticlink'
10530 case `$CC -V 2>&1 | sed 5q` in
10531 *Sun\ F* | *Sun*Fortran*)
10532 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10533 lt_prog_compiler_pic='-KPIC'
10534 lt_prog_compiler_static='-Bstatic'
10535 lt_prog_compiler_wl=''
10537 *Sun\ C*)
10538 # Sun C 5.9
10539 lt_prog_compiler_pic='-KPIC'
10540 lt_prog_compiler_static='-Bstatic'
10541 lt_prog_compiler_wl='-Wl,'
10543 esac
10545 esac
10548 newsos6)
10549 lt_prog_compiler_pic='-KPIC'
10550 lt_prog_compiler_static='-Bstatic'
10553 *nto* | *qnx*)
10554 # QNX uses GNU C++, but need to define -shared option too, otherwise
10555 # it will coredump.
10556 lt_prog_compiler_pic='-fPIC -shared'
10559 osf3* | osf4* | osf5*)
10560 lt_prog_compiler_wl='-Wl,'
10561 # All OSF/1 code is PIC.
10562 lt_prog_compiler_static='-non_shared'
10565 rdos*)
10566 lt_prog_compiler_static='-non_shared'
10569 solaris*)
10570 lt_prog_compiler_pic='-KPIC'
10571 lt_prog_compiler_static='-Bstatic'
10572 case $cc_basename in
10573 f77* | f90* | f95*)
10574 lt_prog_compiler_wl='-Qoption ld ';;
10576 lt_prog_compiler_wl='-Wl,';;
10577 esac
10580 sunos4*)
10581 lt_prog_compiler_wl='-Qoption ld '
10582 lt_prog_compiler_pic='-PIC'
10583 lt_prog_compiler_static='-Bstatic'
10586 sysv4 | sysv4.2uw2* | sysv4.3*)
10587 lt_prog_compiler_wl='-Wl,'
10588 lt_prog_compiler_pic='-KPIC'
10589 lt_prog_compiler_static='-Bstatic'
10592 sysv4*MP*)
10593 if test -d /usr/nec ;then
10594 lt_prog_compiler_pic='-Kconform_pic'
10595 lt_prog_compiler_static='-Bstatic'
10599 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10600 lt_prog_compiler_wl='-Wl,'
10601 lt_prog_compiler_pic='-KPIC'
10602 lt_prog_compiler_static='-Bstatic'
10605 unicos*)
10606 lt_prog_compiler_wl='-Wl,'
10607 lt_prog_compiler_can_build_shared=no
10610 uts4*)
10611 lt_prog_compiler_pic='-pic'
10612 lt_prog_compiler_static='-Bstatic'
10616 lt_prog_compiler_can_build_shared=no
10618 esac
10621 case $host_os in
10622 # For platforms which do not support PIC, -DPIC is meaningless:
10623 *djgpp*)
10624 lt_prog_compiler_pic=
10627 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10629 esac
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10631 $as_echo "$lt_prog_compiler_pic" >&6; }
10639 # Check to make sure the PIC flag actually works.
10641 if test -n "$lt_prog_compiler_pic"; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10643 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10644 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10645 $as_echo_n "(cached) " >&6
10646 else
10647 lt_cv_prog_compiler_pic_works=no
10648 ac_outfile=conftest.$ac_objext
10649 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10650 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10651 # Insert the option either (1) after the last *FLAGS variable, or
10652 # (2) before a word containing "conftest.", or (3) at the end.
10653 # Note that $ac_compile itself does not contain backslashes and begins
10654 # with a dollar sign (not a hyphen), so the echo should work correctly.
10655 # The option is referenced via a variable to avoid confusing sed.
10656 lt_compile=`echo "$ac_compile" | $SED \
10657 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10658 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10659 -e 's:$: $lt_compiler_flag:'`
10660 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10661 (eval "$lt_compile" 2>conftest.err)
10662 ac_status=$?
10663 cat conftest.err >&5
10664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665 if (exit $ac_status) && test -s "$ac_outfile"; then
10666 # The compiler can only warn and ignore the option if not recognized
10667 # So say no if there are warnings other than the usual output.
10668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10670 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10671 lt_cv_prog_compiler_pic_works=yes
10674 $RM conftest*
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10678 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10680 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10681 case $lt_prog_compiler_pic in
10682 "" | " "*) ;;
10683 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10684 esac
10685 else
10686 lt_prog_compiler_pic=
10687 lt_prog_compiler_can_build_shared=no
10698 # Check to make sure the static flag actually works.
10700 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10702 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10703 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10704 $as_echo_n "(cached) " >&6
10705 else
10706 lt_cv_prog_compiler_static_works=no
10707 save_LDFLAGS="$LDFLAGS"
10708 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10709 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10710 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10711 # The linker can only warn and ignore the option if not recognized
10712 # So say no if there are warnings
10713 if test -s conftest.err; then
10714 # Append any errors to the config.log.
10715 cat conftest.err 1>&5
10716 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10717 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10718 if diff conftest.exp conftest.er2 >/dev/null; then
10719 lt_cv_prog_compiler_static_works=yes
10721 else
10722 lt_cv_prog_compiler_static_works=yes
10725 $RM -r conftest*
10726 LDFLAGS="$save_LDFLAGS"
10729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10730 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10732 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10734 else
10735 lt_prog_compiler_static=
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10745 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10746 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10747 $as_echo_n "(cached) " >&6
10748 else
10749 lt_cv_prog_compiler_c_o=no
10750 $RM -r conftest 2>/dev/null
10751 mkdir conftest
10752 cd conftest
10753 mkdir out
10754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10756 lt_compiler_flag="-o out/conftest2.$ac_objext"
10757 # Insert the option either (1) after the last *FLAGS variable, or
10758 # (2) before a word containing "conftest.", or (3) at the end.
10759 # Note that $ac_compile itself does not contain backslashes and begins
10760 # with a dollar sign (not a hyphen), so the echo should work correctly.
10761 lt_compile=`echo "$ac_compile" | $SED \
10762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10764 -e 's:$: $lt_compiler_flag:'`
10765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10766 (eval "$lt_compile" 2>out/conftest.err)
10767 ac_status=$?
10768 cat out/conftest.err >&5
10769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10770 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10771 then
10772 # The compiler can only warn and ignore the option if not recognized
10773 # So say no if there are warnings
10774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10775 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10776 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10777 lt_cv_prog_compiler_c_o=yes
10780 chmod u+w . 2>&5
10781 $RM conftest*
10782 # SGI C++ compiler will create directory out/ii_files/ for
10783 # template instantiation
10784 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10785 $RM out/* && rmdir out
10786 cd ..
10787 $RM -r conftest
10788 $RM conftest*
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10792 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10800 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10801 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10802 $as_echo_n "(cached) " >&6
10803 else
10804 lt_cv_prog_compiler_c_o=no
10805 $RM -r conftest 2>/dev/null
10806 mkdir conftest
10807 cd conftest
10808 mkdir out
10809 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10811 lt_compiler_flag="-o out/conftest2.$ac_objext"
10812 # Insert the option either (1) after the last *FLAGS variable, or
10813 # (2) before a word containing "conftest.", or (3) at the end.
10814 # Note that $ac_compile itself does not contain backslashes and begins
10815 # with a dollar sign (not a hyphen), so the echo should work correctly.
10816 lt_compile=`echo "$ac_compile" | $SED \
10817 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10818 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10819 -e 's:$: $lt_compiler_flag:'`
10820 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10821 (eval "$lt_compile" 2>out/conftest.err)
10822 ac_status=$?
10823 cat out/conftest.err >&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10826 then
10827 # The compiler can only warn and ignore the option if not recognized
10828 # So say no if there are warnings
10829 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10830 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10831 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10832 lt_cv_prog_compiler_c_o=yes
10835 chmod u+w . 2>&5
10836 $RM conftest*
10837 # SGI C++ compiler will create directory out/ii_files/ for
10838 # template instantiation
10839 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10840 $RM out/* && rmdir out
10841 cd ..
10842 $RM -r conftest
10843 $RM conftest*
10846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10847 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10852 hard_links="nottested"
10853 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10854 # do not overwrite the value of need_locks provided by the user
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10856 $as_echo_n "checking if we can lock with hard links... " >&6; }
10857 hard_links=yes
10858 $RM conftest*
10859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10860 touch conftest.a
10861 ln conftest.a conftest.b 2>&5 || hard_links=no
10862 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10864 $as_echo "$hard_links" >&6; }
10865 if test "$hard_links" = no; then
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10867 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10868 need_locks=warn
10870 else
10871 need_locks=no
10879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10880 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10882 runpath_var=
10883 allow_undefined_flag=
10884 always_export_symbols=no
10885 archive_cmds=
10886 archive_expsym_cmds=
10887 compiler_needs_object=no
10888 enable_shared_with_static_runtimes=no
10889 export_dynamic_flag_spec=
10890 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10891 hardcode_automatic=no
10892 hardcode_direct=no
10893 hardcode_direct_absolute=no
10894 hardcode_libdir_flag_spec=
10895 hardcode_libdir_flag_spec_ld=
10896 hardcode_libdir_separator=
10897 hardcode_minus_L=no
10898 hardcode_shlibpath_var=unsupported
10899 inherit_rpath=no
10900 link_all_deplibs=unknown
10901 module_cmds=
10902 module_expsym_cmds=
10903 old_archive_from_new_cmds=
10904 old_archive_from_expsyms_cmds=
10905 thread_safe_flag_spec=
10906 whole_archive_flag_spec=
10907 # include_expsyms should be a list of space-separated symbols to be *always*
10908 # included in the symbol list
10909 include_expsyms=
10910 # exclude_expsyms can be an extended regexp of symbols to exclude
10911 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10912 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10913 # as well as any symbol that contains `d'.
10914 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10915 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10916 # platforms (ab)use it in PIC code, but their linkers get confused if
10917 # the symbol is explicitly referenced. Since portable code cannot
10918 # rely on this symbol name, it's probably fine to never include it in
10919 # preloaded symbol tables.
10920 # Exclude shared library initialization/finalization symbols.
10921 extract_expsyms_cmds=
10923 case $host_os in
10924 cygwin* | mingw* | pw32* | cegcc*)
10925 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10926 # When not using gcc, we currently assume that we are using
10927 # Microsoft Visual C++.
10928 if test "$GCC" != yes; then
10929 with_gnu_ld=no
10932 interix*)
10933 # we just hope/assume this is gcc and not c89 (= MSVC++)
10934 with_gnu_ld=yes
10936 openbsd*)
10937 with_gnu_ld=no
10939 esac
10941 ld_shlibs=yes
10943 # On some targets, GNU ld is compatible enough with the native linker
10944 # that we're better off using the native interface for both.
10945 lt_use_gnu_ld_interface=no
10946 if test "$with_gnu_ld" = yes; then
10947 case $host_os in
10948 aix*)
10949 # The AIX port of GNU ld has always aspired to compatibility
10950 # with the native linker. However, as the warning in the GNU ld
10951 # block says, versions before 2.19.5* couldn't really create working
10952 # shared libraries, regardless of the interface used.
10953 case `$LD -v 2>&1` in
10954 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10955 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10956 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10958 lt_use_gnu_ld_interface=yes
10960 esac
10963 lt_use_gnu_ld_interface=yes
10965 esac
10968 if test "$lt_use_gnu_ld_interface" = yes; then
10969 # If archive_cmds runs LD, not CC, wlarc should be empty
10970 wlarc='${wl}'
10972 # Set some defaults for GNU ld with shared library support. These
10973 # are reset later if shared libraries are not supported. Putting them
10974 # here allows them to be overridden if necessary.
10975 runpath_var=LD_RUN_PATH
10976 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10977 export_dynamic_flag_spec='${wl}--export-dynamic'
10978 # ancient GNU ld didn't support --whole-archive et. al.
10979 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10980 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10981 else
10982 whole_archive_flag_spec=
10984 supports_anon_versioning=no
10985 case `$LD -v 2>&1` in
10986 *GNU\ gold*) supports_anon_versioning=yes ;;
10987 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10988 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10989 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10990 *\ 2.11.*) ;; # other 2.11 versions
10991 *) supports_anon_versioning=yes ;;
10992 esac
10994 # See if GNU ld supports shared libraries.
10995 case $host_os in
10996 aix[3-9]*)
10997 # On AIX/PPC, the GNU linker is very broken
10998 if test "$host_cpu" != ia64; then
10999 ld_shlibs=no
11000 cat <<_LT_EOF 1>&2
11002 *** Warning: the GNU linker, at least up to release 2.19, is reported
11003 *** to be unable to reliably create shared libraries on AIX.
11004 *** Therefore, libtool is disabling shared libraries support. If you
11005 *** really care for shared libraries, you may want to install binutils
11006 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11007 *** You will then need to restart the configuration process.
11009 _LT_EOF
11013 amigaos*)
11014 case $host_cpu in
11015 powerpc)
11016 # see comment about AmigaOS4 .so support
11017 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11018 archive_expsym_cmds=''
11020 m68k)
11021 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)'
11022 hardcode_libdir_flag_spec='-L$libdir'
11023 hardcode_minus_L=yes
11025 esac
11028 beos*)
11029 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11030 allow_undefined_flag=unsupported
11031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11032 # support --undefined. This deserves some investigation. FIXME
11033 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11034 else
11035 ld_shlibs=no
11039 cygwin* | mingw* | pw32* | cegcc*)
11040 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11041 # as there is no search path for DLLs.
11042 hardcode_libdir_flag_spec='-L$libdir'
11043 export_dynamic_flag_spec='${wl}--export-all-symbols'
11044 allow_undefined_flag=unsupported
11045 always_export_symbols=no
11046 enable_shared_with_static_runtimes=yes
11047 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11049 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11050 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11051 # If the export-symbols file already is a .def file (1st line
11052 # is EXPORTS), use it as is; otherwise, prepend...
11053 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11054 cp $export_symbols $output_objdir/$soname.def;
11055 else
11056 echo EXPORTS > $output_objdir/$soname.def;
11057 cat $export_symbols >> $output_objdir/$soname.def;
11059 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11060 else
11061 ld_shlibs=no
11065 haiku*)
11066 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11067 link_all_deplibs=yes
11070 interix[3-9]*)
11071 hardcode_direct=no
11072 hardcode_shlibpath_var=no
11073 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11074 export_dynamic_flag_spec='${wl}-E'
11075 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11076 # Instead, shared libraries are loaded at an image base (0x10000000 by
11077 # default) and relocated if they conflict, which is a slow very memory
11078 # consuming and fragmenting process. To avoid this, we pick a random,
11079 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11080 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11081 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11082 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'
11085 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11086 tmp_diet=no
11087 if test "$host_os" = linux-dietlibc; then
11088 case $cc_basename in
11089 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11090 esac
11092 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11093 && test "$tmp_diet" = no
11094 then
11095 tmp_addflag=
11096 tmp_sharedflag='-shared'
11097 case $cc_basename,$host_cpu in
11098 pgcc*) # Portland Group C compiler
11099 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11100 tmp_addflag=' $pic_flag'
11102 pgf77* | pgf90* | pgf95* | pgfortran*)
11103 # Portland Group f77 and f90 compilers
11104 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11105 tmp_addflag=' $pic_flag -Mnomain' ;;
11106 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11107 tmp_addflag=' -i_dynamic' ;;
11108 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11109 tmp_addflag=' -i_dynamic -nofor_main' ;;
11110 ifc* | ifort*) # Intel Fortran compiler
11111 tmp_addflag=' -nofor_main' ;;
11112 lf95*) # Lahey Fortran 8.1
11113 whole_archive_flag_spec=
11114 tmp_sharedflag='--shared' ;;
11115 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11116 tmp_sharedflag='-qmkshrobj'
11117 tmp_addflag= ;;
11118 nvcc*) # Cuda Compiler Driver 2.2
11119 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11120 compiler_needs_object=yes
11122 esac
11123 case `$CC -V 2>&1 | sed 5q` in
11124 *Sun\ C*) # Sun C 5.9
11125 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
11126 compiler_needs_object=yes
11127 tmp_sharedflag='-G' ;;
11128 *Sun\ F*) # Sun Fortran 8.3
11129 tmp_sharedflag='-G' ;;
11130 esac
11131 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11133 if test "x$supports_anon_versioning" = xyes; then
11134 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11135 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11136 echo "local: *; };" >> $output_objdir/$libname.ver~
11137 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11140 case $cc_basename in
11141 xlf* | bgf* | bgxlf* | mpixlf*)
11142 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11143 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11144 hardcode_libdir_flag_spec=
11145 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11146 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11147 if test "x$supports_anon_versioning" = xyes; then
11148 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11149 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11150 echo "local: *; };" >> $output_objdir/$libname.ver~
11151 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11154 esac
11155 else
11156 ld_shlibs=no
11160 netbsd*)
11161 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11162 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11163 wlarc=
11164 else
11165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11166 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11170 solaris*)
11171 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11172 ld_shlibs=no
11173 cat <<_LT_EOF 1>&2
11175 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11176 *** create shared libraries on Solaris systems. Therefore, libtool
11177 *** is disabling shared libraries support. We urge you to upgrade GNU
11178 *** binutils to release 2.9.1 or newer. Another option is to modify
11179 *** your PATH or compiler configuration so that the native linker is
11180 *** used, and then restart.
11182 _LT_EOF
11183 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11185 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11186 else
11187 ld_shlibs=no
11191 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11192 case `$LD -v 2>&1` in
11193 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11194 ld_shlibs=no
11195 cat <<_LT_EOF 1>&2
11197 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11198 *** reliably create shared libraries on SCO systems. Therefore, libtool
11199 *** is disabling shared libraries support. We urge you to upgrade GNU
11200 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11201 *** your PATH or compiler configuration so that the native linker is
11202 *** used, and then restart.
11204 _LT_EOF
11207 # For security reasons, it is highly recommended that you always
11208 # use absolute paths for naming shared libraries, and exclude the
11209 # DT_RUNPATH tag from executables and libraries. But doing so
11210 # requires that you compile everything twice, which is a pain.
11211 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11212 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11213 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11214 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11215 else
11216 ld_shlibs=no
11219 esac
11222 sunos4*)
11223 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11224 wlarc=
11225 hardcode_direct=yes
11226 hardcode_shlibpath_var=no
11230 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11232 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11233 else
11234 ld_shlibs=no
11237 esac
11239 if test "$ld_shlibs" = no; then
11240 runpath_var=
11241 hardcode_libdir_flag_spec=
11242 export_dynamic_flag_spec=
11243 whole_archive_flag_spec=
11245 else
11246 # PORTME fill in a description of your system's linker (not GNU ld)
11247 case $host_os in
11248 aix3*)
11249 allow_undefined_flag=unsupported
11250 always_export_symbols=yes
11251 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'
11252 # Note: this linker hardcodes the directories in LIBPATH if there
11253 # are no directories specified by -L.
11254 hardcode_minus_L=yes
11255 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11256 # Neither direct hardcoding nor static linking is supported with a
11257 # broken collect2.
11258 hardcode_direct=unsupported
11262 aix[4-9]*)
11263 if test "$host_cpu" = ia64; then
11264 # On IA64, the linker does run time linking by default, so we don't
11265 # have to do anything special.
11266 aix_use_runtimelinking=no
11267 exp_sym_flag='-Bexport'
11268 no_entry_flag=""
11269 else
11270 # If we're using GNU nm, then we don't want the "-C" option.
11271 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11272 # Also, AIX nm treats weak defined symbols like other global
11273 # defined symbols, whereas GNU nm marks them as "W".
11274 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11275 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
11276 else
11277 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'
11279 aix_use_runtimelinking=no
11281 # Test if we are trying to use run time linking or normal
11282 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11283 # need to do runtime linking.
11284 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11285 for ld_flag in $LDFLAGS; do
11286 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11287 aix_use_runtimelinking=yes
11288 break
11290 done
11292 esac
11294 exp_sym_flag='-bexport'
11295 no_entry_flag='-bnoentry'
11298 # When large executables or shared objects are built, AIX ld can
11299 # have problems creating the table of contents. If linking a library
11300 # or program results in "error TOC overflow" add -mminimal-toc to
11301 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11302 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11304 archive_cmds=''
11305 hardcode_direct=yes
11306 hardcode_direct_absolute=yes
11307 hardcode_libdir_separator=':'
11308 link_all_deplibs=yes
11309 file_list_spec='${wl}-f,'
11311 if test "$GCC" = yes; then
11312 case $host_os in aix4.[012]|aix4.[012].*)
11313 # We only want to do this on AIX 4.2 and lower, the check
11314 # below for broken collect2 doesn't work under 4.3+
11315 collect2name=`${CC} -print-prog-name=collect2`
11316 if test -f "$collect2name" &&
11317 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11318 then
11319 # We have reworked collect2
11321 else
11322 # We have old collect2
11323 hardcode_direct=unsupported
11324 # It fails to find uninstalled libraries when the uninstalled
11325 # path is not listed in the libpath. Setting hardcode_minus_L
11326 # to unsupported forces relinking
11327 hardcode_minus_L=yes
11328 hardcode_libdir_flag_spec='-L$libdir'
11329 hardcode_libdir_separator=
11332 esac
11333 shared_flag='-shared'
11334 if test "$aix_use_runtimelinking" = yes; then
11335 shared_flag="$shared_flag "'${wl}-G'
11337 else
11338 # not using gcc
11339 if test "$host_cpu" = ia64; then
11340 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11341 # chokes on -Wl,-G. The following line is correct:
11342 shared_flag='-G'
11343 else
11344 if test "$aix_use_runtimelinking" = yes; then
11345 shared_flag='${wl}-G'
11346 else
11347 shared_flag='${wl}-bM:SRE'
11352 export_dynamic_flag_spec='${wl}-bexpall'
11353 # It seems that -bexpall does not export symbols beginning with
11354 # underscore (_), so it is better to generate a list of symbols to export.
11355 always_export_symbols=yes
11356 if test "$aix_use_runtimelinking" = yes; then
11357 # Warning - without using the other runtime loading flags (-brtl),
11358 # -berok will link without error, but may produce a broken library.
11359 allow_undefined_flag='-berok'
11360 # Determine the default libpath from the value encoded in an
11361 # empty executable.
11362 if test x$gcc_no_link = xyes; then
11363 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11369 main ()
11373 return 0;
11375 _ACEOF
11376 if ac_fn_c_try_link "$LINENO"; then :
11378 lt_aix_libpath_sed='
11379 /Import File Strings/,/^$/ {
11380 /^0/ {
11381 s/^0 *\(.*\)$/\1/
11385 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11386 # Check for a 64-bit object if we didn't find anything.
11387 if test -z "$aix_libpath"; then
11388 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11391 rm -f core conftest.err conftest.$ac_objext \
11392 conftest$ac_exeext conftest.$ac_ext
11393 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11395 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11396 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11397 else
11398 if test "$host_cpu" = ia64; then
11399 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11400 allow_undefined_flag="-z nodefs"
11401 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"
11402 else
11403 # Determine the default libpath from the value encoded in an
11404 # empty executable.
11405 if test x$gcc_no_link = xyes; then
11406 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11409 /* end confdefs.h. */
11412 main ()
11416 return 0;
11418 _ACEOF
11419 if ac_fn_c_try_link "$LINENO"; then :
11421 lt_aix_libpath_sed='
11422 /Import File Strings/,/^$/ {
11423 /^0/ {
11424 s/^0 *\(.*\)$/\1/
11428 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11429 # Check for a 64-bit object if we didn't find anything.
11430 if test -z "$aix_libpath"; then
11431 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11434 rm -f core conftest.err conftest.$ac_objext \
11435 conftest$ac_exeext conftest.$ac_ext
11436 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11438 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11439 # Warning - without using the other run time loading flags,
11440 # -berok will link without error, but may produce a broken library.
11441 no_undefined_flag=' ${wl}-bernotok'
11442 allow_undefined_flag=' ${wl}-berok'
11443 if test "$with_gnu_ld" = yes; then
11444 # We only use this code for GNU lds that support --whole-archive.
11445 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11446 else
11447 # Exported symbols can be pulled into shared objects from archives
11448 whole_archive_flag_spec='$convenience'
11450 archive_cmds_need_lc=yes
11451 # This is similar to how AIX traditionally builds its shared libraries.
11452 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'
11457 amigaos*)
11458 case $host_cpu in
11459 powerpc)
11460 # see comment about AmigaOS4 .so support
11461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11462 archive_expsym_cmds=''
11464 m68k)
11465 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)'
11466 hardcode_libdir_flag_spec='-L$libdir'
11467 hardcode_minus_L=yes
11469 esac
11472 bsdi[45]*)
11473 export_dynamic_flag_spec=-rdynamic
11476 cygwin* | mingw* | pw32* | cegcc*)
11477 # When not using gcc, we currently assume that we are using
11478 # Microsoft Visual C++.
11479 # hardcode_libdir_flag_spec is actually meaningless, as there is
11480 # no search path for DLLs.
11481 hardcode_libdir_flag_spec=' '
11482 allow_undefined_flag=unsupported
11483 # Tell ltmain to make .lib files, not .a files.
11484 libext=lib
11485 # Tell ltmain to make .dll files, not .so files.
11486 shrext_cmds=".dll"
11487 # FIXME: Setting linknames here is a bad hack.
11488 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11489 # The linker will automatically build a .lib file if we build a DLL.
11490 old_archive_from_new_cmds='true'
11491 # FIXME: Should let the user specify the lib program.
11492 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11493 fix_srcfile_path='`cygpath -w "$srcfile"`'
11494 enable_shared_with_static_runtimes=yes
11497 darwin* | rhapsody*)
11500 archive_cmds_need_lc=no
11501 hardcode_direct=no
11502 hardcode_automatic=yes
11503 hardcode_shlibpath_var=unsupported
11504 if test "$lt_cv_ld_force_load" = "yes"; then
11505 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
11506 else
11507 whole_archive_flag_spec=''
11509 link_all_deplibs=yes
11510 allow_undefined_flag="$_lt_dar_allow_undefined"
11511 case $cc_basename in
11512 ifort*) _lt_dar_can_shared=yes ;;
11513 *) _lt_dar_can_shared=$GCC ;;
11514 esac
11515 if test "$_lt_dar_can_shared" = "yes"; then
11516 output_verbose_link_cmd=func_echo_all
11517 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11518 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11519 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}"
11520 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}"
11522 else
11523 ld_shlibs=no
11528 dgux*)
11529 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11530 hardcode_libdir_flag_spec='-L$libdir'
11531 hardcode_shlibpath_var=no
11534 freebsd1*)
11535 ld_shlibs=no
11538 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11539 # support. Future versions do this automatically, but an explicit c++rt0.o
11540 # does not break anything, and helps significantly (at the cost of a little
11541 # extra space).
11542 freebsd2.2*)
11543 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11544 hardcode_libdir_flag_spec='-R$libdir'
11545 hardcode_direct=yes
11546 hardcode_shlibpath_var=no
11549 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11550 freebsd2*)
11551 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11552 hardcode_direct=yes
11553 hardcode_minus_L=yes
11554 hardcode_shlibpath_var=no
11557 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11558 freebsd* | dragonfly*)
11559 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11560 hardcode_libdir_flag_spec='-R$libdir'
11561 hardcode_direct=yes
11562 hardcode_shlibpath_var=no
11565 hpux9*)
11566 if test "$GCC" = yes; then
11567 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'
11568 else
11569 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'
11571 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11572 hardcode_libdir_separator=:
11573 hardcode_direct=yes
11575 # hardcode_minus_L: Not really in the search PATH,
11576 # but as the default location of the library.
11577 hardcode_minus_L=yes
11578 export_dynamic_flag_spec='${wl}-E'
11581 hpux10*)
11582 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11583 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11584 else
11585 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11587 if test "$with_gnu_ld" = no; then
11588 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11589 hardcode_libdir_flag_spec_ld='+b $libdir'
11590 hardcode_libdir_separator=:
11591 hardcode_direct=yes
11592 hardcode_direct_absolute=yes
11593 export_dynamic_flag_spec='${wl}-E'
11594 # hardcode_minus_L: Not really in the search PATH,
11595 # but as the default location of the library.
11596 hardcode_minus_L=yes
11600 hpux11*)
11601 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11602 case $host_cpu in
11603 hppa*64*)
11604 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11606 ia64*)
11607 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11610 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11612 esac
11613 else
11614 case $host_cpu in
11615 hppa*64*)
11616 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11618 ia64*)
11619 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11623 # Older versions of the 11.00 compiler do not understand -b yet
11624 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11626 $as_echo_n "checking if $CC understands -b... " >&6; }
11627 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11628 $as_echo_n "(cached) " >&6
11629 else
11630 lt_cv_prog_compiler__b=no
11631 save_LDFLAGS="$LDFLAGS"
11632 LDFLAGS="$LDFLAGS -b"
11633 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11634 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11635 # The linker can only warn and ignore the option if not recognized
11636 # So say no if there are warnings
11637 if test -s conftest.err; then
11638 # Append any errors to the config.log.
11639 cat conftest.err 1>&5
11640 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11642 if diff conftest.exp conftest.er2 >/dev/null; then
11643 lt_cv_prog_compiler__b=yes
11645 else
11646 lt_cv_prog_compiler__b=yes
11649 $RM -r conftest*
11650 LDFLAGS="$save_LDFLAGS"
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11654 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11656 if test x"$lt_cv_prog_compiler__b" = xyes; then
11657 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11658 else
11659 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11663 esac
11665 if test "$with_gnu_ld" = no; then
11666 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11667 hardcode_libdir_separator=:
11669 case $host_cpu in
11670 hppa*64*|ia64*)
11671 hardcode_direct=no
11672 hardcode_shlibpath_var=no
11675 hardcode_direct=yes
11676 hardcode_direct_absolute=yes
11677 export_dynamic_flag_spec='${wl}-E'
11679 # hardcode_minus_L: Not really in the search PATH,
11680 # but as the default location of the library.
11681 hardcode_minus_L=yes
11683 esac
11687 irix5* | irix6* | nonstopux*)
11688 if test "$GCC" = yes; then
11689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11690 # Try to use the -exported_symbol ld option, if it does not
11691 # work, assume that -exports_file does not work either and
11692 # implicitly export all symbols.
11693 save_LDFLAGS="$LDFLAGS"
11694 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11695 if test x$gcc_no_link = xyes; then
11696 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11699 /* end confdefs.h. */
11700 int foo(void) {}
11701 _ACEOF
11702 if ac_fn_c_try_link "$LINENO"; then :
11703 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11706 rm -f core conftest.err conftest.$ac_objext \
11707 conftest$ac_exeext conftest.$ac_ext
11708 LDFLAGS="$save_LDFLAGS"
11709 else
11710 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11711 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11713 archive_cmds_need_lc='no'
11714 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11715 hardcode_libdir_separator=:
11716 inherit_rpath=yes
11717 link_all_deplibs=yes
11720 netbsd*)
11721 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11722 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11723 else
11724 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11726 hardcode_libdir_flag_spec='-R$libdir'
11727 hardcode_direct=yes
11728 hardcode_shlibpath_var=no
11731 newsos6)
11732 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11733 hardcode_direct=yes
11734 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11735 hardcode_libdir_separator=:
11736 hardcode_shlibpath_var=no
11739 *nto* | *qnx*)
11742 openbsd*)
11743 if test -f /usr/libexec/ld.so; then
11744 hardcode_direct=yes
11745 hardcode_shlibpath_var=no
11746 hardcode_direct_absolute=yes
11747 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11748 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11749 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11750 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11751 export_dynamic_flag_spec='${wl}-E'
11752 else
11753 case $host_os in
11754 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11755 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11756 hardcode_libdir_flag_spec='-R$libdir'
11759 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11762 esac
11764 else
11765 ld_shlibs=no
11769 os2*)
11770 hardcode_libdir_flag_spec='-L$libdir'
11771 hardcode_minus_L=yes
11772 allow_undefined_flag=unsupported
11773 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'
11774 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11777 osf3*)
11778 if test "$GCC" = yes; then
11779 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11780 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11781 else
11782 allow_undefined_flag=' -expect_unresolved \*'
11783 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11785 archive_cmds_need_lc='no'
11786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11787 hardcode_libdir_separator=:
11790 osf4* | osf5*) # as osf3* with the addition of -msym flag
11791 if test "$GCC" = yes; then
11792 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11793 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11794 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11795 else
11796 allow_undefined_flag=' -expect_unresolved \*'
11797 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11798 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~
11799 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11801 # Both c and cxx compiler support -rpath directly
11802 hardcode_libdir_flag_spec='-rpath $libdir'
11804 archive_cmds_need_lc='no'
11805 hardcode_libdir_separator=:
11808 solaris*)
11809 no_undefined_flag=' -z defs'
11810 if test "$GCC" = yes; then
11811 wlarc='${wl}'
11812 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11813 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11814 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11815 else
11816 case `$CC -V 2>&1` in
11817 *"Compilers 5.0"*)
11818 wlarc=''
11819 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11820 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11821 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11824 wlarc='${wl}'
11825 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11826 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11827 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11829 esac
11831 hardcode_libdir_flag_spec='-R$libdir'
11832 hardcode_shlibpath_var=no
11833 case $host_os in
11834 solaris2.[0-5] | solaris2.[0-5].*) ;;
11836 # The compiler driver will combine and reorder linker options,
11837 # but understands `-z linker_flag'. GCC discards it without `$wl',
11838 # but is careful enough not to reorder.
11839 # Supported since Solaris 2.6 (maybe 2.5.1?)
11840 if test "$GCC" = yes; then
11841 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11842 else
11843 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11846 esac
11847 link_all_deplibs=yes
11850 sunos4*)
11851 if test "x$host_vendor" = xsequent; then
11852 # Use $CC to link under sequent, because it throws in some extra .o
11853 # files that make .init and .fini sections work.
11854 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11855 else
11856 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11858 hardcode_libdir_flag_spec='-L$libdir'
11859 hardcode_direct=yes
11860 hardcode_minus_L=yes
11861 hardcode_shlibpath_var=no
11864 sysv4)
11865 case $host_vendor in
11866 sni)
11867 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11868 hardcode_direct=yes # is this really true???
11870 siemens)
11871 ## LD is ld it makes a PLAMLIB
11872 ## CC just makes a GrossModule.
11873 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11874 reload_cmds='$CC -r -o $output$reload_objs'
11875 hardcode_direct=no
11877 motorola)
11878 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11879 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11881 esac
11882 runpath_var='LD_RUN_PATH'
11883 hardcode_shlibpath_var=no
11886 sysv4.3*)
11887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11888 hardcode_shlibpath_var=no
11889 export_dynamic_flag_spec='-Bexport'
11892 sysv4*MP*)
11893 if test -d /usr/nec; then
11894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11895 hardcode_shlibpath_var=no
11896 runpath_var=LD_RUN_PATH
11897 hardcode_runpath_var=yes
11898 ld_shlibs=yes
11902 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11903 no_undefined_flag='${wl}-z,text'
11904 archive_cmds_need_lc=no
11905 hardcode_shlibpath_var=no
11906 runpath_var='LD_RUN_PATH'
11908 if test "$GCC" = yes; then
11909 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11910 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11911 else
11912 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11913 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11917 sysv5* | sco3.2v5* | sco5v6*)
11918 # Note: We can NOT use -z defs as we might desire, because we do not
11919 # link with -lc, and that would cause any symbols used from libc to
11920 # always be unresolved, which means just about no library would
11921 # ever link correctly. If we're not using GNU ld we use -z text
11922 # though, which does catch some bad symbols but isn't as heavy-handed
11923 # as -z defs.
11924 no_undefined_flag='${wl}-z,text'
11925 allow_undefined_flag='${wl}-z,nodefs'
11926 archive_cmds_need_lc=no
11927 hardcode_shlibpath_var=no
11928 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11929 hardcode_libdir_separator=':'
11930 link_all_deplibs=yes
11931 export_dynamic_flag_spec='${wl}-Bexport'
11932 runpath_var='LD_RUN_PATH'
11934 if test "$GCC" = yes; then
11935 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11936 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11937 else
11938 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11939 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11943 uts4*)
11944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11945 hardcode_libdir_flag_spec='-L$libdir'
11946 hardcode_shlibpath_var=no
11950 ld_shlibs=no
11952 esac
11954 if test x$host_vendor = xsni; then
11955 case $host in
11956 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11957 export_dynamic_flag_spec='${wl}-Blargedynsym'
11959 esac
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11964 $as_echo "$ld_shlibs" >&6; }
11965 test "$ld_shlibs" = no && can_build_shared=no
11967 with_gnu_ld=$with_gnu_ld
11984 # Do we need to explicitly link libc?
11986 case "x$archive_cmds_need_lc" in
11987 x|xyes)
11988 # Assume -lc should be added
11989 archive_cmds_need_lc=yes
11991 if test "$enable_shared" = yes && test "$GCC" = yes; then
11992 case $archive_cmds in
11993 *'~'*)
11994 # FIXME: we may have to deal with multi-command sequences.
11996 '$CC '*)
11997 # Test whether the compiler implicitly links with -lc since on some
11998 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11999 # to ld, don't add -lc before -lgcc.
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12001 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12002 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12003 $as_echo_n "(cached) " >&6
12004 else
12005 $RM conftest*
12006 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12008 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12009 (eval $ac_compile) 2>&5
12010 ac_status=$?
12011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12012 test $ac_status = 0; } 2>conftest.err; then
12013 soname=conftest
12014 lib=conftest
12015 libobjs=conftest.$ac_objext
12016 deplibs=
12017 wl=$lt_prog_compiler_wl
12018 pic_flag=$lt_prog_compiler_pic
12019 compiler_flags=-v
12020 linker_flags=-v
12021 verstring=
12022 output_objdir=.
12023 libname=conftest
12024 lt_save_allow_undefined_flag=$allow_undefined_flag
12025 allow_undefined_flag=
12026 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12027 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12028 ac_status=$?
12029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12030 test $ac_status = 0; }
12031 then
12032 lt_cv_archive_cmds_need_lc=no
12033 else
12034 lt_cv_archive_cmds_need_lc=yes
12036 allow_undefined_flag=$lt_save_allow_undefined_flag
12037 else
12038 cat conftest.err 1>&5
12040 $RM conftest*
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12044 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12045 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12047 esac
12050 esac
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12209 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12211 if test "$GCC" = yes; then
12212 case $host_os in
12213 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12214 *) lt_awk_arg="/^libraries:/" ;;
12215 esac
12216 case $host_os in
12217 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12218 *) lt_sed_strip_eq="s,=/,/,g" ;;
12219 esac
12220 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12221 case $lt_search_path_spec in
12222 *\;*)
12223 # if the path contains ";" then we assume it to be the separator
12224 # otherwise default to the standard path separator (i.e. ":") - it is
12225 # assumed that no part of a normal pathname contains ";" but that should
12226 # okay in the real world where ";" in dirpaths is itself problematic.
12227 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12230 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12232 esac
12233 # Ok, now we have the path, separated by spaces, we can step through it
12234 # and add multilib dir if necessary.
12235 lt_tmp_lt_search_path_spec=
12236 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12237 for lt_sys_path in $lt_search_path_spec; do
12238 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12239 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12240 else
12241 test -d "$lt_sys_path" && \
12242 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12244 done
12245 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12246 BEGIN {RS=" "; FS="/|\n";} {
12247 lt_foo="";
12248 lt_count=0;
12249 for (lt_i = NF; lt_i > 0; lt_i--) {
12250 if ($lt_i != "" && $lt_i != ".") {
12251 if ($lt_i == "..") {
12252 lt_count++;
12253 } else {
12254 if (lt_count == 0) {
12255 lt_foo="/" $lt_i lt_foo;
12256 } else {
12257 lt_count--;
12262 if (lt_foo != "") { lt_freq[lt_foo]++; }
12263 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12265 # AWK program above erroneously prepends '/' to C:/dos/paths
12266 # for these hosts.
12267 case $host_os in
12268 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12269 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12270 esac
12271 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12272 else
12273 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12275 library_names_spec=
12276 libname_spec='lib$name'
12277 soname_spec=
12278 shrext_cmds=".so"
12279 postinstall_cmds=
12280 postuninstall_cmds=
12281 finish_cmds=
12282 finish_eval=
12283 shlibpath_var=
12284 shlibpath_overrides_runpath=unknown
12285 version_type=none
12286 dynamic_linker="$host_os ld.so"
12287 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12288 need_lib_prefix=unknown
12289 hardcode_into_libs=no
12291 # when you set need_version to no, make sure it does not cause -set_version
12292 # flags to be left without arguments
12293 need_version=unknown
12295 case $host_os in
12296 aix3*)
12297 version_type=linux
12298 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12299 shlibpath_var=LIBPATH
12301 # AIX 3 has no versioning support, so we append a major version to the name.
12302 soname_spec='${libname}${release}${shared_ext}$major'
12305 aix[4-9]*)
12306 version_type=linux
12307 need_lib_prefix=no
12308 need_version=no
12309 hardcode_into_libs=yes
12310 if test "$host_cpu" = ia64; then
12311 # AIX 5 supports IA64
12312 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12313 shlibpath_var=LD_LIBRARY_PATH
12314 else
12315 # With GCC up to 2.95.x, collect2 would create an import file
12316 # for dependence libraries. The import file would start with
12317 # the line `#! .'. This would cause the generated library to
12318 # depend on `.', always an invalid library. This was fixed in
12319 # development snapshots of GCC prior to 3.0.
12320 case $host_os in
12321 aix4 | aix4.[01] | aix4.[01].*)
12322 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12323 echo ' yes '
12324 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12326 else
12327 can_build_shared=no
12330 esac
12331 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12332 # soname into executable. Probably we can add versioning support to
12333 # collect2, so additional links can be useful in future.
12334 if test "$aix_use_runtimelinking" = yes; then
12335 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12336 # instead of lib<name>.a to let people know that these are not
12337 # typical AIX shared libraries.
12338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12339 else
12340 # We preserve .a as extension for shared libraries through AIX4.2
12341 # and later when we are not doing run time linking.
12342 library_names_spec='${libname}${release}.a $libname.a'
12343 soname_spec='${libname}${release}${shared_ext}$major'
12345 shlibpath_var=LIBPATH
12349 amigaos*)
12350 case $host_cpu in
12351 powerpc)
12352 # Since July 2007 AmigaOS4 officially supports .so libraries.
12353 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12356 m68k)
12357 library_names_spec='$libname.ixlibrary $libname.a'
12358 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12359 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12361 esac
12364 beos*)
12365 library_names_spec='${libname}${shared_ext}'
12366 dynamic_linker="$host_os ld.so"
12367 shlibpath_var=LIBRARY_PATH
12370 bsdi[45]*)
12371 version_type=linux
12372 need_version=no
12373 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12374 soname_spec='${libname}${release}${shared_ext}$major'
12375 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12376 shlibpath_var=LD_LIBRARY_PATH
12377 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12378 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12379 # the default ld.so.conf also contains /usr/contrib/lib and
12380 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12381 # libtool to hard-code these into programs
12384 cygwin* | mingw* | pw32* | cegcc*)
12385 version_type=windows
12386 shrext_cmds=".dll"
12387 need_version=no
12388 need_lib_prefix=no
12390 case $GCC,$host_os in
12391 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12392 library_names_spec='$libname.dll.a'
12393 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12394 postinstall_cmds='base_file=`basename \${file}`~
12395 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12396 dldir=$destdir/`dirname \$dlpath`~
12397 test -d \$dldir || mkdir -p \$dldir~
12398 $install_prog $dir/$dlname \$dldir/$dlname~
12399 chmod a+x \$dldir/$dlname~
12400 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12401 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12403 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12404 dlpath=$dir/\$dldll~
12405 $RM \$dlpath'
12406 shlibpath_overrides_runpath=yes
12408 case $host_os in
12409 cygwin*)
12410 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12411 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12413 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12415 mingw* | cegcc*)
12416 # MinGW DLLs use traditional 'lib' prefix
12417 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12419 pw32*)
12420 # pw32 DLLs use 'pw' prefix rather than 'lib'
12421 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12423 esac
12427 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12429 esac
12430 dynamic_linker='Win32 ld.exe'
12431 # FIXME: first we should search . and the directory the executable is in
12432 shlibpath_var=PATH
12435 darwin* | rhapsody*)
12436 dynamic_linker="$host_os dyld"
12437 version_type=darwin
12438 need_lib_prefix=no
12439 need_version=no
12440 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12441 soname_spec='${libname}${release}${major}$shared_ext'
12442 shlibpath_overrides_runpath=yes
12443 shlibpath_var=DYLD_LIBRARY_PATH
12444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12446 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12447 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12450 dgux*)
12451 version_type=linux
12452 need_lib_prefix=no
12453 need_version=no
12454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12455 soname_spec='${libname}${release}${shared_ext}$major'
12456 shlibpath_var=LD_LIBRARY_PATH
12459 freebsd1*)
12460 dynamic_linker=no
12463 freebsd* | dragonfly*)
12464 # DragonFly does not have aout. When/if they implement a new
12465 # versioning mechanism, adjust this.
12466 if test -x /usr/bin/objformat; then
12467 objformat=`/usr/bin/objformat`
12468 else
12469 case $host_os in
12470 freebsd[123]*) objformat=aout ;;
12471 *) objformat=elf ;;
12472 esac
12474 version_type=freebsd-$objformat
12475 case $version_type in
12476 freebsd-elf*)
12477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12478 need_version=no
12479 need_lib_prefix=no
12481 freebsd-*)
12482 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12483 need_version=yes
12485 esac
12486 shlibpath_var=LD_LIBRARY_PATH
12487 case $host_os in
12488 freebsd2*)
12489 shlibpath_overrides_runpath=yes
12491 freebsd3.[01]* | freebsdelf3.[01]*)
12492 shlibpath_overrides_runpath=yes
12493 hardcode_into_libs=yes
12495 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12496 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12497 shlibpath_overrides_runpath=no
12498 hardcode_into_libs=yes
12500 *) # from 4.6 on, and DragonFly
12501 shlibpath_overrides_runpath=yes
12502 hardcode_into_libs=yes
12504 esac
12507 gnu*)
12508 version_type=linux
12509 need_lib_prefix=no
12510 need_version=no
12511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12512 soname_spec='${libname}${release}${shared_ext}$major'
12513 shlibpath_var=LD_LIBRARY_PATH
12514 hardcode_into_libs=yes
12517 haiku*)
12518 version_type=linux
12519 need_lib_prefix=no
12520 need_version=no
12521 dynamic_linker="$host_os runtime_loader"
12522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12523 soname_spec='${libname}${release}${shared_ext}$major'
12524 shlibpath_var=LIBRARY_PATH
12525 shlibpath_overrides_runpath=yes
12526 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12527 hardcode_into_libs=yes
12530 hpux9* | hpux10* | hpux11*)
12531 # Give a soname corresponding to the major version so that dld.sl refuses to
12532 # link against other versions.
12533 version_type=sunos
12534 need_lib_prefix=no
12535 need_version=no
12536 case $host_cpu in
12537 ia64*)
12538 shrext_cmds='.so'
12539 hardcode_into_libs=yes
12540 dynamic_linker="$host_os dld.so"
12541 shlibpath_var=LD_LIBRARY_PATH
12542 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12544 soname_spec='${libname}${release}${shared_ext}$major'
12545 if test "X$HPUX_IA64_MODE" = X32; then
12546 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12547 else
12548 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12550 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12552 hppa*64*)
12553 shrext_cmds='.sl'
12554 hardcode_into_libs=yes
12555 dynamic_linker="$host_os dld.sl"
12556 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12557 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12559 soname_spec='${libname}${release}${shared_ext}$major'
12560 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12561 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12564 shrext_cmds='.sl'
12565 dynamic_linker="$host_os dld.sl"
12566 shlibpath_var=SHLIB_PATH
12567 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12569 soname_spec='${libname}${release}${shared_ext}$major'
12571 esac
12572 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12573 postinstall_cmds='chmod 555 $lib'
12574 # or fails outright, so override atomically:
12575 install_override_mode=555
12578 interix[3-9]*)
12579 version_type=linux
12580 need_lib_prefix=no
12581 need_version=no
12582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12583 soname_spec='${libname}${release}${shared_ext}$major'
12584 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12585 shlibpath_var=LD_LIBRARY_PATH
12586 shlibpath_overrides_runpath=no
12587 hardcode_into_libs=yes
12590 irix5* | irix6* | nonstopux*)
12591 case $host_os in
12592 nonstopux*) version_type=nonstopux ;;
12594 if test "$lt_cv_prog_gnu_ld" = yes; then
12595 version_type=linux
12596 else
12597 version_type=irix
12598 fi ;;
12599 esac
12600 need_lib_prefix=no
12601 need_version=no
12602 soname_spec='${libname}${release}${shared_ext}$major'
12603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12604 case $host_os in
12605 irix5* | nonstopux*)
12606 libsuff= shlibsuff=
12609 case $LD in # libtool.m4 will add one of these switches to LD
12610 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12611 libsuff= shlibsuff= libmagic=32-bit;;
12612 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12613 libsuff=32 shlibsuff=N32 libmagic=N32;;
12614 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12615 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12616 *) libsuff= shlibsuff= libmagic=never-match;;
12617 esac
12619 esac
12620 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12621 shlibpath_overrides_runpath=no
12622 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12623 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12624 hardcode_into_libs=yes
12627 # No shared lib support for Linux oldld, aout, or coff.
12628 linux*oldld* | linux*aout* | linux*coff*)
12629 dynamic_linker=no
12632 # This must be Linux ELF.
12633 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12634 version_type=linux
12635 need_lib_prefix=no
12636 need_version=no
12637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12638 soname_spec='${libname}${release}${shared_ext}$major'
12639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12640 shlibpath_var=LD_LIBRARY_PATH
12641 shlibpath_overrides_runpath=no
12643 # Some binutils ld are patched to set DT_RUNPATH
12644 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 lt_cv_shlibpath_overrides_runpath=no
12648 save_LDFLAGS=$LDFLAGS
12649 save_libdir=$libdir
12650 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12651 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12652 if test x$gcc_no_link = xyes; then
12653 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12656 /* end confdefs.h. */
12659 main ()
12663 return 0;
12665 _ACEOF
12666 if ac_fn_c_try_link "$LINENO"; then :
12667 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12668 lt_cv_shlibpath_overrides_runpath=yes
12671 rm -f core conftest.err conftest.$ac_objext \
12672 conftest$ac_exeext conftest.$ac_ext
12673 LDFLAGS=$save_LDFLAGS
12674 libdir=$save_libdir
12678 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12680 # This implies no fast_install, which is unacceptable.
12681 # Some rework will be needed to allow for fast_install
12682 # before this can be enabled.
12683 hardcode_into_libs=yes
12685 # Append ld.so.conf contents to the search path
12686 if test -f /etc/ld.so.conf; then
12687 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12688 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12691 # We used to test for /lib/ld.so.1 and disable shared libraries on
12692 # powerpc, because MkLinux only supported shared libraries with the
12693 # GNU dynamic linker. Since this was broken with cross compilers,
12694 # most powerpc-linux boxes support dynamic linking these days and
12695 # people can always --disable-shared, the test was removed, and we
12696 # assume the GNU/Linux dynamic linker is in use.
12697 dynamic_linker='GNU/Linux ld.so'
12700 netbsd*)
12701 version_type=sunos
12702 need_lib_prefix=no
12703 need_version=no
12704 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12706 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12707 dynamic_linker='NetBSD (a.out) ld.so'
12708 else
12709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12710 soname_spec='${libname}${release}${shared_ext}$major'
12711 dynamic_linker='NetBSD ld.elf_so'
12713 shlibpath_var=LD_LIBRARY_PATH
12714 shlibpath_overrides_runpath=yes
12715 hardcode_into_libs=yes
12718 newsos6)
12719 version_type=linux
12720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12721 shlibpath_var=LD_LIBRARY_PATH
12722 shlibpath_overrides_runpath=yes
12725 *nto* | *qnx*)
12726 version_type=qnx
12727 need_lib_prefix=no
12728 need_version=no
12729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12730 soname_spec='${libname}${release}${shared_ext}$major'
12731 shlibpath_var=LD_LIBRARY_PATH
12732 shlibpath_overrides_runpath=no
12733 hardcode_into_libs=yes
12734 dynamic_linker='ldqnx.so'
12737 openbsd*)
12738 version_type=sunos
12739 sys_lib_dlsearch_path_spec="/usr/lib"
12740 need_lib_prefix=no
12741 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12742 case $host_os in
12743 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12744 *) need_version=no ;;
12745 esac
12746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12748 shlibpath_var=LD_LIBRARY_PATH
12749 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12750 case $host_os in
12751 openbsd2.[89] | openbsd2.[89].*)
12752 shlibpath_overrides_runpath=no
12755 shlibpath_overrides_runpath=yes
12757 esac
12758 else
12759 shlibpath_overrides_runpath=yes
12763 os2*)
12764 libname_spec='$name'
12765 shrext_cmds=".dll"
12766 need_lib_prefix=no
12767 library_names_spec='$libname${shared_ext} $libname.a'
12768 dynamic_linker='OS/2 ld.exe'
12769 shlibpath_var=LIBPATH
12772 osf3* | osf4* | osf5*)
12773 version_type=osf
12774 need_lib_prefix=no
12775 need_version=no
12776 soname_spec='${libname}${release}${shared_ext}$major'
12777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12778 shlibpath_var=LD_LIBRARY_PATH
12779 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12780 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12783 rdos*)
12784 dynamic_linker=no
12787 solaris*)
12788 version_type=linux
12789 need_lib_prefix=no
12790 need_version=no
12791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12792 soname_spec='${libname}${release}${shared_ext}$major'
12793 shlibpath_var=LD_LIBRARY_PATH
12794 shlibpath_overrides_runpath=yes
12795 hardcode_into_libs=yes
12796 # ldd complains unless libraries are executable
12797 postinstall_cmds='chmod +x $lib'
12800 sunos4*)
12801 version_type=sunos
12802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12803 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12804 shlibpath_var=LD_LIBRARY_PATH
12805 shlibpath_overrides_runpath=yes
12806 if test "$with_gnu_ld" = yes; then
12807 need_lib_prefix=no
12809 need_version=yes
12812 sysv4 | sysv4.3*)
12813 version_type=linux
12814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12815 soname_spec='${libname}${release}${shared_ext}$major'
12816 shlibpath_var=LD_LIBRARY_PATH
12817 case $host_vendor in
12818 sni)
12819 shlibpath_overrides_runpath=no
12820 need_lib_prefix=no
12821 runpath_var=LD_RUN_PATH
12823 siemens)
12824 need_lib_prefix=no
12826 motorola)
12827 need_lib_prefix=no
12828 need_version=no
12829 shlibpath_overrides_runpath=no
12830 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12832 esac
12835 sysv4*MP*)
12836 if test -d /usr/nec ;then
12837 version_type=linux
12838 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12839 soname_spec='$libname${shared_ext}.$major'
12840 shlibpath_var=LD_LIBRARY_PATH
12844 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12845 version_type=freebsd-elf
12846 need_lib_prefix=no
12847 need_version=no
12848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12849 soname_spec='${libname}${release}${shared_ext}$major'
12850 shlibpath_var=LD_LIBRARY_PATH
12851 shlibpath_overrides_runpath=yes
12852 hardcode_into_libs=yes
12853 if test "$with_gnu_ld" = yes; then
12854 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12855 else
12856 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12857 case $host_os in
12858 sco3.2v5*)
12859 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12861 esac
12863 sys_lib_dlsearch_path_spec='/usr/lib'
12866 tpf*)
12867 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12868 version_type=linux
12869 need_lib_prefix=no
12870 need_version=no
12871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12872 shlibpath_var=LD_LIBRARY_PATH
12873 shlibpath_overrides_runpath=no
12874 hardcode_into_libs=yes
12877 uts4*)
12878 version_type=linux
12879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12880 soname_spec='${libname}${release}${shared_ext}$major'
12881 shlibpath_var=LD_LIBRARY_PATH
12885 dynamic_linker=no
12887 esac
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12889 $as_echo "$dynamic_linker" >&6; }
12890 test "$dynamic_linker" = no && can_build_shared=no
12892 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12893 if test "$GCC" = yes; then
12894 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12897 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12898 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12900 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12901 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12996 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12997 hardcode_action=
12998 if test -n "$hardcode_libdir_flag_spec" ||
12999 test -n "$runpath_var" ||
13000 test "X$hardcode_automatic" = "Xyes" ; then
13002 # We can hardcode non-existent directories.
13003 if test "$hardcode_direct" != no &&
13004 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13005 # have to relink, otherwise we might link with an installed library
13006 # when we should be linking with a yet-to-be-installed one
13007 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13008 test "$hardcode_minus_L" != no; then
13009 # Linking always hardcodes the temporary library directory.
13010 hardcode_action=relink
13011 else
13012 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13013 hardcode_action=immediate
13015 else
13016 # We cannot hardcode anything, or else we can only hardcode existing
13017 # directories.
13018 hardcode_action=unsupported
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13021 $as_echo "$hardcode_action" >&6; }
13023 if test "$hardcode_action" = relink ||
13024 test "$inherit_rpath" = yes; then
13025 # Fast installation is not supported
13026 enable_fast_install=no
13027 elif test "$shlibpath_overrides_runpath" = yes ||
13028 test "$enable_shared" = no; then
13029 # Fast installation is not necessary
13030 enable_fast_install=needless
13038 if test "x$enable_dlopen" != xyes; then
13039 enable_dlopen=unknown
13040 enable_dlopen_self=unknown
13041 enable_dlopen_self_static=unknown
13042 else
13043 lt_cv_dlopen=no
13044 lt_cv_dlopen_libs=
13046 case $host_os in
13047 beos*)
13048 lt_cv_dlopen="load_add_on"
13049 lt_cv_dlopen_libs=
13050 lt_cv_dlopen_self=yes
13053 mingw* | pw32* | cegcc*)
13054 lt_cv_dlopen="LoadLibrary"
13055 lt_cv_dlopen_libs=
13058 cygwin*)
13059 lt_cv_dlopen="dlopen"
13060 lt_cv_dlopen_libs=
13063 darwin*)
13064 # if libdl is installed we need to link against it
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13066 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13067 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13068 $as_echo_n "(cached) " >&6
13069 else
13070 ac_check_lib_save_LIBS=$LIBS
13071 LIBS="-ldl $LIBS"
13072 if test x$gcc_no_link = xyes; then
13073 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13076 /* end confdefs.h. */
13078 /* Override any GCC internal prototype to avoid an error.
13079 Use char because int might match the return type of a GCC
13080 builtin and then its argument prototype would still apply. */
13081 #ifdef __cplusplus
13082 extern "C"
13083 #endif
13084 char dlopen ();
13086 main ()
13088 return dlopen ();
13090 return 0;
13092 _ACEOF
13093 if ac_fn_c_try_link "$LINENO"; then :
13094 ac_cv_lib_dl_dlopen=yes
13095 else
13096 ac_cv_lib_dl_dlopen=no
13098 rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13100 LIBS=$ac_check_lib_save_LIBS
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13103 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13104 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13105 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13106 else
13108 lt_cv_dlopen="dyld"
13109 lt_cv_dlopen_libs=
13110 lt_cv_dlopen_self=yes
13117 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13118 if test "x$ac_cv_func_shl_load" = x""yes; then :
13119 lt_cv_dlopen="shl_load"
13120 else
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13122 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13123 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13124 $as_echo_n "(cached) " >&6
13125 else
13126 ac_check_lib_save_LIBS=$LIBS
13127 LIBS="-ldld $LIBS"
13128 if test x$gcc_no_link = xyes; then
13129 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13134 /* Override any GCC internal prototype to avoid an error.
13135 Use char because int might match the return type of a GCC
13136 builtin and then its argument prototype would still apply. */
13137 #ifdef __cplusplus
13138 extern "C"
13139 #endif
13140 char shl_load ();
13142 main ()
13144 return shl_load ();
13146 return 0;
13148 _ACEOF
13149 if ac_fn_c_try_link "$LINENO"; then :
13150 ac_cv_lib_dld_shl_load=yes
13151 else
13152 ac_cv_lib_dld_shl_load=no
13154 rm -f core conftest.err conftest.$ac_objext \
13155 conftest$ac_exeext conftest.$ac_ext
13156 LIBS=$ac_check_lib_save_LIBS
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13159 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13160 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13161 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13162 else
13163 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13164 if test "x$ac_cv_func_dlopen" = x""yes; then :
13165 lt_cv_dlopen="dlopen"
13166 else
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13168 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13169 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13170 $as_echo_n "(cached) " >&6
13171 else
13172 ac_check_lib_save_LIBS=$LIBS
13173 LIBS="-ldl $LIBS"
13174 if test x$gcc_no_link = xyes; then
13175 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13180 /* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13183 #ifdef __cplusplus
13184 extern "C"
13185 #endif
13186 char dlopen ();
13188 main ()
13190 return dlopen ();
13192 return 0;
13194 _ACEOF
13195 if ac_fn_c_try_link "$LINENO"; then :
13196 ac_cv_lib_dl_dlopen=yes
13197 else
13198 ac_cv_lib_dl_dlopen=no
13200 rm -f core conftest.err conftest.$ac_objext \
13201 conftest$ac_exeext conftest.$ac_ext
13202 LIBS=$ac_check_lib_save_LIBS
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13205 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13206 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13207 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13208 else
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13210 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13211 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13212 $as_echo_n "(cached) " >&6
13213 else
13214 ac_check_lib_save_LIBS=$LIBS
13215 LIBS="-lsvld $LIBS"
13216 if test x$gcc_no_link = xyes; then
13217 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13222 /* Override any GCC internal prototype to avoid an error.
13223 Use char because int might match the return type of a GCC
13224 builtin and then its argument prototype would still apply. */
13225 #ifdef __cplusplus
13226 extern "C"
13227 #endif
13228 char dlopen ();
13230 main ()
13232 return dlopen ();
13234 return 0;
13236 _ACEOF
13237 if ac_fn_c_try_link "$LINENO"; then :
13238 ac_cv_lib_svld_dlopen=yes
13239 else
13240 ac_cv_lib_svld_dlopen=no
13242 rm -f core conftest.err conftest.$ac_objext \
13243 conftest$ac_exeext conftest.$ac_ext
13244 LIBS=$ac_check_lib_save_LIBS
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13247 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13248 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13249 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13250 else
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13252 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13253 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13254 $as_echo_n "(cached) " >&6
13255 else
13256 ac_check_lib_save_LIBS=$LIBS
13257 LIBS="-ldld $LIBS"
13258 if test x$gcc_no_link = xyes; then
13259 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13264 /* Override any GCC internal prototype to avoid an error.
13265 Use char because int might match the return type of a GCC
13266 builtin and then its argument prototype would still apply. */
13267 #ifdef __cplusplus
13268 extern "C"
13269 #endif
13270 char dld_link ();
13272 main ()
13274 return dld_link ();
13276 return 0;
13278 _ACEOF
13279 if ac_fn_c_try_link "$LINENO"; then :
13280 ac_cv_lib_dld_dld_link=yes
13281 else
13282 ac_cv_lib_dld_dld_link=no
13284 rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext conftest.$ac_ext
13286 LIBS=$ac_check_lib_save_LIBS
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13289 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13290 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13291 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13310 esac
13312 if test "x$lt_cv_dlopen" != xno; then
13313 enable_dlopen=yes
13314 else
13315 enable_dlopen=no
13318 case $lt_cv_dlopen in
13319 dlopen)
13320 save_CPPFLAGS="$CPPFLAGS"
13321 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13323 save_LDFLAGS="$LDFLAGS"
13324 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13326 save_LIBS="$LIBS"
13327 LIBS="$lt_cv_dlopen_libs $LIBS"
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13330 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13331 if test "${lt_cv_dlopen_self+set}" = set; then :
13332 $as_echo_n "(cached) " >&6
13333 else
13334 if test "$cross_compiling" = yes; then :
13335 lt_cv_dlopen_self=cross
13336 else
13337 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13338 lt_status=$lt_dlunknown
13339 cat > conftest.$ac_ext <<_LT_EOF
13340 #line 13340 "configure"
13341 #include "confdefs.h"
13343 #if HAVE_DLFCN_H
13344 #include <dlfcn.h>
13345 #endif
13347 #include <stdio.h>
13349 #ifdef RTLD_GLOBAL
13350 # define LT_DLGLOBAL RTLD_GLOBAL
13351 #else
13352 # ifdef DL_GLOBAL
13353 # define LT_DLGLOBAL DL_GLOBAL
13354 # else
13355 # define LT_DLGLOBAL 0
13356 # endif
13357 #endif
13359 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13360 find out it does not work in some platform. */
13361 #ifndef LT_DLLAZY_OR_NOW
13362 # ifdef RTLD_LAZY
13363 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13364 # else
13365 # ifdef DL_LAZY
13366 # define LT_DLLAZY_OR_NOW DL_LAZY
13367 # else
13368 # ifdef RTLD_NOW
13369 # define LT_DLLAZY_OR_NOW RTLD_NOW
13370 # else
13371 # ifdef DL_NOW
13372 # define LT_DLLAZY_OR_NOW DL_NOW
13373 # else
13374 # define LT_DLLAZY_OR_NOW 0
13375 # endif
13376 # endif
13377 # endif
13378 # endif
13379 #endif
13381 /* When -fvisbility=hidden is used, assume the code has been annotated
13382 correspondingly for the symbols needed. */
13383 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13384 void fnord () __attribute__((visibility("default")));
13385 #endif
13387 void fnord () { int i=42; }
13388 int main ()
13390 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13391 int status = $lt_dlunknown;
13393 if (self)
13395 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13396 else
13398 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13399 else puts (dlerror ());
13401 /* dlclose (self); */
13403 else
13404 puts (dlerror ());
13406 return status;
13408 _LT_EOF
13409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13410 (eval $ac_link) 2>&5
13411 ac_status=$?
13412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13413 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13414 (./conftest; exit; ) >&5 2>/dev/null
13415 lt_status=$?
13416 case x$lt_status in
13417 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13418 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13419 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13420 esac
13421 else :
13422 # compilation failed
13423 lt_cv_dlopen_self=no
13426 rm -fr conftest*
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13431 $as_echo "$lt_cv_dlopen_self" >&6; }
13433 if test "x$lt_cv_dlopen_self" = xyes; then
13434 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13436 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13437 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13438 $as_echo_n "(cached) " >&6
13439 else
13440 if test "$cross_compiling" = yes; then :
13441 lt_cv_dlopen_self_static=cross
13442 else
13443 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13444 lt_status=$lt_dlunknown
13445 cat > conftest.$ac_ext <<_LT_EOF
13446 #line 13446 "configure"
13447 #include "confdefs.h"
13449 #if HAVE_DLFCN_H
13450 #include <dlfcn.h>
13451 #endif
13453 #include <stdio.h>
13455 #ifdef RTLD_GLOBAL
13456 # define LT_DLGLOBAL RTLD_GLOBAL
13457 #else
13458 # ifdef DL_GLOBAL
13459 # define LT_DLGLOBAL DL_GLOBAL
13460 # else
13461 # define LT_DLGLOBAL 0
13462 # endif
13463 #endif
13465 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13466 find out it does not work in some platform. */
13467 #ifndef LT_DLLAZY_OR_NOW
13468 # ifdef RTLD_LAZY
13469 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13470 # else
13471 # ifdef DL_LAZY
13472 # define LT_DLLAZY_OR_NOW DL_LAZY
13473 # else
13474 # ifdef RTLD_NOW
13475 # define LT_DLLAZY_OR_NOW RTLD_NOW
13476 # else
13477 # ifdef DL_NOW
13478 # define LT_DLLAZY_OR_NOW DL_NOW
13479 # else
13480 # define LT_DLLAZY_OR_NOW 0
13481 # endif
13482 # endif
13483 # endif
13484 # endif
13485 #endif
13487 /* When -fvisbility=hidden is used, assume the code has been annotated
13488 correspondingly for the symbols needed. */
13489 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13490 void fnord () __attribute__((visibility("default")));
13491 #endif
13493 void fnord () { int i=42; }
13494 int main ()
13496 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13497 int status = $lt_dlunknown;
13499 if (self)
13501 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13502 else
13504 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13505 else puts (dlerror ());
13507 /* dlclose (self); */
13509 else
13510 puts (dlerror ());
13512 return status;
13514 _LT_EOF
13515 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13516 (eval $ac_link) 2>&5
13517 ac_status=$?
13518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13519 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13520 (./conftest; exit; ) >&5 2>/dev/null
13521 lt_status=$?
13522 case x$lt_status in
13523 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13524 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13525 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13526 esac
13527 else :
13528 # compilation failed
13529 lt_cv_dlopen_self_static=no
13532 rm -fr conftest*
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13537 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13540 CPPFLAGS="$save_CPPFLAGS"
13541 LDFLAGS="$save_LDFLAGS"
13542 LIBS="$save_LIBS"
13544 esac
13546 case $lt_cv_dlopen_self in
13547 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13548 *) enable_dlopen_self=unknown ;;
13549 esac
13551 case $lt_cv_dlopen_self_static in
13552 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13553 *) enable_dlopen_self_static=unknown ;;
13554 esac
13573 striplib=
13574 old_striplib=
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13576 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13577 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13578 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13579 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13581 $as_echo "yes" >&6; }
13582 else
13583 # FIXME - insert some real tests, host_os isn't really good enough
13584 case $host_os in
13585 darwin*)
13586 if test -n "$STRIP" ; then
13587 striplib="$STRIP -x"
13588 old_striplib="$STRIP -S"
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13590 $as_echo "yes" >&6; }
13591 else
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593 $as_echo "no" >&6; }
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13598 $as_echo "no" >&6; }
13600 esac
13614 # Report which library types will actually be built
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13616 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13618 $as_echo "$can_build_shared" >&6; }
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13621 $as_echo_n "checking whether to build shared libraries... " >&6; }
13622 test "$can_build_shared" = "no" && enable_shared=no
13624 # On AIX, shared libraries and static libraries use the same namespace, and
13625 # are all built from PIC.
13626 case $host_os in
13627 aix3*)
13628 test "$enable_shared" = yes && enable_static=no
13629 if test -n "$RANLIB"; then
13630 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13631 postinstall_cmds='$RANLIB $lib'
13635 aix[4-9]*)
13636 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13637 test "$enable_shared" = yes && enable_static=no
13640 esac
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13642 $as_echo "$enable_shared" >&6; }
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13645 $as_echo_n "checking whether to build static libraries... " >&6; }
13646 # Make sure either enable_shared or enable_static is yes.
13647 test "$enable_shared" = yes || enable_static=yes
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13649 $as_echo "$enable_static" >&6; }
13655 ac_ext=c
13656 ac_cpp='$CPP $CPPFLAGS'
13657 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13658 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13659 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13661 CC="$lt_save_CC"
13663 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13664 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13665 (test "X$CXX" != "Xg++"))) ; then
13666 ac_ext=cpp
13667 ac_cpp='$CXXCPP $CPPFLAGS'
13668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13672 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13673 if test -z "$CXXCPP"; then
13674 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13675 $as_echo_n "(cached) " >&6
13676 else
13677 # Double quotes because CXXCPP needs to be expanded
13678 for CXXCPP in "$CXX -E" "/lib/cpp"
13680 ac_preproc_ok=false
13681 for ac_cxx_preproc_warn_flag in '' yes
13683 # Use a header file that comes with gcc, so configuring glibc
13684 # with a fresh cross-compiler works.
13685 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13686 # <limits.h> exists even on freestanding compilers.
13687 # On the NeXT, cc -E runs the code through the compiler's parser,
13688 # not just through cpp. "Syntax error" is here to catch this case.
13689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h. */
13691 #ifdef __STDC__
13692 # include <limits.h>
13693 #else
13694 # include <assert.h>
13695 #endif
13696 Syntax error
13697 _ACEOF
13698 if ac_fn_cxx_try_cpp "$LINENO"; then :
13700 else
13701 # Broken: fails on valid input.
13702 continue
13704 rm -f conftest.err conftest.$ac_ext
13706 # OK, works on sane cases. Now check whether nonexistent headers
13707 # can be detected and how.
13708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13709 /* end confdefs.h. */
13710 #include <ac_nonexistent.h>
13711 _ACEOF
13712 if ac_fn_cxx_try_cpp "$LINENO"; then :
13713 # Broken: success on invalid input.
13714 continue
13715 else
13716 # Passes both tests.
13717 ac_preproc_ok=:
13718 break
13720 rm -f conftest.err conftest.$ac_ext
13722 done
13723 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13724 rm -f conftest.err conftest.$ac_ext
13725 if $ac_preproc_ok; then :
13726 break
13729 done
13730 ac_cv_prog_CXXCPP=$CXXCPP
13733 CXXCPP=$ac_cv_prog_CXXCPP
13734 else
13735 ac_cv_prog_CXXCPP=$CXXCPP
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13738 $as_echo "$CXXCPP" >&6; }
13739 ac_preproc_ok=false
13740 for ac_cxx_preproc_warn_flag in '' yes
13742 # Use a header file that comes with gcc, so configuring glibc
13743 # with a fresh cross-compiler works.
13744 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13745 # <limits.h> exists even on freestanding compilers.
13746 # On the NeXT, cc -E runs the code through the compiler's parser,
13747 # not just through cpp. "Syntax error" is here to catch this case.
13748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13749 /* end confdefs.h. */
13750 #ifdef __STDC__
13751 # include <limits.h>
13752 #else
13753 # include <assert.h>
13754 #endif
13755 Syntax error
13756 _ACEOF
13757 if ac_fn_cxx_try_cpp "$LINENO"; then :
13759 else
13760 # Broken: fails on valid input.
13761 continue
13763 rm -f conftest.err conftest.$ac_ext
13765 # OK, works on sane cases. Now check whether nonexistent headers
13766 # can be detected and how.
13767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h. */
13769 #include <ac_nonexistent.h>
13770 _ACEOF
13771 if ac_fn_cxx_try_cpp "$LINENO"; then :
13772 # Broken: success on invalid input.
13773 continue
13774 else
13775 # Passes both tests.
13776 ac_preproc_ok=:
13777 break
13779 rm -f conftest.err conftest.$ac_ext
13781 done
13782 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13783 rm -f conftest.err conftest.$ac_ext
13784 if $ac_preproc_ok; then :
13786 else
13787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13789 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13790 See \`config.log' for more details." "$LINENO" 5; }
13793 ac_ext=c
13794 ac_cpp='$CPP $CPPFLAGS'
13795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13799 else
13800 _lt_caught_CXX_error=yes
13803 ac_ext=cpp
13804 ac_cpp='$CXXCPP $CPPFLAGS'
13805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13809 archive_cmds_need_lc_CXX=no
13810 allow_undefined_flag_CXX=
13811 always_export_symbols_CXX=no
13812 archive_expsym_cmds_CXX=
13813 compiler_needs_object_CXX=no
13814 export_dynamic_flag_spec_CXX=
13815 hardcode_direct_CXX=no
13816 hardcode_direct_absolute_CXX=no
13817 hardcode_libdir_flag_spec_CXX=
13818 hardcode_libdir_flag_spec_ld_CXX=
13819 hardcode_libdir_separator_CXX=
13820 hardcode_minus_L_CXX=no
13821 hardcode_shlibpath_var_CXX=unsupported
13822 hardcode_automatic_CXX=no
13823 inherit_rpath_CXX=no
13824 module_cmds_CXX=
13825 module_expsym_cmds_CXX=
13826 link_all_deplibs_CXX=unknown
13827 old_archive_cmds_CXX=$old_archive_cmds
13828 reload_flag_CXX=$reload_flag
13829 reload_cmds_CXX=$reload_cmds
13830 no_undefined_flag_CXX=
13831 whole_archive_flag_spec_CXX=
13832 enable_shared_with_static_runtimes_CXX=no
13834 # Source file extension for C++ test sources.
13835 ac_ext=cpp
13837 # Object file extension for compiled C++ test sources.
13838 objext=o
13839 objext_CXX=$objext
13841 # No sense in running all these tests if we already determined that
13842 # the CXX compiler isn't working. Some variables (like enable_shared)
13843 # are currently assumed to apply to all compilers on this platform,
13844 # and will be corrupted by setting them based on a non-working compiler.
13845 if test "$_lt_caught_CXX_error" != yes; then
13846 # Code to be used in simple compile tests
13847 lt_simple_compile_test_code="int some_variable = 0;"
13849 # Code to be used in simple link tests
13850 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13852 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13859 # If no C compiler was specified, use CC.
13860 LTCC=${LTCC-"$CC"}
13862 # If no C compiler flags were specified, use CFLAGS.
13863 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13865 # Allow CC to be a program name with arguments.
13866 compiler=$CC
13869 # save warnings/boilerplate of simple test code
13870 ac_outfile=conftest.$ac_objext
13871 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13872 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13873 _lt_compiler_boilerplate=`cat conftest.err`
13874 $RM conftest*
13876 ac_outfile=conftest.$ac_objext
13877 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13878 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13879 _lt_linker_boilerplate=`cat conftest.err`
13880 $RM -r conftest*
13883 # Allow CC to be a program name with arguments.
13884 lt_save_CC=$CC
13885 lt_save_LD=$LD
13886 lt_save_GCC=$GCC
13887 GCC=$GXX
13888 lt_save_with_gnu_ld=$with_gnu_ld
13889 lt_save_path_LD=$lt_cv_path_LD
13890 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13891 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13892 else
13893 $as_unset lt_cv_prog_gnu_ld
13895 if test -n "${lt_cv_path_LDCXX+set}"; then
13896 lt_cv_path_LD=$lt_cv_path_LDCXX
13897 else
13898 $as_unset lt_cv_path_LD
13900 test -z "${LDCXX+set}" || LD=$LDCXX
13901 CC=${CXX-"c++"}
13902 compiler=$CC
13903 compiler_CXX=$CC
13904 for cc_temp in $compiler""; do
13905 case $cc_temp in
13906 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13907 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13908 \-*) ;;
13909 *) break;;
13910 esac
13911 done
13912 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13915 if test -n "$compiler"; then
13916 # We don't want -fno-exception when compiling C++ code, so set the
13917 # no_builtin_flag separately
13918 if test "$GXX" = yes; then
13919 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13920 else
13921 lt_prog_compiler_no_builtin_flag_CXX=
13924 if test "$GXX" = yes; then
13925 # Set up default GNU C++ configuration
13929 # Check whether --with-gnu-ld was given.
13930 if test "${with_gnu_ld+set}" = set; then :
13931 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13932 else
13933 with_gnu_ld=no
13936 ac_prog=ld
13937 if test "$GCC" = yes; then
13938 # Check if gcc -print-prog-name=ld gives a path.
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13940 $as_echo_n "checking for ld used by $CC... " >&6; }
13941 case $host in
13942 *-*-mingw*)
13943 # gcc leaves a trailing carriage return which upsets mingw
13944 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13946 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13947 esac
13948 case $ac_prog in
13949 # Accept absolute paths.
13950 [\\/]* | ?:[\\/]*)
13951 re_direlt='/[^/][^/]*/\.\./'
13952 # Canonicalize the pathname of ld
13953 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13954 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13955 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13956 done
13957 test -z "$LD" && LD="$ac_prog"
13960 # If it fails, then pretend we aren't using GCC.
13961 ac_prog=ld
13964 # If it is relative, then search for the first ld in PATH.
13965 with_gnu_ld=unknown
13967 esac
13968 elif test "$with_gnu_ld" = yes; then
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13970 $as_echo_n "checking for GNU ld... " >&6; }
13971 else
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13973 $as_echo_n "checking for non-GNU ld... " >&6; }
13975 if test "${lt_cv_path_LD+set}" = set; then :
13976 $as_echo_n "(cached) " >&6
13977 else
13978 if test -z "$LD"; then
13979 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13980 for ac_dir in $PATH; do
13981 IFS="$lt_save_ifs"
13982 test -z "$ac_dir" && ac_dir=.
13983 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13984 lt_cv_path_LD="$ac_dir/$ac_prog"
13985 # Check to see if the program is GNU ld. I'd rather use --version,
13986 # but apparently some variants of GNU ld only accept -v.
13987 # Break only if it was the GNU/non-GNU ld that we prefer.
13988 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13989 *GNU* | *'with BFD'*)
13990 test "$with_gnu_ld" != no && break
13993 test "$with_gnu_ld" != yes && break
13995 esac
13997 done
13998 IFS="$lt_save_ifs"
13999 else
14000 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14004 LD="$lt_cv_path_LD"
14005 if test -n "$LD"; then
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14007 $as_echo "$LD" >&6; }
14008 else
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14010 $as_echo "no" >&6; }
14012 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14014 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14015 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14016 $as_echo_n "(cached) " >&6
14017 else
14018 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14019 case `$LD -v 2>&1 </dev/null` in
14020 *GNU* | *'with BFD'*)
14021 lt_cv_prog_gnu_ld=yes
14024 lt_cv_prog_gnu_ld=no
14026 esac
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14029 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14030 with_gnu_ld=$lt_cv_prog_gnu_ld
14038 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14039 # archiving commands below assume that GNU ld is being used.
14040 if test "$with_gnu_ld" = yes; then
14041 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14042 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'
14044 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14045 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14047 # If archive_cmds runs LD, not CC, wlarc should be empty
14048 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14049 # investigate it a little bit more. (MM)
14050 wlarc='${wl}'
14052 # ancient GNU ld didn't support --whole-archive et. al.
14053 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14054 $GREP 'no-whole-archive' > /dev/null; then
14055 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14056 else
14057 whole_archive_flag_spec_CXX=
14059 else
14060 with_gnu_ld=no
14061 wlarc=
14063 # A generic and very simple default shared library creation
14064 # command for GNU C++ for the case where it uses the native
14065 # linker, instead of GNU ld. If possible, this setting should
14066 # overridden to take advantage of the native linker features on
14067 # the platform it is being used on.
14068 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14071 # Commands to make compiler produce verbose output that lists
14072 # what "hidden" libraries, object files and flags are used when
14073 # linking a shared library.
14074 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14076 else
14077 GXX=no
14078 with_gnu_ld=no
14079 wlarc=
14082 # PORTME: fill in a description of your system's C++ link characteristics
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14084 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14085 ld_shlibs_CXX=yes
14086 case $host_os in
14087 aix3*)
14088 # FIXME: insert proper C++ library support
14089 ld_shlibs_CXX=no
14091 aix[4-9]*)
14092 if test "$host_cpu" = ia64; then
14093 # On IA64, the linker does run time linking by default, so we don't
14094 # have to do anything special.
14095 aix_use_runtimelinking=no
14096 exp_sym_flag='-Bexport'
14097 no_entry_flag=""
14098 else
14099 aix_use_runtimelinking=no
14101 # Test if we are trying to use run time linking or normal
14102 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14103 # need to do runtime linking.
14104 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14105 for ld_flag in $LDFLAGS; do
14106 case $ld_flag in
14107 *-brtl*)
14108 aix_use_runtimelinking=yes
14109 break
14111 esac
14112 done
14114 esac
14116 exp_sym_flag='-bexport'
14117 no_entry_flag='-bnoentry'
14120 # When large executables or shared objects are built, AIX ld can
14121 # have problems creating the table of contents. If linking a library
14122 # or program results in "error TOC overflow" add -mminimal-toc to
14123 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14124 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14126 archive_cmds_CXX=''
14127 hardcode_direct_CXX=yes
14128 hardcode_direct_absolute_CXX=yes
14129 hardcode_libdir_separator_CXX=':'
14130 link_all_deplibs_CXX=yes
14131 file_list_spec_CXX='${wl}-f,'
14133 if test "$GXX" = yes; then
14134 case $host_os in aix4.[012]|aix4.[012].*)
14135 # We only want to do this on AIX 4.2 and lower, the check
14136 # below for broken collect2 doesn't work under 4.3+
14137 collect2name=`${CC} -print-prog-name=collect2`
14138 if test -f "$collect2name" &&
14139 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14140 then
14141 # We have reworked collect2
14143 else
14144 # We have old collect2
14145 hardcode_direct_CXX=unsupported
14146 # It fails to find uninstalled libraries when the uninstalled
14147 # path is not listed in the libpath. Setting hardcode_minus_L
14148 # to unsupported forces relinking
14149 hardcode_minus_L_CXX=yes
14150 hardcode_libdir_flag_spec_CXX='-L$libdir'
14151 hardcode_libdir_separator_CXX=
14153 esac
14154 shared_flag='-shared'
14155 if test "$aix_use_runtimelinking" = yes; then
14156 shared_flag="$shared_flag "'${wl}-G'
14158 else
14159 # not using gcc
14160 if test "$host_cpu" = ia64; then
14161 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14162 # chokes on -Wl,-G. The following line is correct:
14163 shared_flag='-G'
14164 else
14165 if test "$aix_use_runtimelinking" = yes; then
14166 shared_flag='${wl}-G'
14167 else
14168 shared_flag='${wl}-bM:SRE'
14173 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14174 # It seems that -bexpall does not export symbols beginning with
14175 # underscore (_), so it is better to generate a list of symbols to
14176 # export.
14177 always_export_symbols_CXX=yes
14178 if test "$aix_use_runtimelinking" = yes; then
14179 # Warning - without using the other runtime loading flags (-brtl),
14180 # -berok will link without error, but may produce a broken library.
14181 allow_undefined_flag_CXX='-berok'
14182 # Determine the default libpath from the value encoded in an empty
14183 # executable.
14184 if test x$gcc_no_link = xyes; then
14185 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14188 /* end confdefs.h. */
14191 main ()
14195 return 0;
14197 _ACEOF
14198 if ac_fn_cxx_try_link "$LINENO"; then :
14200 lt_aix_libpath_sed='
14201 /Import File Strings/,/^$/ {
14202 /^0/ {
14203 s/^0 *\(.*\)$/\1/
14207 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14208 # Check for a 64-bit object if we didn't find anything.
14209 if test -z "$aix_libpath"; then
14210 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14213 rm -f core conftest.err conftest.$ac_objext \
14214 conftest$ac_exeext conftest.$ac_ext
14215 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14217 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14219 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14220 else
14221 if test "$host_cpu" = ia64; then
14222 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14223 allow_undefined_flag_CXX="-z nodefs"
14224 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"
14225 else
14226 # Determine the default libpath from the value encoded in an
14227 # empty executable.
14228 if test x$gcc_no_link = xyes; then
14229 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14232 /* end confdefs.h. */
14235 main ()
14239 return 0;
14241 _ACEOF
14242 if ac_fn_cxx_try_link "$LINENO"; then :
14244 lt_aix_libpath_sed='
14245 /Import File Strings/,/^$/ {
14246 /^0/ {
14247 s/^0 *\(.*\)$/\1/
14251 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14252 # Check for a 64-bit object if we didn't find anything.
14253 if test -z "$aix_libpath"; then
14254 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14257 rm -f core conftest.err conftest.$ac_objext \
14258 conftest$ac_exeext conftest.$ac_ext
14259 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14261 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14262 # Warning - without using the other run time loading flags,
14263 # -berok will link without error, but may produce a broken library.
14264 no_undefined_flag_CXX=' ${wl}-bernotok'
14265 allow_undefined_flag_CXX=' ${wl}-berok'
14266 if test "$with_gnu_ld" = yes; then
14267 # We only use this code for GNU lds that support --whole-archive.
14268 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14269 else
14270 # Exported symbols can be pulled into shared objects from archives
14271 whole_archive_flag_spec_CXX='$convenience'
14273 archive_cmds_need_lc_CXX=yes
14274 # This is similar to how AIX traditionally builds its shared
14275 # libraries.
14276 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'
14281 beos*)
14282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14283 allow_undefined_flag_CXX=unsupported
14284 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14285 # support --undefined. This deserves some investigation. FIXME
14286 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14287 else
14288 ld_shlibs_CXX=no
14292 chorus*)
14293 case $cc_basename in
14295 # FIXME: insert proper C++ library support
14296 ld_shlibs_CXX=no
14298 esac
14301 cygwin* | mingw* | pw32* | cegcc*)
14302 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14303 # as there is no search path for DLLs.
14304 hardcode_libdir_flag_spec_CXX='-L$libdir'
14305 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14306 allow_undefined_flag_CXX=unsupported
14307 always_export_symbols_CXX=no
14308 enable_shared_with_static_runtimes_CXX=yes
14310 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14311 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'
14312 # If the export-symbols file already is a .def file (1st line
14313 # is EXPORTS), use it as is; otherwise, prepend...
14314 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14315 cp $export_symbols $output_objdir/$soname.def;
14316 else
14317 echo EXPORTS > $output_objdir/$soname.def;
14318 cat $export_symbols >> $output_objdir/$soname.def;
14320 $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'
14321 else
14322 ld_shlibs_CXX=no
14325 darwin* | rhapsody*)
14328 archive_cmds_need_lc_CXX=no
14329 hardcode_direct_CXX=no
14330 hardcode_automatic_CXX=yes
14331 hardcode_shlibpath_var_CXX=unsupported
14332 if test "$lt_cv_ld_force_load" = "yes"; then
14333 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14334 else
14335 whole_archive_flag_spec_CXX=''
14337 link_all_deplibs_CXX=yes
14338 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14339 case $cc_basename in
14340 ifort*) _lt_dar_can_shared=yes ;;
14341 *) _lt_dar_can_shared=$GCC ;;
14342 esac
14343 if test "$_lt_dar_can_shared" = "yes"; then
14344 output_verbose_link_cmd=func_echo_all
14345 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}"
14346 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14347 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}"
14348 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}"
14349 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14350 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}"
14351 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}"
14354 else
14355 ld_shlibs_CXX=no
14360 dgux*)
14361 case $cc_basename in
14362 ec++*)
14363 # FIXME: insert proper C++ library support
14364 ld_shlibs_CXX=no
14366 ghcx*)
14367 # Green Hills C++ Compiler
14368 # FIXME: insert proper C++ library support
14369 ld_shlibs_CXX=no
14372 # FIXME: insert proper C++ library support
14373 ld_shlibs_CXX=no
14375 esac
14378 freebsd[12]*)
14379 # C++ shared libraries reported to be fairly broken before
14380 # switch to ELF
14381 ld_shlibs_CXX=no
14384 freebsd-elf*)
14385 archive_cmds_need_lc_CXX=no
14388 freebsd* | dragonfly*)
14389 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14390 # conventions
14391 ld_shlibs_CXX=yes
14394 gnu*)
14397 haiku*)
14398 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14399 link_all_deplibs_CXX=yes
14402 hpux9*)
14403 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14404 hardcode_libdir_separator_CXX=:
14405 export_dynamic_flag_spec_CXX='${wl}-E'
14406 hardcode_direct_CXX=yes
14407 hardcode_minus_L_CXX=yes # Not in the search PATH,
14408 # but as the default
14409 # location of the library.
14411 case $cc_basename in
14412 CC*)
14413 # FIXME: insert proper C++ library support
14414 ld_shlibs_CXX=no
14416 aCC*)
14417 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'
14418 # Commands to make compiler produce verbose output that lists
14419 # what "hidden" libraries, object files and flags are used when
14420 # linking a shared library.
14422 # There doesn't appear to be a way to prevent this compiler from
14423 # explicitly linking system object files so we need to strip them
14424 # from the output so that they don't get included in the library
14425 # dependencies.
14426 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14429 if test "$GXX" = yes; then
14430 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'
14431 else
14432 # FIXME: insert proper C++ library support
14433 ld_shlibs_CXX=no
14436 esac
14439 hpux10*|hpux11*)
14440 if test $with_gnu_ld = no; then
14441 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14442 hardcode_libdir_separator_CXX=:
14444 case $host_cpu in
14445 hppa*64*|ia64*)
14448 export_dynamic_flag_spec_CXX='${wl}-E'
14450 esac
14452 case $host_cpu in
14453 hppa*64*|ia64*)
14454 hardcode_direct_CXX=no
14455 hardcode_shlibpath_var_CXX=no
14458 hardcode_direct_CXX=yes
14459 hardcode_direct_absolute_CXX=yes
14460 hardcode_minus_L_CXX=yes # Not in the search PATH,
14461 # but as the default
14462 # location of the library.
14464 esac
14466 case $cc_basename in
14467 CC*)
14468 # FIXME: insert proper C++ library support
14469 ld_shlibs_CXX=no
14471 aCC*)
14472 case $host_cpu in
14473 hppa*64*)
14474 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14476 ia64*)
14477 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14480 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14482 esac
14483 # Commands to make compiler produce verbose output that lists
14484 # what "hidden" libraries, object files and flags are used when
14485 # linking a shared library.
14487 # There doesn't appear to be a way to prevent this compiler from
14488 # explicitly linking system object files so we need to strip them
14489 # from the output so that they don't get included in the library
14490 # dependencies.
14491 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14494 if test "$GXX" = yes; then
14495 if test $with_gnu_ld = no; then
14496 case $host_cpu in
14497 hppa*64*)
14498 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14500 ia64*)
14501 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14504 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'
14506 esac
14508 else
14509 # FIXME: insert proper C++ library support
14510 ld_shlibs_CXX=no
14513 esac
14516 interix[3-9]*)
14517 hardcode_direct_CXX=no
14518 hardcode_shlibpath_var_CXX=no
14519 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14520 export_dynamic_flag_spec_CXX='${wl}-E'
14521 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14522 # Instead, shared libraries are loaded at an image base (0x10000000 by
14523 # default) and relocated if they conflict, which is a slow very memory
14524 # consuming and fragmenting process. To avoid this, we pick a random,
14525 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14526 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14527 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'
14528 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'
14530 irix5* | irix6*)
14531 case $cc_basename in
14532 CC*)
14533 # SGI C++
14534 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14536 # Archives containing C++ object files must be created using
14537 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14538 # necessary to make sure instantiated templates are included
14539 # in the archive.
14540 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14543 if test "$GXX" = yes; then
14544 if test "$with_gnu_ld" = no; then
14545 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14546 else
14547 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14550 link_all_deplibs_CXX=yes
14552 esac
14553 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14554 hardcode_libdir_separator_CXX=:
14555 inherit_rpath_CXX=yes
14558 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14559 case $cc_basename in
14560 KCC*)
14561 # Kuck and Associates, Inc. (KAI) C++ Compiler
14563 # KCC will only create a shared library if the output file
14564 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14565 # to its proper name (with version) after linking.
14566 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'
14567 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'
14568 # Commands to make compiler produce verbose output that lists
14569 # what "hidden" libraries, object files and flags are used when
14570 # linking a shared library.
14572 # There doesn't appear to be a way to prevent this compiler from
14573 # explicitly linking system object files so we need to strip them
14574 # from the output so that they don't get included in the library
14575 # dependencies.
14576 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14578 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14579 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14581 # Archives containing C++ object files must be created using
14582 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14583 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14585 icpc* | ecpc* )
14586 # Intel C++
14587 with_gnu_ld=yes
14588 # version 8.0 and above of icpc choke on multiply defined symbols
14589 # if we add $predep_objects and $postdep_objects, however 7.1 and
14590 # earlier do not add the objects themselves.
14591 case `$CC -V 2>&1` in
14592 *"Version 7."*)
14593 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14594 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'
14596 *) # Version 8.0 or newer
14597 tmp_idyn=
14598 case $host_cpu in
14599 ia64*) tmp_idyn=' -i_dynamic';;
14600 esac
14601 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14602 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'
14604 esac
14605 archive_cmds_need_lc_CXX=no
14606 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14607 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14608 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14610 pgCC* | pgcpp*)
14611 # Portland Group C++ compiler
14612 case `$CC -V` in
14613 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14614 prelink_cmds_CXX='tpldir=Template.dir~
14615 rm -rf $tpldir~
14616 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14617 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14618 old_archive_cmds_CXX='tpldir=Template.dir~
14619 rm -rf $tpldir~
14620 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14621 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14622 $RANLIB $oldlib'
14623 archive_cmds_CXX='tpldir=Template.dir~
14624 rm -rf $tpldir~
14625 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14626 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14627 archive_expsym_cmds_CXX='tpldir=Template.dir~
14628 rm -rf $tpldir~
14629 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14630 $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'
14632 *) # Version 6 and above use weak symbols
14633 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14634 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'
14636 esac
14638 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14639 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14640 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14642 cxx*)
14643 # Compaq C++
14644 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14645 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'
14647 runpath_var=LD_RUN_PATH
14648 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14649 hardcode_libdir_separator_CXX=:
14651 # Commands to make compiler produce verbose output that lists
14652 # what "hidden" libraries, object files and flags are used when
14653 # linking a shared library.
14655 # There doesn't appear to be a way to prevent this compiler from
14656 # explicitly linking system object files so we need to strip them
14657 # from the output so that they don't get included in the library
14658 # dependencies.
14659 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14661 xl* | mpixl* | bgxl*)
14662 # IBM XL 8.0 on PPC, with GNU ld
14663 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14664 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14665 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14666 if test "x$supports_anon_versioning" = xyes; then
14667 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14668 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14669 echo "local: *; };" >> $output_objdir/$libname.ver~
14670 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14674 case `$CC -V 2>&1 | sed 5q` in
14675 *Sun\ C*)
14676 # Sun C++ 5.9
14677 no_undefined_flag_CXX=' -zdefs'
14678 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14679 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'
14680 hardcode_libdir_flag_spec_CXX='-R$libdir'
14681 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14682 compiler_needs_object_CXX=yes
14684 # Not sure whether something based on
14685 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14686 # would be better.
14687 output_verbose_link_cmd='func_echo_all'
14689 # Archives containing C++ object files must be created using
14690 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14691 # necessary to make sure instantiated templates are included
14692 # in the archive.
14693 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14695 esac
14697 esac
14700 lynxos*)
14701 # FIXME: insert proper C++ library support
14702 ld_shlibs_CXX=no
14705 m88k*)
14706 # FIXME: insert proper C++ library support
14707 ld_shlibs_CXX=no
14710 mvs*)
14711 case $cc_basename in
14712 cxx*)
14713 # FIXME: insert proper C++ library support
14714 ld_shlibs_CXX=no
14717 # FIXME: insert proper C++ library support
14718 ld_shlibs_CXX=no
14720 esac
14723 netbsd*)
14724 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14725 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14726 wlarc=
14727 hardcode_libdir_flag_spec_CXX='-R$libdir'
14728 hardcode_direct_CXX=yes
14729 hardcode_shlibpath_var_CXX=no
14731 # Workaround some broken pre-1.5 toolchains
14732 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14735 *nto* | *qnx*)
14736 ld_shlibs_CXX=yes
14739 openbsd2*)
14740 # C++ shared libraries are fairly broken
14741 ld_shlibs_CXX=no
14744 openbsd*)
14745 if test -f /usr/libexec/ld.so; then
14746 hardcode_direct_CXX=yes
14747 hardcode_shlibpath_var_CXX=no
14748 hardcode_direct_absolute_CXX=yes
14749 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14750 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14751 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14752 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14753 export_dynamic_flag_spec_CXX='${wl}-E'
14754 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14756 output_verbose_link_cmd=func_echo_all
14757 else
14758 ld_shlibs_CXX=no
14762 osf3* | osf4* | osf5*)
14763 case $cc_basename in
14764 KCC*)
14765 # Kuck and Associates, Inc. (KAI) C++ Compiler
14767 # KCC will only create a shared library if the output file
14768 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14769 # to its proper name (with version) after linking.
14770 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'
14772 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14773 hardcode_libdir_separator_CXX=:
14775 # Archives containing C++ object files must be created using
14776 # the KAI C++ compiler.
14777 case $host in
14778 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14779 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14780 esac
14782 RCC*)
14783 # Rational C++ 2.4.1
14784 # FIXME: insert proper C++ library support
14785 ld_shlibs_CXX=no
14787 cxx*)
14788 case $host in
14789 osf3*)
14790 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14791 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14792 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14795 allow_undefined_flag_CXX=' -expect_unresolved \*'
14796 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14797 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14798 echo "-hidden">> $lib.exp~
14799 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14800 $RM $lib.exp'
14801 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14803 esac
14805 hardcode_libdir_separator_CXX=:
14807 # Commands to make compiler produce verbose output that lists
14808 # what "hidden" libraries, object files and flags are used when
14809 # linking a shared library.
14811 # There doesn't appear to be a way to prevent this compiler from
14812 # explicitly linking system object files so we need to strip them
14813 # from the output so that they don't get included in the library
14814 # dependencies.
14815 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14818 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14819 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14820 case $host in
14821 osf3*)
14822 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14825 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14827 esac
14829 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14830 hardcode_libdir_separator_CXX=:
14832 # Commands to make compiler produce verbose output that lists
14833 # what "hidden" libraries, object files and flags are used when
14834 # linking a shared library.
14835 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14837 else
14838 # FIXME: insert proper C++ library support
14839 ld_shlibs_CXX=no
14842 esac
14845 psos*)
14846 # FIXME: insert proper C++ library support
14847 ld_shlibs_CXX=no
14850 sunos4*)
14851 case $cc_basename in
14852 CC*)
14853 # Sun C++ 4.x
14854 # FIXME: insert proper C++ library support
14855 ld_shlibs_CXX=no
14857 lcc*)
14858 # Lucid
14859 # FIXME: insert proper C++ library support
14860 ld_shlibs_CXX=no
14863 # FIXME: insert proper C++ library support
14864 ld_shlibs_CXX=no
14866 esac
14869 solaris*)
14870 case $cc_basename in
14871 CC*)
14872 # Sun C++ 4.2, 5.x and Centerline C++
14873 archive_cmds_need_lc_CXX=yes
14874 no_undefined_flag_CXX=' -zdefs'
14875 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14876 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14877 $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'
14879 hardcode_libdir_flag_spec_CXX='-R$libdir'
14880 hardcode_shlibpath_var_CXX=no
14881 case $host_os in
14882 solaris2.[0-5] | solaris2.[0-5].*) ;;
14884 # The compiler driver will combine and reorder linker options,
14885 # but understands `-z linker_flag'.
14886 # Supported since Solaris 2.6 (maybe 2.5.1?)
14887 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14889 esac
14890 link_all_deplibs_CXX=yes
14892 output_verbose_link_cmd='func_echo_all'
14894 # Archives containing C++ object files must be created using
14895 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14896 # necessary to make sure instantiated templates are included
14897 # in the archive.
14898 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14900 gcx*)
14901 # Green Hills C++ Compiler
14902 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14904 # The C++ compiler must be used to create the archive.
14905 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14908 # GNU C++ compiler with Solaris linker
14909 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14910 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14911 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14912 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14913 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14914 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14916 # Commands to make compiler produce verbose output that lists
14917 # what "hidden" libraries, object files and flags are used when
14918 # linking a shared library.
14919 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14920 else
14921 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14922 # platform.
14923 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14924 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14925 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14927 # Commands to make compiler produce verbose output that lists
14928 # what "hidden" libraries, object files and flags are used when
14929 # linking a shared library.
14930 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14933 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14934 case $host_os in
14935 solaris2.[0-5] | solaris2.[0-5].*) ;;
14937 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14939 esac
14942 esac
14945 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14946 no_undefined_flag_CXX='${wl}-z,text'
14947 archive_cmds_need_lc_CXX=no
14948 hardcode_shlibpath_var_CXX=no
14949 runpath_var='LD_RUN_PATH'
14951 case $cc_basename in
14952 CC*)
14953 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14954 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14957 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14958 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14960 esac
14963 sysv5* | sco3.2v5* | sco5v6*)
14964 # Note: We can NOT use -z defs as we might desire, because we do not
14965 # link with -lc, and that would cause any symbols used from libc to
14966 # always be unresolved, which means just about no library would
14967 # ever link correctly. If we're not using GNU ld we use -z text
14968 # though, which does catch some bad symbols but isn't as heavy-handed
14969 # as -z defs.
14970 no_undefined_flag_CXX='${wl}-z,text'
14971 allow_undefined_flag_CXX='${wl}-z,nodefs'
14972 archive_cmds_need_lc_CXX=no
14973 hardcode_shlibpath_var_CXX=no
14974 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14975 hardcode_libdir_separator_CXX=':'
14976 link_all_deplibs_CXX=yes
14977 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14978 runpath_var='LD_RUN_PATH'
14980 case $cc_basename in
14981 CC*)
14982 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14983 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14984 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14985 '"$old_archive_cmds_CXX"
14986 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14987 '"$reload_cmds_CXX"
14990 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14991 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14993 esac
14996 tandem*)
14997 case $cc_basename in
14998 NCC*)
14999 # NonStop-UX NCC 3.20
15000 # FIXME: insert proper C++ library support
15001 ld_shlibs_CXX=no
15004 # FIXME: insert proper C++ library support
15005 ld_shlibs_CXX=no
15007 esac
15010 vxworks*)
15011 # FIXME: insert proper C++ library support
15012 ld_shlibs_CXX=no
15016 # FIXME: insert proper C++ library support
15017 ld_shlibs_CXX=no
15019 esac
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15022 $as_echo "$ld_shlibs_CXX" >&6; }
15023 test "$ld_shlibs_CXX" = no && can_build_shared=no
15025 GCC_CXX="$GXX"
15026 LD_CXX="$LD"
15028 ## CAVEAT EMPTOR:
15029 ## There is no encapsulation within the following macros, do not change
15030 ## the running order or otherwise move them around unless you know exactly
15031 ## what you are doing...
15032 # Dependencies to place before and after the object being linked:
15033 predep_objects_CXX=
15034 postdep_objects_CXX=
15035 predeps_CXX=
15036 postdeps_CXX=
15037 compiler_lib_search_path_CXX=
15039 cat > conftest.$ac_ext <<_LT_EOF
15040 class Foo
15042 public:
15043 Foo (void) { a = 0; }
15044 private:
15045 int a;
15047 _LT_EOF
15049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15050 (eval $ac_compile) 2>&5
15051 ac_status=$?
15052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15053 test $ac_status = 0; }; then
15054 # Parse the compiler output and extract the necessary
15055 # objects, libraries and library flags.
15057 # Sentinel used to keep track of whether or not we are before
15058 # the conftest object file.
15059 pre_test_object_deps_done=no
15061 for p in `eval "$output_verbose_link_cmd"`; do
15062 case $p in
15064 -L* | -R* | -l*)
15065 # Some compilers place space between "-{L,R}" and the path.
15066 # Remove the space.
15067 if test $p = "-L" ||
15068 test $p = "-R"; then
15069 prev=$p
15070 continue
15071 else
15072 prev=
15075 if test "$pre_test_object_deps_done" = no; then
15076 case $p in
15077 -L* | -R*)
15078 # Internal compiler library paths should come after those
15079 # provided the user. The postdeps already come after the
15080 # user supplied libs so there is no need to process them.
15081 if test -z "$compiler_lib_search_path_CXX"; then
15082 compiler_lib_search_path_CXX="${prev}${p}"
15083 else
15084 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15087 # The "-l" case would never come before the object being
15088 # linked, so don't bother handling this case.
15089 esac
15090 else
15091 if test -z "$postdeps_CXX"; then
15092 postdeps_CXX="${prev}${p}"
15093 else
15094 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15099 *.$objext)
15100 # This assumes that the test object file only shows up
15101 # once in the compiler output.
15102 if test "$p" = "conftest.$objext"; then
15103 pre_test_object_deps_done=yes
15104 continue
15107 if test "$pre_test_object_deps_done" = no; then
15108 if test -z "$predep_objects_CXX"; then
15109 predep_objects_CXX="$p"
15110 else
15111 predep_objects_CXX="$predep_objects_CXX $p"
15113 else
15114 if test -z "$postdep_objects_CXX"; then
15115 postdep_objects_CXX="$p"
15116 else
15117 postdep_objects_CXX="$postdep_objects_CXX $p"
15122 *) ;; # Ignore the rest.
15124 esac
15125 done
15127 # Clean up.
15128 rm -f a.out a.exe
15129 else
15130 echo "libtool.m4: error: problem compiling CXX test program"
15133 $RM -f confest.$objext
15135 # PORTME: override above test on systems where it is broken
15136 case $host_os in
15137 interix[3-9]*)
15138 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15139 # hack all around it, let's just trust "g++" to DTRT.
15140 predep_objects_CXX=
15141 postdep_objects_CXX=
15142 postdeps_CXX=
15145 linux*)
15146 case `$CC -V 2>&1 | sed 5q` in
15147 *Sun\ C*)
15148 # Sun C++ 5.9
15150 # The more standards-conforming stlport4 library is
15151 # incompatible with the Cstd library. Avoid specifying
15152 # it if it's in CXXFLAGS. Ignore libCrun as
15153 # -library=stlport4 depends on it.
15154 case " $CXX $CXXFLAGS " in
15155 *" -library=stlport4 "*)
15156 solaris_use_stlport4=yes
15158 esac
15160 if test "$solaris_use_stlport4" != yes; then
15161 postdeps_CXX='-library=Cstd -library=Crun'
15164 esac
15167 solaris*)
15168 case $cc_basename in
15169 CC*)
15170 # The more standards-conforming stlport4 library is
15171 # incompatible with the Cstd library. Avoid specifying
15172 # it if it's in CXXFLAGS. Ignore libCrun as
15173 # -library=stlport4 depends on it.
15174 case " $CXX $CXXFLAGS " in
15175 *" -library=stlport4 "*)
15176 solaris_use_stlport4=yes
15178 esac
15180 # Adding this requires a known-good setup of shared libraries for
15181 # Sun compiler versions before 5.6, else PIC objects from an old
15182 # archive will be linked into the output, leading to subtle bugs.
15183 if test "$solaris_use_stlport4" != yes; then
15184 postdeps_CXX='-library=Cstd -library=Crun'
15187 esac
15189 esac
15192 case " $postdeps_CXX " in
15193 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15194 esac
15195 compiler_lib_search_dirs_CXX=
15196 if test -n "${compiler_lib_search_path_CXX}"; then
15197 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15230 lt_prog_compiler_wl_CXX=
15231 lt_prog_compiler_pic_CXX=
15232 lt_prog_compiler_static_CXX=
15234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15235 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15237 # C++ specific cases for pic, static, wl, etc.
15238 if test "$GXX" = yes; then
15239 lt_prog_compiler_wl_CXX='-Wl,'
15240 lt_prog_compiler_static_CXX='-static'
15242 case $host_os in
15243 aix*)
15244 # All AIX code is PIC.
15245 if test "$host_cpu" = ia64; then
15246 # AIX 5 now supports IA64 processor
15247 lt_prog_compiler_static_CXX='-Bstatic'
15251 amigaos*)
15252 case $host_cpu in
15253 powerpc)
15254 # see comment about AmigaOS4 .so support
15255 lt_prog_compiler_pic_CXX='-fPIC'
15257 m68k)
15258 # FIXME: we need at least 68020 code to build shared libraries, but
15259 # adding the `-m68020' flag to GCC prevents building anything better,
15260 # like `-m68040'.
15261 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15263 esac
15266 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15267 # PIC is the default for these OSes.
15269 mingw* | cygwin* | os2* | pw32* | cegcc*)
15270 # This hack is so that the source file can tell whether it is being
15271 # built for inclusion in a dll (and should export symbols for example).
15272 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15273 # (--disable-auto-import) libraries
15274 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15276 darwin* | rhapsody*)
15277 # PIC is the default on this platform
15278 # Common symbols not allowed in MH_DYLIB files
15279 lt_prog_compiler_pic_CXX='-fno-common'
15281 *djgpp*)
15282 # DJGPP does not support shared libraries at all
15283 lt_prog_compiler_pic_CXX=
15285 haiku*)
15286 # PIC is the default for Haiku.
15287 # The "-static" flag exists, but is broken.
15288 lt_prog_compiler_static_CXX=
15290 interix[3-9]*)
15291 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15292 # Instead, we relocate shared libraries at runtime.
15294 sysv4*MP*)
15295 if test -d /usr/nec; then
15296 lt_prog_compiler_pic_CXX=-Kconform_pic
15299 hpux*)
15300 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15301 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15302 # sets the default TLS model and affects inlining.
15303 case $host_cpu in
15304 hppa*64*)
15307 lt_prog_compiler_pic_CXX='-fPIC'
15309 esac
15311 *qnx* | *nto*)
15312 # QNX uses GNU C++, but need to define -shared option too, otherwise
15313 # it will coredump.
15314 lt_prog_compiler_pic_CXX='-fPIC -shared'
15317 lt_prog_compiler_pic_CXX='-fPIC'
15319 esac
15320 else
15321 case $host_os in
15322 aix[4-9]*)
15323 # All AIX code is PIC.
15324 if test "$host_cpu" = ia64; then
15325 # AIX 5 now supports IA64 processor
15326 lt_prog_compiler_static_CXX='-Bstatic'
15327 else
15328 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15331 chorus*)
15332 case $cc_basename in
15333 cxch68*)
15334 # Green Hills C++ Compiler
15335 # _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"
15337 esac
15339 dgux*)
15340 case $cc_basename in
15341 ec++*)
15342 lt_prog_compiler_pic_CXX='-KPIC'
15344 ghcx*)
15345 # Green Hills C++ Compiler
15346 lt_prog_compiler_pic_CXX='-pic'
15350 esac
15352 freebsd* | dragonfly*)
15353 # FreeBSD uses GNU C++
15355 hpux9* | hpux10* | hpux11*)
15356 case $cc_basename in
15357 CC*)
15358 lt_prog_compiler_wl_CXX='-Wl,'
15359 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15360 if test "$host_cpu" != ia64; then
15361 lt_prog_compiler_pic_CXX='+Z'
15364 aCC*)
15365 lt_prog_compiler_wl_CXX='-Wl,'
15366 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15367 case $host_cpu in
15368 hppa*64*|ia64*)
15369 # +Z the default
15372 lt_prog_compiler_pic_CXX='+Z'
15374 esac
15378 esac
15380 interix*)
15381 # This is c89, which is MS Visual C++ (no shared libs)
15382 # Anyone wants to do a port?
15384 irix5* | irix6* | nonstopux*)
15385 case $cc_basename in
15386 CC*)
15387 lt_prog_compiler_wl_CXX='-Wl,'
15388 lt_prog_compiler_static_CXX='-non_shared'
15389 # CC pic flag -KPIC is the default.
15393 esac
15395 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15396 case $cc_basename in
15397 KCC*)
15398 # KAI C++ Compiler
15399 lt_prog_compiler_wl_CXX='--backend -Wl,'
15400 lt_prog_compiler_pic_CXX='-fPIC'
15402 ecpc* )
15403 # old Intel C++ for x86_64 which still supported -KPIC.
15404 lt_prog_compiler_wl_CXX='-Wl,'
15405 lt_prog_compiler_pic_CXX='-KPIC'
15406 lt_prog_compiler_static_CXX='-static'
15408 icpc* )
15409 # Intel C++, used to be incompatible with GCC.
15410 # ICC 10 doesn't accept -KPIC any more.
15411 lt_prog_compiler_wl_CXX='-Wl,'
15412 lt_prog_compiler_pic_CXX='-fPIC'
15413 lt_prog_compiler_static_CXX='-static'
15415 pgCC* | pgcpp*)
15416 # Portland Group C++ compiler
15417 lt_prog_compiler_wl_CXX='-Wl,'
15418 lt_prog_compiler_pic_CXX='-fpic'
15419 lt_prog_compiler_static_CXX='-Bstatic'
15421 cxx*)
15422 # Compaq C++
15423 # Make sure the PIC flag is empty. It appears that all Alpha
15424 # Linux and Compaq Tru64 Unix objects are PIC.
15425 lt_prog_compiler_pic_CXX=
15426 lt_prog_compiler_static_CXX='-non_shared'
15428 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15429 # IBM XL 8.0, 9.0 on PPC and BlueGene
15430 lt_prog_compiler_wl_CXX='-Wl,'
15431 lt_prog_compiler_pic_CXX='-qpic'
15432 lt_prog_compiler_static_CXX='-qstaticlink'
15435 case `$CC -V 2>&1 | sed 5q` in
15436 *Sun\ C*)
15437 # Sun C++ 5.9
15438 lt_prog_compiler_pic_CXX='-KPIC'
15439 lt_prog_compiler_static_CXX='-Bstatic'
15440 lt_prog_compiler_wl_CXX='-Qoption ld '
15442 esac
15444 esac
15446 lynxos*)
15448 m88k*)
15450 mvs*)
15451 case $cc_basename in
15452 cxx*)
15453 lt_prog_compiler_pic_CXX='-W c,exportall'
15457 esac
15459 netbsd*)
15461 *qnx* | *nto*)
15462 # QNX uses GNU C++, but need to define -shared option too, otherwise
15463 # it will coredump.
15464 lt_prog_compiler_pic_CXX='-fPIC -shared'
15466 osf3* | osf4* | osf5*)
15467 case $cc_basename in
15468 KCC*)
15469 lt_prog_compiler_wl_CXX='--backend -Wl,'
15471 RCC*)
15472 # Rational C++ 2.4.1
15473 lt_prog_compiler_pic_CXX='-pic'
15475 cxx*)
15476 # Digital/Compaq C++
15477 lt_prog_compiler_wl_CXX='-Wl,'
15478 # Make sure the PIC flag is empty. It appears that all Alpha
15479 # Linux and Compaq Tru64 Unix objects are PIC.
15480 lt_prog_compiler_pic_CXX=
15481 lt_prog_compiler_static_CXX='-non_shared'
15485 esac
15487 psos*)
15489 solaris*)
15490 case $cc_basename in
15491 CC*)
15492 # Sun C++ 4.2, 5.x and Centerline C++
15493 lt_prog_compiler_pic_CXX='-KPIC'
15494 lt_prog_compiler_static_CXX='-Bstatic'
15495 lt_prog_compiler_wl_CXX='-Qoption ld '
15497 gcx*)
15498 # Green Hills C++ Compiler
15499 lt_prog_compiler_pic_CXX='-PIC'
15503 esac
15505 sunos4*)
15506 case $cc_basename in
15507 CC*)
15508 # Sun C++ 4.x
15509 lt_prog_compiler_pic_CXX='-pic'
15510 lt_prog_compiler_static_CXX='-Bstatic'
15512 lcc*)
15513 # Lucid
15514 lt_prog_compiler_pic_CXX='-pic'
15518 esac
15520 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15521 case $cc_basename in
15522 CC*)
15523 lt_prog_compiler_wl_CXX='-Wl,'
15524 lt_prog_compiler_pic_CXX='-KPIC'
15525 lt_prog_compiler_static_CXX='-Bstatic'
15527 esac
15529 tandem*)
15530 case $cc_basename in
15531 NCC*)
15532 # NonStop-UX NCC 3.20
15533 lt_prog_compiler_pic_CXX='-KPIC'
15537 esac
15539 vxworks*)
15542 lt_prog_compiler_can_build_shared_CXX=no
15544 esac
15547 case $host_os in
15548 # For platforms which do not support PIC, -DPIC is meaningless:
15549 *djgpp*)
15550 lt_prog_compiler_pic_CXX=
15553 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15555 esac
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15557 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15562 # Check to make sure the PIC flag actually works.
15564 if test -n "$lt_prog_compiler_pic_CXX"; then
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15566 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15567 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15568 $as_echo_n "(cached) " >&6
15569 else
15570 lt_cv_prog_compiler_pic_works_CXX=no
15571 ac_outfile=conftest.$ac_objext
15572 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15573 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15574 # Insert the option either (1) after the last *FLAGS variable, or
15575 # (2) before a word containing "conftest.", or (3) at the end.
15576 # Note that $ac_compile itself does not contain backslashes and begins
15577 # with a dollar sign (not a hyphen), so the echo should work correctly.
15578 # The option is referenced via a variable to avoid confusing sed.
15579 lt_compile=`echo "$ac_compile" | $SED \
15580 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15582 -e 's:$: $lt_compiler_flag:'`
15583 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15584 (eval "$lt_compile" 2>conftest.err)
15585 ac_status=$?
15586 cat conftest.err >&5
15587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588 if (exit $ac_status) && test -s "$ac_outfile"; then
15589 # The compiler can only warn and ignore the option if not recognized
15590 # So say no if there are warnings other than the usual output.
15591 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15592 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15593 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15594 lt_cv_prog_compiler_pic_works_CXX=yes
15597 $RM conftest*
15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15601 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15603 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15604 case $lt_prog_compiler_pic_CXX in
15605 "" | " "*) ;;
15606 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15607 esac
15608 else
15609 lt_prog_compiler_pic_CXX=
15610 lt_prog_compiler_can_build_shared_CXX=no
15618 # Check to make sure the static flag actually works.
15620 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15622 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15623 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15624 $as_echo_n "(cached) " >&6
15625 else
15626 lt_cv_prog_compiler_static_works_CXX=no
15627 save_LDFLAGS="$LDFLAGS"
15628 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15629 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15630 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15631 # The linker can only warn and ignore the option if not recognized
15632 # So say no if there are warnings
15633 if test -s conftest.err; then
15634 # Append any errors to the config.log.
15635 cat conftest.err 1>&5
15636 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15637 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15638 if diff conftest.exp conftest.er2 >/dev/null; then
15639 lt_cv_prog_compiler_static_works_CXX=yes
15641 else
15642 lt_cv_prog_compiler_static_works_CXX=yes
15645 $RM -r conftest*
15646 LDFLAGS="$save_LDFLAGS"
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15650 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15652 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15654 else
15655 lt_prog_compiler_static_CXX=
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15662 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15663 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15664 $as_echo_n "(cached) " >&6
15665 else
15666 lt_cv_prog_compiler_c_o_CXX=no
15667 $RM -r conftest 2>/dev/null
15668 mkdir conftest
15669 cd conftest
15670 mkdir out
15671 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15673 lt_compiler_flag="-o out/conftest2.$ac_objext"
15674 # Insert the option either (1) after the last *FLAGS variable, or
15675 # (2) before a word containing "conftest.", or (3) at the end.
15676 # Note that $ac_compile itself does not contain backslashes and begins
15677 # with a dollar sign (not a hyphen), so the echo should work correctly.
15678 lt_compile=`echo "$ac_compile" | $SED \
15679 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15680 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15681 -e 's:$: $lt_compiler_flag:'`
15682 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15683 (eval "$lt_compile" 2>out/conftest.err)
15684 ac_status=$?
15685 cat out/conftest.err >&5
15686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15687 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15688 then
15689 # The compiler can only warn and ignore the option if not recognized
15690 # So say no if there are warnings
15691 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15692 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15693 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15694 lt_cv_prog_compiler_c_o_CXX=yes
15697 chmod u+w . 2>&5
15698 $RM conftest*
15699 # SGI C++ compiler will create directory out/ii_files/ for
15700 # template instantiation
15701 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15702 $RM out/* && rmdir out
15703 cd ..
15704 $RM -r conftest
15705 $RM conftest*
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15709 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15714 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15715 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15716 $as_echo_n "(cached) " >&6
15717 else
15718 lt_cv_prog_compiler_c_o_CXX=no
15719 $RM -r conftest 2>/dev/null
15720 mkdir conftest
15721 cd conftest
15722 mkdir out
15723 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15725 lt_compiler_flag="-o out/conftest2.$ac_objext"
15726 # Insert the option either (1) after the last *FLAGS variable, or
15727 # (2) before a word containing "conftest.", or (3) at the end.
15728 # Note that $ac_compile itself does not contain backslashes and begins
15729 # with a dollar sign (not a hyphen), so the echo should work correctly.
15730 lt_compile=`echo "$ac_compile" | $SED \
15731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15733 -e 's:$: $lt_compiler_flag:'`
15734 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15735 (eval "$lt_compile" 2>out/conftest.err)
15736 ac_status=$?
15737 cat out/conftest.err >&5
15738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15739 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15740 then
15741 # The compiler can only warn and ignore the option if not recognized
15742 # So say no if there are warnings
15743 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15744 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15745 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15746 lt_cv_prog_compiler_c_o_CXX=yes
15749 chmod u+w . 2>&5
15750 $RM conftest*
15751 # SGI C++ compiler will create directory out/ii_files/ for
15752 # template instantiation
15753 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15754 $RM out/* && rmdir out
15755 cd ..
15756 $RM -r conftest
15757 $RM conftest*
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15761 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15766 hard_links="nottested"
15767 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15768 # do not overwrite the value of need_locks provided by the user
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15770 $as_echo_n "checking if we can lock with hard links... " >&6; }
15771 hard_links=yes
15772 $RM conftest*
15773 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15774 touch conftest.a
15775 ln conftest.a conftest.b 2>&5 || hard_links=no
15776 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15778 $as_echo "$hard_links" >&6; }
15779 if test "$hard_links" = no; then
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15781 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15782 need_locks=warn
15784 else
15785 need_locks=no
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15791 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15793 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15794 case $host_os in
15795 aix[4-9]*)
15796 # If we're using GNU nm, then we don't want the "-C" option.
15797 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15798 # Also, AIX nm treats weak defined symbols like other global defined
15799 # symbols, whereas GNU nm marks them as "W".
15800 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15801 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15802 else
15803 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'
15806 pw32*)
15807 export_symbols_cmds_CXX="$ltdll_cmds"
15809 cygwin* | mingw* | cegcc*)
15810 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'
15813 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15815 esac
15816 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15819 $as_echo "$ld_shlibs_CXX" >&6; }
15820 test "$ld_shlibs_CXX" = no && can_build_shared=no
15822 with_gnu_ld_CXX=$with_gnu_ld
15830 # Do we need to explicitly link libc?
15832 case "x$archive_cmds_need_lc_CXX" in
15833 x|xyes)
15834 # Assume -lc should be added
15835 archive_cmds_need_lc_CXX=yes
15837 if test "$enable_shared" = yes && test "$GCC" = yes; then
15838 case $archive_cmds_CXX in
15839 *'~'*)
15840 # FIXME: we may have to deal with multi-command sequences.
15842 '$CC '*)
15843 # Test whether the compiler implicitly links with -lc since on some
15844 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15845 # to ld, don't add -lc before -lgcc.
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15847 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15848 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15849 $as_echo_n "(cached) " >&6
15850 else
15851 $RM conftest*
15852 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15854 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15855 (eval $ac_compile) 2>&5
15856 ac_status=$?
15857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15858 test $ac_status = 0; } 2>conftest.err; then
15859 soname=conftest
15860 lib=conftest
15861 libobjs=conftest.$ac_objext
15862 deplibs=
15863 wl=$lt_prog_compiler_wl_CXX
15864 pic_flag=$lt_prog_compiler_pic_CXX
15865 compiler_flags=-v
15866 linker_flags=-v
15867 verstring=
15868 output_objdir=.
15869 libname=conftest
15870 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15871 allow_undefined_flag_CXX=
15872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15873 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15874 ac_status=$?
15875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15876 test $ac_status = 0; }
15877 then
15878 lt_cv_archive_cmds_need_lc_CXX=no
15879 else
15880 lt_cv_archive_cmds_need_lc_CXX=yes
15882 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15883 else
15884 cat conftest.err 1>&5
15886 $RM conftest*
15889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15890 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15891 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15893 esac
15896 esac
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15962 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15964 library_names_spec=
15965 libname_spec='lib$name'
15966 soname_spec=
15967 shrext_cmds=".so"
15968 postinstall_cmds=
15969 postuninstall_cmds=
15970 finish_cmds=
15971 finish_eval=
15972 shlibpath_var=
15973 shlibpath_overrides_runpath=unknown
15974 version_type=none
15975 dynamic_linker="$host_os ld.so"
15976 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15977 need_lib_prefix=unknown
15978 hardcode_into_libs=no
15980 # when you set need_version to no, make sure it does not cause -set_version
15981 # flags to be left without arguments
15982 need_version=unknown
15984 case $host_os in
15985 aix3*)
15986 version_type=linux
15987 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15988 shlibpath_var=LIBPATH
15990 # AIX 3 has no versioning support, so we append a major version to the name.
15991 soname_spec='${libname}${release}${shared_ext}$major'
15994 aix[4-9]*)
15995 version_type=linux
15996 need_lib_prefix=no
15997 need_version=no
15998 hardcode_into_libs=yes
15999 if test "$host_cpu" = ia64; then
16000 # AIX 5 supports IA64
16001 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16002 shlibpath_var=LD_LIBRARY_PATH
16003 else
16004 # With GCC up to 2.95.x, collect2 would create an import file
16005 # for dependence libraries. The import file would start with
16006 # the line `#! .'. This would cause the generated library to
16007 # depend on `.', always an invalid library. This was fixed in
16008 # development snapshots of GCC prior to 3.0.
16009 case $host_os in
16010 aix4 | aix4.[01] | aix4.[01].*)
16011 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16012 echo ' yes '
16013 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16015 else
16016 can_build_shared=no
16019 esac
16020 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16021 # soname into executable. Probably we can add versioning support to
16022 # collect2, so additional links can be useful in future.
16023 if test "$aix_use_runtimelinking" = yes; then
16024 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16025 # instead of lib<name>.a to let people know that these are not
16026 # typical AIX shared libraries.
16027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16028 else
16029 # We preserve .a as extension for shared libraries through AIX4.2
16030 # and later when we are not doing run time linking.
16031 library_names_spec='${libname}${release}.a $libname.a'
16032 soname_spec='${libname}${release}${shared_ext}$major'
16034 shlibpath_var=LIBPATH
16038 amigaos*)
16039 case $host_cpu in
16040 powerpc)
16041 # Since July 2007 AmigaOS4 officially supports .so libraries.
16042 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045 m68k)
16046 library_names_spec='$libname.ixlibrary $libname.a'
16047 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16048 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
16050 esac
16053 beos*)
16054 library_names_spec='${libname}${shared_ext}'
16055 dynamic_linker="$host_os ld.so"
16056 shlibpath_var=LIBRARY_PATH
16059 bsdi[45]*)
16060 version_type=linux
16061 need_version=no
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16063 soname_spec='${libname}${release}${shared_ext}$major'
16064 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16065 shlibpath_var=LD_LIBRARY_PATH
16066 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16067 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16068 # the default ld.so.conf also contains /usr/contrib/lib and
16069 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16070 # libtool to hard-code these into programs
16073 cygwin* | mingw* | pw32* | cegcc*)
16074 version_type=windows
16075 shrext_cmds=".dll"
16076 need_version=no
16077 need_lib_prefix=no
16079 case $GCC,$host_os in
16080 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16081 library_names_spec='$libname.dll.a'
16082 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16083 postinstall_cmds='base_file=`basename \${file}`~
16084 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16085 dldir=$destdir/`dirname \$dlpath`~
16086 test -d \$dldir || mkdir -p \$dldir~
16087 $install_prog $dir/$dlname \$dldir/$dlname~
16088 chmod a+x \$dldir/$dlname~
16089 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16090 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16092 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16093 dlpath=$dir/\$dldll~
16094 $RM \$dlpath'
16095 shlibpath_overrides_runpath=yes
16097 case $host_os in
16098 cygwin*)
16099 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16100 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16103 mingw* | cegcc*)
16104 # MinGW DLLs use traditional 'lib' prefix
16105 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16107 pw32*)
16108 # pw32 DLLs use 'pw' prefix rather than 'lib'
16109 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16111 esac
16115 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16117 esac
16118 dynamic_linker='Win32 ld.exe'
16119 # FIXME: first we should search . and the directory the executable is in
16120 shlibpath_var=PATH
16123 darwin* | rhapsody*)
16124 dynamic_linker="$host_os dyld"
16125 version_type=darwin
16126 need_lib_prefix=no
16127 need_version=no
16128 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16129 soname_spec='${libname}${release}${major}$shared_ext'
16130 shlibpath_overrides_runpath=yes
16131 shlibpath_var=DYLD_LIBRARY_PATH
16132 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16134 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16137 dgux*)
16138 version_type=linux
16139 need_lib_prefix=no
16140 need_version=no
16141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16142 soname_spec='${libname}${release}${shared_ext}$major'
16143 shlibpath_var=LD_LIBRARY_PATH
16146 freebsd1*)
16147 dynamic_linker=no
16150 freebsd* | dragonfly*)
16151 # DragonFly does not have aout. When/if they implement a new
16152 # versioning mechanism, adjust this.
16153 if test -x /usr/bin/objformat; then
16154 objformat=`/usr/bin/objformat`
16155 else
16156 case $host_os in
16157 freebsd[123]*) objformat=aout ;;
16158 *) objformat=elf ;;
16159 esac
16161 version_type=freebsd-$objformat
16162 case $version_type in
16163 freebsd-elf*)
16164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16165 need_version=no
16166 need_lib_prefix=no
16168 freebsd-*)
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16170 need_version=yes
16172 esac
16173 shlibpath_var=LD_LIBRARY_PATH
16174 case $host_os in
16175 freebsd2*)
16176 shlibpath_overrides_runpath=yes
16178 freebsd3.[01]* | freebsdelf3.[01]*)
16179 shlibpath_overrides_runpath=yes
16180 hardcode_into_libs=yes
16182 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16183 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16184 shlibpath_overrides_runpath=no
16185 hardcode_into_libs=yes
16187 *) # from 4.6 on, and DragonFly
16188 shlibpath_overrides_runpath=yes
16189 hardcode_into_libs=yes
16191 esac
16194 gnu*)
16195 version_type=linux
16196 need_lib_prefix=no
16197 need_version=no
16198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16199 soname_spec='${libname}${release}${shared_ext}$major'
16200 shlibpath_var=LD_LIBRARY_PATH
16201 hardcode_into_libs=yes
16204 haiku*)
16205 version_type=linux
16206 need_lib_prefix=no
16207 need_version=no
16208 dynamic_linker="$host_os runtime_loader"
16209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16210 soname_spec='${libname}${release}${shared_ext}$major'
16211 shlibpath_var=LIBRARY_PATH
16212 shlibpath_overrides_runpath=yes
16213 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16214 hardcode_into_libs=yes
16217 hpux9* | hpux10* | hpux11*)
16218 # Give a soname corresponding to the major version so that dld.sl refuses to
16219 # link against other versions.
16220 version_type=sunos
16221 need_lib_prefix=no
16222 need_version=no
16223 case $host_cpu in
16224 ia64*)
16225 shrext_cmds='.so'
16226 hardcode_into_libs=yes
16227 dynamic_linker="$host_os dld.so"
16228 shlibpath_var=LD_LIBRARY_PATH
16229 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16231 soname_spec='${libname}${release}${shared_ext}$major'
16232 if test "X$HPUX_IA64_MODE" = X32; then
16233 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16234 else
16235 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16237 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16239 hppa*64*)
16240 shrext_cmds='.sl'
16241 hardcode_into_libs=yes
16242 dynamic_linker="$host_os dld.sl"
16243 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16244 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16246 soname_spec='${libname}${release}${shared_ext}$major'
16247 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16248 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16251 shrext_cmds='.sl'
16252 dynamic_linker="$host_os dld.sl"
16253 shlibpath_var=SHLIB_PATH
16254 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16256 soname_spec='${libname}${release}${shared_ext}$major'
16258 esac
16259 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16260 postinstall_cmds='chmod 555 $lib'
16261 # or fails outright, so override atomically:
16262 install_override_mode=555
16265 interix[3-9]*)
16266 version_type=linux
16267 need_lib_prefix=no
16268 need_version=no
16269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16270 soname_spec='${libname}${release}${shared_ext}$major'
16271 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16272 shlibpath_var=LD_LIBRARY_PATH
16273 shlibpath_overrides_runpath=no
16274 hardcode_into_libs=yes
16277 irix5* | irix6* | nonstopux*)
16278 case $host_os in
16279 nonstopux*) version_type=nonstopux ;;
16281 if test "$lt_cv_prog_gnu_ld" = yes; then
16282 version_type=linux
16283 else
16284 version_type=irix
16285 fi ;;
16286 esac
16287 need_lib_prefix=no
16288 need_version=no
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16291 case $host_os in
16292 irix5* | nonstopux*)
16293 libsuff= shlibsuff=
16296 case $LD in # libtool.m4 will add one of these switches to LD
16297 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16298 libsuff= shlibsuff= libmagic=32-bit;;
16299 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16300 libsuff=32 shlibsuff=N32 libmagic=N32;;
16301 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16302 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16303 *) libsuff= shlibsuff= libmagic=never-match;;
16304 esac
16306 esac
16307 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16308 shlibpath_overrides_runpath=no
16309 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16310 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16311 hardcode_into_libs=yes
16314 # No shared lib support for Linux oldld, aout, or coff.
16315 linux*oldld* | linux*aout* | linux*coff*)
16316 dynamic_linker=no
16319 # This must be Linux ELF.
16320 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16321 version_type=linux
16322 need_lib_prefix=no
16323 need_version=no
16324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16325 soname_spec='${libname}${release}${shared_ext}$major'
16326 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16327 shlibpath_var=LD_LIBRARY_PATH
16328 shlibpath_overrides_runpath=no
16330 # Some binutils ld are patched to set DT_RUNPATH
16331 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16332 $as_echo_n "(cached) " >&6
16333 else
16334 lt_cv_shlibpath_overrides_runpath=no
16335 save_LDFLAGS=$LDFLAGS
16336 save_libdir=$libdir
16337 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16338 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16339 if test x$gcc_no_link = xyes; then
16340 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16343 /* end confdefs.h. */
16346 main ()
16350 return 0;
16352 _ACEOF
16353 if ac_fn_cxx_try_link "$LINENO"; then :
16354 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16355 lt_cv_shlibpath_overrides_runpath=yes
16358 rm -f core conftest.err conftest.$ac_objext \
16359 conftest$ac_exeext conftest.$ac_ext
16360 LDFLAGS=$save_LDFLAGS
16361 libdir=$save_libdir
16365 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16367 # This implies no fast_install, which is unacceptable.
16368 # Some rework will be needed to allow for fast_install
16369 # before this can be enabled.
16370 hardcode_into_libs=yes
16372 # Append ld.so.conf contents to the search path
16373 if test -f /etc/ld.so.conf; then
16374 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16375 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16378 # We used to test for /lib/ld.so.1 and disable shared libraries on
16379 # powerpc, because MkLinux only supported shared libraries with the
16380 # GNU dynamic linker. Since this was broken with cross compilers,
16381 # most powerpc-linux boxes support dynamic linking these days and
16382 # people can always --disable-shared, the test was removed, and we
16383 # assume the GNU/Linux dynamic linker is in use.
16384 dynamic_linker='GNU/Linux ld.so'
16387 netbsd*)
16388 version_type=sunos
16389 need_lib_prefix=no
16390 need_version=no
16391 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16394 dynamic_linker='NetBSD (a.out) ld.so'
16395 else
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16397 soname_spec='${libname}${release}${shared_ext}$major'
16398 dynamic_linker='NetBSD ld.elf_so'
16400 shlibpath_var=LD_LIBRARY_PATH
16401 shlibpath_overrides_runpath=yes
16402 hardcode_into_libs=yes
16405 newsos6)
16406 version_type=linux
16407 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16408 shlibpath_var=LD_LIBRARY_PATH
16409 shlibpath_overrides_runpath=yes
16412 *nto* | *qnx*)
16413 version_type=qnx
16414 need_lib_prefix=no
16415 need_version=no
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 shlibpath_var=LD_LIBRARY_PATH
16419 shlibpath_overrides_runpath=no
16420 hardcode_into_libs=yes
16421 dynamic_linker='ldqnx.so'
16424 openbsd*)
16425 version_type=sunos
16426 sys_lib_dlsearch_path_spec="/usr/lib"
16427 need_lib_prefix=no
16428 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16429 case $host_os in
16430 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16431 *) need_version=no ;;
16432 esac
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16434 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16435 shlibpath_var=LD_LIBRARY_PATH
16436 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16437 case $host_os in
16438 openbsd2.[89] | openbsd2.[89].*)
16439 shlibpath_overrides_runpath=no
16442 shlibpath_overrides_runpath=yes
16444 esac
16445 else
16446 shlibpath_overrides_runpath=yes
16450 os2*)
16451 libname_spec='$name'
16452 shrext_cmds=".dll"
16453 need_lib_prefix=no
16454 library_names_spec='$libname${shared_ext} $libname.a'
16455 dynamic_linker='OS/2 ld.exe'
16456 shlibpath_var=LIBPATH
16459 osf3* | osf4* | osf5*)
16460 version_type=osf
16461 need_lib_prefix=no
16462 need_version=no
16463 soname_spec='${libname}${release}${shared_ext}$major'
16464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16465 shlibpath_var=LD_LIBRARY_PATH
16466 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16467 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16470 rdos*)
16471 dynamic_linker=no
16474 solaris*)
16475 version_type=linux
16476 need_lib_prefix=no
16477 need_version=no
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16479 soname_spec='${libname}${release}${shared_ext}$major'
16480 shlibpath_var=LD_LIBRARY_PATH
16481 shlibpath_overrides_runpath=yes
16482 hardcode_into_libs=yes
16483 # ldd complains unless libraries are executable
16484 postinstall_cmds='chmod +x $lib'
16487 sunos4*)
16488 version_type=sunos
16489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16490 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16491 shlibpath_var=LD_LIBRARY_PATH
16492 shlibpath_overrides_runpath=yes
16493 if test "$with_gnu_ld" = yes; then
16494 need_lib_prefix=no
16496 need_version=yes
16499 sysv4 | sysv4.3*)
16500 version_type=linux
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502 soname_spec='${libname}${release}${shared_ext}$major'
16503 shlibpath_var=LD_LIBRARY_PATH
16504 case $host_vendor in
16505 sni)
16506 shlibpath_overrides_runpath=no
16507 need_lib_prefix=no
16508 runpath_var=LD_RUN_PATH
16510 siemens)
16511 need_lib_prefix=no
16513 motorola)
16514 need_lib_prefix=no
16515 need_version=no
16516 shlibpath_overrides_runpath=no
16517 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16519 esac
16522 sysv4*MP*)
16523 if test -d /usr/nec ;then
16524 version_type=linux
16525 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16526 soname_spec='$libname${shared_ext}.$major'
16527 shlibpath_var=LD_LIBRARY_PATH
16531 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16532 version_type=freebsd-elf
16533 need_lib_prefix=no
16534 need_version=no
16535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16536 soname_spec='${libname}${release}${shared_ext}$major'
16537 shlibpath_var=LD_LIBRARY_PATH
16538 shlibpath_overrides_runpath=yes
16539 hardcode_into_libs=yes
16540 if test "$with_gnu_ld" = yes; then
16541 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16542 else
16543 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16544 case $host_os in
16545 sco3.2v5*)
16546 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16548 esac
16550 sys_lib_dlsearch_path_spec='/usr/lib'
16553 tpf*)
16554 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16555 version_type=linux
16556 need_lib_prefix=no
16557 need_version=no
16558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16559 shlibpath_var=LD_LIBRARY_PATH
16560 shlibpath_overrides_runpath=no
16561 hardcode_into_libs=yes
16564 uts4*)
16565 version_type=linux
16566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16567 soname_spec='${libname}${release}${shared_ext}$major'
16568 shlibpath_var=LD_LIBRARY_PATH
16572 dynamic_linker=no
16574 esac
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16576 $as_echo "$dynamic_linker" >&6; }
16577 test "$dynamic_linker" = no && can_build_shared=no
16579 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16580 if test "$GCC" = yes; then
16581 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16584 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16585 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16587 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16588 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16629 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16630 hardcode_action_CXX=
16631 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16632 test -n "$runpath_var_CXX" ||
16633 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16635 # We can hardcode non-existent directories.
16636 if test "$hardcode_direct_CXX" != no &&
16637 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16638 # have to relink, otherwise we might link with an installed library
16639 # when we should be linking with a yet-to-be-installed one
16640 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16641 test "$hardcode_minus_L_CXX" != no; then
16642 # Linking always hardcodes the temporary library directory.
16643 hardcode_action_CXX=relink
16644 else
16645 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16646 hardcode_action_CXX=immediate
16648 else
16649 # We cannot hardcode anything, or else we can only hardcode existing
16650 # directories.
16651 hardcode_action_CXX=unsupported
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16654 $as_echo "$hardcode_action_CXX" >&6; }
16656 if test "$hardcode_action_CXX" = relink ||
16657 test "$inherit_rpath_CXX" = yes; then
16658 # Fast installation is not supported
16659 enable_fast_install=no
16660 elif test "$shlibpath_overrides_runpath" = yes ||
16661 test "$enable_shared" = no; then
16662 # Fast installation is not necessary
16663 enable_fast_install=needless
16672 fi # test -n "$compiler"
16674 CC=$lt_save_CC
16675 LDCXX=$LD
16676 LD=$lt_save_LD
16677 GCC=$lt_save_GCC
16678 with_gnu_ld=$lt_save_with_gnu_ld
16679 lt_cv_path_LDCXX=$lt_cv_path_LD
16680 lt_cv_path_LD=$lt_save_path_LD
16681 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16682 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16683 fi # test "$_lt_caught_CXX_error" != yes
16685 ac_ext=c
16686 ac_cpp='$CPP $CPPFLAGS'
16687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16703 ac_config_commands="$ac_config_commands libtool"
16708 # Only expand once:
16712 for ac_prog in gcj
16714 # Extract the first word of "$ac_prog", so it can be a program name with args.
16715 set dummy $ac_prog; ac_word=$2
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16717 $as_echo_n "checking for $ac_word... " >&6; }
16718 if test "${ac_cv_prog_GCJ+set}" = set; then :
16719 $as_echo_n "(cached) " >&6
16720 else
16721 if test -n "$GCJ"; then
16722 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16723 else
16724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16725 for as_dir in $PATH
16727 IFS=$as_save_IFS
16728 test -z "$as_dir" && as_dir=.
16729 for ac_exec_ext in '' $ac_executable_extensions; do
16730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16731 ac_cv_prog_GCJ="$ac_prog"
16732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16733 break 2
16735 done
16736 done
16737 IFS=$as_save_IFS
16741 GCJ=$ac_cv_prog_GCJ
16742 if test -n "$GCJ"; then
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16744 $as_echo "$GCJ" >&6; }
16745 else
16746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16747 $as_echo "no" >&6; }
16751 test -n "$GCJ" && break
16752 done
16753 test -n "$GCJ" || GCJ="gcj"
16755 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16756 if test "x${GCJFLAGS-unset}" = xunset; then
16757 GCJFLAGS="-g -O2"
16761 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16764 $as_echo_n "checking dependency style of $depcc... " >&6; }
16765 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16766 $as_echo_n "(cached) " >&6
16767 else
16768 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16769 # We make a subdir and do the tests there. Otherwise we can end up
16770 # making bogus files that we don't know about and never remove. For
16771 # instance it was reported that on HP-UX the gcc test will end up
16772 # making a dummy file named `D' -- because `-MD' means `put the output
16773 # in D'.
16774 mkdir conftest.dir
16775 # Copy depcomp to subdir because otherwise we won't find it if we're
16776 # using a relative directory.
16777 cp "$am_depcomp" conftest.dir
16778 cd conftest.dir
16779 # We will build objects and dependencies in a subdirectory because
16780 # it helps to detect inapplicable dependency modes. For instance
16781 # both Tru64's cc and ICC support -MD to output dependencies as a
16782 # side effect of compilation, but ICC will put the dependencies in
16783 # the current directory while Tru64 will put them in the object
16784 # directory.
16785 mkdir sub
16787 am_cv_GCJ_dependencies_compiler_type=none
16788 if test "$am_compiler_list" = ""; then
16789 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16791 am__universal=false
16794 for depmode in $am_compiler_list; do
16795 # Setup a source with many dependencies, because some compilers
16796 # like to wrap large dependency lists on column 80 (with \), and
16797 # we should not choose a depcomp mode which is confused by this.
16799 # We need to recreate these files for each test, as the compiler may
16800 # overwrite some of them when testing with obscure command lines.
16801 # This happens at least with the AIX C compiler.
16802 : > sub/conftest.c
16803 for i in 1 2 3 4 5 6; do
16804 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16805 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16806 # Solaris 8's {/usr,}/bin/sh.
16807 touch sub/conftst$i.h
16808 done
16809 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16811 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16812 # mode. It turns out that the SunPro C++ compiler does not properly
16813 # handle `-M -o', and we need to detect this. Also, some Intel
16814 # versions had trouble with output in subdirs
16815 am__obj=sub/conftest.${OBJEXT-o}
16816 am__minus_obj="-o $am__obj"
16817 case $depmode in
16818 gcc)
16819 # This depmode causes a compiler race in universal mode.
16820 test "$am__universal" = false || continue
16822 nosideeffect)
16823 # after this tag, mechanisms are not by side-effect, so they'll
16824 # only be used when explicitly requested
16825 if test "x$enable_dependency_tracking" = xyes; then
16826 continue
16827 else
16828 break
16831 msvisualcpp | msvcmsys)
16832 # This compiler won't grok `-c -o', but also, the minuso test has
16833 # not run yet. These depmodes are late enough in the game, and
16834 # so weak that their functioning should not be impacted.
16835 am__obj=conftest.${OBJEXT-o}
16836 am__minus_obj=
16838 none) break ;;
16839 esac
16840 if depmode=$depmode \
16841 source=sub/conftest.c object=$am__obj \
16842 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16843 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16844 >/dev/null 2>conftest.err &&
16845 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16846 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16847 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16848 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16849 # icc doesn't choke on unknown options, it will just issue warnings
16850 # or remarks (even with -Werror). So we grep stderr for any message
16851 # that says an option was ignored or not supported.
16852 # When given -MP, icc 7.0 and 7.1 complain thusly:
16853 # icc: Command line warning: ignoring option '-M'; no argument required
16854 # The diagnosis changed in icc 8.0:
16855 # icc: Command line remark: option '-MP' not supported
16856 if (grep 'ignoring option' conftest.err ||
16857 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16858 am_cv_GCJ_dependencies_compiler_type=$depmode
16859 break
16862 done
16864 cd ..
16865 rm -rf conftest.dir
16866 else
16867 am_cv_GCJ_dependencies_compiler_type=none
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16872 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16873 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16876 test "x$enable_dependency_tracking" != xno \
16877 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16878 am__fastdepGCJ_TRUE=
16879 am__fastdepGCJ_FALSE='#'
16880 else
16881 am__fastdepGCJ_TRUE='#'
16882 am__fastdepGCJ_FALSE=
16887 for ac_prog in gcj
16889 # Extract the first word of "$ac_prog", so it can be a program name with args.
16890 set dummy $ac_prog; ac_word=$2
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16892 $as_echo_n "checking for $ac_word... " >&6; }
16893 if test "${ac_cv_prog_GCJ+set}" = set; then :
16894 $as_echo_n "(cached) " >&6
16895 else
16896 if test -n "$GCJ"; then
16897 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16898 else
16899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16900 for as_dir in $PATH
16902 IFS=$as_save_IFS
16903 test -z "$as_dir" && as_dir=.
16904 for ac_exec_ext in '' $ac_executable_extensions; do
16905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16906 ac_cv_prog_GCJ="$ac_prog"
16907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16908 break 2
16910 done
16911 done
16912 IFS=$as_save_IFS
16916 GCJ=$ac_cv_prog_GCJ
16917 if test -n "$GCJ"; then
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16919 $as_echo "$GCJ" >&6; }
16920 else
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16922 $as_echo "no" >&6; }
16926 test -n "$GCJ" && break
16927 done
16928 test -n "$GCJ" || GCJ="gcj"
16930 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16931 if test "x${GCJFLAGS-unset}" = xunset; then
16932 GCJFLAGS="-g -O2"
16936 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16939 $as_echo_n "checking dependency style of $depcc... " >&6; }
16940 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16941 $as_echo_n "(cached) " >&6
16942 else
16943 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16944 # We make a subdir and do the tests there. Otherwise we can end up
16945 # making bogus files that we don't know about and never remove. For
16946 # instance it was reported that on HP-UX the gcc test will end up
16947 # making a dummy file named `D' -- because `-MD' means `put the output
16948 # in D'.
16949 mkdir conftest.dir
16950 # Copy depcomp to subdir because otherwise we won't find it if we're
16951 # using a relative directory.
16952 cp "$am_depcomp" conftest.dir
16953 cd conftest.dir
16954 # We will build objects and dependencies in a subdirectory because
16955 # it helps to detect inapplicable dependency modes. For instance
16956 # both Tru64's cc and ICC support -MD to output dependencies as a
16957 # side effect of compilation, but ICC will put the dependencies in
16958 # the current directory while Tru64 will put them in the object
16959 # directory.
16960 mkdir sub
16962 am_cv_GCJ_dependencies_compiler_type=none
16963 if test "$am_compiler_list" = ""; then
16964 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16966 am__universal=false
16969 for depmode in $am_compiler_list; do
16970 # Setup a source with many dependencies, because some compilers
16971 # like to wrap large dependency lists on column 80 (with \), and
16972 # we should not choose a depcomp mode which is confused by this.
16974 # We need to recreate these files for each test, as the compiler may
16975 # overwrite some of them when testing with obscure command lines.
16976 # This happens at least with the AIX C compiler.
16977 : > sub/conftest.c
16978 for i in 1 2 3 4 5 6; do
16979 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16980 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16981 # Solaris 8's {/usr,}/bin/sh.
16982 touch sub/conftst$i.h
16983 done
16984 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16986 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16987 # mode. It turns out that the SunPro C++ compiler does not properly
16988 # handle `-M -o', and we need to detect this. Also, some Intel
16989 # versions had trouble with output in subdirs
16990 am__obj=sub/conftest.${OBJEXT-o}
16991 am__minus_obj="-o $am__obj"
16992 case $depmode in
16993 gcc)
16994 # This depmode causes a compiler race in universal mode.
16995 test "$am__universal" = false || continue
16997 nosideeffect)
16998 # after this tag, mechanisms are not by side-effect, so they'll
16999 # only be used when explicitly requested
17000 if test "x$enable_dependency_tracking" = xyes; then
17001 continue
17002 else
17003 break
17006 msvisualcpp | msvcmsys)
17007 # This compiler won't grok `-c -o', but also, the minuso test has
17008 # not run yet. These depmodes are late enough in the game, and
17009 # so weak that their functioning should not be impacted.
17010 am__obj=conftest.${OBJEXT-o}
17011 am__minus_obj=
17013 none) break ;;
17014 esac
17015 if depmode=$depmode \
17016 source=sub/conftest.c object=$am__obj \
17017 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17018 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17019 >/dev/null 2>conftest.err &&
17020 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17021 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17022 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17023 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17024 # icc doesn't choke on unknown options, it will just issue warnings
17025 # or remarks (even with -Werror). So we grep stderr for any message
17026 # that says an option was ignored or not supported.
17027 # When given -MP, icc 7.0 and 7.1 complain thusly:
17028 # icc: Command line warning: ignoring option '-M'; no argument required
17029 # The diagnosis changed in icc 8.0:
17030 # icc: Command line remark: option '-MP' not supported
17031 if (grep 'ignoring option' conftest.err ||
17032 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17033 am_cv_GCJ_dependencies_compiler_type=$depmode
17034 break
17037 done
17039 cd ..
17040 rm -rf conftest.dir
17041 else
17042 am_cv_GCJ_dependencies_compiler_type=none
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17047 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17048 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17051 test "x$enable_dependency_tracking" != xno \
17052 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17053 am__fastdepGCJ_TRUE=
17054 am__fastdepGCJ_FALSE='#'
17055 else
17056 am__fastdepGCJ_TRUE='#'
17057 am__fastdepGCJ_FALSE=
17064 # Source file extension for Java test sources.
17065 ac_ext=c
17067 # Object file extension for compiled Java test sources.
17068 objext=o
17069 objext_GCJ=$objext
17071 # Code to be used in simple compile tests
17072 lt_simple_compile_test_code="int some_variable = 0;"
17074 # Code to be used in simple link tests
17075 lt_simple_link_test_code='int main(){return(0);}'
17077 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17084 # If no C compiler was specified, use CC.
17085 LTCC=${LTCC-"$CC"}
17087 # If no C compiler flags were specified, use CFLAGS.
17088 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17090 # Allow CC to be a program name with arguments.
17091 compiler=$CC
17094 # save warnings/boilerplate of simple test code
17095 ac_outfile=conftest.$ac_objext
17096 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17097 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17098 _lt_compiler_boilerplate=`cat conftest.err`
17099 $RM conftest*
17101 ac_outfile=conftest.$ac_objext
17102 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17103 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17104 _lt_linker_boilerplate=`cat conftest.err`
17105 $RM -r conftest*
17108 # Allow CC to be a program name with arguments.
17109 GCC=yes
17110 compiler=$CC
17111 compiler_GCJ=$CC
17112 for cc_temp in $compiler""; do
17113 case $cc_temp in
17114 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17115 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17116 \-*) ;;
17117 *) break;;
17118 esac
17119 done
17120 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17123 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17124 archive_cmds_need_lc_GCJ=no
17126 old_archive_cmds_GCJ=$old_archive_cmds
17128 ## CAVEAT EMPTOR:
17129 ## There is no encapsulation within the following macros, do not change
17130 ## the running order or otherwise move them around unless you know exactly
17131 ## what you are doing...
17132 if test -n "$compiler"; then
17134 lt_prog_compiler_no_builtin_flag_GCJ=
17136 if test "$GCC" = yes; then
17137 case $cc_basename in
17138 nvcc*)
17139 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17141 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17142 esac
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17145 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17146 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17147 $as_echo_n "(cached) " >&6
17148 else
17149 lt_cv_prog_compiler_rtti_exceptions=no
17150 ac_outfile=conftest.$ac_objext
17151 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17152 lt_compiler_flag="-fno-rtti -fno-exceptions"
17153 # Insert the option either (1) after the last *FLAGS variable, or
17154 # (2) before a word containing "conftest.", or (3) at the end.
17155 # Note that $ac_compile itself does not contain backslashes and begins
17156 # with a dollar sign (not a hyphen), so the echo should work correctly.
17157 # The option is referenced via a variable to avoid confusing sed.
17158 lt_compile=`echo "$ac_compile" | $SED \
17159 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17160 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17161 -e 's:$: $lt_compiler_flag:'`
17162 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17163 (eval "$lt_compile" 2>conftest.err)
17164 ac_status=$?
17165 cat conftest.err >&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 if (exit $ac_status) && test -s "$ac_outfile"; then
17168 # The compiler can only warn and ignore the option if not recognized
17169 # So say no if there are warnings other than the usual output.
17170 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17171 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17172 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17173 lt_cv_prog_compiler_rtti_exceptions=yes
17176 $RM conftest*
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17180 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17182 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17183 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17184 else
17192 lt_prog_compiler_wl_GCJ=
17193 lt_prog_compiler_pic_GCJ=
17194 lt_prog_compiler_static_GCJ=
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17197 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17199 if test "$GCC" = yes; then
17200 lt_prog_compiler_wl_GCJ='-Wl,'
17201 lt_prog_compiler_static_GCJ='-static'
17203 case $host_os in
17204 aix*)
17205 # All AIX code is PIC.
17206 if test "$host_cpu" = ia64; then
17207 # AIX 5 now supports IA64 processor
17208 lt_prog_compiler_static_GCJ='-Bstatic'
17212 amigaos*)
17213 case $host_cpu in
17214 powerpc)
17215 # see comment about AmigaOS4 .so support
17216 lt_prog_compiler_pic_GCJ='-fPIC'
17218 m68k)
17219 # FIXME: we need at least 68020 code to build shared libraries, but
17220 # adding the `-m68020' flag to GCC prevents building anything better,
17221 # like `-m68040'.
17222 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17224 esac
17227 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17228 # PIC is the default for these OSes.
17231 mingw* | cygwin* | pw32* | os2* | cegcc*)
17232 # This hack is so that the source file can tell whether it is being
17233 # built for inclusion in a dll (and should export symbols for example).
17234 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17235 # (--disable-auto-import) libraries
17239 darwin* | rhapsody*)
17240 # PIC is the default on this platform
17241 # Common symbols not allowed in MH_DYLIB files
17242 lt_prog_compiler_pic_GCJ='-fno-common'
17245 haiku*)
17246 # PIC is the default for Haiku.
17247 # The "-static" flag exists, but is broken.
17248 lt_prog_compiler_static_GCJ=
17251 hpux*)
17252 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17253 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17254 # sets the default TLS model and affects inlining.
17255 case $host_cpu in
17256 hppa*64*)
17257 # +Z the default
17260 lt_prog_compiler_pic_GCJ='-fPIC'
17262 esac
17265 interix[3-9]*)
17266 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17267 # Instead, we relocate shared libraries at runtime.
17270 msdosdjgpp*)
17271 # Just because we use GCC doesn't mean we suddenly get shared libraries
17272 # on systems that don't support them.
17273 lt_prog_compiler_can_build_shared_GCJ=no
17274 enable_shared=no
17277 *nto* | *qnx*)
17278 # QNX uses GNU C++, but need to define -shared option too, otherwise
17279 # it will coredump.
17280 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17283 sysv4*MP*)
17284 if test -d /usr/nec; then
17285 lt_prog_compiler_pic_GCJ=-Kconform_pic
17290 lt_prog_compiler_pic_GCJ='-fPIC'
17292 esac
17294 case $cc_basename in
17295 nvcc*) # Cuda Compiler Driver 2.2
17296 lt_prog_compiler_wl_GCJ='-Xlinker '
17297 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17299 esac
17300 else
17301 # PORTME Check for flag to pass linker flags through the system compiler.
17302 case $host_os in
17303 aix*)
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'
17308 else
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.
17323 case $host_cpu in
17324 hppa*64*|ia64*)
17325 # +Z the default
17328 lt_prog_compiler_pic_GCJ='+Z'
17330 esac
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.
17344 ecc*)
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.
17351 icc* | ifort*)
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.
17357 lf95*)
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* | pgfortran*)
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'
17369 ccc*)
17370 lt_prog_compiler_wl_GCJ='-Wl,'
17371 # All Alpha code is PIC.
17372 lt_prog_compiler_static_GCJ='-non_shared'
17374 xl* | bgxl* | bgf* | mpixl*)
17375 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
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
17382 *Sun\ F* | *Sun*Fortran*)
17383 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17384 lt_prog_compiler_pic_GCJ='-KPIC'
17385 lt_prog_compiler_static_GCJ='-Bstatic'
17386 lt_prog_compiler_wl_GCJ=''
17388 *Sun\ C*)
17389 # Sun C 5.9
17390 lt_prog_compiler_pic_GCJ='-KPIC'
17391 lt_prog_compiler_static_GCJ='-Bstatic'
17392 lt_prog_compiler_wl_GCJ='-Wl,'
17394 esac
17396 esac
17399 newsos6)
17400 lt_prog_compiler_pic_GCJ='-KPIC'
17401 lt_prog_compiler_static_GCJ='-Bstatic'
17404 *nto* | *qnx*)
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'
17416 rdos*)
17417 lt_prog_compiler_static_GCJ='-non_shared'
17420 solaris*)
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,';;
17428 esac
17431 sunos4*)
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'
17443 sysv4*MP*)
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'
17456 unicos*)
17457 lt_prog_compiler_wl_GCJ='-Wl,'
17458 lt_prog_compiler_can_build_shared_GCJ=no
17461 uts4*)
17462 lt_prog_compiler_pic_GCJ='-pic'
17463 lt_prog_compiler_static_GCJ='-Bstatic'
17467 lt_prog_compiler_can_build_shared_GCJ=no
17469 esac
17472 case $host_os in
17473 # For platforms which do not support PIC, -DPIC is meaningless:
17474 *djgpp*)
17475 lt_prog_compiler_pic_GCJ=
17478 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17480 esac
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
17494 else
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:$LINENO: $lt_compile\"" >&5)
17509 (eval "$lt_compile" 2>conftest.err)
17510 ac_status=$?
17511 cat conftest.err >&5
17512 echo "$as_me:$LINENO: \$? = $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 "$_lt_compiler_boilerplate" | $SED '/^$/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
17522 $RM conftest*
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
17530 "" | " "*) ;;
17531 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17532 esac
17533 else
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
17550 else
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 "$_lt_linker_boilerplate" | $SED '/^$/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
17566 else
17567 lt_cv_prog_compiler_static_works_GCJ=yes
17570 $RM -r conftest*
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
17579 else
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
17590 else
17591 lt_cv_prog_compiler_c_o_GCJ=no
17592 $RM -r conftest 2>/dev/null
17593 mkdir conftest
17594 cd conftest
17595 mkdir out
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:$LINENO: $lt_compile\"" >&5)
17608 (eval "$lt_compile" 2>out/conftest.err)
17609 ac_status=$?
17610 cat out/conftest.err >&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17613 then
17614 # The compiler can only warn and ignore the option if not recognized
17615 # So say no if there are warnings
17616 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/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
17622 chmod u+w . 2>&5
17623 $RM conftest*
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
17628 cd ..
17629 $RM -r conftest
17630 $RM conftest*
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
17642 else
17643 lt_cv_prog_compiler_c_o_GCJ=no
17644 $RM -r conftest 2>/dev/null
17645 mkdir conftest
17646 cd conftest
17647 mkdir out
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:$LINENO: $lt_compile\"" >&5)
17660 (eval "$lt_compile" 2>out/conftest.err)
17661 ac_status=$?
17662 cat out/conftest.err >&5
17663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17664 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17665 then
17666 # The compiler can only warn and ignore the option if not recognized
17667 # So say no if there are warnings
17668 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/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
17674 chmod u+w . 2>&5
17675 $RM conftest*
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
17680 cd ..
17681 $RM -r conftest
17682 $RM conftest*
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; }
17696 hard_links=yes
17697 $RM conftest*
17698 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17699 touch conftest.a
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;}
17707 need_locks=warn
17709 else
17710 need_locks=no
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; }
17718 runpath_var=
17719 allow_undefined_flag_GCJ=
17720 always_export_symbols_GCJ=no
17721 archive_cmds_GCJ=
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
17737 module_cmds_GCJ=
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=
17759 case $host_os in
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
17765 with_gnu_ld=no
17768 interix*)
17769 # we just hope/assume this is gcc and not c89 (= MSVC++)
17770 with_gnu_ld=yes
17772 openbsd*)
17773 with_gnu_ld=no
17775 esac
17777 ld_shlibs_GCJ=yes
17779 # On some targets, GNU ld is compatible enough with the native linker
17780 # that we're better off using the native interface for both.
17781 lt_use_gnu_ld_interface=no
17782 if test "$with_gnu_ld" = yes; then
17783 case $host_os in
17784 aix*)
17785 # The AIX port of GNU ld has always aspired to compatibility
17786 # with the native linker. However, as the warning in the GNU ld
17787 # block says, versions before 2.19.5* couldn't really create working
17788 # shared libraries, regardless of the interface used.
17789 case `$LD -v 2>&1` in
17790 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17791 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17792 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17794 lt_use_gnu_ld_interface=yes
17796 esac
17799 lt_use_gnu_ld_interface=yes
17801 esac
17804 if test "$lt_use_gnu_ld_interface" = yes; then
17805 # If archive_cmds runs LD, not CC, wlarc should be empty
17806 wlarc='${wl}'
17808 # Set some defaults for GNU ld with shared library support. These
17809 # are reset later if shared libraries are not supported. Putting them
17810 # here allows them to be overridden if necessary.
17811 runpath_var=LD_RUN_PATH
17812 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17813 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17814 # ancient GNU ld didn't support --whole-archive et. al.
17815 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17816 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17817 else
17818 whole_archive_flag_spec_GCJ=
17820 supports_anon_versioning=no
17821 case `$LD -v 2>&1` in
17822 *GNU\ gold*) supports_anon_versioning=yes ;;
17823 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17824 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17825 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17826 *\ 2.11.*) ;; # other 2.11 versions
17827 *) supports_anon_versioning=yes ;;
17828 esac
17830 # See if GNU ld supports shared libraries.
17831 case $host_os in
17832 aix[3-9]*)
17833 # On AIX/PPC, the GNU linker is very broken
17834 if test "$host_cpu" != ia64; then
17835 ld_shlibs_GCJ=no
17836 cat <<_LT_EOF 1>&2
17838 *** Warning: the GNU linker, at least up to release 2.19, is reported
17839 *** to be unable to reliably create shared libraries on AIX.
17840 *** Therefore, libtool is disabling shared libraries support. If you
17841 *** really care for shared libraries, you may want to install binutils
17842 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17843 *** You will then need to restart the configuration process.
17845 _LT_EOF
17849 amigaos*)
17850 case $host_cpu in
17851 powerpc)
17852 # see comment about AmigaOS4 .so support
17853 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17854 archive_expsym_cmds_GCJ=''
17856 m68k)
17857 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)'
17858 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17859 hardcode_minus_L_GCJ=yes
17861 esac
17864 beos*)
17865 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17866 allow_undefined_flag_GCJ=unsupported
17867 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17868 # support --undefined. This deserves some investigation. FIXME
17869 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17870 else
17871 ld_shlibs_GCJ=no
17875 cygwin* | mingw* | pw32* | cegcc*)
17876 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17877 # as there is no search path for DLLs.
17878 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17879 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
17880 allow_undefined_flag_GCJ=unsupported
17881 always_export_symbols_GCJ=no
17882 enable_shared_with_static_runtimes_GCJ=yes
17883 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17885 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17886 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17887 # If the export-symbols file already is a .def file (1st line
17888 # is EXPORTS), use it as is; otherwise, prepend...
17889 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17890 cp $export_symbols $output_objdir/$soname.def;
17891 else
17892 echo EXPORTS > $output_objdir/$soname.def;
17893 cat $export_symbols >> $output_objdir/$soname.def;
17895 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17896 else
17897 ld_shlibs_GCJ=no
17901 haiku*)
17902 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17903 link_all_deplibs_GCJ=yes
17906 interix[3-9]*)
17907 hardcode_direct_GCJ=no
17908 hardcode_shlibpath_var_GCJ=no
17909 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17910 export_dynamic_flag_spec_GCJ='${wl}-E'
17911 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17912 # Instead, shared libraries are loaded at an image base (0x10000000 by
17913 # default) and relocated if they conflict, which is a slow very memory
17914 # consuming and fragmenting process. To avoid this, we pick a random,
17915 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17916 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17917 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'
17918 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'
17921 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17922 tmp_diet=no
17923 if test "$host_os" = linux-dietlibc; then
17924 case $cc_basename in
17925 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17926 esac
17928 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17929 && test "$tmp_diet" = no
17930 then
17931 tmp_addflag=
17932 tmp_sharedflag='-shared'
17933 case $cc_basename,$host_cpu in
17934 pgcc*) # Portland Group C compiler
17935 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17936 tmp_addflag=' $pic_flag'
17938 pgf77* | pgf90* | pgf95* | pgfortran*)
17939 # Portland Group f77 and f90 compilers
17940 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17941 tmp_addflag=' $pic_flag -Mnomain' ;;
17942 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17943 tmp_addflag=' -i_dynamic' ;;
17944 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17945 tmp_addflag=' -i_dynamic -nofor_main' ;;
17946 ifc* | ifort*) # Intel Fortran compiler
17947 tmp_addflag=' -nofor_main' ;;
17948 lf95*) # Lahey Fortran 8.1
17949 whole_archive_flag_spec_GCJ=
17950 tmp_sharedflag='--shared' ;;
17951 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17952 tmp_sharedflag='-qmkshrobj'
17953 tmp_addflag= ;;
17954 nvcc*) # Cuda Compiler Driver 2.2
17955 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17956 compiler_needs_object_GCJ=yes
17958 esac
17959 case `$CC -V 2>&1 | sed 5q` in
17960 *Sun\ C*) # Sun C 5.9
17961 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
17962 compiler_needs_object_GCJ=yes
17963 tmp_sharedflag='-G' ;;
17964 *Sun\ F*) # Sun Fortran 8.3
17965 tmp_sharedflag='-G' ;;
17966 esac
17967 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17969 if test "x$supports_anon_versioning" = xyes; then
17970 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17971 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17972 echo "local: *; };" >> $output_objdir/$libname.ver~
17973 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17976 case $cc_basename in
17977 xlf* | bgf* | bgxlf* | mpixlf*)
17978 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17979 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
17980 hardcode_libdir_flag_spec_GCJ=
17981 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17982 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
17983 if test "x$supports_anon_versioning" = xyes; then
17984 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
17985 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17986 echo "local: *; };" >> $output_objdir/$libname.ver~
17987 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17990 esac
17991 else
17992 ld_shlibs_GCJ=no
17996 netbsd*)
17997 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17998 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17999 wlarc=
18000 else
18001 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18002 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18006 solaris*)
18007 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18008 ld_shlibs_GCJ=no
18009 cat <<_LT_EOF 1>&2
18011 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18012 *** create shared libraries on Solaris systems. Therefore, libtool
18013 *** is disabling shared libraries support. We urge you to upgrade GNU
18014 *** binutils to release 2.9.1 or newer. Another option is to modify
18015 *** your PATH or compiler configuration so that the native linker is
18016 *** used, and then restart.
18018 _LT_EOF
18019 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18020 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18021 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18022 else
18023 ld_shlibs_GCJ=no
18027 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18028 case `$LD -v 2>&1` in
18029 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18030 ld_shlibs_GCJ=no
18031 cat <<_LT_EOF 1>&2
18033 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18034 *** reliably create shared libraries on SCO systems. Therefore, libtool
18035 *** is disabling shared libraries support. We urge you to upgrade GNU
18036 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18037 *** your PATH or compiler configuration so that the native linker is
18038 *** used, and then restart.
18040 _LT_EOF
18043 # For security reasons, it is highly recommended that you always
18044 # use absolute paths for naming shared libraries, and exclude the
18045 # DT_RUNPATH tag from executables and libraries. But doing so
18046 # requires that you compile everything twice, which is a pain.
18047 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18048 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18049 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18050 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18051 else
18052 ld_shlibs_GCJ=no
18055 esac
18058 sunos4*)
18059 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18060 wlarc=
18061 hardcode_direct_GCJ=yes
18062 hardcode_shlibpath_var_GCJ=no
18066 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18067 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18068 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18069 else
18070 ld_shlibs_GCJ=no
18073 esac
18075 if test "$ld_shlibs_GCJ" = no; then
18076 runpath_var=
18077 hardcode_libdir_flag_spec_GCJ=
18078 export_dynamic_flag_spec_GCJ=
18079 whole_archive_flag_spec_GCJ=
18081 else
18082 # PORTME fill in a description of your system's linker (not GNU ld)
18083 case $host_os in
18084 aix3*)
18085 allow_undefined_flag_GCJ=unsupported
18086 always_export_symbols_GCJ=yes
18087 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'
18088 # Note: this linker hardcodes the directories in LIBPATH if there
18089 # are no directories specified by -L.
18090 hardcode_minus_L_GCJ=yes
18091 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18092 # Neither direct hardcoding nor static linking is supported with a
18093 # broken collect2.
18094 hardcode_direct_GCJ=unsupported
18098 aix[4-9]*)
18099 if test "$host_cpu" = ia64; then
18100 # On IA64, the linker does run time linking by default, so we don't
18101 # have to do anything special.
18102 aix_use_runtimelinking=no
18103 exp_sym_flag='-Bexport'
18104 no_entry_flag=""
18105 else
18106 # If we're using GNU nm, then we don't want the "-C" option.
18107 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18108 # Also, AIX nm treats weak defined symbols like other global
18109 # defined symbols, whereas GNU nm marks them as "W".
18110 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18111 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18112 else
18113 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'
18115 aix_use_runtimelinking=no
18117 # Test if we are trying to use run time linking or normal
18118 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18119 # need to do runtime linking.
18120 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18121 for ld_flag in $LDFLAGS; do
18122 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18123 aix_use_runtimelinking=yes
18124 break
18126 done
18128 esac
18130 exp_sym_flag='-bexport'
18131 no_entry_flag='-bnoentry'
18134 # When large executables or shared objects are built, AIX ld can
18135 # have problems creating the table of contents. If linking a library
18136 # or program results in "error TOC overflow" add -mminimal-toc to
18137 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18138 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18140 archive_cmds_GCJ=''
18141 hardcode_direct_GCJ=yes
18142 hardcode_direct_absolute_GCJ=yes
18143 hardcode_libdir_separator_GCJ=':'
18144 link_all_deplibs_GCJ=yes
18145 file_list_spec_GCJ='${wl}-f,'
18147 if test "$GCC" = yes; then
18148 case $host_os in aix4.[012]|aix4.[012].*)
18149 # We only want to do this on AIX 4.2 and lower, the check
18150 # below for broken collect2 doesn't work under 4.3+
18151 collect2name=`${CC} -print-prog-name=collect2`
18152 if test -f "$collect2name" &&
18153 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18154 then
18155 # We have reworked collect2
18157 else
18158 # We have old collect2
18159 hardcode_direct_GCJ=unsupported
18160 # It fails to find uninstalled libraries when the uninstalled
18161 # path is not listed in the libpath. Setting hardcode_minus_L
18162 # to unsupported forces relinking
18163 hardcode_minus_L_GCJ=yes
18164 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18165 hardcode_libdir_separator_GCJ=
18168 esac
18169 shared_flag='-shared'
18170 if test "$aix_use_runtimelinking" = yes; then
18171 shared_flag="$shared_flag "'${wl}-G'
18173 else
18174 # not using gcc
18175 if test "$host_cpu" = ia64; then
18176 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18177 # chokes on -Wl,-G. The following line is correct:
18178 shared_flag='-G'
18179 else
18180 if test "$aix_use_runtimelinking" = yes; then
18181 shared_flag='${wl}-G'
18182 else
18183 shared_flag='${wl}-bM:SRE'
18188 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18189 # It seems that -bexpall does not export symbols beginning with
18190 # underscore (_), so it is better to generate a list of symbols to export.
18191 always_export_symbols_GCJ=yes
18192 if test "$aix_use_runtimelinking" = yes; then
18193 # Warning - without using the other runtime loading flags (-brtl),
18194 # -berok will link without error, but may produce a broken library.
18195 allow_undefined_flag_GCJ='-berok'
18196 # Determine the default libpath from the value encoded in an
18197 # empty executable.
18198 if test x$gcc_no_link = xyes; then
18199 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18202 /* end confdefs.h. */
18205 main ()
18209 return 0;
18211 _ACEOF
18212 if ac_fn_c_try_link "$LINENO"; then :
18214 lt_aix_libpath_sed='
18215 /Import File Strings/,/^$/ {
18216 /^0/ {
18217 s/^0 *\(.*\)$/\1/
18221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18222 # Check for a 64-bit object if we didn't find anything.
18223 if test -z "$aix_libpath"; then
18224 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18227 rm -f core conftest.err conftest.$ac_objext \
18228 conftest$ac_exeext conftest.$ac_ext
18229 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18231 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18232 archive_expsym_cmds_GCJ='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18233 else
18234 if test "$host_cpu" = ia64; then
18235 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18236 allow_undefined_flag_GCJ="-z nodefs"
18237 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"
18238 else
18239 # Determine the default libpath from the value encoded in an
18240 # empty executable.
18241 if test x$gcc_no_link = xyes; then
18242 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18245 /* end confdefs.h. */
18248 main ()
18252 return 0;
18254 _ACEOF
18255 if ac_fn_c_try_link "$LINENO"; then :
18257 lt_aix_libpath_sed='
18258 /Import File Strings/,/^$/ {
18259 /^0/ {
18260 s/^0 *\(.*\)$/\1/
18264 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18265 # Check for a 64-bit object if we didn't find anything.
18266 if test -z "$aix_libpath"; then
18267 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18270 rm -f core conftest.err conftest.$ac_objext \
18271 conftest$ac_exeext conftest.$ac_ext
18272 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18274 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18275 # Warning - without using the other run time loading flags,
18276 # -berok will link without error, but may produce a broken library.
18277 no_undefined_flag_GCJ=' ${wl}-bernotok'
18278 allow_undefined_flag_GCJ=' ${wl}-berok'
18279 if test "$with_gnu_ld" = yes; then
18280 # We only use this code for GNU lds that support --whole-archive.
18281 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18282 else
18283 # Exported symbols can be pulled into shared objects from archives
18284 whole_archive_flag_spec_GCJ='$convenience'
18286 archive_cmds_need_lc_GCJ=yes
18287 # This is similar to how AIX traditionally builds its shared libraries.
18288 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'
18293 amigaos*)
18294 case $host_cpu in
18295 powerpc)
18296 # see comment about AmigaOS4 .so support
18297 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18298 archive_expsym_cmds_GCJ=''
18300 m68k)
18301 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)'
18302 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18303 hardcode_minus_L_GCJ=yes
18305 esac
18308 bsdi[45]*)
18309 export_dynamic_flag_spec_GCJ=-rdynamic
18312 cygwin* | mingw* | pw32* | cegcc*)
18313 # When not using gcc, we currently assume that we are using
18314 # Microsoft Visual C++.
18315 # hardcode_libdir_flag_spec is actually meaningless, as there is
18316 # no search path for DLLs.
18317 hardcode_libdir_flag_spec_GCJ=' '
18318 allow_undefined_flag_GCJ=unsupported
18319 # Tell ltmain to make .lib files, not .a files.
18320 libext=lib
18321 # Tell ltmain to make .dll files, not .so files.
18322 shrext_cmds=".dll"
18323 # FIXME: Setting linknames here is a bad hack.
18324 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18325 # The linker will automatically build a .lib file if we build a DLL.
18326 old_archive_from_new_cmds_GCJ='true'
18327 # FIXME: Should let the user specify the lib program.
18328 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18329 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18330 enable_shared_with_static_runtimes_GCJ=yes
18333 darwin* | rhapsody*)
18336 archive_cmds_need_lc_GCJ=no
18337 hardcode_direct_GCJ=no
18338 hardcode_automatic_GCJ=yes
18339 hardcode_shlibpath_var_GCJ=unsupported
18340 if test "$lt_cv_ld_force_load" = "yes"; then
18341 whole_archive_flag_spec_GCJ='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
18342 else
18343 whole_archive_flag_spec_GCJ=''
18345 link_all_deplibs_GCJ=yes
18346 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18347 case $cc_basename in
18348 ifort*) _lt_dar_can_shared=yes ;;
18349 *) _lt_dar_can_shared=$GCC ;;
18350 esac
18351 if test "$_lt_dar_can_shared" = "yes"; then
18352 output_verbose_link_cmd=func_echo_all
18353 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}"
18354 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18355 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}"
18356 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}"
18358 else
18359 ld_shlibs_GCJ=no
18364 dgux*)
18365 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18366 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18367 hardcode_shlibpath_var_GCJ=no
18370 freebsd1*)
18371 ld_shlibs_GCJ=no
18374 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18375 # support. Future versions do this automatically, but an explicit c++rt0.o
18376 # does not break anything, and helps significantly (at the cost of a little
18377 # extra space).
18378 freebsd2.2*)
18379 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18380 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18381 hardcode_direct_GCJ=yes
18382 hardcode_shlibpath_var_GCJ=no
18385 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18386 freebsd2*)
18387 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18388 hardcode_direct_GCJ=yes
18389 hardcode_minus_L_GCJ=yes
18390 hardcode_shlibpath_var_GCJ=no
18393 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18394 freebsd* | dragonfly*)
18395 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18396 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18397 hardcode_direct_GCJ=yes
18398 hardcode_shlibpath_var_GCJ=no
18401 hpux9*)
18402 if test "$GCC" = yes; then
18403 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'
18404 else
18405 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'
18407 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18408 hardcode_libdir_separator_GCJ=:
18409 hardcode_direct_GCJ=yes
18411 # hardcode_minus_L: Not really in the search PATH,
18412 # but as the default location of the library.
18413 hardcode_minus_L_GCJ=yes
18414 export_dynamic_flag_spec_GCJ='${wl}-E'
18417 hpux10*)
18418 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18419 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18420 else
18421 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18423 if test "$with_gnu_ld" = no; then
18424 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18425 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18426 hardcode_libdir_separator_GCJ=:
18427 hardcode_direct_GCJ=yes
18428 hardcode_direct_absolute_GCJ=yes
18429 export_dynamic_flag_spec_GCJ='${wl}-E'
18430 # hardcode_minus_L: Not really in the search PATH,
18431 # but as the default location of the library.
18432 hardcode_minus_L_GCJ=yes
18436 hpux11*)
18437 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18438 case $host_cpu in
18439 hppa*64*)
18440 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18442 ia64*)
18443 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18446 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18448 esac
18449 else
18450 case $host_cpu in
18451 hppa*64*)
18452 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18454 ia64*)
18455 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18458 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18460 esac
18462 if test "$with_gnu_ld" = no; then
18463 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18464 hardcode_libdir_separator_GCJ=:
18466 case $host_cpu in
18467 hppa*64*|ia64*)
18468 hardcode_direct_GCJ=no
18469 hardcode_shlibpath_var_GCJ=no
18472 hardcode_direct_GCJ=yes
18473 hardcode_direct_absolute_GCJ=yes
18474 export_dynamic_flag_spec_GCJ='${wl}-E'
18476 # hardcode_minus_L: Not really in the search PATH,
18477 # but as the default location of the library.
18478 hardcode_minus_L_GCJ=yes
18480 esac
18484 irix5* | irix6* | nonstopux*)
18485 if test "$GCC" = yes; then
18486 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18487 # Try to use the -exported_symbol ld option, if it does not
18488 # work, assume that -exports_file does not work either and
18489 # implicitly export all symbols.
18490 save_LDFLAGS="$LDFLAGS"
18491 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18492 if test x$gcc_no_link = xyes; then
18493 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18496 /* end confdefs.h. */
18497 int foo(void) {}
18498 _ACEOF
18499 if ac_fn_c_try_link "$LINENO"; then :
18500 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
18503 rm -f core conftest.err conftest.$ac_objext \
18504 conftest$ac_exeext conftest.$ac_ext
18505 LDFLAGS="$save_LDFLAGS"
18506 else
18507 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18508 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
18510 archive_cmds_need_lc_GCJ='no'
18511 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18512 hardcode_libdir_separator_GCJ=:
18513 inherit_rpath_GCJ=yes
18514 link_all_deplibs_GCJ=yes
18517 netbsd*)
18518 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18519 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18520 else
18521 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18523 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18524 hardcode_direct_GCJ=yes
18525 hardcode_shlibpath_var_GCJ=no
18528 newsos6)
18529 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18530 hardcode_direct_GCJ=yes
18531 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18532 hardcode_libdir_separator_GCJ=:
18533 hardcode_shlibpath_var_GCJ=no
18536 *nto* | *qnx*)
18539 openbsd*)
18540 if test -f /usr/libexec/ld.so; then
18541 hardcode_direct_GCJ=yes
18542 hardcode_shlibpath_var_GCJ=no
18543 hardcode_direct_absolute_GCJ=yes
18544 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18545 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18546 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18547 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18548 export_dynamic_flag_spec_GCJ='${wl}-E'
18549 else
18550 case $host_os in
18551 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18552 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18553 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18556 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18557 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18559 esac
18561 else
18562 ld_shlibs_GCJ=no
18566 os2*)
18567 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18568 hardcode_minus_L_GCJ=yes
18569 allow_undefined_flag_GCJ=unsupported
18570 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'
18571 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18574 osf3*)
18575 if test "$GCC" = yes; then
18576 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18577 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18578 else
18579 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18580 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18582 archive_cmds_need_lc_GCJ='no'
18583 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18584 hardcode_libdir_separator_GCJ=:
18587 osf4* | osf5*) # as osf3* with the addition of -msym flag
18588 if test "$GCC" = yes; then
18589 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18590 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
18591 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18592 else
18593 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18594 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
18595 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~
18596 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
18598 # Both c and cxx compiler support -rpath directly
18599 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18601 archive_cmds_need_lc_GCJ='no'
18602 hardcode_libdir_separator_GCJ=:
18605 solaris*)
18606 no_undefined_flag_GCJ=' -z defs'
18607 if test "$GCC" = yes; then
18608 wlarc='${wl}'
18609 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18610 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18611 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18612 else
18613 case `$CC -V 2>&1` in
18614 *"Compilers 5.0"*)
18615 wlarc=''
18616 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18617 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18618 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18621 wlarc='${wl}'
18622 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18623 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18624 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18626 esac
18628 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18629 hardcode_shlibpath_var_GCJ=no
18630 case $host_os in
18631 solaris2.[0-5] | solaris2.[0-5].*) ;;
18633 # The compiler driver will combine and reorder linker options,
18634 # but understands `-z linker_flag'. GCC discards it without `$wl',
18635 # but is careful enough not to reorder.
18636 # Supported since Solaris 2.6 (maybe 2.5.1?)
18637 if test "$GCC" = yes; then
18638 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18639 else
18640 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18643 esac
18644 link_all_deplibs_GCJ=yes
18647 sunos4*)
18648 if test "x$host_vendor" = xsequent; then
18649 # Use $CC to link under sequent, because it throws in some extra .o
18650 # files that make .init and .fini sections work.
18651 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18652 else
18653 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18655 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18656 hardcode_direct_GCJ=yes
18657 hardcode_minus_L_GCJ=yes
18658 hardcode_shlibpath_var_GCJ=no
18661 sysv4)
18662 case $host_vendor in
18663 sni)
18664 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18665 hardcode_direct_GCJ=yes # is this really true???
18667 siemens)
18668 ## LD is ld it makes a PLAMLIB
18669 ## CC just makes a GrossModule.
18670 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18671 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18672 hardcode_direct_GCJ=no
18674 motorola)
18675 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18676 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18678 esac
18679 runpath_var='LD_RUN_PATH'
18680 hardcode_shlibpath_var_GCJ=no
18683 sysv4.3*)
18684 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18685 hardcode_shlibpath_var_GCJ=no
18686 export_dynamic_flag_spec_GCJ='-Bexport'
18689 sysv4*MP*)
18690 if test -d /usr/nec; then
18691 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18692 hardcode_shlibpath_var_GCJ=no
18693 runpath_var=LD_RUN_PATH
18694 hardcode_runpath_var=yes
18695 ld_shlibs_GCJ=yes
18699 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18700 no_undefined_flag_GCJ='${wl}-z,text'
18701 archive_cmds_need_lc_GCJ=no
18702 hardcode_shlibpath_var_GCJ=no
18703 runpath_var='LD_RUN_PATH'
18705 if test "$GCC" = yes; then
18706 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18707 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18708 else
18709 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18710 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18714 sysv5* | sco3.2v5* | sco5v6*)
18715 # Note: We can NOT use -z defs as we might desire, because we do not
18716 # link with -lc, and that would cause any symbols used from libc to
18717 # always be unresolved, which means just about no library would
18718 # ever link correctly. If we're not using GNU ld we use -z text
18719 # though, which does catch some bad symbols but isn't as heavy-handed
18720 # as -z defs.
18721 no_undefined_flag_GCJ='${wl}-z,text'
18722 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18723 archive_cmds_need_lc_GCJ=no
18724 hardcode_shlibpath_var_GCJ=no
18725 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18726 hardcode_libdir_separator_GCJ=':'
18727 link_all_deplibs_GCJ=yes
18728 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18729 runpath_var='LD_RUN_PATH'
18731 if test "$GCC" = yes; then
18732 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18733 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18734 else
18735 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18736 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18740 uts4*)
18741 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18742 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18743 hardcode_shlibpath_var_GCJ=no
18747 ld_shlibs_GCJ=no
18749 esac
18751 if test x$host_vendor = xsni; then
18752 case $host in
18753 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18754 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18756 esac
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18761 $as_echo "$ld_shlibs_GCJ" >&6; }
18762 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18764 with_gnu_ld_GCJ=$with_gnu_ld
18772 # Do we need to explicitly link libc?
18774 case "x$archive_cmds_need_lc_GCJ" in
18775 x|xyes)
18776 # Assume -lc should be added
18777 archive_cmds_need_lc_GCJ=yes
18779 if test "$enable_shared" = yes && test "$GCC" = yes; then
18780 case $archive_cmds_GCJ in
18781 *'~'*)
18782 # FIXME: we may have to deal with multi-command sequences.
18784 '$CC '*)
18785 # Test whether the compiler implicitly links with -lc since on some
18786 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18787 # to ld, don't add -lc before -lgcc.
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18789 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18790 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18791 $as_echo_n "(cached) " >&6
18792 else
18793 $RM conftest*
18794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18796 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18797 (eval $ac_compile) 2>&5
18798 ac_status=$?
18799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18800 test $ac_status = 0; } 2>conftest.err; then
18801 soname=conftest
18802 lib=conftest
18803 libobjs=conftest.$ac_objext
18804 deplibs=
18805 wl=$lt_prog_compiler_wl_GCJ
18806 pic_flag=$lt_prog_compiler_pic_GCJ
18807 compiler_flags=-v
18808 linker_flags=-v
18809 verstring=
18810 output_objdir=.
18811 libname=conftest
18812 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18813 allow_undefined_flag_GCJ=
18814 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18815 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18816 ac_status=$?
18817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18818 test $ac_status = 0; }
18819 then
18820 lt_cv_archive_cmds_need_lc_GCJ=no
18821 else
18822 lt_cv_archive_cmds_need_lc_GCJ=yes
18824 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18825 else
18826 cat conftest.err 1>&5
18828 $RM conftest*
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18832 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18833 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18835 esac
18838 esac
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18904 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18905 hardcode_action_GCJ=
18906 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
18907 test -n "$runpath_var_GCJ" ||
18908 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18910 # We can hardcode non-existent directories.
18911 if test "$hardcode_direct_GCJ" != no &&
18912 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18913 # have to relink, otherwise we might link with an installed library
18914 # when we should be linking with a yet-to-be-installed one
18915 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18916 test "$hardcode_minus_L_GCJ" != no; then
18917 # Linking always hardcodes the temporary library directory.
18918 hardcode_action_GCJ=relink
18919 else
18920 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18921 hardcode_action_GCJ=immediate
18923 else
18924 # We cannot hardcode anything, or else we can only hardcode existing
18925 # directories.
18926 hardcode_action_GCJ=unsupported
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18929 $as_echo "$hardcode_action_GCJ" >&6; }
18931 if test "$hardcode_action_GCJ" = relink ||
18932 test "$inherit_rpath_GCJ" = yes; then
18933 # Fast installation is not supported
18934 enable_fast_install=no
18935 elif test "$shlibpath_overrides_runpath" = yes ||
18936 test "$enable_shared" = no; then
18937 # Fast installation is not necessary
18938 enable_fast_install=needless
18949 compiler_GCJ=${GCJ-gcj}
18950 ac_ext=c
18951 ac_cpp='$CPP $CPPFLAGS'
18952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18957 if test "x$CC" != xcc; then
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
18959 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
18960 else
18961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
18962 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
18964 set dummy $CC; ac_cc=`$as_echo "$2" |
18965 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
18966 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
18967 $as_echo_n "(cached) " >&6
18968 else
18969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18970 /* end confdefs.h. */
18973 main ()
18977 return 0;
18979 _ACEOF
18980 # Make sure it works both with $CC and with simple cc.
18981 # We do the test twice because some compilers refuse to overwrite an
18982 # existing .o file with -o, though they will create one.
18983 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
18984 rm -f conftest2.*
18985 if { { case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18988 esac
18989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18990 $as_echo "$ac_try_echo"; } >&5
18991 (eval "$ac_try") 2>&5
18992 ac_status=$?
18993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18994 test $ac_status = 0; } &&
18995 test -f conftest2.$ac_objext && { { case "(($ac_try" in
18996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18997 *) ac_try_echo=$ac_try;;
18998 esac
18999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19000 $as_echo "$ac_try_echo"; } >&5
19001 (eval "$ac_try") 2>&5
19002 ac_status=$?
19003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19004 test $ac_status = 0; };
19005 then
19006 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19007 if test "x$CC" != xcc; then
19008 # Test first that cc exists at all.
19009 if { ac_try='cc -c conftest.$ac_ext >&5'
19010 { { case "(($ac_try" in
19011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19012 *) ac_try_echo=$ac_try;;
19013 esac
19014 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19015 $as_echo "$ac_try_echo"; } >&5
19016 (eval "$ac_try") 2>&5
19017 ac_status=$?
19018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19019 test $ac_status = 0; }; }; then
19020 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19021 rm -f conftest2.*
19022 if { { case "(($ac_try" in
19023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19024 *) ac_try_echo=$ac_try;;
19025 esac
19026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19027 $as_echo "$ac_try_echo"; } >&5
19028 (eval "$ac_try") 2>&5
19029 ac_status=$?
19030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19031 test $ac_status = 0; } &&
19032 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19034 *) ac_try_echo=$ac_try;;
19035 esac
19036 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19037 $as_echo "$ac_try_echo"; } >&5
19038 (eval "$ac_try") 2>&5
19039 ac_status=$?
19040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19041 test $ac_status = 0; };
19042 then
19043 # cc works too.
19045 else
19046 # cc exists but doesn't like -o.
19047 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19051 else
19052 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19054 rm -f core conftest*
19057 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19059 $as_echo "yes" >&6; }
19060 else
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19062 $as_echo "no" >&6; }
19064 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19068 # FIXME: we rely on the cache variable name because
19069 # there is no other way.
19070 set dummy $CC
19071 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19072 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19073 if test "$am_t" != yes; then
19074 # Losing compiler, so override with the script.
19075 # FIXME: It is wrong to rewrite CC.
19076 # But if we don't then we get into trouble of one sort or another.
19077 # A longer-term fix would be to have automake use am__CC in this case,
19078 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19079 CC="$am_aux_dir/compile $CC"
19086 subdirs="$subdirs classpath libltdl"
19089 # The -no-testsuite modules omit the test subdir.
19090 if test -d $srcdir/testsuite; then
19091 TESTSUBDIR_TRUE=
19092 TESTSUBDIR_FALSE='#'
19093 else
19094 TESTSUBDIR_TRUE='#'
19095 TESTSUBDIR_FALSE=
19099 # Should the runtime set system properties by examining the
19100 # environment variable GCJ_PROPERTIES?
19101 # Check whether --enable-getenv-properties was given.
19102 if test "${enable_getenv_properties+set}" = set; then :
19103 enableval=$enable_getenv_properties;
19107 # Whether GCJ_PROPERTIES is used depends on the target.
19108 if test -z "$enable_getenv_properties"; then
19109 enable_getenv_properties=${enable_getenv_properties_default-yes}
19111 if test "$enable_getenv_properties" = no; then
19113 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19117 # Whether we should use arguments to main()
19118 if test -z "$enable_main_args"; then
19119 enable_main_args=${enable_main_args_default-yes}
19121 if test "$enable_main_args" = no; then
19123 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19128 # Should we use hashtable-based synchronization?
19129 # Currently works only for Linux X86/ia64
19130 # Typically faster and more space-efficient
19131 # Check whether --enable-hash-synchronization was given.
19132 if test "${enable_hash_synchronization+set}" = set; then :
19133 enableval=$enable_hash_synchronization;
19137 if test -z "$enable_hash_synchronization"; then
19138 enable_hash_synchronization=$enable_hash_synchronization_default
19142 install_ecj_jar=no
19143 ECJ_BUILD_JAR=
19144 ECJ_JAR=
19146 # Check whether --with-ecj-jar was given.
19147 if test "${with_ecj_jar+set}" = set; then :
19148 withval=$with_ecj_jar; ECJ_JAR=$withval
19149 else
19150 if test -f $multi_basedir/ecj.jar; then
19151 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19152 ECJ_JAR='$(jardir)/ecj.jar'
19153 install_ecj_jar=yes
19159 if test "$ECJ_JAR" != ""; then
19160 BUILD_ECJ1_TRUE=
19161 BUILD_ECJ1_FALSE='#'
19162 else
19163 BUILD_ECJ1_TRUE='#'
19164 BUILD_ECJ1_FALSE=
19167 if test $install_ecj_jar = yes; then
19168 INSTALL_ECJ_JAR_TRUE=
19169 INSTALL_ECJ_JAR_FALSE='#'
19170 else
19171 INSTALL_ECJ_JAR_TRUE='#'
19172 INSTALL_ECJ_JAR_FALSE=
19177 # Check whether --with-java-home was given.
19178 if test "${with_java_home+set}" = set; then :
19179 withval=$with_java_home; JAVA_HOME="${withval}"
19180 else
19181 JAVA_HOME=""
19184 if test ! -z "$JAVA_HOME"; then
19185 JAVA_HOME_SET_TRUE=
19186 JAVA_HOME_SET_FALSE='#'
19187 else
19188 JAVA_HOME_SET_TRUE='#'
19189 JAVA_HOME_SET_FALSE=
19194 suppress_libgcj_bc=no
19195 # Check whether --enable-libgcj-bc was given.
19196 if test "${enable_libgcj_bc+set}" = set; then :
19197 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19198 suppress_libgcj_bc=yes
19202 if test "$suppress_libgcj_bc" = "yes"; then
19203 SUPPRESS_LIBGCJ_BC_TRUE=
19204 SUPPRESS_LIBGCJ_BC_FALSE='#'
19205 else
19206 SUPPRESS_LIBGCJ_BC_TRUE='#'
19207 SUPPRESS_LIBGCJ_BC_FALSE=
19211 build_libgcj_reduced_reflection=no
19212 # Check whether --enable-reduced-reflection was given.
19213 if test "${enable_reduced_reflection+set}" = set; then :
19214 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19215 build_libgcj_reduced_reflection=yes
19219 if test "$build_libgcj_reduced_reflection" = "yes"; then
19220 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19221 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19222 else
19223 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19224 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19228 # What is the native OS API for MinGW?
19230 # Check whether --with-win32-nlsapi was given.
19231 if test "${with_win32_nlsapi+set}" = set; then :
19232 withval=$with_win32_nlsapi; case "${withval}" in
19233 ansi) with_win32_nlsapi=ansi ;;
19234 unicows) with_win32_nlsapi=unicows ;;
19235 unicode) with_win32_nlsapi=unicode ;;
19236 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19237 esac
19238 else
19239 with_win32_nlsapi=ansi
19243 case "${with_win32_nlsapi}" in
19244 unicows | unicode)
19246 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19249 esac
19251 # configure.host sets slow_pthread_self if the synchronization code should
19252 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19253 if test "${slow_pthread_self}" = "yes"; then
19255 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19259 # Check for gc debugging. This option is handled both here and in the GC.
19260 # Check whether --enable-gc-debug was given.
19261 if test "${enable_gc_debug+set}" = set; then :
19262 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19264 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19270 # See if the user has the interpreter included.
19271 # Check whether --enable-interpreter was given.
19272 if test "${enable_interpreter+set}" = set; then :
19273 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19274 # This can also be set in configure.host.
19275 libgcj_interpreter=yes
19276 elif test "$enable_interpreter" = no; then
19277 libgcj_interpreter=no
19282 if test "$libgcj_interpreter" = yes; then
19284 $as_echo "#define INTERPRETER 1" >>confdefs.h
19287 INTERPRETER="$libgcj_interpreter"
19289 if test "$libgcj_interpreter" = yes; then
19290 INTERPRETER_TRUE=
19291 INTERPRETER_FALSE='#'
19292 else
19293 INTERPRETER_TRUE='#'
19294 INTERPRETER_FALSE=
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19299 $as_echo_n "checking for exception model to use... " >&6; }
19300 ac_ext=cpp
19301 ac_cpp='$CXXCPP $CPPFLAGS'
19302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19306 # Check whether --enable-sjlj-exceptions was given.
19307 if test "${enable_sjlj_exceptions+set}" = set; then :
19308 enableval=$enable_sjlj_exceptions; :
19309 else
19310 cat > conftest.$ac_ext << EOF
19311 #line 19311 "configure"
19312 struct S { ~S(); };
19313 void bar();
19314 void foo()
19316 S s;
19317 bar();
19320 old_CXXFLAGS="$CXXFLAGS"
19321 CXXFLAGS=-S
19322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19323 (eval $ac_compile) 2>&5
19324 ac_status=$?
19325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19326 test $ac_status = 0; }; then
19327 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19328 enable_sjlj_exceptions=yes
19329 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19330 enable_sjlj_exceptions=no
19331 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19332 # ARM EH ABI.
19333 enable_sjlj_exceptions=no
19336 CXXFLAGS="$old_CXXFLAGS"
19337 rm -f conftest*
19340 if test x$enable_sjlj_exceptions = xyes; then
19342 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19344 ac_exception_model_name=sjlj
19345 elif test x$enable_sjlj_exceptions = xno; then
19346 ac_exception_model_name="call frame"
19347 else
19348 as_fn_error "unable to detect exception model" "$LINENO" 5
19350 ac_ext=c
19351 ac_cpp='$CPP $CPPFLAGS'
19352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19357 $as_echo "$ac_exception_model_name" >&6; }
19359 # If we are non using SJLJ exceptions, and this host does not have support
19360 # for unwinding from a signal handler, enable checked dereferences and divides.
19361 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19362 CHECKREFSPEC=-fcheck-references
19363 DIVIDESPEC=-fuse-divide-subroutine
19364 EXCEPTIONSPEC=
19367 # See if the user wants to disable java.net. This is the mildly
19368 # ugly way that we admit that target-side configuration sucks.
19369 # Check whether --enable-java-net was given.
19370 if test "${enable_java_net+set}" = set; then :
19371 enableval=$enable_java_net;
19375 # Whether java.net is built by default can depend on the target.
19376 if test -z "$enable_java_net"; then
19377 enable_java_net=${enable_java_net_default-yes}
19379 if test "$enable_java_net" = no; then
19381 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19385 # See if the user wants to configure without libffi. Some
19386 # architectures don't support it, and default values are set in
19387 # configure.host.
19389 # Check whether --with-libffi was given.
19390 if test "${with_libffi+set}" = set; then :
19391 withval=$with_libffi; :
19392 else
19393 with_libffi=${with_libffi_default-yes}
19397 LIBFFI=
19398 LIBFFIINCS=
19399 if test "$with_libffi" != no; then
19401 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19403 LIBFFI=../libffi/libffi_convenience.la
19404 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19409 # See if the user wants to disable JVMPI support.
19410 # Check whether --enable-jvmpi was given.
19411 if test "${enable_jvmpi+set}" = set; then :
19412 enableval=$enable_jvmpi;
19416 if test "$enable_jvmpi" != no; then
19418 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19422 # If the target is an eCos system, use the appropriate eCos
19423 # I/O routines.
19424 # FIXME: this should not be a local option but a global target
19425 # system; at present there is no eCos target.
19426 TARGET_ECOS=${PROCESS-"no"}
19428 # Check whether --with-ecos was given.
19429 if test "${with_ecos+set}" = set; then :
19430 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19435 case "$TARGET_ECOS" in
19436 no) case "$host" in
19437 *mingw*)
19438 PLATFORM=Win32
19439 PLATFORMNET=Win32
19440 PLATFORMH=win32.h
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19443 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19444 LD_PROG=`$CC --print-prog-name=ld`
19445 LD_VERSION=`$LD_PROG --version`
19446 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19447 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19448 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19449 LD_OK="ok"
19450 else
19451 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19452 LD_OK="ok"
19455 if test "x$LD_OK" != x; then
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19457 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19458 else
19459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19460 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19462 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19464 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19469 PLATFORM=Posix
19470 PLATFORMNET=Posix
19471 PLATFORMH=posix.h
19473 esac
19476 PLATFORM=Ecos
19477 PLATFORMNET=NoNet
19479 $as_echo "#define ECOS 1" >>confdefs.h
19481 PLATFORMH=posix.h
19483 esac
19485 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19489 /* end confdefs.h. */
19490 #include <stdint.h>
19492 _ACEOF
19493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19494 $EGREP "uint32_t" >/dev/null 2>&1; then :
19496 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19499 rm -f conftest*
19501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19502 /* end confdefs.h. */
19503 #include <inttypes.h>
19505 _ACEOF
19506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19507 $EGREP "uint32_t" >/dev/null 2>&1; then :
19509 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19512 rm -f conftest*
19514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19515 /* end confdefs.h. */
19516 #include <sys/types.h>
19518 _ACEOF
19519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19520 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19522 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19525 rm -f conftest*
19527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19528 /* end confdefs.h. */
19529 #include <sys/config.h>
19531 _ACEOF
19532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19533 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19535 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19538 rm -f conftest*
19541 if test "$PLATFORM" = Win32; then
19542 USING_WIN32_PLATFORM_TRUE=
19543 USING_WIN32_PLATFORM_FALSE='#'
19544 else
19545 USING_WIN32_PLATFORM_TRUE='#'
19546 USING_WIN32_PLATFORM_FALSE=
19549 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19550 USING_POSIX_PLATFORM_TRUE=
19551 USING_POSIX_PLATFORM_FALSE='#'
19552 else
19553 USING_POSIX_PLATFORM_TRUE='#'
19554 USING_POSIX_PLATFORM_FALSE=
19558 case "$host" in
19559 *-darwin*) DARWIN_CRT=true ;;
19560 *) DARWIN_CRT=false ;;
19561 esac
19562 if $DARWIN_CRT; then
19563 USING_DARWIN_CRT_TRUE=
19564 USING_DARWIN_CRT_FALSE='#'
19565 else
19566 USING_DARWIN_CRT_TRUE='#'
19567 USING_DARWIN_CRT_FALSE=
19571 # This may not be defined in a non-ANS conformant embedded system.
19572 # FIXME: Should these case a runtime exception in that case?
19573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19574 /* end confdefs.h. */
19575 #include <time.h>
19577 _ACEOF
19578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19579 $EGREP "localtime" >/dev/null 2>&1; then :
19581 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19584 rm -f conftest*
19587 # Create the subdirectory for natFile.cc, or the attempt
19588 # to create the link will fail.
19589 test -d java || mkdir java
19590 test -d java/io || mkdir java/io
19591 test -d gnu || mkdir gnu
19592 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19595 # Likewise for natConcreteProcess.cc.
19596 test -d java/lang || mkdir java/lang
19597 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19600 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19601 test -d java/net || mkdir java/net
19602 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19604 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19607 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19608 test -d gnu/java || mkdir gnu/java
19609 test -d gnu/java/net || mkdir gnu/java/net
19610 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19612 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19615 # Likewise for natVMPipe.cc and natVMSelector.cc.
19616 test -d gnu/java/nio || mkdir gnu/java/nio
19617 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19619 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19622 # Likewise for natFileChannelImpl.cc
19623 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19624 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19627 # Likewise for natVMSecureRandom.cc
19628 test -d gnu/java/security || mkdir gnu/java/security
19629 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19630 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19631 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19634 case "${host}" in
19635 *mingw*)
19636 SYSTEMSPEC="-lgdi32 -lws2_32"
19637 if test "${with_win32_nlsapi}" = "unicows"; then
19638 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19641 *-*-darwin[912]*)
19642 SYSTEMSPEC="-allow_stack_execute"
19645 SYSTEMSPEC=
19647 esac
19651 # Check whether --with-system-zlib was given.
19652 if test "${with_system_zlib+set}" = set; then :
19653 withval=$with_system_zlib;
19656 ZLIBSPEC=
19658 ZLIBTESTSPEC=
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19662 $as_echo_n "checking for X... " >&6; }
19665 # Check whether --with-x was given.
19666 if test "${with_x+set}" = set; then :
19667 withval=$with_x;
19670 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19671 if test "x$with_x" = xno; then
19672 # The user explicitly disabled X.
19673 have_x=disabled
19674 else
19675 case $x_includes,$x_libraries in #(
19676 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19677 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19678 $as_echo_n "(cached) " >&6
19679 else
19680 # One or both of the vars are not set, and there is no cached value.
19681 ac_x_includes=no ac_x_libraries=no
19682 rm -f -r conftest.dir
19683 if mkdir conftest.dir; then
19684 cd conftest.dir
19685 cat >Imakefile <<'_ACEOF'
19686 incroot:
19687 @echo incroot='${INCROOT}'
19688 usrlibdir:
19689 @echo usrlibdir='${USRLIBDIR}'
19690 libdir:
19691 @echo libdir='${LIBDIR}'
19692 _ACEOF
19693 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19694 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19695 for ac_var in incroot usrlibdir libdir; do
19696 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19697 done
19698 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19699 for ac_extension in a so sl dylib la dll; do
19700 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19701 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19702 ac_im_usrlibdir=$ac_im_libdir; break
19704 done
19705 # Screen out bogus values from the imake configuration. They are
19706 # bogus both because they are the default anyway, and because
19707 # using them would break gcc on systems where it needs fixed includes.
19708 case $ac_im_incroot in
19709 /usr/include) ac_x_includes= ;;
19710 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19711 esac
19712 case $ac_im_usrlibdir in
19713 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19714 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19715 esac
19717 cd ..
19718 rm -f -r conftest.dir
19721 # Standard set of common directories for X headers.
19722 # Check X11 before X11Rn because it is often a symlink to the current release.
19723 ac_x_header_dirs='
19724 /usr/X11/include
19725 /usr/X11R7/include
19726 /usr/X11R6/include
19727 /usr/X11R5/include
19728 /usr/X11R4/include
19730 /usr/include/X11
19731 /usr/include/X11R7
19732 /usr/include/X11R6
19733 /usr/include/X11R5
19734 /usr/include/X11R4
19736 /usr/local/X11/include
19737 /usr/local/X11R7/include
19738 /usr/local/X11R6/include
19739 /usr/local/X11R5/include
19740 /usr/local/X11R4/include
19742 /usr/local/include/X11
19743 /usr/local/include/X11R7
19744 /usr/local/include/X11R6
19745 /usr/local/include/X11R5
19746 /usr/local/include/X11R4
19748 /usr/X386/include
19749 /usr/x386/include
19750 /usr/XFree86/include/X11
19752 /usr/include
19753 /usr/local/include
19754 /usr/unsupported/include
19755 /usr/athena/include
19756 /usr/local/x11r5/include
19757 /usr/lpp/Xamples/include
19759 /usr/openwin/include
19760 /usr/openwin/share/include'
19762 if test "$ac_x_includes" = no; then
19763 # Guess where to find include files, by looking for Xlib.h.
19764 # First, try using that file with no special directory specified.
19765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19766 /* end confdefs.h. */
19767 #include <X11/Xlib.h>
19768 _ACEOF
19769 if ac_fn_c_try_cpp "$LINENO"; then :
19770 # We can compile using X headers with no special include directory.
19771 ac_x_includes=
19772 else
19773 for ac_dir in $ac_x_header_dirs; do
19774 if test -r "$ac_dir/X11/Xlib.h"; then
19775 ac_x_includes=$ac_dir
19776 break
19778 done
19780 rm -f conftest.err conftest.$ac_ext
19781 fi # $ac_x_includes = no
19783 if test "$ac_x_libraries" = no; then
19784 # Check for the libraries.
19785 # See if we find them without any special options.
19786 # Don't add to $LIBS permanently.
19787 ac_save_LIBS=$LIBS
19788 LIBS="-lX11 $LIBS"
19789 if test x$gcc_no_link = xyes; then
19790 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19793 /* end confdefs.h. */
19794 #include <X11/Xlib.h>
19796 main ()
19798 XrmInitialize ()
19800 return 0;
19802 _ACEOF
19803 if ac_fn_c_try_link "$LINENO"; then :
19804 LIBS=$ac_save_LIBS
19805 # We can link X programs with no special library path.
19806 ac_x_libraries=
19807 else
19808 LIBS=$ac_save_LIBS
19809 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19811 # Don't even attempt the hair of trying to link an X program!
19812 for ac_extension in a so sl dylib la dll; do
19813 if test -r "$ac_dir/libX11.$ac_extension"; then
19814 ac_x_libraries=$ac_dir
19815 break 2
19817 done
19818 done
19820 rm -f core conftest.err conftest.$ac_objext \
19821 conftest$ac_exeext conftest.$ac_ext
19822 fi # $ac_x_libraries = no
19824 case $ac_x_includes,$ac_x_libraries in #(
19825 no,* | *,no | *\'*)
19826 # Didn't find X, or a directory has "'" in its name.
19827 ac_cv_have_x="have_x=no";; #(
19829 # Record where we found X for the cache.
19830 ac_cv_have_x="have_x=yes\
19831 ac_x_includes='$ac_x_includes'\
19832 ac_x_libraries='$ac_x_libraries'"
19833 esac
19835 ;; #(
19836 *) have_x=yes;;
19837 esac
19838 eval "$ac_cv_have_x"
19839 fi # $with_x != no
19841 if test "$have_x" != yes; then
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19843 $as_echo "$have_x" >&6; }
19844 no_x=yes
19845 else
19846 # If each of the values was on the command line, it overrides each guess.
19847 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19848 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19849 # Update the cache value to reflect the command line values.
19850 ac_cv_have_x="have_x=yes\
19851 ac_x_includes='$x_includes'\
19852 ac_x_libraries='$x_libraries'"
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19854 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19857 if test "$no_x" = yes; then
19858 # Not all programs may use this symbol, but it does not hurt to define it.
19860 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19862 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19863 else
19864 if test -n "$x_includes"; then
19865 X_CFLAGS="$X_CFLAGS -I$x_includes"
19868 # It would also be nice to do this for all -L options, not just this one.
19869 if test -n "$x_libraries"; then
19870 X_LIBS="$X_LIBS -L$x_libraries"
19871 # For Solaris; some versions of Sun CC require a space after -R and
19872 # others require no space. Words are not sufficient . . . .
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19874 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19875 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19876 ac_xsave_c_werror_flag=$ac_c_werror_flag
19877 ac_c_werror_flag=yes
19878 if test x$gcc_no_link = xyes; then
19879 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882 /* end confdefs.h. */
19885 main ()
19889 return 0;
19891 _ACEOF
19892 if ac_fn_c_try_link "$LINENO"; then :
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19894 $as_echo "no" >&6; }
19895 X_LIBS="$X_LIBS -R$x_libraries"
19896 else
19897 LIBS="$ac_xsave_LIBS -R $x_libraries"
19898 if test x$gcc_no_link = xyes; then
19899 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19902 /* end confdefs.h. */
19905 main ()
19909 return 0;
19911 _ACEOF
19912 if ac_fn_c_try_link "$LINENO"; then :
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19914 $as_echo "yes" >&6; }
19915 X_LIBS="$X_LIBS -R $x_libraries"
19916 else
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19918 $as_echo "neither works" >&6; }
19920 rm -f core conftest.err conftest.$ac_objext \
19921 conftest$ac_exeext conftest.$ac_ext
19923 rm -f core conftest.err conftest.$ac_objext \
19924 conftest$ac_exeext conftest.$ac_ext
19925 ac_c_werror_flag=$ac_xsave_c_werror_flag
19926 LIBS=$ac_xsave_LIBS
19929 # Check for system-dependent libraries X programs must link with.
19930 # Do this before checking for the system-independent R6 libraries
19931 # (-lICE), since we may need -lsocket or whatever for X linking.
19933 if test "$ISC" = yes; then
19934 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19935 else
19936 # Martyn Johnson says this is needed for Ultrix, if the X
19937 # libraries were built with DECnet support. And Karl Berry says
19938 # the Alpha needs dnet_stub (dnet does not exist).
19939 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19940 if test x$gcc_no_link = xyes; then
19941 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19944 /* end confdefs.h. */
19946 /* Override any GCC internal prototype to avoid an error.
19947 Use char because int might match the return type of a GCC
19948 builtin and then its argument prototype would still apply. */
19949 #ifdef __cplusplus
19950 extern "C"
19951 #endif
19952 char XOpenDisplay ();
19954 main ()
19956 return XOpenDisplay ();
19958 return 0;
19960 _ACEOF
19961 if ac_fn_c_try_link "$LINENO"; then :
19963 else
19964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19965 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19966 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19967 $as_echo_n "(cached) " >&6
19968 else
19969 ac_check_lib_save_LIBS=$LIBS
19970 LIBS="-ldnet $LIBS"
19971 if test x$gcc_no_link = xyes; then
19972 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19975 /* end confdefs.h. */
19977 /* Override any GCC internal prototype to avoid an error.
19978 Use char because int might match the return type of a GCC
19979 builtin and then its argument prototype would still apply. */
19980 #ifdef __cplusplus
19981 extern "C"
19982 #endif
19983 char dnet_ntoa ();
19985 main ()
19987 return dnet_ntoa ();
19989 return 0;
19991 _ACEOF
19992 if ac_fn_c_try_link "$LINENO"; then :
19993 ac_cv_lib_dnet_dnet_ntoa=yes
19994 else
19995 ac_cv_lib_dnet_dnet_ntoa=no
19997 rm -f core conftest.err conftest.$ac_objext \
19998 conftest$ac_exeext conftest.$ac_ext
19999 LIBS=$ac_check_lib_save_LIBS
20001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20002 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20003 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20004 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20007 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20009 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20010 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20011 $as_echo_n "(cached) " >&6
20012 else
20013 ac_check_lib_save_LIBS=$LIBS
20014 LIBS="-ldnet_stub $LIBS"
20015 if test x$gcc_no_link = xyes; then
20016 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20019 /* end confdefs.h. */
20021 /* Override any GCC internal prototype to avoid an error.
20022 Use char because int might match the return type of a GCC
20023 builtin and then its argument prototype would still apply. */
20024 #ifdef __cplusplus
20025 extern "C"
20026 #endif
20027 char dnet_ntoa ();
20029 main ()
20031 return dnet_ntoa ();
20033 return 0;
20035 _ACEOF
20036 if ac_fn_c_try_link "$LINENO"; then :
20037 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20038 else
20039 ac_cv_lib_dnet_stub_dnet_ntoa=no
20041 rm -f core conftest.err conftest.$ac_objext \
20042 conftest$ac_exeext conftest.$ac_ext
20043 LIBS=$ac_check_lib_save_LIBS
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20046 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20047 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20048 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20053 rm -f core conftest.err conftest.$ac_objext \
20054 conftest$ac_exeext conftest.$ac_ext
20055 LIBS="$ac_xsave_LIBS"
20057 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20058 # to get the SysV transport functions.
20059 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20060 # needs -lnsl.
20061 # The nsl library prevents programs from opening the X display
20062 # on Irix 5.2, according to T.E. Dickey.
20063 # The functions gethostbyname, getservbyname, and inet_addr are
20064 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20065 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20066 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20070 if test $ac_cv_func_gethostbyname = no; then
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20072 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20073 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20074 $as_echo_n "(cached) " >&6
20075 else
20076 ac_check_lib_save_LIBS=$LIBS
20077 LIBS="-lnsl $LIBS"
20078 if test x$gcc_no_link = xyes; then
20079 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20082 /* end confdefs.h. */
20084 /* Override any GCC internal prototype to avoid an error.
20085 Use char because int might match the return type of a GCC
20086 builtin and then its argument prototype would still apply. */
20087 #ifdef __cplusplus
20088 extern "C"
20089 #endif
20090 char gethostbyname ();
20092 main ()
20094 return gethostbyname ();
20096 return 0;
20098 _ACEOF
20099 if ac_fn_c_try_link "$LINENO"; then :
20100 ac_cv_lib_nsl_gethostbyname=yes
20101 else
20102 ac_cv_lib_nsl_gethostbyname=no
20104 rm -f core conftest.err conftest.$ac_objext \
20105 conftest$ac_exeext conftest.$ac_ext
20106 LIBS=$ac_check_lib_save_LIBS
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20109 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20110 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20111 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20114 if test $ac_cv_lib_nsl_gethostbyname = no; then
20115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20116 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20117 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20118 $as_echo_n "(cached) " >&6
20119 else
20120 ac_check_lib_save_LIBS=$LIBS
20121 LIBS="-lbsd $LIBS"
20122 if test x$gcc_no_link = xyes; then
20123 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20126 /* end confdefs.h. */
20128 /* Override any GCC internal prototype to avoid an error.
20129 Use char because int might match the return type of a GCC
20130 builtin and then its argument prototype would still apply. */
20131 #ifdef __cplusplus
20132 extern "C"
20133 #endif
20134 char gethostbyname ();
20136 main ()
20138 return gethostbyname ();
20140 return 0;
20142 _ACEOF
20143 if ac_fn_c_try_link "$LINENO"; then :
20144 ac_cv_lib_bsd_gethostbyname=yes
20145 else
20146 ac_cv_lib_bsd_gethostbyname=no
20148 rm -f core conftest.err conftest.$ac_objext \
20149 conftest$ac_exeext conftest.$ac_ext
20150 LIBS=$ac_check_lib_save_LIBS
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20153 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20154 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20155 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20161 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20162 # socket/setsockopt and other routines are undefined under SCO ODT
20163 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20164 # on later versions), says Simon Leinen: it contains gethostby*
20165 # variants that don't use the name server (or something). -lsocket
20166 # must be given before -lnsl if both are needed. We assume that
20167 # if connect needs -lnsl, so does gethostbyname.
20168 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20169 if test "x$ac_cv_func_connect" = x""yes; then :
20173 if test $ac_cv_func_connect = no; then
20174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20175 $as_echo_n "checking for connect in -lsocket... " >&6; }
20176 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20177 $as_echo_n "(cached) " >&6
20178 else
20179 ac_check_lib_save_LIBS=$LIBS
20180 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20181 if test x$gcc_no_link = xyes; then
20182 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20185 /* end confdefs.h. */
20187 /* Override any GCC internal prototype to avoid an error.
20188 Use char because int might match the return type of a GCC
20189 builtin and then its argument prototype would still apply. */
20190 #ifdef __cplusplus
20191 extern "C"
20192 #endif
20193 char connect ();
20195 main ()
20197 return connect ();
20199 return 0;
20201 _ACEOF
20202 if ac_fn_c_try_link "$LINENO"; then :
20203 ac_cv_lib_socket_connect=yes
20204 else
20205 ac_cv_lib_socket_connect=no
20207 rm -f core conftest.err conftest.$ac_objext \
20208 conftest$ac_exeext conftest.$ac_ext
20209 LIBS=$ac_check_lib_save_LIBS
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20212 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20213 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20214 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20219 # Guillermo Gomez says -lposix is necessary on A/UX.
20220 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20221 if test "x$ac_cv_func_remove" = x""yes; then :
20225 if test $ac_cv_func_remove = no; then
20226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20227 $as_echo_n "checking for remove in -lposix... " >&6; }
20228 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20229 $as_echo_n "(cached) " >&6
20230 else
20231 ac_check_lib_save_LIBS=$LIBS
20232 LIBS="-lposix $LIBS"
20233 if test x$gcc_no_link = xyes; then
20234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20237 /* end confdefs.h. */
20239 /* Override any GCC internal prototype to avoid an error.
20240 Use char because int might match the return type of a GCC
20241 builtin and then its argument prototype would still apply. */
20242 #ifdef __cplusplus
20243 extern "C"
20244 #endif
20245 char remove ();
20247 main ()
20249 return remove ();
20251 return 0;
20253 _ACEOF
20254 if ac_fn_c_try_link "$LINENO"; then :
20255 ac_cv_lib_posix_remove=yes
20256 else
20257 ac_cv_lib_posix_remove=no
20259 rm -f core conftest.err conftest.$ac_objext \
20260 conftest$ac_exeext conftest.$ac_ext
20261 LIBS=$ac_check_lib_save_LIBS
20263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20264 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20265 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20266 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20271 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20272 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20273 if test "x$ac_cv_func_shmat" = x""yes; then :
20277 if test $ac_cv_func_shmat = no; then
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20279 $as_echo_n "checking for shmat in -lipc... " >&6; }
20280 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20281 $as_echo_n "(cached) " >&6
20282 else
20283 ac_check_lib_save_LIBS=$LIBS
20284 LIBS="-lipc $LIBS"
20285 if test x$gcc_no_link = xyes; then
20286 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20289 /* end confdefs.h. */
20291 /* Override any GCC internal prototype to avoid an error.
20292 Use char because int might match the return type of a GCC
20293 builtin and then its argument prototype would still apply. */
20294 #ifdef __cplusplus
20295 extern "C"
20296 #endif
20297 char shmat ();
20299 main ()
20301 return shmat ();
20303 return 0;
20305 _ACEOF
20306 if ac_fn_c_try_link "$LINENO"; then :
20307 ac_cv_lib_ipc_shmat=yes
20308 else
20309 ac_cv_lib_ipc_shmat=no
20311 rm -f core conftest.err conftest.$ac_objext \
20312 conftest$ac_exeext conftest.$ac_ext
20313 LIBS=$ac_check_lib_save_LIBS
20315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20316 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20317 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20318 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20324 # Check for libraries that X11R6 Xt/Xaw programs need.
20325 ac_save_LDFLAGS=$LDFLAGS
20326 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20327 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20328 # check for ICE first), but we must link in the order -lSM -lICE or
20329 # we get undefined symbols. So assume we have SM if we have ICE.
20330 # These have to be linked with before -lX11, unlike the other
20331 # libraries we check for below, so use a different variable.
20332 # John Interrante, Karl Berry
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20334 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20335 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20336 $as_echo_n "(cached) " >&6
20337 else
20338 ac_check_lib_save_LIBS=$LIBS
20339 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20340 if test x$gcc_no_link = xyes; then
20341 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344 /* end confdefs.h. */
20346 /* Override any GCC internal prototype to avoid an error.
20347 Use char because int might match the return type of a GCC
20348 builtin and then its argument prototype would still apply. */
20349 #ifdef __cplusplus
20350 extern "C"
20351 #endif
20352 char IceConnectionNumber ();
20354 main ()
20356 return IceConnectionNumber ();
20358 return 0;
20360 _ACEOF
20361 if ac_fn_c_try_link "$LINENO"; then :
20362 ac_cv_lib_ICE_IceConnectionNumber=yes
20363 else
20364 ac_cv_lib_ICE_IceConnectionNumber=no
20366 rm -f core conftest.err conftest.$ac_objext \
20367 conftest$ac_exeext conftest.$ac_ext
20368 LIBS=$ac_check_lib_save_LIBS
20370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20371 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20372 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20373 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20376 LDFLAGS=$ac_save_LDFLAGS
20381 # FIXME: this should be _libs on some hosts.
20382 libsubdir=.libs
20384 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20386 LIBSTDCXXSPEC=
20387 # extra LD Flags which are required for targets
20388 case "${host}" in
20389 *-*-darwin[0-7].*)
20390 # For now we have to disable it on darwin[8-9] because it slows down
20391 # the linking phase. A possible bug in ld?
20392 # on Darwin -single_module speeds up loading of the dynamic libraries.
20393 extra_ldflags_libjava=-Wl,-single_module
20395 arm*linux*eabi)
20396 # Some of the ARM unwinder code is actually in libstdc++. We
20397 # could in principle replicate it in libgcj, but it's better to
20398 # have a dependency on libstdc++.
20399 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20400 LIBSTDCXXSPEC=-lstdc++
20401 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20403 *-*-cygwin)
20404 extra_ldflags_libjava=-liconv
20406 esac
20413 # Allow the GC to be disabled. Can be useful when debugging.
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20415 $as_echo_n "checking for garbage collector to use... " >&6; }
20416 # Check whether --enable-java-gc was given.
20417 if test "${enable_java_gc+set}" = set; then :
20418 enableval=$enable_java_gc; GC=$enableval
20419 else
20420 GC=boehm
20423 GCLIBS=
20424 GCINCS=
20425 GCDEPS=
20426 GCSPEC=
20427 JC1GCSPEC=
20428 GCTESTSPEC=
20429 case "$GC" in
20430 boehm)
20431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20432 $as_echo "boehm" >&6; }
20433 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20434 JC1GCSPEC='-fuse-boehm-gc'
20435 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20436 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20437 GCOBJS=boehm.lo
20438 GCHDR=boehm-gc.h
20439 # The POSIX thread support needs to know this.
20441 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20446 $as_echo "none" >&6; }
20447 GCHDR=no-gc.h
20450 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20452 esac
20459 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20461 if test "$GC" = boehm; then
20462 USING_BOEHMGC_TRUE=
20463 USING_BOEHMGC_FALSE='#'
20464 else
20465 USING_BOEHMGC_TRUE='#'
20466 USING_BOEHMGC_FALSE=
20469 if test "$GC" = no; then
20470 USING_NOGC_TRUE=
20471 USING_NOGC_FALSE='#'
20472 else
20473 USING_NOGC_TRUE='#'
20474 USING_NOGC_FALSE=
20479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20480 $as_echo_n "checking for thread model used by GCC... " >&6; }
20481 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20483 $as_echo "$THREADS" >&6; }
20485 case "$THREADS" in
20486 no | none | single)
20487 THREADS=none
20489 aix | posix | posix95 | pthreads)
20490 THREADS=posix
20491 case "$host" in
20492 *-*-linux*)
20494 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20497 esac
20499 win32)
20501 decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20502 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20505 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20507 esac
20509 THREADCXXFLAGS=
20510 THREADLDFLAGS=
20511 THREADLIBS=
20512 THREADINCS=
20513 THREADDEPS=
20514 THREADH=
20515 THREADSPEC=
20516 THREADSTARTFILESPEC=
20517 case "$THREADS" in
20518 posix)
20519 case "$host" in
20520 *-*-cygwin*)
20521 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20523 *-*-freebsd[1234]*)
20524 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20525 # merely adds pthread_* functions) but it does have a -pthread switch
20526 # which is required at link-time to select -lc_r *instead* of -lc.
20527 THREADLDFLAGS=-pthread
20528 # Don't set THREADSPEC here as might be expected since -pthread is
20529 # not processed when found within a spec file, it must come from
20530 # the command line. For now, the user must provide the -pthread
20531 # switch to link code compiled with gcj. In future, consider adding
20532 # support for weak references to pthread_* functions ala gthr.h API.
20533 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20535 *-*-freebsd*)
20536 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20537 # systems which support threads and -lpthread.
20538 THREADLDFLAGS=-pthread
20539 THREADSPEC=-lpthread
20541 alpha*-dec-osf* | hppa*-hp-hpux*)
20542 THREADCXXFLAGS=-pthread
20543 # boehm-gc needs some functions from librt, so link that too.
20544 THREADLIBS='-lpthread -lrt'
20545 THREADSPEC='-lpthread -lrt'
20548 THREADLIBS=-lpthread
20549 THREADSPEC=-lpthread
20551 esac
20552 THREADH=posix-threads.h
20553 # MIT pthreads doesn't seem to have the mutexattr functions.
20554 # But for now we don't check for it. We just assume you aren't
20555 # using MIT pthreads.
20557 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20560 # If we're using the Boehm GC, then we happen to know that it
20561 # defines _REENTRANT, so we don't bother. Eww.
20562 if test "$GC" != boehm; then
20564 $as_echo "#define _REENTRANT 1" >>confdefs.h
20568 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20572 win32)
20573 THREADH=win32-threads.h
20574 THREADCXXFLAGS=-mthreads
20575 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20576 # But we do not want the executables created to be dependent on
20577 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20578 # exception handling contexts. The following kludge achieves this effect
20579 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20580 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20581 # A workaround is to explicitly use -mthreads while linking Java programs.
20582 # See PR libgcj/28263.
20584 # FIXME: In Java we are able to detect thread death at the end of
20585 # Thread.run() so we should be able to clean up the exception handling
20586 # contexts ourselves.
20587 THREADSTARTFILESPEC='crtmt%O%s'
20590 none)
20591 THREADH=no-threads.h
20593 esac
20594 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20603 if test "$THREADS" = posix; then
20604 USING_POSIX_THREADS_TRUE=
20605 USING_POSIX_THREADS_FALSE='#'
20606 else
20607 USING_POSIX_THREADS_TRUE='#'
20608 USING_POSIX_THREADS_FALSE=
20611 if test "$THREADS" = win32; then
20612 USING_WIN32_THREADS_TRUE=
20613 USING_WIN32_THREADS_FALSE='#'
20614 else
20615 USING_WIN32_THREADS_TRUE='#'
20616 USING_WIN32_THREADS_FALSE=
20619 if test "$THREADS" = none; then
20620 USING_NO_THREADS_TRUE=
20621 USING_NO_THREADS_FALSE='#'
20622 else
20623 USING_NO_THREADS_TRUE='#'
20624 USING_NO_THREADS_FALSE=
20627 if test "$enable_shared" != yes; then
20628 use_libgcj_bc=no
20630 if test "$use_libgcj_bc" = yes; then
20631 USE_LIBGCJ_BC_TRUE=
20632 USE_LIBGCJ_BC_FALSE='#'
20633 else
20634 USE_LIBGCJ_BC_TRUE='#'
20635 USE_LIBGCJ_BC_FALSE=
20639 if test -d sysdep; then true; else mkdir sysdep; fi
20640 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20642 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20644 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20647 LIBGCJ_SPEC_LGCJ=-lgcj
20648 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20649 if test x"$libgcj_spec_lgcj_override" != x ; then
20650 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20652 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20653 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20655 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20656 if test "$use_libgcj_bc" = yes; then
20657 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20658 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20663 HASH_SYNC_SPEC=
20664 # Hash synchronization is only useful with posix threads right now.
20665 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20666 HASH_SYNC_SPEC=-fhash-synchronization
20668 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20673 if test "$GCC" = yes; then
20674 USING_GCC_TRUE=
20675 USING_GCC_FALSE='#'
20676 else
20677 USING_GCC_TRUE='#'
20678 USING_GCC_FALSE=
20682 # We're in the tree with gcc, and need to include some of its headers.
20683 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20685 if test "x${with_newlib}" = "xyes"; then
20686 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20687 # may not work correctly, because the compiler may not be able to
20688 # link executables.
20690 # We assume newlib. This lets us hard-code the functions we know
20691 # we'll have.
20693 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20696 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20699 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20702 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20705 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20708 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20710 # This is only for POSIX threads.
20712 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20715 # Assume we do not have getuid and friends.
20717 $as_echo "#define NO_GETUID 1" >>confdefs.h
20719 PLATFORMNET=NoNet
20720 else
20721 for ac_func in strerror_r select fstat open fsync sleep opendir \
20722 localtime_r getpwuid_r getcwd \
20723 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20724 nl_langinfo setlocale \
20725 inet_pton uname inet_ntoa \
20726 getrlimit sigaction ftruncate mmap \
20727 getifaddrs
20728 do :
20729 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20730 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20731 eval as_val=\$$as_ac_var
20732 if test "x$as_val" = x""yes; then :
20733 cat >>confdefs.h <<_ACEOF
20734 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20735 _ACEOF
20738 done
20740 for ac_func in inet_aton inet_addr
20741 do :
20742 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20743 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20744 eval as_val=\$$as_ac_var
20745 if test "x$as_val" = x""yes; then :
20746 cat >>confdefs.h <<_ACEOF
20747 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20748 _ACEOF
20749 break
20751 done
20753 for ac_header in unistd.h dlfcn.h sys/resource.h
20754 do :
20755 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20756 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20757 eval as_val=\$$as_ac_Header
20758 if test "x$as_val" = x""yes; then :
20759 cat >>confdefs.h <<_ACEOF
20760 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20761 _ACEOF
20765 done
20767 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20769 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20770 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20771 $as_echo_n "(cached) " >&6
20772 else
20773 ac_check_lib_save_LIBS=$LIBS
20774 LIBS="-ldl $LIBS"
20775 if test x$gcc_no_link = xyes; then
20776 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20779 /* end confdefs.h. */
20781 /* Override any GCC internal prototype to avoid an error.
20782 Use char because int might match the return type of a GCC
20783 builtin and then its argument prototype would still apply. */
20784 #ifdef __cplusplus
20785 extern "C"
20786 #endif
20787 char dladdr ();
20789 main ()
20791 return dladdr ();
20793 return 0;
20795 _ACEOF
20796 if ac_fn_c_try_link "$LINENO"; then :
20797 ac_cv_lib_dl_dladdr=yes
20798 else
20799 ac_cv_lib_dl_dladdr=no
20801 rm -f core conftest.err conftest.$ac_objext \
20802 conftest$ac_exeext conftest.$ac_ext
20803 LIBS=$ac_check_lib_save_LIBS
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20806 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20807 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20810 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20812 else
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20815 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20816 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20817 $as_echo_n "(cached) " >&6
20818 else
20819 ac_check_lib_save_LIBS=$LIBS
20820 LIBS="-ldld $LIBS"
20821 if test x$gcc_no_link = xyes; then
20822 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20825 /* end confdefs.h. */
20827 /* Override any GCC internal prototype to avoid an error.
20828 Use char because int might match the return type of a GCC
20829 builtin and then its argument prototype would still apply. */
20830 #ifdef __cplusplus
20831 extern "C"
20832 #endif
20833 char dladdr ();
20835 main ()
20837 return dladdr ();
20839 return 0;
20841 _ACEOF
20842 if ac_fn_c_try_link "$LINENO"; then :
20843 ac_cv_lib_dld_dladdr=yes
20844 else
20845 ac_cv_lib_dld_dladdr=no
20847 rm -f core conftest.err conftest.$ac_objext \
20848 conftest$ac_exeext conftest.$ac_ext
20849 LIBS=$ac_check_lib_save_LIBS
20851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
20852 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
20853 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
20856 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20863 if test x"$cross_compiling" = x"no"; then
20864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
20865 $as_echo_n "checking for /proc/self/exe... " >&6; }
20866 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
20867 $as_echo_n "(cached) " >&6
20868 else
20869 test "$cross_compiling" = yes &&
20870 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20871 if test -r "/proc/self/exe"; then
20872 ac_cv_file__proc_self_exe=yes
20873 else
20874 ac_cv_file__proc_self_exe=no
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
20878 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
20879 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
20881 cat >>confdefs.h <<_ACEOF
20882 #define HAVE__PROC_SELF_EXE 1
20883 _ACEOF
20886 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
20891 $as_echo_n "checking for /proc/self/maps... " >&6; }
20892 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
20893 $as_echo_n "(cached) " >&6
20894 else
20895 test "$cross_compiling" = yes &&
20896 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20897 if test -r "/proc/self/maps"; then
20898 ac_cv_file__proc_self_maps=yes
20899 else
20900 ac_cv_file__proc_self_maps=no
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
20904 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
20905 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
20907 cat >>confdefs.h <<_ACEOF
20908 #define HAVE__PROC_SELF_MAPS 1
20909 _ACEOF
20912 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20916 else
20917 case $host in
20918 *-linux*)
20920 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
20923 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
20926 esac
20930 if test "X$prefix" = "XNONE"; then
20931 acl_final_prefix="$ac_default_prefix"
20932 else
20933 acl_final_prefix="$prefix"
20935 if test "X$exec_prefix" = "XNONE"; then
20936 acl_final_exec_prefix='${prefix}'
20937 else
20938 acl_final_exec_prefix="$exec_prefix"
20940 acl_save_prefix="$prefix"
20941 prefix="$acl_final_prefix"
20942 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20943 prefix="$acl_save_prefix"
20946 # Check whether --with-gnu-ld was given.
20947 if test "${with_gnu_ld+set}" = set; then :
20948 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20949 else
20950 with_gnu_ld=no
20953 # Prepare PATH_SEPARATOR.
20954 # The user is always right.
20955 if test "${PATH_SEPARATOR+set}" != set; then
20956 echo "#! /bin/sh" >conf$$.sh
20957 echo "exit 0" >>conf$$.sh
20958 chmod +x conf$$.sh
20959 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20960 PATH_SEPARATOR=';'
20961 else
20962 PATH_SEPARATOR=:
20964 rm -f conf$$.sh
20966 ac_prog=ld
20967 if test "$GCC" = yes; then
20968 # Check if gcc -print-prog-name=ld gives a path.
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
20970 $as_echo_n "checking for ld used by GCC... " >&6; }
20971 case $host in
20972 *-*-mingw*)
20973 # gcc leaves a trailing carriage return which upsets mingw
20974 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20976 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20977 esac
20978 case $ac_prog in
20979 # Accept absolute paths.
20980 [\\/]* | [A-Za-z]:[\\/]*)
20981 re_direlt='/[^/][^/]*/\.\./'
20982 # Canonicalize the path of ld
20983 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
20984 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
20985 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20986 done
20987 test -z "$LD" && LD="$ac_prog"
20990 # If it fails, then pretend we aren't using GCC.
20991 ac_prog=ld
20994 # If it is relative, then search for the first ld in PATH.
20995 with_gnu_ld=unknown
20997 esac
20998 elif test "$with_gnu_ld" = yes; then
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21000 $as_echo_n "checking for GNU ld... " >&6; }
21001 else
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21003 $as_echo_n "checking for non-GNU ld... " >&6; }
21005 if test "${acl_cv_path_LD+set}" = set; then :
21006 $as_echo_n "(cached) " >&6
21007 else
21008 if test -z "$LD"; then
21009 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21010 for ac_dir in $PATH; do
21011 test -z "$ac_dir" && ac_dir=.
21012 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21013 acl_cv_path_LD="$ac_dir/$ac_prog"
21014 # Check to see if the program is GNU ld. I'd rather use --version,
21015 # but apparently some GNU ld's only accept -v.
21016 # Break only if it was the GNU/non-GNU ld that we prefer.
21017 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21018 test "$with_gnu_ld" != no && break
21019 else
21020 test "$with_gnu_ld" != yes && break
21023 done
21024 IFS="$ac_save_ifs"
21025 else
21026 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21030 LD="$acl_cv_path_LD"
21031 if test -n "$LD"; then
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21033 $as_echo "$LD" >&6; }
21034 else
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21036 $as_echo "no" >&6; }
21038 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21040 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21041 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21042 $as_echo_n "(cached) " >&6
21043 else
21044 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21045 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21046 acl_cv_prog_gnu_ld=yes
21047 else
21048 acl_cv_prog_gnu_ld=no
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21052 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21053 with_gnu_ld=$acl_cv_prog_gnu_ld
21057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21058 $as_echo_n "checking for shared library run path origin... " >&6; }
21059 if test "${acl_cv_rpath+set}" = set; then :
21060 $as_echo_n "(cached) " >&6
21061 else
21063 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21064 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21065 . ./conftest.sh
21066 rm -f ./conftest.sh
21067 acl_cv_rpath=done
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21071 $as_echo "$acl_cv_rpath" >&6; }
21072 wl="$acl_cv_wl"
21073 libext="$acl_cv_libext"
21074 shlibext="$acl_cv_shlibext"
21075 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21076 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21077 hardcode_direct="$acl_cv_hardcode_direct"
21078 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21079 # Check whether --enable-rpath was given.
21080 if test "${enable_rpath+set}" = set; then :
21081 enableval=$enable_rpath; :
21082 else
21083 enable_rpath=yes
21093 use_additional=yes
21095 acl_save_prefix="$prefix"
21096 prefix="$acl_final_prefix"
21097 acl_save_exec_prefix="$exec_prefix"
21098 exec_prefix="$acl_final_exec_prefix"
21100 eval additional_includedir=\"$includedir\"
21101 eval additional_libdir=\"$libdir\"
21103 exec_prefix="$acl_save_exec_prefix"
21104 prefix="$acl_save_prefix"
21107 # Check whether --with-libiconv-prefix was given.
21108 if test "${with_libiconv_prefix+set}" = set; then :
21109 withval=$with_libiconv_prefix;
21110 if test "X$withval" = "Xno"; then
21111 use_additional=no
21112 else
21113 if test "X$withval" = "X"; then
21115 acl_save_prefix="$prefix"
21116 prefix="$acl_final_prefix"
21117 acl_save_exec_prefix="$exec_prefix"
21118 exec_prefix="$acl_final_exec_prefix"
21120 eval additional_includedir=\"$includedir\"
21121 eval additional_libdir=\"$libdir\"
21123 exec_prefix="$acl_save_exec_prefix"
21124 prefix="$acl_save_prefix"
21126 else
21127 additional_includedir="$withval/include"
21128 additional_libdir="$withval/lib"
21134 LIBICONV=
21135 LTLIBICONV=
21136 INCICONV=
21137 rpathdirs=
21138 ltrpathdirs=
21139 names_already_handled=
21140 names_next_round='iconv '
21141 while test -n "$names_next_round"; do
21142 names_this_round="$names_next_round"
21143 names_next_round=
21144 for name in $names_this_round; do
21145 already_handled=
21146 for n in $names_already_handled; do
21147 if test "$n" = "$name"; then
21148 already_handled=yes
21149 break
21151 done
21152 if test -z "$already_handled"; then
21153 names_already_handled="$names_already_handled $name"
21154 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21155 eval value=\"\$HAVE_LIB$uppername\"
21156 if test -n "$value"; then
21157 if test "$value" = yes; then
21158 eval value=\"\$LIB$uppername\"
21159 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21160 eval value=\"\$LTLIB$uppername\"
21161 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21162 else
21165 else
21166 found_dir=
21167 found_la=
21168 found_so=
21169 found_a=
21170 if test $use_additional = yes; then
21171 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21172 found_dir="$additional_libdir"
21173 found_so="$additional_libdir/lib$name.$shlibext"
21174 if test -f "$additional_libdir/lib$name.la"; then
21175 found_la="$additional_libdir/lib$name.la"
21177 else
21178 if test -f "$additional_libdir/lib$name.$libext"; then
21179 found_dir="$additional_libdir"
21180 found_a="$additional_libdir/lib$name.$libext"
21181 if test -f "$additional_libdir/lib$name.la"; then
21182 found_la="$additional_libdir/lib$name.la"
21187 if test "X$found_dir" = "X"; then
21188 for x in $LDFLAGS $LTLIBICONV; do
21190 acl_save_prefix="$prefix"
21191 prefix="$acl_final_prefix"
21192 acl_save_exec_prefix="$exec_prefix"
21193 exec_prefix="$acl_final_exec_prefix"
21194 eval x=\"$x\"
21195 exec_prefix="$acl_save_exec_prefix"
21196 prefix="$acl_save_prefix"
21198 case "$x" in
21199 -L*)
21200 dir=`echo "X$x" | sed -e 's/^X-L//'`
21201 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21202 found_dir="$dir"
21203 found_so="$dir/lib$name.$shlibext"
21204 if test -f "$dir/lib$name.la"; then
21205 found_la="$dir/lib$name.la"
21207 else
21208 if test -f "$dir/lib$name.$libext"; then
21209 found_dir="$dir"
21210 found_a="$dir/lib$name.$libext"
21211 if test -f "$dir/lib$name.la"; then
21212 found_la="$dir/lib$name.la"
21217 esac
21218 if test "X$found_dir" != "X"; then
21219 break
21221 done
21223 if test "X$found_dir" != "X"; then
21224 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21225 if test "X$found_so" != "X"; then
21226 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21227 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21228 else
21229 haveit=
21230 for x in $ltrpathdirs; do
21231 if test "X$x" = "X$found_dir"; then
21232 haveit=yes
21233 break
21235 done
21236 if test -z "$haveit"; then
21237 ltrpathdirs="$ltrpathdirs $found_dir"
21239 if test "$hardcode_direct" = yes; then
21240 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21241 else
21242 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21243 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21244 haveit=
21245 for x in $rpathdirs; do
21246 if test "X$x" = "X$found_dir"; then
21247 haveit=yes
21248 break
21250 done
21251 if test -z "$haveit"; then
21252 rpathdirs="$rpathdirs $found_dir"
21254 else
21255 haveit=
21256 for x in $LDFLAGS $LIBICONV; do
21258 acl_save_prefix="$prefix"
21259 prefix="$acl_final_prefix"
21260 acl_save_exec_prefix="$exec_prefix"
21261 exec_prefix="$acl_final_exec_prefix"
21262 eval x=\"$x\"
21263 exec_prefix="$acl_save_exec_prefix"
21264 prefix="$acl_save_prefix"
21266 if test "X$x" = "X-L$found_dir"; then
21267 haveit=yes
21268 break
21270 done
21271 if test -z "$haveit"; then
21272 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21274 if test "$hardcode_minus_L" != no; then
21275 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21276 else
21277 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21282 else
21283 if test "X$found_a" != "X"; then
21284 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21285 else
21286 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21289 additional_includedir=
21290 case "$found_dir" in
21291 */lib | */lib/)
21292 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21293 additional_includedir="$basedir/include"
21295 esac
21296 if test "X$additional_includedir" != "X"; then
21297 if test "X$additional_includedir" != "X/usr/include"; then
21298 haveit=
21299 if test "X$additional_includedir" = "X/usr/local/include"; then
21300 if test -n "$GCC"; then
21301 case $host_os in
21302 linux*) haveit=yes;;
21303 esac
21306 if test -z "$haveit"; then
21307 for x in $CPPFLAGS $INCICONV; do
21309 acl_save_prefix="$prefix"
21310 prefix="$acl_final_prefix"
21311 acl_save_exec_prefix="$exec_prefix"
21312 exec_prefix="$acl_final_exec_prefix"
21313 eval x=\"$x\"
21314 exec_prefix="$acl_save_exec_prefix"
21315 prefix="$acl_save_prefix"
21317 if test "X$x" = "X-I$additional_includedir"; then
21318 haveit=yes
21319 break
21321 done
21322 if test -z "$haveit"; then
21323 if test -d "$additional_includedir"; then
21324 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21330 if test -n "$found_la"; then
21331 save_libdir="$libdir"
21332 case "$found_la" in
21333 */* | *\\*) . "$found_la" ;;
21334 *) . "./$found_la" ;;
21335 esac
21336 libdir="$save_libdir"
21337 for dep in $dependency_libs; do
21338 case "$dep" in
21339 -L*)
21340 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21341 if test "X$additional_libdir" != "X/usr/lib"; then
21342 haveit=
21343 if test "X$additional_libdir" = "X/usr/local/lib"; then
21344 if test -n "$GCC"; then
21345 case $host_os in
21346 linux*) haveit=yes;;
21347 esac
21350 if test -z "$haveit"; then
21351 haveit=
21352 for x in $LDFLAGS $LIBICONV; do
21354 acl_save_prefix="$prefix"
21355 prefix="$acl_final_prefix"
21356 acl_save_exec_prefix="$exec_prefix"
21357 exec_prefix="$acl_final_exec_prefix"
21358 eval x=\"$x\"
21359 exec_prefix="$acl_save_exec_prefix"
21360 prefix="$acl_save_prefix"
21362 if test "X$x" = "X-L$additional_libdir"; then
21363 haveit=yes
21364 break
21366 done
21367 if test -z "$haveit"; then
21368 if test -d "$additional_libdir"; then
21369 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21372 haveit=
21373 for x in $LDFLAGS $LTLIBICONV; do
21375 acl_save_prefix="$prefix"
21376 prefix="$acl_final_prefix"
21377 acl_save_exec_prefix="$exec_prefix"
21378 exec_prefix="$acl_final_exec_prefix"
21379 eval x=\"$x\"
21380 exec_prefix="$acl_save_exec_prefix"
21381 prefix="$acl_save_prefix"
21383 if test "X$x" = "X-L$additional_libdir"; then
21384 haveit=yes
21385 break
21387 done
21388 if test -z "$haveit"; then
21389 if test -d "$additional_libdir"; then
21390 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21396 -R*)
21397 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21398 if test "$enable_rpath" != no; then
21399 haveit=
21400 for x in $rpathdirs; do
21401 if test "X$x" = "X$dir"; then
21402 haveit=yes
21403 break
21405 done
21406 if test -z "$haveit"; then
21407 rpathdirs="$rpathdirs $dir"
21409 haveit=
21410 for x in $ltrpathdirs; do
21411 if test "X$x" = "X$dir"; then
21412 haveit=yes
21413 break
21415 done
21416 if test -z "$haveit"; then
21417 ltrpathdirs="$ltrpathdirs $dir"
21421 -l*)
21422 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21424 *.la)
21425 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21428 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21429 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21431 esac
21432 done
21434 else
21435 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21436 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21440 done
21441 done
21442 if test "X$rpathdirs" != "X"; then
21443 if test -n "$hardcode_libdir_separator"; then
21444 alldirs=
21445 for found_dir in $rpathdirs; do
21446 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21447 done
21448 acl_save_libdir="$libdir"
21449 libdir="$alldirs"
21450 eval flag=\"$hardcode_libdir_flag_spec\"
21451 libdir="$acl_save_libdir"
21452 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21453 else
21454 for found_dir in $rpathdirs; do
21455 acl_save_libdir="$libdir"
21456 libdir="$found_dir"
21457 eval flag=\"$hardcode_libdir_flag_spec\"
21458 libdir="$acl_save_libdir"
21459 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21460 done
21463 if test "X$ltrpathdirs" != "X"; then
21464 for found_dir in $ltrpathdirs; do
21465 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21466 done
21475 am_save_CPPFLAGS="$CPPFLAGS"
21477 for element in $INCICONV; do
21478 haveit=
21479 for x in $CPPFLAGS; do
21481 acl_save_prefix="$prefix"
21482 prefix="$acl_final_prefix"
21483 acl_save_exec_prefix="$exec_prefix"
21484 exec_prefix="$acl_final_exec_prefix"
21485 eval x=\"$x\"
21486 exec_prefix="$acl_save_exec_prefix"
21487 prefix="$acl_save_prefix"
21489 if test "X$x" = "X$element"; then
21490 haveit=yes
21491 break
21493 done
21494 if test -z "$haveit"; then
21495 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21497 done
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21501 $as_echo_n "checking for iconv... " >&6; }
21502 if test "${am_cv_func_iconv+set}" = set; then :
21503 $as_echo_n "(cached) " >&6
21504 else
21506 am_cv_func_iconv="no, consider installing GNU libiconv"
21507 am_cv_lib_iconv=no
21508 if test x$gcc_no_link = xyes; then
21509 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21512 /* end confdefs.h. */
21513 #include <stdlib.h>
21514 #include <iconv.h>
21516 main ()
21518 iconv_t cd = iconv_open("","");
21519 iconv(cd,NULL,NULL,NULL,NULL);
21520 iconv_close(cd);
21522 return 0;
21524 _ACEOF
21525 if ac_fn_c_try_link "$LINENO"; then :
21526 am_cv_func_iconv=yes
21528 rm -f core conftest.err conftest.$ac_objext \
21529 conftest$ac_exeext conftest.$ac_ext
21530 if test "$am_cv_func_iconv" != yes; then
21531 am_save_LIBS="$LIBS"
21532 LIBS="$LIBS $LIBICONV"
21533 if test x$gcc_no_link = xyes; then
21534 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21537 /* end confdefs.h. */
21538 #include <stdlib.h>
21539 #include <iconv.h>
21541 main ()
21543 iconv_t cd = iconv_open("","");
21544 iconv(cd,NULL,NULL,NULL,NULL);
21545 iconv_close(cd);
21547 return 0;
21549 _ACEOF
21550 if ac_fn_c_try_link "$LINENO"; then :
21551 am_cv_lib_iconv=yes
21552 am_cv_func_iconv=yes
21554 rm -f core conftest.err conftest.$ac_objext \
21555 conftest$ac_exeext conftest.$ac_ext
21556 LIBS="$am_save_LIBS"
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21561 $as_echo "$am_cv_func_iconv" >&6; }
21562 if test "$am_cv_func_iconv" = yes; then
21564 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21567 if test "$am_cv_lib_iconv" = yes; then
21568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21569 $as_echo_n "checking how to link with libiconv... " >&6; }
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21571 $as_echo "$LIBICONV" >&6; }
21572 else
21573 CPPFLAGS="$am_save_CPPFLAGS"
21574 LIBICONV=
21575 LTLIBICONV=
21580 if test "$am_cv_func_iconv" = yes; then
21581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21582 $as_echo_n "checking for iconv declaration... " >&6; }
21583 if test "${am_cv_proto_iconv+set}" = set; then :
21584 $as_echo_n "(cached) " >&6
21585 else
21587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21588 /* end confdefs.h. */
21590 #include <stdlib.h>
21591 #include <iconv.h>
21592 extern
21593 #ifdef __cplusplus
21595 #endif
21596 #if defined(__STDC__) || defined(__cplusplus)
21597 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21598 #else
21599 size_t iconv();
21600 #endif
21603 main ()
21607 return 0;
21609 _ACEOF
21610 if ac_fn_c_try_compile "$LINENO"; then :
21611 am_cv_proto_iconv_arg1=""
21612 else
21613 am_cv_proto_iconv_arg1="const"
21615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21616 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);"
21619 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21621 }$am_cv_proto_iconv" >&5
21622 $as_echo "${ac_t:-
21623 }$am_cv_proto_iconv" >&6; }
21625 cat >>confdefs.h <<_ACEOF
21626 #define ICONV_CONST $am_cv_proto_iconv_arg1
21627 _ACEOF
21632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21633 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21634 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21635 $as_echo_n "(cached) " >&6
21636 else
21637 if test x$gcc_no_link = xyes; then
21638 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21641 /* end confdefs.h. */
21642 #include <locale.h>
21644 main ()
21646 return LC_MESSAGES
21648 return 0;
21650 _ACEOF
21651 if ac_fn_c_try_link "$LINENO"; then :
21652 am_cv_val_LC_MESSAGES=yes
21653 else
21654 am_cv_val_LC_MESSAGES=no
21656 rm -f core conftest.err conftest.$ac_objext \
21657 conftest$ac_exeext conftest.$ac_ext
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21660 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21661 if test $am_cv_val_LC_MESSAGES = yes; then
21663 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21668 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21669 if test "${ac_cv_struct_tm+set}" = set; then :
21670 $as_echo_n "(cached) " >&6
21671 else
21672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21673 /* end confdefs.h. */
21674 #include <sys/types.h>
21675 #include <time.h>
21678 main ()
21680 struct tm tm;
21681 int *p = &tm.tm_sec;
21682 return !p;
21684 return 0;
21686 _ACEOF
21687 if ac_fn_c_try_compile "$LINENO"; then :
21688 ac_cv_struct_tm=time.h
21689 else
21690 ac_cv_struct_tm=sys/time.h
21692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21695 $as_echo "$ac_cv_struct_tm" >&6; }
21696 if test $ac_cv_struct_tm = sys/time.h; then
21698 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21702 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21703 #include <$ac_cv_struct_tm>
21706 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21708 cat >>confdefs.h <<_ACEOF
21709 #define HAVE_STRUCT_TM_TM_ZONE 1
21710 _ACEOF
21715 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21717 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21719 else
21720 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21722 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21723 ac_have_decl=1
21724 else
21725 ac_have_decl=0
21728 cat >>confdefs.h <<_ACEOF
21729 #define HAVE_DECL_TZNAME $ac_have_decl
21730 _ACEOF
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21733 $as_echo_n "checking for tzname... " >&6; }
21734 if test "${ac_cv_var_tzname+set}" = set; then :
21735 $as_echo_n "(cached) " >&6
21736 else
21737 if test x$gcc_no_link = xyes; then
21738 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21741 /* end confdefs.h. */
21742 #include <time.h>
21743 #if !HAVE_DECL_TZNAME
21744 extern char *tzname[];
21745 #endif
21748 main ()
21750 return tzname[0][0];
21752 return 0;
21754 _ACEOF
21755 if ac_fn_c_try_link "$LINENO"; then :
21756 ac_cv_var_tzname=yes
21757 else
21758 ac_cv_var_tzname=no
21760 rm -f core conftest.err conftest.$ac_objext \
21761 conftest$ac_exeext conftest.$ac_ext
21763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21764 $as_echo "$ac_cv_var_tzname" >&6; }
21765 if test $ac_cv_var_tzname = yes; then
21767 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21773 for ac_func in gethostbyname_r
21774 do :
21775 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21776 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21777 cat >>confdefs.h <<_ACEOF
21778 #define HAVE_GETHOSTBYNAME_R 1
21779 _ACEOF
21782 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21784 # There are two different kinds of gethostbyname_r.
21785 # We look for the one that returns `int'.
21786 # Hopefully this check is robust enough.
21787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21788 /* end confdefs.h. */
21789 #include <netdb.h>
21791 _ACEOF
21792 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21793 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21796 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21799 rm -f conftest*
21802 case " $GCINCS " in
21803 *" -D_REENTRANT "*) ;;
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21806 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21807 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21808 $as_echo_n "(cached) " >&6
21809 else
21810 ac_ext=cpp
21811 ac_cpp='$CXXCPP $CPPFLAGS'
21812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21817 /* end confdefs.h. */
21818 #include <netdb.h>
21820 main ()
21822 gethostbyname_r("", 0, 0);
21824 return 0;
21826 _ACEOF
21827 if ac_fn_cxx_try_compile "$LINENO"; then :
21828 libjava_cv_gethostbyname_r_needs_reentrant=no
21829 else
21830 CPPFLAGS_SAVE="$CPPFLAGS"
21831 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
21832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21833 /* end confdefs.h. */
21834 #include <netdb.h>
21836 main ()
21838 gethostbyname_r("", 0, 0);
21840 return 0;
21842 _ACEOF
21843 if ac_fn_cxx_try_compile "$LINENO"; then :
21844 libjava_cv_gethostbyname_r_needs_reentrant=yes
21845 else
21846 libjava_cv_gethostbyname_r_needs_reentrant=fail
21848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21849 CPPFLAGS="$CPPFLAGS_SAVE"
21852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21853 ac_ext=c
21854 ac_cpp='$CPP $CPPFLAGS'
21855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
21862 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
21863 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
21865 $as_echo "#define _REENTRANT 1" >>confdefs.h
21869 esac
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
21872 $as_echo_n "checking for struct hostent_data... " >&6; }
21873 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
21874 $as_echo_n "(cached) " >&6
21875 else
21876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21877 /* end confdefs.h. */
21879 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
21880 # define _REENTRANT 1
21881 #endif
21882 #include <netdb.h>
21884 main ()
21886 struct hostent_data data;
21888 return 0;
21890 _ACEOF
21891 if ac_fn_c_try_compile "$LINENO"; then :
21892 libjava_cv_struct_hostent_data=yes
21893 else
21894 libjava_cv_struct_hostent_data=no
21896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
21899 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
21900 if test "x$libjava_cv_struct_hostent_data" = xyes; then
21902 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
21907 done
21910 # FIXME: libjava source code expects to find a prototype for
21911 # gethostbyaddr_r in netdb.h. The outer check ensures that
21912 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
21913 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
21914 # linkage check is enough, yet C++ code requires proper prototypes.)
21915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21916 /* end confdefs.h. */
21917 #include <netdb.h>
21919 _ACEOF
21920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21921 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
21923 for ac_func in gethostbyaddr_r
21924 do :
21925 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
21926 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
21927 cat >>confdefs.h <<_ACEOF
21928 #define HAVE_GETHOSTBYADDR_R 1
21929 _ACEOF
21932 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
21934 # There are two different kinds of gethostbyaddr_r.
21935 # We look for the one that returns `int'.
21936 # Hopefully this check is robust enough.
21937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21938 /* end confdefs.h. */
21939 #include <netdb.h>
21941 _ACEOF
21942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21943 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
21946 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
21949 rm -f conftest*
21952 done
21955 rm -f conftest*
21958 for ac_func in gethostname
21959 do :
21960 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
21961 if test "x$ac_cv_func_gethostname" = x""yes; then :
21962 cat >>confdefs.h <<_ACEOF
21963 #define HAVE_GETHOSTNAME 1
21964 _ACEOF
21967 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
21969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21970 /* end confdefs.h. */
21971 #include <unistd.h>
21973 _ACEOF
21974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21975 $EGREP "gethostname" >/dev/null 2>&1; then :
21978 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
21981 rm -f conftest*
21984 done
21987 for ac_func in usleep
21988 do :
21989 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
21990 if test "x$ac_cv_func_usleep" = x""yes; then :
21991 cat >>confdefs.h <<_ACEOF
21992 #define HAVE_USLEEP 1
21993 _ACEOF
21995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21996 /* end confdefs.h. */
21997 #include <unistd.h>
21999 _ACEOF
22000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22001 $EGREP "usleep" >/dev/null 2>&1; then :
22004 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22007 rm -f conftest*
22010 done
22013 # Look for these functions in the thread library, but only bother
22014 # if using POSIX threads.
22015 if test "$THREADS" = posix; then
22016 save_LIBS="$LIBS"
22017 LIBS="$LIBS $THREADLIBS"
22019 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22020 # Solaris 7 the name librt is preferred.
22021 for ac_func in sched_yield
22022 do :
22023 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22024 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22025 cat >>confdefs.h <<_ACEOF
22026 #define HAVE_SCHED_YIELD 1
22027 _ACEOF
22029 else
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22032 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22033 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22034 $as_echo_n "(cached) " >&6
22035 else
22036 ac_check_lib_save_LIBS=$LIBS
22037 LIBS="-lrt $LIBS"
22038 if test x$gcc_no_link = xyes; then
22039 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22042 /* end confdefs.h. */
22044 /* Override any GCC internal prototype to avoid an error.
22045 Use char because int might match the return type of a GCC
22046 builtin and then its argument prototype would still apply. */
22047 #ifdef __cplusplus
22048 extern "C"
22049 #endif
22050 char sched_yield ();
22052 main ()
22054 return sched_yield ();
22056 return 0;
22058 _ACEOF
22059 if ac_fn_c_try_link "$LINENO"; then :
22060 ac_cv_lib_rt_sched_yield=yes
22061 else
22062 ac_cv_lib_rt_sched_yield=no
22064 rm -f core conftest.err conftest.$ac_objext \
22065 conftest$ac_exeext conftest.$ac_ext
22066 LIBS=$ac_check_lib_save_LIBS
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22069 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22070 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22072 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22074 THREADLIBS="$THREADLIBS -lrt"
22075 THREADSPEC="$THREADSPEC -lrt"
22076 else
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22079 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22080 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22081 $as_echo_n "(cached) " >&6
22082 else
22083 ac_check_lib_save_LIBS=$LIBS
22084 LIBS="-lposix4 $LIBS"
22085 if test x$gcc_no_link = xyes; then
22086 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22089 /* end confdefs.h. */
22091 /* Override any GCC internal prototype to avoid an error.
22092 Use char because int might match the return type of a GCC
22093 builtin and then its argument prototype would still apply. */
22094 #ifdef __cplusplus
22095 extern "C"
22096 #endif
22097 char sched_yield ();
22099 main ()
22101 return sched_yield ();
22103 return 0;
22105 _ACEOF
22106 if ac_fn_c_try_link "$LINENO"; then :
22107 ac_cv_lib_posix4_sched_yield=yes
22108 else
22109 ac_cv_lib_posix4_sched_yield=no
22111 rm -f core conftest.err conftest.$ac_objext \
22112 conftest$ac_exeext conftest.$ac_ext
22113 LIBS=$ac_check_lib_save_LIBS
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22116 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22117 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22119 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22121 THREADLIBS="$THREADLIBS -lposix4"
22122 THREADSPEC="$THREADSPEC -lposix4"
22128 done
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22132 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22133 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22134 $as_echo_n "(cached) " >&6
22135 else
22136 ac_check_lib_save_LIBS=$LIBS
22137 LIBS="-lrt $LIBS"
22138 if test x$gcc_no_link = xyes; then
22139 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22142 /* end confdefs.h. */
22144 /* Override any GCC internal prototype to avoid an error.
22145 Use char because int might match the return type of a GCC
22146 builtin and then its argument prototype would still apply. */
22147 #ifdef __cplusplus
22148 extern "C"
22149 #endif
22150 char clock_gettime ();
22152 main ()
22154 return clock_gettime ();
22156 return 0;
22158 _ACEOF
22159 if ac_fn_c_try_link "$LINENO"; then :
22160 ac_cv_lib_rt_clock_gettime=yes
22161 else
22162 ac_cv_lib_rt_clock_gettime=no
22164 rm -f core conftest.err conftest.$ac_objext \
22165 conftest$ac_exeext conftest.$ac_ext
22166 LIBS=$ac_check_lib_save_LIBS
22168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22169 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22170 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22173 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22175 case "$THREADSPEC" in
22176 *-lrt*) ;;
22178 THREADSPEC="$THREADSPEC -lrt"
22179 THREADLIBS="$THREADLIBS -lrt"
22181 esac
22185 LIBS="$save_LIBS"
22187 # We can save a little space at runtime if the mutex has m_count
22188 # or __m_count. This is a nice hack for Linux.
22189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22190 /* end confdefs.h. */
22191 #include <pthread.h>
22193 main ()
22196 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22199 return 0;
22201 _ACEOF
22202 if ac_fn_c_try_compile "$LINENO"; then :
22204 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22206 else
22208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22209 /* end confdefs.h. */
22210 #include <pthread.h>
22212 main ()
22215 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22218 return 0;
22220 _ACEOF
22221 if ac_fn_c_try_compile "$LINENO"; then :
22223 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22231 # We require a way to get the time.
22232 time_found=no
22233 for ac_func in gettimeofday time ftime
22234 do :
22235 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22236 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22237 eval as_val=\$$as_ac_var
22238 if test "x$as_val" = x""yes; then :
22239 cat >>confdefs.h <<_ACEOF
22240 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22241 _ACEOF
22242 time_found=yes
22244 done
22246 if test "$time_found" = no; then
22247 as_fn_error "no function found to get the time" "$LINENO" 5
22250 for ac_func in memmove
22251 do :
22252 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22253 if test "x$ac_cv_func_memmove" = x""yes; then :
22254 cat >>confdefs.h <<_ACEOF
22255 #define HAVE_MEMMOVE 1
22256 _ACEOF
22259 done
22262 # We require memcpy.
22263 memcpy_found=no
22264 for ac_func in memcpy
22265 do :
22266 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22267 if test "x$ac_cv_func_memcpy" = x""yes; then :
22268 cat >>confdefs.h <<_ACEOF
22269 #define HAVE_MEMCPY 1
22270 _ACEOF
22271 memcpy_found=yes
22273 done
22275 if test "$memcpy_found" = no; then
22276 as_fn_error "memcpy is required" "$LINENO" 5
22278 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22280 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22281 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22282 $as_echo_n "(cached) " >&6
22283 else
22284 ac_check_lib_save_LIBS=$LIBS
22285 LIBS="-ldl $LIBS"
22286 if test x$gcc_no_link = xyes; then
22287 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22290 /* end confdefs.h. */
22292 /* Override any GCC internal prototype to avoid an error.
22293 Use char because int might match the return type of a GCC
22294 builtin and then its argument prototype would still apply. */
22295 #ifdef __cplusplus
22296 extern "C"
22297 #endif
22298 char dlopen ();
22300 main ()
22302 return dlopen ();
22304 return 0;
22306 _ACEOF
22307 if ac_fn_c_try_link "$LINENO"; then :
22308 ac_cv_lib_dl_dlopen=yes
22309 else
22310 ac_cv_lib_dl_dlopen=no
22312 rm -f core conftest.err conftest.$ac_objext \
22313 conftest$ac_exeext conftest.$ac_ext
22314 LIBS=$ac_check_lib_save_LIBS
22316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22317 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22318 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22321 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22323 else
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22326 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22327 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22328 $as_echo_n "(cached) " >&6
22329 else
22330 ac_check_lib_save_LIBS=$LIBS
22331 LIBS="-ldld $LIBS"
22332 if test x$gcc_no_link = xyes; then
22333 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22336 /* end confdefs.h. */
22338 /* Override any GCC internal prototype to avoid an error.
22339 Use char because int might match the return type of a GCC
22340 builtin and then its argument prototype would still apply. */
22341 #ifdef __cplusplus
22342 extern "C"
22343 #endif
22344 char dlopen ();
22346 main ()
22348 return dlopen ();
22350 return 0;
22352 _ACEOF
22353 if ac_fn_c_try_link "$LINENO"; then :
22354 ac_cv_lib_dld_dlopen=yes
22355 else
22356 ac_cv_lib_dld_dlopen=no
22358 rm -f core conftest.err conftest.$ac_objext \
22359 conftest$ac_exeext conftest.$ac_ext
22360 LIBS=$ac_check_lib_save_LIBS
22362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22363 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22364 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22367 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22374 # Some library-finding code we stole from Tcl.
22375 #--------------------------------------------------------------------
22376 # Check for the existence of the -lsocket and -lnsl libraries.
22377 # The order here is important, so that they end up in the right
22378 # order in the command line generated by make. Here are some
22379 # special considerations:
22380 # 1. Use "connect" and "accept" to check for -lsocket, and
22381 # "gethostbyname" to check for -lnsl.
22382 # 2. Use each function name only once: can't redo a check because
22383 # autoconf caches the results of the last check and won't redo it.
22384 # 3. Use -lnsl and -lsocket only if they supply procedures that
22385 # aren't already present in the normal libraries. This is because
22386 # IRIX 5.2 has libraries, but they aren't needed and they're
22387 # bogus: they goof up name resolution if used.
22388 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22389 # To get around this problem, check for both libraries together
22390 # if -lsocket doesn't work by itself.
22391 #--------------------------------------------------------------------
22393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22394 $as_echo_n "checking for socket libraries... " >&6; }
22395 if test "${gcj_cv_lib_sockets+set}" = set; then :
22396 $as_echo_n "(cached) " >&6
22397 else
22398 gcj_cv_lib_sockets=
22399 gcj_checkBoth=0
22400 unset ac_cv_func_connect
22401 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22402 if test "x$ac_cv_func_connect" = x""yes; then :
22403 gcj_checkSocket=0
22404 else
22405 gcj_checkSocket=1
22408 if test "$gcj_checkSocket" = 1; then
22409 unset ac_cv_func_connect
22410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22411 $as_echo_n "checking for main in -lsocket... " >&6; }
22412 if test "${ac_cv_lib_socket_main+set}" = set; then :
22413 $as_echo_n "(cached) " >&6
22414 else
22415 ac_check_lib_save_LIBS=$LIBS
22416 LIBS="-lsocket $LIBS"
22417 if test x$gcc_no_link = xyes; then
22418 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22421 /* end confdefs.h. */
22425 main ()
22427 return main ();
22429 return 0;
22431 _ACEOF
22432 if ac_fn_c_try_link "$LINENO"; then :
22433 ac_cv_lib_socket_main=yes
22434 else
22435 ac_cv_lib_socket_main=no
22437 rm -f core conftest.err conftest.$ac_objext \
22438 conftest$ac_exeext conftest.$ac_ext
22439 LIBS=$ac_check_lib_save_LIBS
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22442 $as_echo "$ac_cv_lib_socket_main" >&6; }
22443 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22444 gcj_cv_lib_sockets="-lsocket"
22445 else
22446 gcj_checkBoth=1
22450 if test "$gcj_checkBoth" = 1; then
22451 gcj_oldLibs=$LIBS
22452 LIBS="$LIBS -lsocket -lnsl"
22453 unset ac_cv_func_accept
22454 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22455 if test "x$ac_cv_func_accept" = x""yes; then :
22456 gcj_checkNsl=0
22457 gcj_cv_lib_sockets="-lsocket -lnsl"
22460 unset ac_cv_func_accept
22461 LIBS=$gcj_oldLibs
22463 unset ac_cv_func_gethostbyname
22464 gcj_oldLibs=$LIBS
22465 LIBS="$LIBS $gcj_cv_lib_sockets"
22466 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22467 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22469 else
22470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22471 $as_echo_n "checking for main in -lnsl... " >&6; }
22472 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22473 $as_echo_n "(cached) " >&6
22474 else
22475 ac_check_lib_save_LIBS=$LIBS
22476 LIBS="-lnsl $LIBS"
22477 if test x$gcc_no_link = xyes; then
22478 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22481 /* end confdefs.h. */
22485 main ()
22487 return main ();
22489 return 0;
22491 _ACEOF
22492 if ac_fn_c_try_link "$LINENO"; then :
22493 ac_cv_lib_nsl_main=yes
22494 else
22495 ac_cv_lib_nsl_main=no
22497 rm -f core conftest.err conftest.$ac_objext \
22498 conftest$ac_exeext conftest.$ac_ext
22499 LIBS=$ac_check_lib_save_LIBS
22501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22502 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22503 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22504 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22509 unset ac_cv_func_gethostbyname
22510 LIBS=$gcj_oldLIBS
22513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22514 $as_echo "$gcj_cv_lib_sockets" >&6; }
22515 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22517 if test "$with_system_zlib" = yes; then
22518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22519 $as_echo_n "checking for deflate in -lz... " >&6; }
22520 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22521 $as_echo_n "(cached) " >&6
22522 else
22523 ac_check_lib_save_LIBS=$LIBS
22524 LIBS="-lz $LIBS"
22525 if test x$gcc_no_link = xyes; then
22526 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22529 /* end confdefs.h. */
22531 /* Override any GCC internal prototype to avoid an error.
22532 Use char because int might match the return type of a GCC
22533 builtin and then its argument prototype would still apply. */
22534 #ifdef __cplusplus
22535 extern "C"
22536 #endif
22537 char deflate ();
22539 main ()
22541 return deflate ();
22543 return 0;
22545 _ACEOF
22546 if ac_fn_c_try_link "$LINENO"; then :
22547 ac_cv_lib_z_deflate=yes
22548 else
22549 ac_cv_lib_z_deflate=no
22551 rm -f core conftest.err conftest.$ac_objext \
22552 conftest$ac_exeext conftest.$ac_ext
22553 LIBS=$ac_check_lib_save_LIBS
22555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22556 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22557 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22558 ZLIBSPEC=-lz
22559 else
22560 ZLIBSPEC=
22565 # Test for Gtk stuff, if asked for.
22566 if test "$use_gtk_awt" = yes; then
22568 succeeded=no
22570 if test -z "$PKG_CONFIG"; then
22571 # Extract the first word of "pkg-config", so it can be a program name with args.
22572 set dummy pkg-config; ac_word=$2
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22574 $as_echo_n "checking for $ac_word... " >&6; }
22575 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22576 $as_echo_n "(cached) " >&6
22577 else
22578 case $PKG_CONFIG in
22579 [\\/]* | ?:[\\/]*)
22580 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22584 for as_dir in $PATH
22586 IFS=$as_save_IFS
22587 test -z "$as_dir" && as_dir=.
22588 for ac_exec_ext in '' $ac_executable_extensions; do
22589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22590 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22592 break 2
22594 done
22595 done
22596 IFS=$as_save_IFS
22598 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22600 esac
22602 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22603 if test -n "$PKG_CONFIG"; then
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22605 $as_echo "$PKG_CONFIG" >&6; }
22606 else
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22608 $as_echo "no" >&6; }
22614 if test "$PKG_CONFIG" = "no" ; then
22615 echo "*** The pkg-config script could not be found. Make sure it is"
22616 echo "*** in your path, or set the PKG_CONFIG environment variable"
22617 echo "*** to the full path to pkg-config."
22618 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22619 else
22620 PKG_CONFIG_MIN_VERSION=0.9.0
22621 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22623 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22625 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22627 $as_echo "yes" >&6; }
22628 succeeded=yes
22630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22631 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22632 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22634 $as_echo "$GTK_CFLAGS" >&6; }
22636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22637 $as_echo_n "checking GTK_LIBS... " >&6; }
22638 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22640 $as_echo "$GTK_LIBS" >&6; }
22641 else
22642 GTK_CFLAGS=""
22643 GTK_LIBS=""
22644 ## If we have a custom action on failure, don't print errors, but
22645 ## do set a variable so people can do so.
22646 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22647 echo $GTK_PKG_ERRORS
22652 else
22653 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22654 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22658 if test $succeeded = yes; then
22660 else
22661 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
22668 succeeded=no
22670 if test -z "$PKG_CONFIG"; then
22671 # Extract the first word of "pkg-config", so it can be a program name with args.
22672 set dummy pkg-config; ac_word=$2
22673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22674 $as_echo_n "checking for $ac_word... " >&6; }
22675 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22676 $as_echo_n "(cached) " >&6
22677 else
22678 case $PKG_CONFIG in
22679 [\\/]* | ?:[\\/]*)
22680 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22684 for as_dir in $PATH
22686 IFS=$as_save_IFS
22687 test -z "$as_dir" && as_dir=.
22688 for ac_exec_ext in '' $ac_executable_extensions; do
22689 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22690 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22692 break 2
22694 done
22695 done
22696 IFS=$as_save_IFS
22698 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22700 esac
22702 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22703 if test -n "$PKG_CONFIG"; then
22704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22705 $as_echo "$PKG_CONFIG" >&6; }
22706 else
22707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22708 $as_echo "no" >&6; }
22714 if test "$PKG_CONFIG" = "no" ; then
22715 echo "*** The pkg-config script could not be found. Make sure it is"
22716 echo "*** in your path, or set the PKG_CONFIG environment variable"
22717 echo "*** to the full path to pkg-config."
22718 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22719 else
22720 PKG_CONFIG_MIN_VERSION=0.9.0
22721 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22723 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22725 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22727 $as_echo "yes" >&6; }
22728 succeeded=yes
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22731 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22732 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22734 $as_echo "$GLIB_CFLAGS" >&6; }
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22737 $as_echo_n "checking GLIB_LIBS... " >&6; }
22738 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22740 $as_echo "$GLIB_LIBS" >&6; }
22741 else
22742 GLIB_CFLAGS=""
22743 GLIB_LIBS=""
22744 ## If we have a custom action on failure, don't print errors, but
22745 ## do set a variable so people can do so.
22746 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22747 echo $GLIB_PKG_ERRORS
22752 else
22753 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22754 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22758 if test $succeeded = yes; then
22760 else
22761 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
22768 succeeded=no
22770 if test -z "$PKG_CONFIG"; then
22771 # Extract the first word of "pkg-config", so it can be a program name with args.
22772 set dummy pkg-config; ac_word=$2
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22774 $as_echo_n "checking for $ac_word... " >&6; }
22775 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22776 $as_echo_n "(cached) " >&6
22777 else
22778 case $PKG_CONFIG in
22779 [\\/]* | ?:[\\/]*)
22780 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22784 for as_dir in $PATH
22786 IFS=$as_save_IFS
22787 test -z "$as_dir" && as_dir=.
22788 for ac_exec_ext in '' $ac_executable_extensions; do
22789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22790 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22792 break 2
22794 done
22795 done
22796 IFS=$as_save_IFS
22798 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22800 esac
22802 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22803 if test -n "$PKG_CONFIG"; then
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22805 $as_echo "$PKG_CONFIG" >&6; }
22806 else
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22808 $as_echo "no" >&6; }
22814 if test "$PKG_CONFIG" = "no" ; then
22815 echo "*** The pkg-config script could not be found. Make sure it is"
22816 echo "*** in your path, or set the PKG_CONFIG environment variable"
22817 echo "*** to the full path to pkg-config."
22818 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22819 else
22820 PKG_CONFIG_MIN_VERSION=0.9.0
22821 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22823 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22825 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22827 $as_echo "yes" >&6; }
22828 succeeded=yes
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22831 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
22832 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
22834 $as_echo "$LIBART_CFLAGS" >&6; }
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
22837 $as_echo_n "checking LIBART_LIBS... " >&6; }
22838 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
22839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
22840 $as_echo "$LIBART_LIBS" >&6; }
22841 else
22842 LIBART_CFLAGS=""
22843 LIBART_LIBS=""
22844 ## If we have a custom action on failure, don't print errors, but
22845 ## do set a variable so people can do so.
22846 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
22847 echo $LIBART_PKG_ERRORS
22852 else
22853 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22854 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22858 if test $succeeded = yes; then
22860 else
22861 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
22867 # We require the XTest Extension to support java.awt.Robot.
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
22869 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
22870 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
22871 $as_echo_n "(cached) " >&6
22872 else
22873 ac_check_lib_save_LIBS=$LIBS
22874 LIBS="-lXtst ${X_LIBS} $LIBS"
22875 if test x$gcc_no_link = xyes; then
22876 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22879 /* end confdefs.h. */
22881 /* Override any GCC internal prototype to avoid an error.
22882 Use char because int might match the return type of a GCC
22883 builtin and then its argument prototype would still apply. */
22884 #ifdef __cplusplus
22885 extern "C"
22886 #endif
22887 char XTestQueryExtension ();
22889 main ()
22891 return XTestQueryExtension ();
22893 return 0;
22895 _ACEOF
22896 if ac_fn_c_try_link "$LINENO"; then :
22897 ac_cv_lib_Xtst_XTestQueryExtension=yes
22898 else
22899 ac_cv_lib_Xtst_XTestQueryExtension=no
22901 rm -f core conftest.err conftest.$ac_objext \
22902 conftest$ac_exeext conftest.$ac_ext
22903 LIBS=$ac_check_lib_save_LIBS
22905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
22906 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
22907 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
22908 true
22909 else
22910 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
22915 # On Solaris, and maybe other architectures, the Boehm collector
22916 # requires -ldl.
22917 if test "$GC" = boehm; then
22918 case "${host}" in
22919 mips-sgi-irix6*)
22920 # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
22921 # libgcj.spec is used, so override here
22922 SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
22925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
22926 $as_echo_n "checking for main in -ldl... " >&6; }
22927 if test "${ac_cv_lib_dl_main+set}" = set; then :
22928 $as_echo_n "(cached) " >&6
22929 else
22930 ac_check_lib_save_LIBS=$LIBS
22931 LIBS="-ldl $LIBS"
22932 if test x$gcc_no_link = xyes; then
22933 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22936 /* end confdefs.h. */
22940 main ()
22942 return main ();
22944 return 0;
22946 _ACEOF
22947 if ac_fn_c_try_link "$LINENO"; then :
22948 ac_cv_lib_dl_main=yes
22949 else
22950 ac_cv_lib_dl_main=no
22952 rm -f core conftest.err conftest.$ac_objext \
22953 conftest$ac_exeext conftest.$ac_ext
22954 LIBS=$ac_check_lib_save_LIBS
22956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
22957 $as_echo "$ac_cv_lib_dl_main" >&6; }
22958 if test "x$ac_cv_lib_dl_main" = x""yes; then :
22959 SYSTEMSPEC="$SYSTEMSPEC -ldl"
22963 esac
22967 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
22968 case $build in
22969 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
22970 *) CLASSPATH_SEPARATOR=':' ;;
22971 esac
22974 # We must search the source tree for java.lang, since we still don't
22975 # have libgcj.jar nor java/lang/*.class
22976 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
22977 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
22979 # Since some classes depend on this one, we need its source available
22980 # before we can do any GCJ compilation test :-(
22981 if test ! -f gnu/classpath/Configuration.java; then
22982 test -d gnu || mkdir gnu
22983 test -d gnu/classpath || mkdir gnu/classpath
22984 # Note that it is not crucial that all the values here be correct.
22985 sed -e "s,@prefix@,$expanded_prefix," \
22986 -e "s,@VERSION@,$VERSION," \
22987 -e "s,@LIBDEBUG@,false," \
22988 -e "s,@INIT_LOAD_LIBRARY@,false," \
22989 -e "s,@@,$LIBGCJDEBUG," \
22990 -e "s,@default_toolkit@,$TOOLKIT," \
22991 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
22992 -e "s,@GTK_CAIRO_ENABLED@,false," \
22993 -e "s,@ECJ_JAR@,," \
22994 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
22995 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
22996 > gnu/classpath/Configuration.java
22997 # We do not want to redirect the output of the grep below to /dev/null,
22998 # but we add /dev/null to the input list so that grep will print the
22999 # filename of Configuration.java in case it finds any matches.
23000 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23001 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23006 for ac_prog in gcj
23008 # Extract the first word of "$ac_prog", so it can be a program name with args.
23009 set dummy $ac_prog; ac_word=$2
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23011 $as_echo_n "checking for $ac_word... " >&6; }
23012 if test "${ac_cv_prog_GCJ+set}" = set; then :
23013 $as_echo_n "(cached) " >&6
23014 else
23015 if test -n "$GCJ"; then
23016 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23017 else
23018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23019 for as_dir in $PATH
23021 IFS=$as_save_IFS
23022 test -z "$as_dir" && as_dir=.
23023 for ac_exec_ext in '' $ac_executable_extensions; do
23024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23025 ac_cv_prog_GCJ="$ac_prog"
23026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23027 break 2
23029 done
23030 done
23031 IFS=$as_save_IFS
23035 GCJ=$ac_cv_prog_GCJ
23036 if test -n "$GCJ"; then
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23038 $as_echo "$GCJ" >&6; }
23039 else
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23041 $as_echo "no" >&6; }
23045 test -n "$GCJ" && break
23046 done
23047 test -n "$GCJ" || GCJ="gcj"
23049 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23050 if test "x${GCJFLAGS-unset}" = xunset; then
23051 GCJFLAGS="-g -O2"
23055 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23058 $as_echo_n "checking dependency style of $depcc... " >&6; }
23059 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23060 $as_echo_n "(cached) " >&6
23061 else
23062 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23063 # We make a subdir and do the tests there. Otherwise we can end up
23064 # making bogus files that we don't know about and never remove. For
23065 # instance it was reported that on HP-UX the gcc test will end up
23066 # making a dummy file named `D' -- because `-MD' means `put the output
23067 # in D'.
23068 mkdir conftest.dir
23069 # Copy depcomp to subdir because otherwise we won't find it if we're
23070 # using a relative directory.
23071 cp "$am_depcomp" conftest.dir
23072 cd conftest.dir
23073 # We will build objects and dependencies in a subdirectory because
23074 # it helps to detect inapplicable dependency modes. For instance
23075 # both Tru64's cc and ICC support -MD to output dependencies as a
23076 # side effect of compilation, but ICC will put the dependencies in
23077 # the current directory while Tru64 will put them in the object
23078 # directory.
23079 mkdir sub
23081 am_cv_GCJ_dependencies_compiler_type=none
23082 if test "$am_compiler_list" = ""; then
23083 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23085 am__universal=false
23088 for depmode in $am_compiler_list; do
23089 # Setup a source with many dependencies, because some compilers
23090 # like to wrap large dependency lists on column 80 (with \), and
23091 # we should not choose a depcomp mode which is confused by this.
23093 # We need to recreate these files for each test, as the compiler may
23094 # overwrite some of them when testing with obscure command lines.
23095 # This happens at least with the AIX C compiler.
23096 : > sub/conftest.c
23097 for i in 1 2 3 4 5 6; do
23098 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23099 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23100 # Solaris 8's {/usr,}/bin/sh.
23101 touch sub/conftst$i.h
23102 done
23103 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23105 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23106 # mode. It turns out that the SunPro C++ compiler does not properly
23107 # handle `-M -o', and we need to detect this. Also, some Intel
23108 # versions had trouble with output in subdirs
23109 am__obj=sub/conftest.${OBJEXT-o}
23110 am__minus_obj="-o $am__obj"
23111 case $depmode in
23112 gcc)
23113 # This depmode causes a compiler race in universal mode.
23114 test "$am__universal" = false || continue
23116 nosideeffect)
23117 # after this tag, mechanisms are not by side-effect, so they'll
23118 # only be used when explicitly requested
23119 if test "x$enable_dependency_tracking" = xyes; then
23120 continue
23121 else
23122 break
23125 msvisualcpp | msvcmsys)
23126 # This compiler won't grok `-c -o', but also, the minuso test has
23127 # not run yet. These depmodes are late enough in the game, and
23128 # so weak that their functioning should not be impacted.
23129 am__obj=conftest.${OBJEXT-o}
23130 am__minus_obj=
23132 none) break ;;
23133 esac
23134 if depmode=$depmode \
23135 source=sub/conftest.c object=$am__obj \
23136 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23137 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23138 >/dev/null 2>conftest.err &&
23139 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23140 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23141 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23142 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23143 # icc doesn't choke on unknown options, it will just issue warnings
23144 # or remarks (even with -Werror). So we grep stderr for any message
23145 # that says an option was ignored or not supported.
23146 # When given -MP, icc 7.0 and 7.1 complain thusly:
23147 # icc: Command line warning: ignoring option '-M'; no argument required
23148 # The diagnosis changed in icc 8.0:
23149 # icc: Command line remark: option '-MP' not supported
23150 if (grep 'ignoring option' conftest.err ||
23151 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23152 am_cv_GCJ_dependencies_compiler_type=$depmode
23153 break
23156 done
23158 cd ..
23159 rm -rf conftest.dir
23160 else
23161 am_cv_GCJ_dependencies_compiler_type=none
23165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23166 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23167 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23170 test "x$enable_dependency_tracking" != xno \
23171 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23172 am__fastdepGCJ_TRUE=
23173 am__fastdepGCJ_FALSE='#'
23174 else
23175 am__fastdepGCJ_TRUE='#'
23176 am__fastdepGCJ_FALSE=
23182 # Now remove it.
23183 rm -f gnu/classpath/Configuration.java
23185 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23187 # The cast to long int works around a bug in the HP C Compiler
23188 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23189 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23190 # This bug is HP SR number 8606223364.
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23192 $as_echo_n "checking size of void *... " >&6; }
23193 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23194 $as_echo_n "(cached) " >&6
23195 else
23196 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23198 else
23199 if test "$ac_cv_type_void_p" = yes; then
23200 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23202 { as_fn_set_status 77
23203 as_fn_error "cannot compute sizeof (void *)
23204 See \`config.log' for more details." "$LINENO" 5; }; }
23205 else
23206 ac_cv_sizeof_void_p=0
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23212 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23216 cat >>confdefs.h <<_ACEOF
23217 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23218 _ACEOF
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23223 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23224 if test "${ac_cv_c_bigendian+set}" = set; then :
23225 $as_echo_n "(cached) " >&6
23226 else
23227 ac_cv_c_bigendian=unknown
23228 # See if we're dealing with a universal compiler.
23229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23230 /* end confdefs.h. */
23231 #ifndef __APPLE_CC__
23232 not a universal capable compiler
23233 #endif
23234 typedef int dummy;
23236 _ACEOF
23237 if ac_fn_c_try_compile "$LINENO"; then :
23239 # Check for potential -arch flags. It is not universal unless
23240 # there are at least two -arch flags with different values.
23241 ac_arch=
23242 ac_prev=
23243 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23244 if test -n "$ac_prev"; then
23245 case $ac_word in
23246 i?86 | x86_64 | ppc | ppc64)
23247 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23248 ac_arch=$ac_word
23249 else
23250 ac_cv_c_bigendian=universal
23251 break
23254 esac
23255 ac_prev=
23256 elif test "x$ac_word" = "x-arch"; then
23257 ac_prev=arch
23259 done
23261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23262 if test $ac_cv_c_bigendian = unknown; then
23263 # See if sys/param.h defines the BYTE_ORDER macro.
23264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23265 /* end confdefs.h. */
23266 #include <sys/types.h>
23267 #include <sys/param.h>
23270 main ()
23272 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23273 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23274 && LITTLE_ENDIAN)
23275 bogus endian macros
23276 #endif
23279 return 0;
23281 _ACEOF
23282 if ac_fn_c_try_compile "$LINENO"; then :
23283 # It does; now see whether it defined to BIG_ENDIAN or not.
23284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23285 /* end confdefs.h. */
23286 #include <sys/types.h>
23287 #include <sys/param.h>
23290 main ()
23292 #if BYTE_ORDER != BIG_ENDIAN
23293 not big endian
23294 #endif
23297 return 0;
23299 _ACEOF
23300 if ac_fn_c_try_compile "$LINENO"; then :
23301 ac_cv_c_bigendian=yes
23302 else
23303 ac_cv_c_bigendian=no
23305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23309 if test $ac_cv_c_bigendian = unknown; then
23310 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23312 /* end confdefs.h. */
23313 #include <limits.h>
23316 main ()
23318 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23319 bogus endian macros
23320 #endif
23323 return 0;
23325 _ACEOF
23326 if ac_fn_c_try_compile "$LINENO"; then :
23327 # It does; now see whether it defined to _BIG_ENDIAN or not.
23328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23329 /* end confdefs.h. */
23330 #include <limits.h>
23333 main ()
23335 #ifndef _BIG_ENDIAN
23336 not big endian
23337 #endif
23340 return 0;
23342 _ACEOF
23343 if ac_fn_c_try_compile "$LINENO"; then :
23344 ac_cv_c_bigendian=yes
23345 else
23346 ac_cv_c_bigendian=no
23348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23352 if test $ac_cv_c_bigendian = unknown; then
23353 # Compile a test program.
23354 if test "$cross_compiling" = yes; then :
23355 # Try to guess by grepping values from an object file.
23356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23357 /* end confdefs.h. */
23358 short int ascii_mm[] =
23359 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23360 short int ascii_ii[] =
23361 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23362 int use_ascii (int i) {
23363 return ascii_mm[i] + ascii_ii[i];
23365 short int ebcdic_ii[] =
23366 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23367 short int ebcdic_mm[] =
23368 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23369 int use_ebcdic (int i) {
23370 return ebcdic_mm[i] + ebcdic_ii[i];
23372 extern int foo;
23375 main ()
23377 return use_ascii (foo) == use_ebcdic (foo);
23379 return 0;
23381 _ACEOF
23382 if ac_fn_c_try_compile "$LINENO"; then :
23383 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23384 ac_cv_c_bigendian=yes
23386 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23387 if test "$ac_cv_c_bigendian" = unknown; then
23388 ac_cv_c_bigendian=no
23389 else
23390 # finding both strings is unlikely to happen, but who knows?
23391 ac_cv_c_bigendian=unknown
23395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23396 else
23397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23398 /* end confdefs.h. */
23399 $ac_includes_default
23401 main ()
23404 /* Are we little or big endian? From Harbison&Steele. */
23405 union
23407 long int l;
23408 char c[sizeof (long int)];
23409 } u;
23410 u.l = 1;
23411 return u.c[sizeof (long int) - 1] == 1;
23414 return 0;
23416 _ACEOF
23417 if ac_fn_c_try_run "$LINENO"; then :
23418 ac_cv_c_bigendian=no
23419 else
23420 ac_cv_c_bigendian=yes
23422 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23423 conftest.$ac_objext conftest.beam conftest.$ac_ext
23428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23429 $as_echo "$ac_cv_c_bigendian" >&6; }
23430 case $ac_cv_c_bigendian in #(
23431 yes)
23432 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23433 ;; #(
23435 ;; #(
23436 universal)
23438 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23440 ;; #(
23442 as_fn_error "unknown endianness
23443 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23444 esac
23447 ZLIBS=
23448 SYS_ZLIBS=
23449 ZINCS=
23451 if test -z "$ZLIBSPEC"; then
23452 # Use zlib from the GCC tree.
23453 ZINCS='-I$(top_srcdir)/../zlib'
23454 ZLIBS=../zlib/libzgcj_convenience.la
23455 else
23456 # System's zlib.
23457 SYS_ZLIBS="$ZLIBSPEC"
23469 if test "$NATIVE" = yes; then
23470 NATIVE_TRUE=
23471 NATIVE_FALSE='#'
23472 else
23473 NATIVE_TRUE='#'
23474 NATIVE_FALSE=
23477 if test "$enable_shared" = yes; then
23478 ENABLE_SHARED_TRUE=
23479 ENABLE_SHARED_FALSE='#'
23480 else
23481 ENABLE_SHARED_TRUE='#'
23482 ENABLE_SHARED_FALSE=
23485 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23486 NEEDS_DATA_START_TRUE=
23487 NEEDS_DATA_START_FALSE='#'
23488 else
23489 NEEDS_DATA_START_TRUE='#'
23490 NEEDS_DATA_START_FALSE=
23493 if test -z "${with_multisubdir}"; then
23494 INSTALL_BINARIES_TRUE=
23495 INSTALL_BINARIES_FALSE='#'
23496 else
23497 INSTALL_BINARIES_TRUE='#'
23498 INSTALL_BINARIES_FALSE=
23503 # Process the option "--enable-version-specific-runtime-libs"
23504 # Calculate toolexeclibdir
23505 case ${version_specific_libs} in
23506 yes)
23507 # Need the gcc compiler version to know where to install libraries
23508 # and header files if --enable-version-specific-runtime-libs option
23509 # is selected.
23510 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23511 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23512 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23513 toolexeclibdir=$toolexecmainlibdir
23516 if test -n "$with_cross_host" &&
23517 test x"$with_cross_host" != x"no"; then
23518 # Install a library built with a cross compiler in tooldir, not libdir.
23519 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23520 toolexecmainlibdir='$(toolexecdir)/lib'
23521 else
23522 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23523 toolexecmainlibdir='$(libdir)'
23525 multi_os_directory=`$CC -print-multi-os-directory`
23526 case $multi_os_directory in
23527 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23528 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23529 esac
23531 esac
23536 # Determine gcj and libgcj version number.
23537 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23538 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23539 GCJVERSION=$gcjversion
23542 cat >>confdefs.h <<_ACEOF
23543 #define GCJVERSION "$GCJVERSION"
23544 _ACEOF
23547 # Determine where the standard .db file and GNU Classpath JNI
23548 # libraries are found.
23549 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23550 multi_os_directory=`$CC -print-multi-os-directory`
23551 case $multi_os_directory in
23553 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23556 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23558 esac
23563 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23566 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23570 case "${with_gxx_include_dir}" in
23571 yes)
23572 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23574 no | "")
23575 case "${enable_version_specific_runtime_libs}" in
23576 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23578 libstdcxx_incdir='c++/$(gcc_version)'
23579 gxx_include_dir='include/$(libstdcxx_incdir)'
23580 if test -n "$with_cross_host" &&
23581 test x"$with_cross_host" != x"no"; then
23582 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23583 else
23584 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23585 fi;;
23586 esac ;;
23587 *) gxx_include_dir=${with_gxx_include_dir} ;;
23588 esac
23593 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23594 # On that system, sys/ioctl.h will not include sys/filio.h unless
23595 # BSD_COMP is defined; just including sys/filio.h is simpler.
23596 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23597 # for now. If you change this, you also must update natFile.cc.
23598 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23599 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23600 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23601 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23602 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23603 do :
23604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23605 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23606 eval as_val=\$$as_ac_Header
23607 if test "x$as_val" = x""yes; then :
23608 cat >>confdefs.h <<_ACEOF
23609 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23610 _ACEOF
23614 done
23617 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23618 for ac_header in net/if.h
23619 do :
23620 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23621 #ifdef HAVE_SYS_SOCKET_H
23622 #include <sys/socket.h>
23623 #endif
23626 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23627 cat >>confdefs.h <<_ACEOF
23628 #define HAVE_NET_IF_H 1
23629 _ACEOF
23633 done
23636 for ac_header in inttypes.h
23637 do :
23638 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23639 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23640 cat >>confdefs.h <<_ACEOF
23641 #define HAVE_INTTYPES_H 1
23642 _ACEOF
23645 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23648 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23653 done
23656 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23657 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23659 else
23661 cat >>confdefs.h <<_ACEOF
23662 #define ssize_t int
23663 _ACEOF
23667 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23668 #ifdef HAVE_MAGIC_H
23669 #include <magic.h>
23670 #endif
23672 if test "x$ac_cv_type_magic_t" = x""yes; then :
23675 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23681 $as_echo_n "checking for in_addr_t... " >&6; }
23682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23683 /* end confdefs.h. */
23684 #include <sys/types.h>
23685 #if STDC_HEADERS
23686 #include <stdlib.h>
23687 #include <stddef.h>
23688 #endif
23689 #if HAVE_NETINET_IN_H
23690 #include <netinet/in.h>
23691 #endif
23693 main ()
23695 in_addr_t foo;
23697 return 0;
23699 _ACEOF
23700 if ac_fn_c_try_compile "$LINENO"; then :
23702 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23705 $as_echo "yes" >&6; }
23706 else
23707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23708 $as_echo "no" >&6; }
23710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23713 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23715 /* end confdefs.h. */
23716 #include <netinet/in.h>
23718 main ()
23720 struct ip_mreq mreq;
23722 return 0;
23724 _ACEOF
23725 if ac_fn_c_try_compile "$LINENO"; then :
23727 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23730 $as_echo "yes" >&6; }
23731 else
23732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23733 $as_echo "no" >&6; }
23735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23738 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23740 /* end confdefs.h. */
23741 #include <netinet/in.h>
23743 main ()
23745 struct ipv6_mreq mreq6;
23747 return 0;
23749 _ACEOF
23750 if ac_fn_c_try_compile "$LINENO"; then :
23752 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23755 $as_echo "yes" >&6; }
23756 else
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23758 $as_echo "no" >&6; }
23760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23763 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23765 /* end confdefs.h. */
23766 #include <netinet/in.h>
23768 main ()
23770 struct sockaddr_in6 addr6;
23772 return 0;
23774 _ACEOF
23775 if ac_fn_c_try_compile "$LINENO"; then :
23777 $as_echo "#define HAVE_INET6 1" >>confdefs.h
23779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23780 $as_echo "yes" >&6; }
23781 else
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23783 $as_echo "no" >&6; }
23785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
23788 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
23789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23790 /* end confdefs.h. */
23791 #define _POSIX_PII_SOCKET
23792 #include <sys/types.h>
23793 #include <sys/socket.h>
23795 main ()
23797 socklen_t x = 5;
23799 return 0;
23801 _ACEOF
23802 if ac_fn_c_try_compile "$LINENO"; then :
23804 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
23806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23807 $as_echo "yes" >&6; }
23808 else
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
23815 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
23816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23817 /* end confdefs.h. */
23818 #include <time.h>
23820 main ()
23822 struct tm tim; tim.tm_gmtoff = 0;
23824 return 0;
23826 _ACEOF
23827 if ac_fn_c_try_compile "$LINENO"; then :
23829 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23832 $as_echo "yes" >&6; }
23833 else
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23835 $as_echo "no" >&6; }
23836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
23837 $as_echo_n "checking for global timezone variable... " >&6; }
23838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23839 /* end confdefs.h. */
23840 #include <time.h>
23842 main ()
23844 void i(){long z2 = 2*timezone;}
23846 return 0;
23848 _ACEOF
23849 if ac_fn_c_try_compile "$LINENO"; then :
23851 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23854 $as_echo "yes" >&6; }
23855 else
23856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23857 $as_echo "no" >&6; }
23858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
23859 $as_echo_n "checking for global _timezone variable... " >&6; }
23860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23861 /* end confdefs.h. */
23862 #include <time.h>
23864 main ()
23866 long z2 = _timezone;
23868 return 0;
23870 _ACEOF
23871 if ac_fn_c_try_compile "$LINENO"; then :
23873 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
23875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23876 $as_echo "yes" >&6; }
23877 else
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23879 $as_echo "no" >&6; }
23881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23887 for ac_prog in perl
23889 # Extract the first word of "$ac_prog", so it can be a program name with args.
23890 set dummy $ac_prog; ac_word=$2
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23892 $as_echo_n "checking for $ac_word... " >&6; }
23893 if test "${ac_cv_prog_PERL+set}" = set; then :
23894 $as_echo_n "(cached) " >&6
23895 else
23896 if test -n "$PERL"; then
23897 ac_cv_prog_PERL="$PERL" # Let the user override the test.
23898 else
23899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23900 for as_dir in $PATH
23902 IFS=$as_save_IFS
23903 test -z "$as_dir" && as_dir=.
23904 for ac_exec_ext in '' $ac_executable_extensions; do
23905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23906 ac_cv_prog_PERL="$ac_prog"
23907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23908 break 2
23910 done
23911 done
23912 IFS=$as_save_IFS
23916 PERL=$ac_cv_prog_PERL
23917 if test -n "$PERL"; then
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
23919 $as_echo "$PERL" >&6; }
23920 else
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23922 $as_echo "no" >&6; }
23926 test -n "$PERL" && break
23927 done
23928 test -n "$PERL" || PERL="false"
23931 SYSDEP_SOURCES=
23932 SIGNAL_HANDLER_AUX=
23934 case "${host}" in
23935 i?86-*-linux*)
23936 SIGNAL_HANDLER=include/i386-signal.h
23938 sparc*-sun-solaris*)
23939 SIGNAL_HANDLER=include/sparc-signal.h
23941 # ia64-*)
23942 # SYSDEP_SOURCES=sysdep/ia64.c
23943 # test -d sysdep || mkdir sysdep
23944 # ;;
23945 hppa*-*-linux*)
23946 SIGNAL_HANDLER=include/pa-signal.h
23948 hppa*-hp-hpux*)
23949 SIGNAL_HANDLER=include/hppa-signal.h
23951 ia64-*-linux*)
23952 SIGNAL_HANDLER=include/dwarf2-signal.h
23954 powerpc*-*-linux*)
23955 SIGNAL_HANDLER=include/powerpc-signal.h
23957 alpha*-*-linux*)
23958 SIGNAL_HANDLER=include/dwarf2-signal.h
23960 s390*-*-linux*)
23961 SIGNAL_HANDLER=include/s390-signal.h
23963 x86_64*-*-linux*)
23964 SIGNAL_HANDLER=include/x86_64-signal.h
23965 SIGNAL_HANDLER_AUX=include/i386-signal.h
23967 sparc*-*-linux*)
23968 SIGNAL_HANDLER=include/dwarf2-signal.h
23970 sh*-*-linux*)
23971 SIGNAL_HANDLER=include/sh-signal.h
23973 *mingw*)
23974 SIGNAL_HANDLER=include/win32-signal.h
23976 mips*-*-linux*)
23977 SIGNAL_HANDLER=include/mips-signal.h
23979 m68*-*-linux*)
23980 SIGNAL_HANDLER=include/dwarf2-signal.h
23982 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
23983 SIGNAL_HANDLER=include/darwin-signal.h
23985 powerpc*-*-aix*)
23986 SIGNAL_HANDLER=include/aix-signal.h
23989 SIGNAL_HANDLER=include/default-signal.h
23991 esac
23993 # If we're using sjlj exceptions, forget what we just learned.
23994 if test "$enable_sjlj_exceptions" = yes; then
23995 SIGNAL_HANDLER=include/default-signal.h
23996 SIGNAL_HANDLER_AUX=
24001 if test -z "$SIGNAL_HANDLER_AUX"; then
24002 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24005 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24008 if test "${multilib}" = "yes"; then
24009 multilib_arg="--enable-multilib"
24010 else
24011 multilib_arg=
24014 # See if we support thread-local storage.
24017 # Check whether --enable-tls was given.
24018 if test "${enable_tls+set}" = set; then :
24019 enableval=$enable_tls;
24020 case "$enableval" in
24021 yes|no) ;;
24022 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24023 esac
24025 else
24026 enable_tls=yes
24030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24031 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24032 if test "${gcc_cv_have_tls+set}" = set; then :
24033 $as_echo_n "(cached) " >&6
24034 else
24036 if test "$cross_compiling" = yes; then :
24037 if test x$gcc_no_link = xyes; then
24038 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24041 /* end confdefs.h. */
24042 __thread int a; int b; int main() { return a = b; }
24043 _ACEOF
24044 if ac_fn_c_try_link "$LINENO"; then :
24045 chktls_save_LDFLAGS="$LDFLAGS"
24046 case $host in
24047 *-*-linux*)
24048 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24050 esac
24051 chktls_save_CFLAGS="$CFLAGS"
24052 CFLAGS="-fPIC $CFLAGS"
24053 if test x$gcc_no_link = xyes; then
24054 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24057 /* end confdefs.h. */
24058 int f() { return 0; }
24059 _ACEOF
24060 if ac_fn_c_try_link "$LINENO"; then :
24061 if test x$gcc_no_link = xyes; then
24062 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24065 /* end confdefs.h. */
24066 __thread int a; int b; int f() { return a = b; }
24067 _ACEOF
24068 if ac_fn_c_try_link "$LINENO"; then :
24069 gcc_cv_have_tls=yes
24070 else
24071 gcc_cv_have_tls=no
24073 rm -f core conftest.err conftest.$ac_objext \
24074 conftest$ac_exeext conftest.$ac_ext
24075 else
24076 gcc_cv_have_tls=yes
24078 rm -f core conftest.err conftest.$ac_objext \
24079 conftest$ac_exeext conftest.$ac_ext
24080 CFLAGS="$chktls_save_CFLAGS"
24081 LDFLAGS="$chktls_save_LDFLAGS"
24082 else
24083 gcc_cv_have_tls=no
24085 rm -f core conftest.err conftest.$ac_objext \
24086 conftest$ac_exeext conftest.$ac_ext
24089 else
24090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24091 /* end confdefs.h. */
24092 __thread int a; int b; int main() { return a = b; }
24093 _ACEOF
24094 if ac_fn_c_try_run "$LINENO"; then :
24095 chktls_save_LDFLAGS="$LDFLAGS"
24096 LDFLAGS="-static $LDFLAGS"
24097 if test x$gcc_no_link = xyes; then
24098 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24101 /* end confdefs.h. */
24102 int main() { return 0; }
24103 _ACEOF
24104 if ac_fn_c_try_link "$LINENO"; then :
24105 if test "$cross_compiling" = yes; then :
24106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24108 as_fn_error "cannot run test program while cross compiling
24109 See \`config.log' for more details." "$LINENO" 5; }
24110 else
24111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24112 /* end confdefs.h. */
24113 __thread int a; int b; int main() { return a = b; }
24114 _ACEOF
24115 if ac_fn_c_try_run "$LINENO"; then :
24116 gcc_cv_have_tls=yes
24117 else
24118 gcc_cv_have_tls=no
24120 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24121 conftest.$ac_objext conftest.beam conftest.$ac_ext
24124 else
24125 gcc_cv_have_tls=yes
24127 rm -f core conftest.err conftest.$ac_objext \
24128 conftest$ac_exeext conftest.$ac_ext
24129 LDFLAGS="$chktls_save_LDFLAGS"
24130 if test $gcc_cv_have_tls = yes; then
24131 chktls_save_CFLAGS="$CFLAGS"
24132 thread_CFLAGS=failed
24133 for flag in '' '-pthread' '-lpthread'; do
24134 CFLAGS="$flag $chktls_save_CFLAGS"
24135 if test x$gcc_no_link = xyes; then
24136 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24139 /* end confdefs.h. */
24140 #include <pthread.h>
24141 void *g(void *d) { return NULL; }
24143 main ()
24145 pthread_t t; pthread_create(&t,NULL,g,NULL);
24147 return 0;
24149 _ACEOF
24150 if ac_fn_c_try_link "$LINENO"; then :
24151 thread_CFLAGS="$flag"
24153 rm -f core conftest.err conftest.$ac_objext \
24154 conftest$ac_exeext conftest.$ac_ext
24155 if test "X$thread_CFLAGS" != Xfailed; then
24156 break
24158 done
24159 CFLAGS="$chktls_save_CFLAGS"
24160 if test "X$thread_CFLAGS" != Xfailed; then
24161 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24162 if test "$cross_compiling" = yes; then :
24163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24165 as_fn_error "cannot run test program while cross compiling
24166 See \`config.log' for more details." "$LINENO" 5; }
24167 else
24168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24169 /* end confdefs.h. */
24170 #include <pthread.h>
24171 __thread int a;
24172 static int *a_in_other_thread;
24173 static void *
24174 thread_func (void *arg)
24176 a_in_other_thread = &a;
24177 return (void *)0;
24180 main ()
24182 pthread_t thread;
24183 void *thread_retval;
24184 int *a_in_main_thread;
24185 if (pthread_create (&thread, (pthread_attr_t *)0,
24186 thread_func, (void *)0))
24187 return 0;
24188 a_in_main_thread = &a;
24189 if (pthread_join (thread, &thread_retval))
24190 return 0;
24191 return (a_in_other_thread == a_in_main_thread);
24193 return 0;
24195 _ACEOF
24196 if ac_fn_c_try_run "$LINENO"; then :
24197 gcc_cv_have_tls=yes
24198 else
24199 gcc_cv_have_tls=no
24201 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24202 conftest.$ac_objext conftest.beam conftest.$ac_ext
24205 CFLAGS="$chktls_save_CFLAGS"
24208 else
24209 gcc_cv_have_tls=no
24211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24212 conftest.$ac_objext conftest.beam conftest.$ac_ext
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24217 $as_echo "$gcc_cv_have_tls" >&6; }
24218 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24220 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24224 # For _Unwind_GetIPInfo.
24227 # Check whether --with-system-libunwind was given.
24228 if test "${with_system_libunwind+set}" = set; then :
24229 withval=$with_system_libunwind;
24232 # If system-libunwind was not specifically set, pick a default setting.
24233 if test x$with_system_libunwind = x; then
24234 case ${target} in
24235 ia64-*-hpux*) with_system_libunwind=yes ;;
24236 *) with_system_libunwind=no ;;
24237 esac
24239 # Based on system-libunwind and target, do we have ipinfo?
24240 if test x$with_system_libunwind = xyes; then
24241 case ${target} in
24242 ia64-*-*) have_unwind_getipinfo=no ;;
24243 *) have_unwind_getipinfo=yes ;;
24244 esac
24245 else
24246 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24248 case ${target} in
24249 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24250 *) have_unwind_getipinfo=yes ;;
24251 esac
24255 if test x$have_unwind_getipinfo = xyes; then
24257 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24262 # See if linker supports anonymous version scripts.
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24264 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24265 if test "${libjava_cv_anon_version_script+set}" = set; then :
24266 $as_echo_n "(cached) " >&6
24267 else
24268 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24269 libjava_cv_anon_version_script=no
24270 CFLAGS="$CFLAGS -fPIC"; LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24271 echo '{ global: globalsymb*; local: *; };' > conftest.map
24272 if test x$gcc_no_link = xyes; then
24273 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24276 /* end confdefs.h. */
24277 void globalsymbol (void) {} void localsymbol (void) {}
24279 main ()
24283 return 0;
24285 _ACEOF
24286 if ac_fn_c_try_link "$LINENO"; then :
24287 libjava_cv_anon_version_script=yes
24289 rm -f core conftest.err conftest.$ac_objext \
24290 conftest$ac_exeext conftest.$ac_ext
24291 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24295 $as_echo "$libjava_cv_anon_version_script" >&6; }
24296 if test "$libjava_cv_anon_version_script" = yes; then
24297 ANONVERSCRIPT_TRUE=
24298 ANONVERSCRIPT_FALSE='#'
24299 else
24300 ANONVERSCRIPT_TRUE='#'
24301 ANONVERSCRIPT_FALSE=
24305 # Check if linker supports static linking on a per library basis
24306 LD_START_STATIC_SPEC=
24307 LD_FINISH_STATIC_SPEC=
24308 if $LD --help 2>&1 | grep -q -e -call_shared ; then
24309 if $LD --help 2>&1 | grep -q -e -non_shared ; then
24310 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24311 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24317 here=`${PWDCMD-pwd}`
24320 # We get this from the environment.
24324 # Check whether --with-python-dir was given.
24325 if test "${with_python_dir+set}" = set; then :
24326 withval=$with_python_dir; with_python_dir=$withval
24327 else
24328 with_python_dir=""
24332 if test "x${with_python_dir}" = "x"
24333 then
24334 # Needed for installing Python modules during make install.
24335 python_mod_dir="\${prefix}/share/python"
24336 # Needed for substituting into aot-compile*
24337 python_mod_dir_expanded="${expanded_prefix}/share/python"
24338 else
24339 python_mod_dir="\${prefix}${with_python_dir}"
24340 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24343 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24347 # needed for aot-compile-rpm
24348 MAKE=`which make`
24351 # Check whether --enable-aot-compile-rpm was given.
24352 if test "${enable_aot_compile_rpm+set}" = set; then :
24353 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24354 yes) AOT_RPM_ENABLED=yes ;;
24355 no) AOT_RPM_ENABLED=no ;;
24356 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24357 esac
24358 else
24359 AOT_RPM_ENABLED=no
24363 if test "x${AOT_RPM_ENABLED}" = xyes; then
24364 INSTALL_AOT_RPM_TRUE=
24365 INSTALL_AOT_RPM_FALSE='#'
24366 else
24367 INSTALL_AOT_RPM_TRUE='#'
24368 INSTALL_AOT_RPM_FALSE=
24372 # Check whether --enable-java-home was given.
24373 if test "${enable_java_home+set}" = set; then :
24374 enableval=$enable_java_home; case "${enableval}" in
24375 yes) JAVA_HOME_ENABLED=yes ;;
24376 no) JAVA_HOME_ENABLED=no ;;
24377 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24378 esac
24379 else
24380 JAVA_HOME_ENABLED=no
24384 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24385 CREATE_JAVA_HOME_TRUE=
24386 CREATE_JAVA_HOME_FALSE='#'
24387 else
24388 CREATE_JAVA_HOME_TRUE='#'
24389 CREATE_JAVA_HOME_FALSE=
24393 # Only do these checks if java-home above is enabled.
24394 if test "x${JAVA_HOME_ENABLED}" = xyes
24395 then
24398 # Check whether --with-gcc-suffix was given.
24399 if test "${with_gcc_suffix+set}" = set; then :
24400 withval=$with_gcc_suffix; gcc_suffix=$withval
24401 else
24402 gcc_suffix=""
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24406 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24410 # Check whether --with-arch-directory was given.
24411 if test "${with_arch_directory+set}" = set; then :
24412 withval=$with_arch_directory; host_cpu=$withval
24413 else
24414 host_cpu=""
24419 # Check whether --with-os-directory was given.
24420 if test "${with_os_directory+set}" = set; then :
24421 withval=$with_os_directory; host_os=$withval
24422 else
24423 host_os=""
24428 # Check whether --with-origin-name was given.
24429 if test "${with_origin_name+set}" = set; then :
24430 withval=$with_origin_name; origin_name=$withval
24431 else
24432 origin_name=gcj${gcc_suffix}
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24436 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24439 # Check whether --with-arch-suffix was given.
24440 if test "${with_arch_suffix+set}" = set; then :
24441 withval=$with_arch_suffix; arch_suffix=$withval
24442 else
24443 arch_suffix=""
24446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24447 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24450 # Check whether --with-jvm-root-dir was given.
24451 if test "${with_jvm_root_dir+set}" = set; then :
24452 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24453 else
24454 jvm_root_dir="\${prefix}/lib/jvm"
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24458 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24461 # Check whether --with-jvm-jar-dir was given.
24462 if test "${with_jvm_jar_dir+set}" = set; then :
24463 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24464 else
24465 jvm_jar_dir=\${prefix}/lib/jvm-exports
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24469 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24471 JAVA_VERSION=1.5.0
24472 BUILD_VERSION=0
24475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24476 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24478 jre_dir=jre
24479 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24480 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24482 JVM_ROOT_DIR=${jvm_root_dir}
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24485 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24487 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24490 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24492 JVM_JAR_DIR=${jvm_jar_dir}
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24495 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24497 JRE_DIR=${jre_dir}
24500 JRE_LNK=${jre_lnk}
24503 SDK_LNK=${sdk_lnk}
24506 SDK_BIN_DIR=${jvm_root_dir}/bin
24508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24509 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24511 SDK_LIB_DIR=${jvm_root_dir}/lib
24513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24514 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24516 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24519 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24521 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24524 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24526 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24529 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24531 # Find gcj prefix using gcj found in PATH.
24532 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24534 # Where do the gcj binaries live?
24535 # For jhbuild based builds, they all live in a sibling of bin called
24536 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24537 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24540 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24543 $as_echo "host is ${host}" >&6; }
24544 if test "x${host_cpu}" = "x"
24545 then
24546 case ${host} in
24547 *-mingw* | *-cygwin*)
24548 host_cpu=x86;;
24549 i486-* | i586-* | i686-*)
24550 host_cpu=i386;;
24551 x86_64-*)
24552 host_cpu=amd64;;
24554 host_cpu=${host_cpu};;
24555 esac
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24558 $as_echo "arch directory: ${host_cpu}" >&6; }
24559 CPU=${host_cpu}
24562 if test "x${host_os}" = "x"
24563 then
24564 case ${host} in
24565 *-mingw* | *-cygwin*)
24566 host_os=win32;;
24567 *-linux*)
24568 host_os=linux;;
24570 host_os=${host_os};;
24571 esac
24573 echo os directory: ${host_os}
24574 OS=${host_os}
24577 # make an expanded $libdir, for substituting into
24578 # scripts (and other non-Makefile things).
24579 LIBDIR=$libdir
24580 if test "x${exec_prefix}" = "xNONE"
24581 then
24582 lib_exec_prefix=$expanded_prefix
24583 else
24584 lib_exec_prefix=$exec_prefix
24586 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24590 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"
24593 if test ${multilib} = yes; then
24594 multilib_arg="--enable-multilib"
24595 else
24596 multilib_arg=
24599 ac_config_files="$ac_config_files scripts/jar"
24601 cat >confcache <<\_ACEOF
24602 # This file is a shell script that caches the results of configure
24603 # tests run on this system so they can be shared between configure
24604 # scripts and configure runs, see configure's option --config-cache.
24605 # It is not useful on other systems. If it contains results you don't
24606 # want to keep, you may remove or edit it.
24608 # config.status only pays attention to the cache file if you give it
24609 # the --recheck option to rerun configure.
24611 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24612 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24613 # following values.
24615 _ACEOF
24617 # The following way of writing the cache mishandles newlines in values,
24618 # but we know of no workaround that is simple, portable, and efficient.
24619 # So, we kill variables containing newlines.
24620 # Ultrix sh set writes to stderr and can't be redirected directly,
24621 # and sets the high bit in the cache file unless we assign to the vars.
24623 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24624 eval ac_val=\$$ac_var
24625 case $ac_val in #(
24626 *${as_nl}*)
24627 case $ac_var in #(
24628 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24629 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24630 esac
24631 case $ac_var in #(
24632 _ | IFS | as_nl) ;; #(
24633 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24634 *) { eval $ac_var=; unset $ac_var;} ;;
24635 esac ;;
24636 esac
24637 done
24639 (set) 2>&1 |
24640 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24641 *${as_nl}ac_space=\ *)
24642 # `set' does not quote correctly, so add quotes: double-quote
24643 # substitution turns \\\\ into \\, and sed turns \\ into \.
24644 sed -n \
24645 "s/'/'\\\\''/g;
24646 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24647 ;; #(
24649 # `set' quotes correctly as required by POSIX, so do not add quotes.
24650 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24652 esac |
24653 sort
24655 sed '
24656 /^ac_cv_env_/b end
24657 t clear
24658 :clear
24659 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24660 t end
24661 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24662 :end' >>confcache
24663 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24664 if test -w "$cache_file"; then
24665 test "x$cache_file" != "x/dev/null" &&
24666 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24667 $as_echo "$as_me: updating cache $cache_file" >&6;}
24668 cat confcache >$cache_file
24669 else
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24671 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24674 rm -f confcache
24676 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24677 # Let make expand exec_prefix.
24678 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24680 DEFS=-DHAVE_CONFIG_H
24682 ac_libobjs=
24683 ac_ltlibobjs=
24684 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24685 # 1. Remove the extension, and $U if already installed.
24686 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24687 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24688 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24689 # will be set to the directory where LIBOBJS objects are built.
24690 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24691 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24692 done
24693 LIBOBJS=$ac_libobjs
24695 LTLIBOBJS=$ac_ltlibobjs
24698 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24699 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24700 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24702 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24703 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24704 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24706 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24707 as_fn_error "conditional \"AMDEP\" was never defined.
24708 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24710 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24711 as_fn_error "conditional \"am__fastdepCC\" was never defined.
24712 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24714 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24715 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24716 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24718 if test -n "$EXEEXT"; then
24719 am__EXEEXT_TRUE=
24720 am__EXEEXT_FALSE='#'
24721 else
24722 am__EXEEXT_TRUE='#'
24723 am__EXEEXT_FALSE=
24726 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24727 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24728 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24730 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
24731 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
24732 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24734 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
24735 as_fn_error "conditional \"XLIB_AWT\" was never defined.
24736 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24738 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
24739 as_fn_error "conditional \"X_AWT\" was never defined.
24740 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24742 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24743 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24744 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24746 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24747 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24748 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24750 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
24751 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
24752 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24754 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
24755 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
24756 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24758 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
24759 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
24760 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24762 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
24763 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
24764 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24766 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
24767 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
24768 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24770 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
24771 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
24772 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24774 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
24775 as_fn_error "conditional \"INTERPRETER\" was never defined.
24776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24778 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
24779 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
24780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24782 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
24783 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
24784 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24786 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
24787 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
24788 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24790 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
24791 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
24792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24794 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
24795 as_fn_error "conditional \"USING_NOGC\" was never defined.
24796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24798 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
24799 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
24800 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24802 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
24803 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
24804 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24806 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
24807 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
24808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24810 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
24811 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
24812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24814 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
24815 as_fn_error "conditional \"USING_GCC\" was never defined.
24816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24818 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
24819 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
24820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24823 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
24824 as_fn_error "conditional \"NATIVE\" was never defined.
24825 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24827 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
24828 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
24829 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24831 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
24832 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
24833 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24835 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24836 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24837 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24839 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
24840 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
24841 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24843 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
24844 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
24845 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24847 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
24848 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
24849 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24852 : ${CONFIG_STATUS=./config.status}
24853 ac_write_fail=0
24854 ac_clean_files_save=$ac_clean_files
24855 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24857 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24858 as_write_fail=0
24859 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24860 #! $SHELL
24861 # Generated by $as_me.
24862 # Run this file to recreate the current configuration.
24863 # Compiler output produced by configure, useful for debugging
24864 # configure, is in config.log if it exists.
24866 debug=false
24867 ac_cs_recheck=false
24868 ac_cs_silent=false
24870 SHELL=\${CONFIG_SHELL-$SHELL}
24871 export SHELL
24872 _ASEOF
24873 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24874 ## -------------------- ##
24875 ## M4sh Initialization. ##
24876 ## -------------------- ##
24878 # Be more Bourne compatible
24879 DUALCASE=1; export DUALCASE # for MKS sh
24880 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24881 emulate sh
24882 NULLCMD=:
24883 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24884 # is contrary to our usage. Disable this feature.
24885 alias -g '${1+"$@"}'='"$@"'
24886 setopt NO_GLOB_SUBST
24887 else
24888 case `(set -o) 2>/dev/null` in #(
24889 *posix*) :
24890 set -o posix ;; #(
24891 *) :
24893 esac
24897 as_nl='
24899 export as_nl
24900 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24901 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24902 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24903 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24904 # Prefer a ksh shell builtin over an external printf program on Solaris,
24905 # but without wasting forks for bash or zsh.
24906 if test -z "$BASH_VERSION$ZSH_VERSION" \
24907 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24908 as_echo='print -r --'
24909 as_echo_n='print -rn --'
24910 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24911 as_echo='printf %s\n'
24912 as_echo_n='printf %s'
24913 else
24914 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24915 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24916 as_echo_n='/usr/ucb/echo -n'
24917 else
24918 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24919 as_echo_n_body='eval
24920 arg=$1;
24921 case $arg in #(
24922 *"$as_nl"*)
24923 expr "X$arg" : "X\\(.*\\)$as_nl";
24924 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24925 esac;
24926 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24928 export as_echo_n_body
24929 as_echo_n='sh -c $as_echo_n_body as_echo'
24931 export as_echo_body
24932 as_echo='sh -c $as_echo_body as_echo'
24935 # The user is always right.
24936 if test "${PATH_SEPARATOR+set}" != set; then
24937 PATH_SEPARATOR=:
24938 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24939 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24940 PATH_SEPARATOR=';'
24945 # IFS
24946 # We need space, tab and new line, in precisely that order. Quoting is
24947 # there to prevent editors from complaining about space-tab.
24948 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24949 # splitting by setting IFS to empty value.)
24950 IFS=" "" $as_nl"
24952 # Find who we are. Look in the path if we contain no directory separator.
24953 case $0 in #((
24954 *[\\/]* ) as_myself=$0 ;;
24955 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24956 for as_dir in $PATH
24958 IFS=$as_save_IFS
24959 test -z "$as_dir" && as_dir=.
24960 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24961 done
24962 IFS=$as_save_IFS
24965 esac
24966 # We did not find ourselves, most probably we were run as `sh COMMAND'
24967 # in which case we are not to be found in the path.
24968 if test "x$as_myself" = x; then
24969 as_myself=$0
24971 if test ! -f "$as_myself"; then
24972 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24973 exit 1
24976 # Unset variables that we do not need and which cause bugs (e.g. in
24977 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24978 # suppresses any "Segmentation fault" message there. '((' could
24979 # trigger a bug in pdksh 5.2.14.
24980 for as_var in BASH_ENV ENV MAIL MAILPATH
24981 do eval test x\${$as_var+set} = xset \
24982 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24983 done
24984 PS1='$ '
24985 PS2='> '
24986 PS4='+ '
24988 # NLS nuisances.
24989 LC_ALL=C
24990 export LC_ALL
24991 LANGUAGE=C
24992 export LANGUAGE
24994 # CDPATH.
24995 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24998 # as_fn_error ERROR [LINENO LOG_FD]
24999 # ---------------------------------
25000 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25001 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25002 # script with status $?, using 1 if that was 0.
25003 as_fn_error ()
25005 as_status=$?; test $as_status -eq 0 && as_status=1
25006 if test "$3"; then
25007 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25008 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25010 $as_echo "$as_me: error: $1" >&2
25011 as_fn_exit $as_status
25012 } # as_fn_error
25015 # as_fn_set_status STATUS
25016 # -----------------------
25017 # Set $? to STATUS, without forking.
25018 as_fn_set_status ()
25020 return $1
25021 } # as_fn_set_status
25023 # as_fn_exit STATUS
25024 # -----------------
25025 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25026 as_fn_exit ()
25028 set +e
25029 as_fn_set_status $1
25030 exit $1
25031 } # as_fn_exit
25033 # as_fn_unset VAR
25034 # ---------------
25035 # Portably unset VAR.
25036 as_fn_unset ()
25038 { eval $1=; unset $1;}
25040 as_unset=as_fn_unset
25041 # as_fn_append VAR VALUE
25042 # ----------------------
25043 # Append the text in VALUE to the end of the definition contained in VAR. Take
25044 # advantage of any shell optimizations that allow amortized linear growth over
25045 # repeated appends, instead of the typical quadratic growth present in naive
25046 # implementations.
25047 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25048 eval 'as_fn_append ()
25050 eval $1+=\$2
25052 else
25053 as_fn_append ()
25055 eval $1=\$$1\$2
25057 fi # as_fn_append
25059 # as_fn_arith ARG...
25060 # ------------------
25061 # Perform arithmetic evaluation on the ARGs, and store the result in the
25062 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25063 # must be portable across $(()) and expr.
25064 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25065 eval 'as_fn_arith ()
25067 as_val=$(( $* ))
25069 else
25070 as_fn_arith ()
25072 as_val=`expr "$@" || test $? -eq 1`
25074 fi # as_fn_arith
25077 if expr a : '\(a\)' >/dev/null 2>&1 &&
25078 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25079 as_expr=expr
25080 else
25081 as_expr=false
25084 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25085 as_basename=basename
25086 else
25087 as_basename=false
25090 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25091 as_dirname=dirname
25092 else
25093 as_dirname=false
25096 as_me=`$as_basename -- "$0" ||
25097 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25098 X"$0" : 'X\(//\)$' \| \
25099 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25100 $as_echo X/"$0" |
25101 sed '/^.*\/\([^/][^/]*\)\/*$/{
25102 s//\1/
25105 /^X\/\(\/\/\)$/{
25106 s//\1/
25109 /^X\/\(\/\).*/{
25110 s//\1/
25113 s/.*/./; q'`
25115 # Avoid depending upon Character Ranges.
25116 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25117 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25118 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25119 as_cr_digits='0123456789'
25120 as_cr_alnum=$as_cr_Letters$as_cr_digits
25122 ECHO_C= ECHO_N= ECHO_T=
25123 case `echo -n x` in #(((((
25124 -n*)
25125 case `echo 'xy\c'` in
25126 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25127 xy) ECHO_C='\c';;
25128 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25129 ECHO_T=' ';;
25130 esac;;
25132 ECHO_N='-n';;
25133 esac
25135 rm -f conf$$ conf$$.exe conf$$.file
25136 if test -d conf$$.dir; then
25137 rm -f conf$$.dir/conf$$.file
25138 else
25139 rm -f conf$$.dir
25140 mkdir conf$$.dir 2>/dev/null
25142 if (echo >conf$$.file) 2>/dev/null; then
25143 if ln -s conf$$.file conf$$ 2>/dev/null; then
25144 as_ln_s='ln -s'
25145 # ... but there are two gotchas:
25146 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25147 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25148 # In both cases, we have to default to `cp -p'.
25149 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25150 as_ln_s='cp -p'
25151 elif ln conf$$.file conf$$ 2>/dev/null; then
25152 as_ln_s=ln
25153 else
25154 as_ln_s='cp -p'
25156 else
25157 as_ln_s='cp -p'
25159 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25160 rmdir conf$$.dir 2>/dev/null
25163 # as_fn_mkdir_p
25164 # -------------
25165 # Create "$as_dir" as a directory, including parents if necessary.
25166 as_fn_mkdir_p ()
25169 case $as_dir in #(
25170 -*) as_dir=./$as_dir;;
25171 esac
25172 test -d "$as_dir" || eval $as_mkdir_p || {
25173 as_dirs=
25174 while :; do
25175 case $as_dir in #(
25176 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25177 *) as_qdir=$as_dir;;
25178 esac
25179 as_dirs="'$as_qdir' $as_dirs"
25180 as_dir=`$as_dirname -- "$as_dir" ||
25181 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25182 X"$as_dir" : 'X\(//\)[^/]' \| \
25183 X"$as_dir" : 'X\(//\)$' \| \
25184 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25185 $as_echo X"$as_dir" |
25186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25187 s//\1/
25190 /^X\(\/\/\)[^/].*/{
25191 s//\1/
25194 /^X\(\/\/\)$/{
25195 s//\1/
25198 /^X\(\/\).*/{
25199 s//\1/
25202 s/.*/./; q'`
25203 test -d "$as_dir" && break
25204 done
25205 test -z "$as_dirs" || eval "mkdir $as_dirs"
25206 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25209 } # as_fn_mkdir_p
25210 if mkdir -p . 2>/dev/null; then
25211 as_mkdir_p='mkdir -p "$as_dir"'
25212 else
25213 test -d ./-p && rmdir ./-p
25214 as_mkdir_p=false
25217 if test -x / >/dev/null 2>&1; then
25218 as_test_x='test -x'
25219 else
25220 if ls -dL / >/dev/null 2>&1; then
25221 as_ls_L_option=L
25222 else
25223 as_ls_L_option=
25225 as_test_x='
25226 eval sh -c '\''
25227 if test -d "$1"; then
25228 test -d "$1/.";
25229 else
25230 case $1 in #(
25231 -*)set "./$1";;
25232 esac;
25233 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25234 ???[sx]*):;;*)false;;esac;fi
25235 '\'' sh
25238 as_executable_p=$as_test_x
25240 # Sed expression to map a string onto a valid CPP name.
25241 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25243 # Sed expression to map a string onto a valid variable name.
25244 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25247 exec 6>&1
25248 ## ----------------------------------- ##
25249 ## Main body of $CONFIG_STATUS script. ##
25250 ## ----------------------------------- ##
25251 _ASEOF
25252 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25254 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25255 # Save the log message, to keep $0 and so on meaningful, and to
25256 # report actual input values of CONFIG_FILES etc. instead of their
25257 # values after options handling.
25258 ac_log="
25259 This file was extended by libjava $as_me version-unused, which was
25260 generated by GNU Autoconf 2.64. Invocation command line was
25262 CONFIG_FILES = $CONFIG_FILES
25263 CONFIG_HEADERS = $CONFIG_HEADERS
25264 CONFIG_LINKS = $CONFIG_LINKS
25265 CONFIG_COMMANDS = $CONFIG_COMMANDS
25266 $ $0 $@
25268 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25271 _ACEOF
25273 case $ac_config_files in *"
25274 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25275 esac
25277 case $ac_config_headers in *"
25278 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25279 esac
25282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25283 # Files that config.status was made for.
25284 config_files="$ac_config_files"
25285 config_headers="$ac_config_headers"
25286 config_links="$ac_config_links"
25287 config_commands="$ac_config_commands"
25289 _ACEOF
25291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25292 ac_cs_usage="\
25293 \`$as_me' instantiates files and other configuration actions
25294 from templates according to the current configuration. Unless the files
25295 and actions are specified as TAGs, all are instantiated by default.
25297 Usage: $0 [OPTION]... [TAG]...
25299 -h, --help print this help, then exit
25300 -V, --version print version number and configuration settings, then exit
25301 -q, --quiet, --silent
25302 do not print progress messages
25303 -d, --debug don't remove temporary files
25304 --recheck update $as_me by reconfiguring in the same conditions
25305 --file=FILE[:TEMPLATE]
25306 instantiate the configuration file FILE
25307 --header=FILE[:TEMPLATE]
25308 instantiate the configuration header FILE
25310 Configuration files:
25311 $config_files
25313 Configuration headers:
25314 $config_headers
25316 Configuration links:
25317 $config_links
25319 Configuration commands:
25320 $config_commands
25322 Report bugs to the package provider."
25324 _ACEOF
25325 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25326 ac_cs_version="\\
25327 libjava config.status version-unused
25328 configured by $0, generated by GNU Autoconf 2.64,
25329 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25331 Copyright (C) 2009 Free Software Foundation, Inc.
25332 This config.status script is free software; the Free Software Foundation
25333 gives unlimited permission to copy, distribute and modify it."
25335 ac_pwd='$ac_pwd'
25336 srcdir='$srcdir'
25337 INSTALL='$INSTALL'
25338 MKDIR_P='$MKDIR_P'
25339 AWK='$AWK'
25340 test -n "\$AWK" || AWK=awk
25341 _ACEOF
25343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25344 # The default lists apply if the user does not specify any file.
25345 ac_need_defaults=:
25346 while test $# != 0
25348 case $1 in
25349 --*=*)
25350 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25351 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25352 ac_shift=:
25355 ac_option=$1
25356 ac_optarg=$2
25357 ac_shift=shift
25359 esac
25361 case $ac_option in
25362 # Handling of the options.
25363 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25364 ac_cs_recheck=: ;;
25365 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25366 $as_echo "$ac_cs_version"; exit ;;
25367 --debug | --debu | --deb | --de | --d | -d )
25368 debug=: ;;
25369 --file | --fil | --fi | --f )
25370 $ac_shift
25371 case $ac_optarg in
25372 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25373 esac
25374 as_fn_append CONFIG_FILES " '$ac_optarg'"
25375 ac_need_defaults=false;;
25376 --header | --heade | --head | --hea )
25377 $ac_shift
25378 case $ac_optarg in
25379 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25380 esac
25381 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25382 ac_need_defaults=false;;
25383 --he | --h)
25384 # Conflict between --help and --header
25385 as_fn_error "ambiguous option: \`$1'
25386 Try \`$0 --help' for more information.";;
25387 --help | --hel | -h )
25388 $as_echo "$ac_cs_usage"; exit ;;
25389 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25390 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25391 ac_cs_silent=: ;;
25393 # This is an error.
25394 -*) as_fn_error "unrecognized option: \`$1'
25395 Try \`$0 --help' for more information." ;;
25397 *) as_fn_append ac_config_targets " $1"
25398 ac_need_defaults=false ;;
25400 esac
25401 shift
25402 done
25404 ac_configure_extra_args=
25406 if $ac_cs_silent; then
25407 exec 6>/dev/null
25408 ac_configure_extra_args="$ac_configure_extra_args --silent"
25411 _ACEOF
25412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25413 if \$ac_cs_recheck; then
25414 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25415 shift
25416 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25417 CONFIG_SHELL='$SHELL'
25418 export CONFIG_SHELL
25419 exec "\$@"
25422 _ACEOF
25423 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25424 exec 5>>config.log
25426 echo
25427 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25428 ## Running $as_me. ##
25429 _ASBOX
25430 $as_echo "$ac_log"
25431 } >&5
25433 _ACEOF
25434 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25436 # INIT-COMMANDS
25439 srcdir="$srcdir"
25440 host="$host"
25441 target="$target"
25442 with_multisubdir="$with_multisubdir"
25443 with_multisrctop="$with_multisrctop"
25444 with_target_subdir="$with_target_subdir"
25445 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25446 multi_basedir="$multi_basedir"
25447 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25448 CC="$CC"
25449 CXX="$CXX"
25450 GFORTRAN="$GFORTRAN"
25451 GCJ="$GCJ"
25452 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25455 # The HP-UX ksh and POSIX shell print the target directory to stdout
25456 # if CDPATH is set.
25457 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25459 sed_quote_subst='$sed_quote_subst'
25460 double_quote_subst='$double_quote_subst'
25461 delay_variable_subst='$delay_variable_subst'
25462 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25463 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25464 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25465 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25466 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25467 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25468 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25469 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25470 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25471 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25472 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25473 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25474 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25475 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25476 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25477 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25478 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25479 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25480 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25481 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25482 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25483 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25484 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25485 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25486 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25487 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25488 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25489 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25490 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25491 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25492 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25493 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25494 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25495 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25496 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25497 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25498 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25499 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25500 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25501 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25502 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25503 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25504 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25505 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25506 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25507 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25508 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25509 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25510 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
25511 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25512 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25513 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25514 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25515 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25516 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25517 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25518 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25519 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25520 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25521 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25522 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25523 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25524 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25525 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25526 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25527 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25528 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25529 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25530 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25531 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25532 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25533 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25534 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25535 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25536 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25537 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25538 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25539 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25540 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25541 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25542 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25543 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25544 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25545 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25546 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25547 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25548 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25549 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25550 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25551 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25552 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25553 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25554 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25555 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25556 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25557 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25558 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25559 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25560 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25561 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25562 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25563 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25564 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25565 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25566 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25567 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25568 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25569 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25570 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25571 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25572 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25573 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25574 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25575 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25576 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25577 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25578 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25579 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25580 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25581 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25582 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25583 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25584 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25585 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25586 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25587 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25588 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25589 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25590 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25591 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25592 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25593 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25594 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25595 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25596 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25597 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25598 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25599 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25600 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25601 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25602 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25603 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25604 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25605 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25606 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25607 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25608 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25609 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25610 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25611 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25612 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25613 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25614 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25615 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25616 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25617 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25618 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25619 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25620 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25621 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25622 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25623 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25624 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25625 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25626 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25627 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25628 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25629 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25630 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25631 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25632 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25633 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25634 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25635 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25636 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25637 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25638 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25639 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25640 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25641 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25642 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25643 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25644 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25645 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25646 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25647 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25648 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25649 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25650 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25651 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25652 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25653 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25654 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25655 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25656 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25657 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25658 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25659 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25660 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25661 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25662 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25663 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25664 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25665 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25666 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25667 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25668 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25669 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25670 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25671 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25672 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25673 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
25674 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25675 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
25676 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25677 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25678 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25679 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25680 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25681 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
25682 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25683 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
25684 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25685 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
25687 LTCC='$LTCC'
25688 LTCFLAGS='$LTCFLAGS'
25689 compiler='$compiler_DEFAULT'
25691 # A function that is used when there is no print builtin or printf.
25692 func_fallback_echo ()
25694 eval 'cat <<_LTECHO_EOF
25696 _LTECHO_EOF'
25699 # Quote evaled strings.
25700 for var in SHELL \
25701 ECHO \
25702 SED \
25703 GREP \
25704 EGREP \
25705 FGREP \
25706 LD \
25707 NM \
25708 LN_S \
25709 lt_SP2NL \
25710 lt_NL2SP \
25711 reload_flag \
25712 OBJDUMP \
25713 deplibs_check_method \
25714 file_magic_cmd \
25715 AR \
25716 AR_FLAGS \
25717 STRIP \
25718 RANLIB \
25719 CC \
25720 CFLAGS \
25721 compiler \
25722 lt_cv_sys_global_symbol_pipe \
25723 lt_cv_sys_global_symbol_to_cdecl \
25724 lt_cv_sys_global_symbol_to_c_name_address \
25725 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25726 lt_prog_compiler_no_builtin_flag \
25727 lt_prog_compiler_wl \
25728 lt_prog_compiler_pic \
25729 lt_prog_compiler_static \
25730 lt_cv_prog_compiler_c_o \
25731 need_locks \
25732 DSYMUTIL \
25733 NMEDIT \
25734 LIPO \
25735 OTOOL \
25736 OTOOL64 \
25737 shrext_cmds \
25738 export_dynamic_flag_spec \
25739 whole_archive_flag_spec \
25740 compiler_needs_object \
25741 with_gnu_ld \
25742 allow_undefined_flag \
25743 no_undefined_flag \
25744 hardcode_libdir_flag_spec \
25745 hardcode_libdir_flag_spec_ld \
25746 hardcode_libdir_separator \
25747 fix_srcfile_path \
25748 exclude_expsyms \
25749 include_expsyms \
25750 file_list_spec \
25751 variables_saved_for_relink \
25752 libname_spec \
25753 library_names_spec \
25754 soname_spec \
25755 install_override_mode \
25756 finish_eval \
25757 old_striplib \
25758 striplib \
25759 compiler_lib_search_dirs \
25760 predep_objects \
25761 postdep_objects \
25762 predeps \
25763 postdeps \
25764 compiler_lib_search_path \
25765 LD_CXX \
25766 LD_GCJ \
25767 reload_flag_CXX \
25768 reload_flag_GCJ \
25769 compiler_CXX \
25770 compiler_GCJ \
25771 lt_prog_compiler_no_builtin_flag_CXX \
25772 lt_prog_compiler_no_builtin_flag_GCJ \
25773 lt_prog_compiler_wl_CXX \
25774 lt_prog_compiler_wl_GCJ \
25775 lt_prog_compiler_pic_CXX \
25776 lt_prog_compiler_pic_GCJ \
25777 lt_prog_compiler_static_CXX \
25778 lt_prog_compiler_static_GCJ \
25779 lt_cv_prog_compiler_c_o_CXX \
25780 lt_cv_prog_compiler_c_o_GCJ \
25781 export_dynamic_flag_spec_CXX \
25782 export_dynamic_flag_spec_GCJ \
25783 whole_archive_flag_spec_CXX \
25784 whole_archive_flag_spec_GCJ \
25785 compiler_needs_object_CXX \
25786 compiler_needs_object_GCJ \
25787 with_gnu_ld_CXX \
25788 with_gnu_ld_GCJ \
25789 allow_undefined_flag_CXX \
25790 allow_undefined_flag_GCJ \
25791 no_undefined_flag_CXX \
25792 no_undefined_flag_GCJ \
25793 hardcode_libdir_flag_spec_CXX \
25794 hardcode_libdir_flag_spec_GCJ \
25795 hardcode_libdir_flag_spec_ld_CXX \
25796 hardcode_libdir_flag_spec_ld_GCJ \
25797 hardcode_libdir_separator_CXX \
25798 hardcode_libdir_separator_GCJ \
25799 fix_srcfile_path_CXX \
25800 fix_srcfile_path_GCJ \
25801 exclude_expsyms_CXX \
25802 exclude_expsyms_GCJ \
25803 include_expsyms_CXX \
25804 include_expsyms_GCJ \
25805 file_list_spec_CXX \
25806 file_list_spec_GCJ \
25807 compiler_lib_search_dirs_CXX \
25808 compiler_lib_search_dirs_GCJ \
25809 predep_objects_CXX \
25810 predep_objects_GCJ \
25811 postdep_objects_CXX \
25812 postdep_objects_GCJ \
25813 predeps_CXX \
25814 predeps_GCJ \
25815 postdeps_CXX \
25816 postdeps_GCJ \
25817 compiler_lib_search_path_CXX \
25818 compiler_lib_search_path_GCJ; do
25819 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25820 *[\\\\\\\`\\"\\\$]*)
25821 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25824 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25826 esac
25827 done
25829 # Double-quote double-evaled strings.
25830 for var in reload_cmds \
25831 old_postinstall_cmds \
25832 old_postuninstall_cmds \
25833 old_archive_cmds \
25834 extract_expsyms_cmds \
25835 old_archive_from_new_cmds \
25836 old_archive_from_expsyms_cmds \
25837 archive_cmds \
25838 archive_expsym_cmds \
25839 module_cmds \
25840 module_expsym_cmds \
25841 export_symbols_cmds \
25842 prelink_cmds \
25843 postinstall_cmds \
25844 postuninstall_cmds \
25845 finish_cmds \
25846 sys_lib_search_path_spec \
25847 sys_lib_dlsearch_path_spec \
25848 reload_cmds_CXX \
25849 reload_cmds_GCJ \
25850 old_archive_cmds_CXX \
25851 old_archive_cmds_GCJ \
25852 old_archive_from_new_cmds_CXX \
25853 old_archive_from_new_cmds_GCJ \
25854 old_archive_from_expsyms_cmds_CXX \
25855 old_archive_from_expsyms_cmds_GCJ \
25856 archive_cmds_CXX \
25857 archive_cmds_GCJ \
25858 archive_expsym_cmds_CXX \
25859 archive_expsym_cmds_GCJ \
25860 module_cmds_CXX \
25861 module_cmds_GCJ \
25862 module_expsym_cmds_CXX \
25863 module_expsym_cmds_GCJ \
25864 export_symbols_cmds_CXX \
25865 export_symbols_cmds_GCJ \
25866 prelink_cmds_CXX \
25867 prelink_cmds_GCJ; do
25868 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25869 *[\\\\\\\`\\"\\\$]*)
25870 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25873 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25875 esac
25876 done
25878 ac_aux_dir='$ac_aux_dir'
25879 xsi_shell='$xsi_shell'
25880 lt_shell_append='$lt_shell_append'
25882 # See if we are running on zsh, and set the options which allow our
25883 # commands through without removal of \ escapes INIT.
25884 if test -n "\${ZSH_VERSION+set}" ; then
25885 setopt NO_GLOB_SUBST
25889 PACKAGE='$PACKAGE'
25890 VERSION='$VERSION'
25891 TIMESTAMP='$TIMESTAMP'
25892 RM='$RM'
25893 ofile='$ofile'
25902 _ACEOF
25904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25906 # Handling of arguments.
25907 for ac_config_target in $ac_config_targets
25909 case $ac_config_target in
25910 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25911 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25912 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25913 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
25914 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25915 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
25916 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
25917 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
25918 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
25919 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
25920 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
25921 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
25922 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
25923 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
25924 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
25925 "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" ;;
25926 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
25927 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
25928 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
25929 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
25930 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
25931 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
25932 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
25933 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25934 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
25935 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
25936 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
25937 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
25938 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25939 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
25940 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
25941 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
25942 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
25943 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
25944 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
25945 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
25947 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25948 esac
25949 done
25952 # If the user did not use the arguments to specify the items to instantiate,
25953 # then the envvar interface is used. Set only those that are not.
25954 # We use the long form for the default assignment because of an extremely
25955 # bizarre bug on SunOS 4.1.3.
25956 if $ac_need_defaults; then
25957 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25958 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25959 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25960 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25963 # Have a temporary directory for convenience. Make it in the build tree
25964 # simply because there is no reason against having it here, and in addition,
25965 # creating and moving files from /tmp can sometimes cause problems.
25966 # Hook for its removal unless debugging.
25967 # Note that there is a small window in which the directory will not be cleaned:
25968 # after its creation but before its name has been assigned to `$tmp'.
25969 $debug ||
25971 tmp=
25972 trap 'exit_status=$?
25973 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25975 trap 'as_fn_exit 1' 1 2 13 15
25977 # Create a (secure) tmp directory for tmp files.
25980 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25981 test -n "$tmp" && test -d "$tmp"
25982 } ||
25984 tmp=./conf$$-$RANDOM
25985 (umask 077 && mkdir "$tmp")
25986 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25988 # Set up the scripts for CONFIG_FILES section.
25989 # No need to generate them if there are no CONFIG_FILES.
25990 # This happens for instance with `./config.status config.h'.
25991 if test -n "$CONFIG_FILES"; then
25994 ac_cr=`echo X | tr X '\015'`
25995 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25996 # But we know of no other shell where ac_cr would be empty at this
25997 # point, so we can use a bashism as a fallback.
25998 if test "x$ac_cr" = x; then
25999 eval ac_cr=\$\'\\r\'
26001 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26002 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26003 ac_cs_awk_cr='\r'
26004 else
26005 ac_cs_awk_cr=$ac_cr
26008 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26009 _ACEOF
26013 echo "cat >conf$$subs.awk <<_ACEOF" &&
26014 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26015 echo "_ACEOF"
26016 } >conf$$subs.sh ||
26017 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26018 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26019 ac_delim='%!_!# '
26020 for ac_last_try in false false false false false :; do
26021 . ./conf$$subs.sh ||
26022 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26024 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26025 if test $ac_delim_n = $ac_delim_num; then
26026 break
26027 elif $ac_last_try; then
26028 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26029 else
26030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26032 done
26033 rm -f conf$$subs.sh
26035 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26036 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26037 _ACEOF
26038 sed -n '
26040 s/^/S["/; s/!.*/"]=/
26043 s/^[^!]*!//
26044 :repl
26045 t repl
26046 s/'"$ac_delim"'$//
26047 t delim
26050 s/\(.\{148\}\).*/\1/
26051 t more1
26052 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26055 b repl
26056 :more1
26057 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26060 s/.\{148\}//
26061 t nl
26062 :delim
26064 s/\(.\{148\}\).*/\1/
26065 t more2
26066 s/["\\]/\\&/g; s/^/"/; s/$/"/
26069 :more2
26070 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26073 s/.\{148\}//
26074 t delim
26075 ' <conf$$subs.awk | sed '
26076 /^[^""]/{
26078 s/\n//
26080 ' >>$CONFIG_STATUS || ac_write_fail=1
26081 rm -f conf$$subs.awk
26082 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26083 _ACAWK
26084 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26085 for (key in S) S_is_set[key] = 1
26086 FS = "\a"
26090 line = $ 0
26091 nfields = split(line, field, "@")
26092 substed = 0
26093 len = length(field[1])
26094 for (i = 2; i < nfields; i++) {
26095 key = field[i]
26096 keylen = length(key)
26097 if (S_is_set[key]) {
26098 value = S[key]
26099 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26100 len += length(value) + length(field[++i])
26101 substed = 1
26102 } else
26103 len += 1 + keylen
26106 print line
26109 _ACAWK
26110 _ACEOF
26111 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26112 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26113 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26114 else
26116 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26117 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26118 _ACEOF
26120 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26121 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26122 # trailing colons and then remove the whole line if VPATH becomes empty
26123 # (actually we leave an empty line to preserve line numbers).
26124 if test "x$srcdir" = x.; then
26125 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26126 s/:*\$(srcdir):*/:/
26127 s/:*\${srcdir}:*/:/
26128 s/:*@srcdir@:*/:/
26129 s/^\([^=]*=[ ]*\):*/\1/
26130 s/:*$//
26131 s/^[^=]*=[ ]*$//
26135 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26136 fi # test -n "$CONFIG_FILES"
26138 # Set up the scripts for CONFIG_HEADERS section.
26139 # No need to generate them if there are no CONFIG_HEADERS.
26140 # This happens for instance with `./config.status Makefile'.
26141 if test -n "$CONFIG_HEADERS"; then
26142 cat >"$tmp/defines.awk" <<\_ACAWK ||
26143 BEGIN {
26144 _ACEOF
26146 # Transform confdefs.h into an awk script `defines.awk', embedded as
26147 # here-document in config.status, that substitutes the proper values into
26148 # config.h.in to produce config.h.
26150 # Create a delimiter string that does not exist in confdefs.h, to ease
26151 # handling of long lines.
26152 ac_delim='%!_!# '
26153 for ac_last_try in false false :; do
26154 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26155 if test -z "$ac_t"; then
26156 break
26157 elif $ac_last_try; then
26158 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26159 else
26160 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26162 done
26164 # For the awk script, D is an array of macro values keyed by name,
26165 # likewise P contains macro parameters if any. Preserve backslash
26166 # newline sequences.
26168 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26169 sed -n '
26170 s/.\{148\}/&'"$ac_delim"'/g
26171 t rset
26172 :rset
26173 s/^[ ]*#[ ]*define[ ][ ]*/ /
26174 t def
26176 :def
26177 s/\\$//
26178 t bsnl
26179 s/["\\]/\\&/g
26180 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26181 D["\1"]=" \3"/p
26182 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26184 :bsnl
26185 s/["\\]/\\&/g
26186 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26187 D["\1"]=" \3\\\\\\n"\\/p
26188 t cont
26189 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26190 t cont
26192 :cont
26194 s/.\{148\}/&'"$ac_delim"'/g
26195 t clear
26196 :clear
26197 s/\\$//
26198 t bsnlc
26199 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26201 :bsnlc
26202 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26203 b cont
26204 ' <confdefs.h | sed '
26205 s/'"$ac_delim"'/"\\\
26206 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26209 for (key in D) D_is_set[key] = 1
26210 FS = "\a"
26212 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26213 line = \$ 0
26214 split(line, arg, " ")
26215 if (arg[1] == "#") {
26216 defundef = arg[2]
26217 mac1 = arg[3]
26218 } else {
26219 defundef = substr(arg[1], 2)
26220 mac1 = arg[2]
26222 split(mac1, mac2, "(") #)
26223 macro = mac2[1]
26224 prefix = substr(line, 1, index(line, defundef) - 1)
26225 if (D_is_set[macro]) {
26226 # Preserve the white space surrounding the "#".
26227 print prefix "define", macro P[macro] D[macro]
26228 next
26229 } else {
26230 # Replace #undef with comments. This is necessary, for example,
26231 # in the case of _POSIX_SOURCE, which is predefined and required
26232 # on some systems where configure will not decide to define it.
26233 if (defundef == "undef") {
26234 print "/*", prefix defundef, macro, "*/"
26235 next
26239 { print }
26240 _ACAWK
26241 _ACEOF
26242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26243 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26244 fi # test -n "$CONFIG_HEADERS"
26247 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26248 shift
26249 for ac_tag
26251 case $ac_tag in
26252 :[FHLC]) ac_mode=$ac_tag; continue;;
26253 esac
26254 case $ac_mode$ac_tag in
26255 :[FHL]*:*);;
26256 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26257 :[FH]-) ac_tag=-:-;;
26258 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26259 esac
26260 ac_save_IFS=$IFS
26261 IFS=:
26262 set x $ac_tag
26263 IFS=$ac_save_IFS
26264 shift
26265 ac_file=$1
26266 shift
26268 case $ac_mode in
26269 :L) ac_source=$1;;
26270 :[FH])
26271 ac_file_inputs=
26272 for ac_f
26274 case $ac_f in
26275 -) ac_f="$tmp/stdin";;
26276 *) # Look for the file first in the build tree, then in the source tree
26277 # (if the path is not absolute). The absolute path cannot be DOS-style,
26278 # because $ac_f cannot contain `:'.
26279 test -f "$ac_f" ||
26280 case $ac_f in
26281 [\\/$]*) false;;
26282 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26283 esac ||
26284 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26285 esac
26286 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26287 as_fn_append ac_file_inputs " '$ac_f'"
26288 done
26290 # Let's still pretend it is `configure' which instantiates (i.e., don't
26291 # use $as_me), people would be surprised to read:
26292 # /* config.h. Generated by config.status. */
26293 configure_input='Generated from '`
26294 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26295 `' by configure.'
26296 if test x"$ac_file" != x-; then
26297 configure_input="$ac_file. $configure_input"
26298 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26299 $as_echo "$as_me: creating $ac_file" >&6;}
26301 # Neutralize special characters interpreted by sed in replacement strings.
26302 case $configure_input in #(
26303 *\&* | *\|* | *\\* )
26304 ac_sed_conf_input=`$as_echo "$configure_input" |
26305 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26306 *) ac_sed_conf_input=$configure_input;;
26307 esac
26309 case $ac_tag in
26310 *:-:* | *:-) cat >"$tmp/stdin" \
26311 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26312 esac
26314 esac
26316 ac_dir=`$as_dirname -- "$ac_file" ||
26317 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26318 X"$ac_file" : 'X\(//\)[^/]' \| \
26319 X"$ac_file" : 'X\(//\)$' \| \
26320 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26321 $as_echo X"$ac_file" |
26322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26323 s//\1/
26326 /^X\(\/\/\)[^/].*/{
26327 s//\1/
26330 /^X\(\/\/\)$/{
26331 s//\1/
26334 /^X\(\/\).*/{
26335 s//\1/
26338 s/.*/./; q'`
26339 as_dir="$ac_dir"; as_fn_mkdir_p
26340 ac_builddir=.
26342 case "$ac_dir" in
26343 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26345 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26346 # A ".." for each directory in $ac_dir_suffix.
26347 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26348 case $ac_top_builddir_sub in
26349 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26350 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26351 esac ;;
26352 esac
26353 ac_abs_top_builddir=$ac_pwd
26354 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26355 # for backward compatibility:
26356 ac_top_builddir=$ac_top_build_prefix
26358 case $srcdir in
26359 .) # We are building in place.
26360 ac_srcdir=.
26361 ac_top_srcdir=$ac_top_builddir_sub
26362 ac_abs_top_srcdir=$ac_pwd ;;
26363 [\\/]* | ?:[\\/]* ) # Absolute name.
26364 ac_srcdir=$srcdir$ac_dir_suffix;
26365 ac_top_srcdir=$srcdir
26366 ac_abs_top_srcdir=$srcdir ;;
26367 *) # Relative name.
26368 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26369 ac_top_srcdir=$ac_top_build_prefix$srcdir
26370 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26371 esac
26372 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26375 case $ac_mode in
26378 # CONFIG_FILE
26381 case $INSTALL in
26382 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26383 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26384 esac
26385 ac_MKDIR_P=$MKDIR_P
26386 case $MKDIR_P in
26387 [\\/$]* | ?:[\\/]* ) ;;
26388 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26389 esac
26390 _ACEOF
26392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26393 # If the template does not know about datarootdir, expand it.
26394 # FIXME: This hack should be removed a few years after 2.60.
26395 ac_datarootdir_hack=; ac_datarootdir_seen=
26396 ac_sed_dataroot='
26397 /datarootdir/ {
26401 /@datadir@/p
26402 /@docdir@/p
26403 /@infodir@/p
26404 /@localedir@/p
26405 /@mandir@/p'
26406 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26407 *datarootdir*) ac_datarootdir_seen=yes;;
26408 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26410 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26411 _ACEOF
26412 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26413 ac_datarootdir_hack='
26414 s&@datadir@&$datadir&g
26415 s&@docdir@&$docdir&g
26416 s&@infodir@&$infodir&g
26417 s&@localedir@&$localedir&g
26418 s&@mandir@&$mandir&g
26419 s&\\\${datarootdir}&$datarootdir&g' ;;
26420 esac
26421 _ACEOF
26423 # Neutralize VPATH when `$srcdir' = `.'.
26424 # Shell code in configure.ac might set extrasub.
26425 # FIXME: do we really want to maintain this feature?
26426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26427 ac_sed_extra="$ac_vpsub
26428 $extrasub
26429 _ACEOF
26430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26432 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26433 s|@configure_input@|$ac_sed_conf_input|;t t
26434 s&@top_builddir@&$ac_top_builddir_sub&;t t
26435 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26436 s&@srcdir@&$ac_srcdir&;t t
26437 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26438 s&@top_srcdir@&$ac_top_srcdir&;t t
26439 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26440 s&@builddir@&$ac_builddir&;t t
26441 s&@abs_builddir@&$ac_abs_builddir&;t t
26442 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26443 s&@INSTALL@&$ac_INSTALL&;t t
26444 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26445 $ac_datarootdir_hack
26447 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26448 || as_fn_error "could not create $ac_file" "$LINENO" 5
26450 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26451 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26452 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26454 which seems to be undefined. Please make sure it is defined." >&5
26455 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26456 which seems to be undefined. Please make sure it is defined." >&2;}
26458 rm -f "$tmp/stdin"
26459 case $ac_file in
26460 -) cat "$tmp/out" && rm -f "$tmp/out";;
26461 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26462 esac \
26463 || as_fn_error "could not create $ac_file" "$LINENO" 5
26467 # CONFIG_HEADER
26469 if test x"$ac_file" != x-; then
26471 $as_echo "/* $configure_input */" \
26472 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26473 } >"$tmp/config.h" \
26474 || as_fn_error "could not create $ac_file" "$LINENO" 5
26475 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26476 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26477 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26478 else
26479 rm -f "$ac_file"
26480 mv "$tmp/config.h" "$ac_file" \
26481 || as_fn_error "could not create $ac_file" "$LINENO" 5
26483 else
26484 $as_echo "/* $configure_input */" \
26485 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26486 || as_fn_error "could not create -" "$LINENO" 5
26488 # Compute "$ac_file"'s index in $config_headers.
26489 _am_arg="$ac_file"
26490 _am_stamp_count=1
26491 for _am_header in $config_headers :; do
26492 case $_am_header in
26493 $_am_arg | $_am_arg:* )
26494 break ;;
26496 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26497 esac
26498 done
26499 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26500 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26501 X"$_am_arg" : 'X\(//\)[^/]' \| \
26502 X"$_am_arg" : 'X\(//\)$' \| \
26503 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26504 $as_echo X"$_am_arg" |
26505 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26506 s//\1/
26509 /^X\(\/\/\)[^/].*/{
26510 s//\1/
26513 /^X\(\/\/\)$/{
26514 s//\1/
26517 /^X\(\/\).*/{
26518 s//\1/
26521 s/.*/./; q'`/stamp-h$_am_stamp_count
26525 # CONFIG_LINK
26528 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26530 else
26531 # Prefer the file from the source tree if names are identical.
26532 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26533 ac_source=$srcdir/$ac_source
26536 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26537 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26539 if test ! -r "$ac_source"; then
26540 as_fn_error "$ac_source: file not found" "$LINENO" 5
26542 rm -f "$ac_file"
26544 # Try a relative symlink, then a hard link, then a copy.
26545 case $srcdir in
26546 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26547 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26548 esac
26549 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26550 ln "$ac_source" "$ac_file" 2>/dev/null ||
26551 cp -p "$ac_source" "$ac_file" ||
26552 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26555 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26556 $as_echo "$as_me: executing $ac_file commands" >&6;}
26558 esac
26561 case $ac_file$ac_mode in
26562 "default-1":C)
26563 # Only add multilib support code if we just rebuilt the top-level
26564 # Makefile.
26565 case " $CONFIG_FILES " in
26566 *" Makefile "*)
26567 ac_file=Makefile . ${multi_basedir}/config-ml.in
26569 esac ;;
26570 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26571 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26572 # are listed without --file. Let's play safe and only enable the eval
26573 # if we detect the quoting.
26574 case $CONFIG_FILES in
26575 *\'*) eval set x "$CONFIG_FILES" ;;
26576 *) set x $CONFIG_FILES ;;
26577 esac
26578 shift
26579 for mf
26581 # Strip MF so we end up with the name of the file.
26582 mf=`echo "$mf" | sed -e 's/:.*$//'`
26583 # Check whether this is an Automake generated Makefile or not.
26584 # We used to match only the files named `Makefile.in', but
26585 # some people rename them; so instead we look at the file content.
26586 # Grep'ing the first line is not enough: some people post-process
26587 # each Makefile.in and add a new line on top of each file to say so.
26588 # Grep'ing the whole file is not good either: AIX grep has a line
26589 # limit of 2048, but all sed's we know have understand at least 4000.
26590 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26591 dirpart=`$as_dirname -- "$mf" ||
26592 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26593 X"$mf" : 'X\(//\)[^/]' \| \
26594 X"$mf" : 'X\(//\)$' \| \
26595 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26596 $as_echo X"$mf" |
26597 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26598 s//\1/
26601 /^X\(\/\/\)[^/].*/{
26602 s//\1/
26605 /^X\(\/\/\)$/{
26606 s//\1/
26609 /^X\(\/\).*/{
26610 s//\1/
26613 s/.*/./; q'`
26614 else
26615 continue
26617 # Extract the definition of DEPDIR, am__include, and am__quote
26618 # from the Makefile without running `make'.
26619 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26620 test -z "$DEPDIR" && continue
26621 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26622 test -z "am__include" && continue
26623 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26624 # When using ansi2knr, U may be empty or an underscore; expand it
26625 U=`sed -n 's/^U = //p' < "$mf"`
26626 # Find all dependency output files, they are included files with
26627 # $(DEPDIR) in their names. We invoke sed twice because it is the
26628 # simplest approach to changing $(DEPDIR) to its actual value in the
26629 # expansion.
26630 for file in `sed -n "
26631 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26632 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26633 # Make sure the directory exists.
26634 test -f "$dirpart/$file" && continue
26635 fdir=`$as_dirname -- "$file" ||
26636 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26637 X"$file" : 'X\(//\)[^/]' \| \
26638 X"$file" : 'X\(//\)$' \| \
26639 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26640 $as_echo X"$file" |
26641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26642 s//\1/
26645 /^X\(\/\/\)[^/].*/{
26646 s//\1/
26649 /^X\(\/\/\)$/{
26650 s//\1/
26653 /^X\(\/\).*/{
26654 s//\1/
26657 s/.*/./; q'`
26658 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26659 # echo "creating $dirpart/$file"
26660 echo '# dummy' > "$dirpart/$file"
26661 done
26662 done
26665 "libtool":C)
26667 # See if we are running on zsh, and set the options which allow our
26668 # commands through without removal of \ escapes.
26669 if test -n "${ZSH_VERSION+set}" ; then
26670 setopt NO_GLOB_SUBST
26673 cfgfile="${ofile}T"
26674 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26675 $RM "$cfgfile"
26677 cat <<_LT_EOF >> "$cfgfile"
26678 #! $SHELL
26680 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26681 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26682 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26683 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26685 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26686 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26687 # Written by Gordon Matzigkeit, 1996
26689 # This file is part of GNU Libtool.
26691 # GNU Libtool is free software; you can redistribute it and/or
26692 # modify it under the terms of the GNU General Public License as
26693 # published by the Free Software Foundation; either version 2 of
26694 # the License, or (at your option) any later version.
26696 # As a special exception to the GNU General Public License,
26697 # if you distribute this file as part of a program or library that
26698 # is built using GNU Libtool, you may include this file under the
26699 # same distribution terms that you use for the rest of that program.
26701 # GNU Libtool is distributed in the hope that it will be useful,
26702 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26703 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26704 # GNU General Public License for more details.
26706 # You should have received a copy of the GNU General Public License
26707 # along with GNU Libtool; see the file COPYING. If not, a copy
26708 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26709 # obtained by writing to the Free Software Foundation, Inc.,
26710 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26713 # The names of the tagged configurations supported by this script.
26714 available_tags="CXX GCJ "
26716 # ### BEGIN LIBTOOL CONFIG
26718 # Which release of libtool.m4 was used?
26719 macro_version=$macro_version
26720 macro_revision=$macro_revision
26722 # Whether or not to build shared libraries.
26723 build_libtool_libs=$enable_shared
26725 # Whether or not to build static libraries.
26726 build_old_libs=$enable_static
26728 # What type of objects to build.
26729 pic_mode=$pic_mode
26731 # Whether or not to optimize for fast installation.
26732 fast_install=$enable_fast_install
26734 # Shell to use when invoking shell scripts.
26735 SHELL=$lt_SHELL
26737 # An echo program that protects backslashes.
26738 ECHO=$lt_ECHO
26740 # The host system.
26741 host_alias=$host_alias
26742 host=$host
26743 host_os=$host_os
26745 # The build system.
26746 build_alias=$build_alias
26747 build=$build
26748 build_os=$build_os
26750 # A sed program that does not truncate output.
26751 SED=$lt_SED
26753 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26754 Xsed="\$SED -e 1s/^X//"
26756 # A grep program that handles long lines.
26757 GREP=$lt_GREP
26759 # An ERE matcher.
26760 EGREP=$lt_EGREP
26762 # A literal string matcher.
26763 FGREP=$lt_FGREP
26765 # A BSD- or MS-compatible name lister.
26766 NM=$lt_NM
26768 # Whether we need soft or hard links.
26769 LN_S=$lt_LN_S
26771 # What is the maximum length of a command?
26772 max_cmd_len=$max_cmd_len
26774 # Object file suffix (normally "o").
26775 objext=$ac_objext
26777 # Executable file suffix (normally "").
26778 exeext=$exeext
26780 # whether the shell understands "unset".
26781 lt_unset=$lt_unset
26783 # turn spaces into newlines.
26784 SP2NL=$lt_lt_SP2NL
26786 # turn newlines into spaces.
26787 NL2SP=$lt_lt_NL2SP
26789 # An object symbol dumper.
26790 OBJDUMP=$lt_OBJDUMP
26792 # Method to check whether dependent libraries are shared objects.
26793 deplibs_check_method=$lt_deplibs_check_method
26795 # Command to use when deplibs_check_method == "file_magic".
26796 file_magic_cmd=$lt_file_magic_cmd
26798 # The archiver.
26799 AR=$lt_AR
26800 AR_FLAGS=$lt_AR_FLAGS
26802 # A symbol stripping program.
26803 STRIP=$lt_STRIP
26805 # Commands used to install an old-style archive.
26806 RANLIB=$lt_RANLIB
26807 old_postinstall_cmds=$lt_old_postinstall_cmds
26808 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26810 # Whether to use a lock for old archive extraction.
26811 lock_old_archive_extraction=$lock_old_archive_extraction
26813 # A C compiler.
26814 LTCC=$lt_CC
26816 # LTCC compiler flags.
26817 LTCFLAGS=$lt_CFLAGS
26819 # Take the output of nm and produce a listing of raw symbols and C names.
26820 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26822 # Transform the output of nm in a proper C declaration.
26823 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26825 # Transform the output of nm in a C name address pair.
26826 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26828 # Transform the output of nm in a C name address pair when lib prefix is needed.
26829 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26831 # The name of the directory that contains temporary libtool files.
26832 objdir=$objdir
26834 # Used to examine libraries when file_magic_cmd begins with "file".
26835 MAGIC_CMD=$MAGIC_CMD
26837 # Must we lock files when doing compilation?
26838 need_locks=$lt_need_locks
26840 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26841 DSYMUTIL=$lt_DSYMUTIL
26843 # Tool to change global to local symbols on Mac OS X.
26844 NMEDIT=$lt_NMEDIT
26846 # Tool to manipulate fat objects and archives on Mac OS X.
26847 LIPO=$lt_LIPO
26849 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26850 OTOOL=$lt_OTOOL
26852 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26853 OTOOL64=$lt_OTOOL64
26855 # Old archive suffix (normally "a").
26856 libext=$libext
26858 # Shared library suffix (normally ".so").
26859 shrext_cmds=$lt_shrext_cmds
26861 # The commands to extract the exported symbol list from a shared archive.
26862 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26864 # Variables whose values should be saved in libtool wrapper scripts and
26865 # restored at link time.
26866 variables_saved_for_relink=$lt_variables_saved_for_relink
26868 # Do we need the "lib" prefix for modules?
26869 need_lib_prefix=$need_lib_prefix
26871 # Do we need a version for libraries?
26872 need_version=$need_version
26874 # Library versioning type.
26875 version_type=$version_type
26877 # Shared library runtime path variable.
26878 runpath_var=$runpath_var
26880 # Shared library path variable.
26881 shlibpath_var=$shlibpath_var
26883 # Is shlibpath searched before the hard-coded library search path?
26884 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26886 # Format of library name prefix.
26887 libname_spec=$lt_libname_spec
26889 # List of archive names. First name is the real one, the rest are links.
26890 # The last name is the one that the linker finds with -lNAME
26891 library_names_spec=$lt_library_names_spec
26893 # The coded name of the library, if different from the real name.
26894 soname_spec=$lt_soname_spec
26896 # Permission mode override for installation of shared libraries.
26897 install_override_mode=$lt_install_override_mode
26899 # Command to use after installation of a shared archive.
26900 postinstall_cmds=$lt_postinstall_cmds
26902 # Command to use after uninstallation of a shared archive.
26903 postuninstall_cmds=$lt_postuninstall_cmds
26905 # Commands used to finish a libtool library installation in a directory.
26906 finish_cmds=$lt_finish_cmds
26908 # As "finish_cmds", except a single script fragment to be evaled but
26909 # not shown.
26910 finish_eval=$lt_finish_eval
26912 # Whether we should hardcode library paths into libraries.
26913 hardcode_into_libs=$hardcode_into_libs
26915 # Compile-time system search path for libraries.
26916 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26918 # Run-time system search path for libraries.
26919 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26921 # Whether dlopen is supported.
26922 dlopen_support=$enable_dlopen
26924 # Whether dlopen of programs is supported.
26925 dlopen_self=$enable_dlopen_self
26927 # Whether dlopen of statically linked programs is supported.
26928 dlopen_self_static=$enable_dlopen_self_static
26930 # Commands to strip libraries.
26931 old_striplib=$lt_old_striplib
26932 striplib=$lt_striplib
26935 # The linker used to build libraries.
26936 LD=$lt_LD
26938 # How to create reloadable object files.
26939 reload_flag=$lt_reload_flag
26940 reload_cmds=$lt_reload_cmds
26942 # Commands used to build an old-style archive.
26943 old_archive_cmds=$lt_old_archive_cmds
26945 # A language specific compiler.
26946 CC=$lt_compiler
26948 # Is the compiler the GNU compiler?
26949 with_gcc=$GCC
26951 # Compiler flag to turn off builtin functions.
26952 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26954 # How to pass a linker flag through the compiler.
26955 wl=$lt_lt_prog_compiler_wl
26957 # Additional compiler flags for building library objects.
26958 pic_flag=$lt_lt_prog_compiler_pic
26960 # Compiler flag to prevent dynamic linking.
26961 link_static_flag=$lt_lt_prog_compiler_static
26963 # Does compiler simultaneously support -c and -o options?
26964 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26966 # Whether or not to add -lc for building shared libraries.
26967 build_libtool_need_lc=$archive_cmds_need_lc
26969 # Whether or not to disallow shared libs when runtime libs are static.
26970 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26972 # Compiler flag to allow reflexive dlopens.
26973 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26975 # Compiler flag to generate shared objects directly from archives.
26976 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26978 # Whether the compiler copes with passing no objects directly.
26979 compiler_needs_object=$lt_compiler_needs_object
26981 # Create an old-style archive from a shared archive.
26982 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26984 # Create a temporary old-style archive to link instead of a shared archive.
26985 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26987 # Commands used to build a shared archive.
26988 archive_cmds=$lt_archive_cmds
26989 archive_expsym_cmds=$lt_archive_expsym_cmds
26991 # Commands used to build a loadable module if different from building
26992 # a shared archive.
26993 module_cmds=$lt_module_cmds
26994 module_expsym_cmds=$lt_module_expsym_cmds
26996 # Whether we are building with GNU ld or not.
26997 with_gnu_ld=$lt_with_gnu_ld
26999 # Flag that allows shared libraries with undefined symbols to be built.
27000 allow_undefined_flag=$lt_allow_undefined_flag
27002 # Flag that enforces no undefined symbols.
27003 no_undefined_flag=$lt_no_undefined_flag
27005 # Flag to hardcode \$libdir into a binary during linking.
27006 # This must work even if \$libdir does not exist
27007 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27009 # If ld is used when linking, flag to hardcode \$libdir into a binary
27010 # during linking. This must work even if \$libdir does not exist.
27011 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27013 # Whether we need a single "-rpath" flag with a separated argument.
27014 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27016 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27017 # DIR into the resulting binary.
27018 hardcode_direct=$hardcode_direct
27020 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27021 # DIR into the resulting binary and the resulting library dependency is
27022 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27023 # library is relocated.
27024 hardcode_direct_absolute=$hardcode_direct_absolute
27026 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27027 # into the resulting binary.
27028 hardcode_minus_L=$hardcode_minus_L
27030 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27031 # into the resulting binary.
27032 hardcode_shlibpath_var=$hardcode_shlibpath_var
27034 # Set to "yes" if building a shared library automatically hardcodes DIR
27035 # into the library and all subsequent libraries and executables linked
27036 # against it.
27037 hardcode_automatic=$hardcode_automatic
27039 # Set to yes if linker adds runtime paths of dependent libraries
27040 # to runtime path list.
27041 inherit_rpath=$inherit_rpath
27043 # Whether libtool must link a program against all its dependency libraries.
27044 link_all_deplibs=$link_all_deplibs
27046 # Fix the shell variable \$srcfile for the compiler.
27047 fix_srcfile_path=$lt_fix_srcfile_path
27049 # Set to "yes" if exported symbols are required.
27050 always_export_symbols=$always_export_symbols
27052 # The commands to list exported symbols.
27053 export_symbols_cmds=$lt_export_symbols_cmds
27055 # Symbols that should not be listed in the preloaded symbols.
27056 exclude_expsyms=$lt_exclude_expsyms
27058 # Symbols that must always be exported.
27059 include_expsyms=$lt_include_expsyms
27061 # Commands necessary for linking programs (against libraries) with templates.
27062 prelink_cmds=$lt_prelink_cmds
27064 # Specify filename containing input files.
27065 file_list_spec=$lt_file_list_spec
27067 # How to hardcode a shared library path into an executable.
27068 hardcode_action=$hardcode_action
27070 # The directories searched by this compiler when creating a shared library.
27071 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27073 # Dependencies to place before and after the objects being linked to
27074 # create a shared library.
27075 predep_objects=$lt_predep_objects
27076 postdep_objects=$lt_postdep_objects
27077 predeps=$lt_predeps
27078 postdeps=$lt_postdeps
27080 # The library search path used internally by the compiler when linking
27081 # a shared library.
27082 compiler_lib_search_path=$lt_compiler_lib_search_path
27084 # ### END LIBTOOL CONFIG
27086 _LT_EOF
27088 case $host_os in
27089 aix3*)
27090 cat <<\_LT_EOF >> "$cfgfile"
27091 # AIX sometimes has problems with the GCC collect2 program. For some
27092 # reason, if we set the COLLECT_NAMES environment variable, the problems
27093 # vanish in a puff of smoke.
27094 if test "X${COLLECT_NAMES+set}" != Xset; then
27095 COLLECT_NAMES=
27096 export COLLECT_NAMES
27098 _LT_EOF
27100 esac
27103 ltmain="$ac_aux_dir/ltmain.sh"
27106 # We use sed instead of cat because bash on DJGPP gets confused if
27107 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27108 # text mode, it properly converts lines to CR/LF. This bash problem
27109 # is reportedly fixed, but why not run on old versions too?
27110 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27111 || (rm -f "$cfgfile"; exit 1)
27113 case $xsi_shell in
27114 yes)
27115 cat << \_LT_EOF >> "$cfgfile"
27117 # func_dirname file append nondir_replacement
27118 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27119 # otherwise set result to NONDIR_REPLACEMENT.
27120 func_dirname ()
27122 case ${1} in
27123 */*) func_dirname_result="${1%/*}${2}" ;;
27124 * ) func_dirname_result="${3}" ;;
27125 esac
27128 # func_basename file
27129 func_basename ()
27131 func_basename_result="${1##*/}"
27134 # func_dirname_and_basename file append nondir_replacement
27135 # perform func_basename and func_dirname in a single function
27136 # call:
27137 # dirname: Compute the dirname of FILE. If nonempty,
27138 # add APPEND to the result, otherwise set result
27139 # to NONDIR_REPLACEMENT.
27140 # value returned in "$func_dirname_result"
27141 # basename: Compute filename of FILE.
27142 # value retuned in "$func_basename_result"
27143 # Implementation must be kept synchronized with func_dirname
27144 # and func_basename. For efficiency, we do not delegate to
27145 # those functions but instead duplicate the functionality here.
27146 func_dirname_and_basename ()
27148 case ${1} in
27149 */*) func_dirname_result="${1%/*}${2}" ;;
27150 * ) func_dirname_result="${3}" ;;
27151 esac
27152 func_basename_result="${1##*/}"
27155 # func_stripname prefix suffix name
27156 # strip PREFIX and SUFFIX off of NAME.
27157 # PREFIX and SUFFIX must not contain globbing or regex special
27158 # characters, hashes, percent signs, but SUFFIX may contain a leading
27159 # dot (in which case that matches only a dot).
27160 func_stripname ()
27162 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27163 # positional parameters, so assign one to ordinary parameter first.
27164 func_stripname_result=${3}
27165 func_stripname_result=${func_stripname_result#"${1}"}
27166 func_stripname_result=${func_stripname_result%"${2}"}
27169 # func_opt_split
27170 func_opt_split ()
27172 func_opt_split_opt=${1%%=*}
27173 func_opt_split_arg=${1#*=}
27176 # func_lo2o object
27177 func_lo2o ()
27179 case ${1} in
27180 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27181 *) func_lo2o_result=${1} ;;
27182 esac
27185 # func_xform libobj-or-source
27186 func_xform ()
27188 func_xform_result=${1%.*}.lo
27191 # func_arith arithmetic-term...
27192 func_arith ()
27194 func_arith_result=$(( $* ))
27197 # func_len string
27198 # STRING may not start with a hyphen.
27199 func_len ()
27201 func_len_result=${#1}
27204 _LT_EOF
27206 *) # Bourne compatible functions.
27207 cat << \_LT_EOF >> "$cfgfile"
27209 # func_dirname file append nondir_replacement
27210 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27211 # otherwise set result to NONDIR_REPLACEMENT.
27212 func_dirname ()
27214 # Extract subdirectory from the argument.
27215 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27216 if test "X$func_dirname_result" = "X${1}"; then
27217 func_dirname_result="${3}"
27218 else
27219 func_dirname_result="$func_dirname_result${2}"
27223 # func_basename file
27224 func_basename ()
27226 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27230 # func_stripname prefix suffix name
27231 # strip PREFIX and SUFFIX off of NAME.
27232 # PREFIX and SUFFIX must not contain globbing or regex special
27233 # characters, hashes, percent signs, but SUFFIX may contain a leading
27234 # dot (in which case that matches only a dot).
27235 # func_strip_suffix prefix name
27236 func_stripname ()
27238 case ${2} in
27239 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27240 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27241 esac
27244 # sed scripts:
27245 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27246 my_sed_long_arg='1s/^-[^=]*=//'
27248 # func_opt_split
27249 func_opt_split ()
27251 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27252 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27255 # func_lo2o object
27256 func_lo2o ()
27258 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27261 # func_xform libobj-or-source
27262 func_xform ()
27264 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27267 # func_arith arithmetic-term...
27268 func_arith ()
27270 func_arith_result=`expr "$@"`
27273 # func_len string
27274 # STRING may not start with a hyphen.
27275 func_len ()
27277 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27280 _LT_EOF
27281 esac
27283 case $lt_shell_append in
27284 yes)
27285 cat << \_LT_EOF >> "$cfgfile"
27287 # func_append var value
27288 # Append VALUE to the end of shell variable VAR.
27289 func_append ()
27291 eval "$1+=\$2"
27293 _LT_EOF
27296 cat << \_LT_EOF >> "$cfgfile"
27298 # func_append var value
27299 # Append VALUE to the end of shell variable VAR.
27300 func_append ()
27302 eval "$1=\$$1\$2"
27305 _LT_EOF
27307 esac
27310 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27311 || (rm -f "$cfgfile"; exit 1)
27313 mv -f "$cfgfile" "$ofile" ||
27314 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27315 chmod +x "$ofile"
27318 cat <<_LT_EOF >> "$ofile"
27320 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27322 # The linker used to build libraries.
27323 LD=$lt_LD_CXX
27325 # How to create reloadable object files.
27326 reload_flag=$lt_reload_flag_CXX
27327 reload_cmds=$lt_reload_cmds_CXX
27329 # Commands used to build an old-style archive.
27330 old_archive_cmds=$lt_old_archive_cmds_CXX
27332 # A language specific compiler.
27333 CC=$lt_compiler_CXX
27335 # Is the compiler the GNU compiler?
27336 with_gcc=$GCC_CXX
27338 # Compiler flag to turn off builtin functions.
27339 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27341 # How to pass a linker flag through the compiler.
27342 wl=$lt_lt_prog_compiler_wl_CXX
27344 # Additional compiler flags for building library objects.
27345 pic_flag=$lt_lt_prog_compiler_pic_CXX
27347 # Compiler flag to prevent dynamic linking.
27348 link_static_flag=$lt_lt_prog_compiler_static_CXX
27350 # Does compiler simultaneously support -c and -o options?
27351 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27353 # Whether or not to add -lc for building shared libraries.
27354 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27356 # Whether or not to disallow shared libs when runtime libs are static.
27357 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27359 # Compiler flag to allow reflexive dlopens.
27360 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27362 # Compiler flag to generate shared objects directly from archives.
27363 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27365 # Whether the compiler copes with passing no objects directly.
27366 compiler_needs_object=$lt_compiler_needs_object_CXX
27368 # Create an old-style archive from a shared archive.
27369 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27371 # Create a temporary old-style archive to link instead of a shared archive.
27372 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27374 # Commands used to build a shared archive.
27375 archive_cmds=$lt_archive_cmds_CXX
27376 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27378 # Commands used to build a loadable module if different from building
27379 # a shared archive.
27380 module_cmds=$lt_module_cmds_CXX
27381 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27383 # Whether we are building with GNU ld or not.
27384 with_gnu_ld=$lt_with_gnu_ld_CXX
27386 # Flag that allows shared libraries with undefined symbols to be built.
27387 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27389 # Flag that enforces no undefined symbols.
27390 no_undefined_flag=$lt_no_undefined_flag_CXX
27392 # Flag to hardcode \$libdir into a binary during linking.
27393 # This must work even if \$libdir does not exist
27394 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27396 # If ld is used when linking, flag to hardcode \$libdir into a binary
27397 # during linking. This must work even if \$libdir does not exist.
27398 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27400 # Whether we need a single "-rpath" flag with a separated argument.
27401 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27403 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27404 # DIR into the resulting binary.
27405 hardcode_direct=$hardcode_direct_CXX
27407 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27408 # DIR into the resulting binary and the resulting library dependency is
27409 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27410 # library is relocated.
27411 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27413 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27414 # into the resulting binary.
27415 hardcode_minus_L=$hardcode_minus_L_CXX
27417 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27418 # into the resulting binary.
27419 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27421 # Set to "yes" if building a shared library automatically hardcodes DIR
27422 # into the library and all subsequent libraries and executables linked
27423 # against it.
27424 hardcode_automatic=$hardcode_automatic_CXX
27426 # Set to yes if linker adds runtime paths of dependent libraries
27427 # to runtime path list.
27428 inherit_rpath=$inherit_rpath_CXX
27430 # Whether libtool must link a program against all its dependency libraries.
27431 link_all_deplibs=$link_all_deplibs_CXX
27433 # Fix the shell variable \$srcfile for the compiler.
27434 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27436 # Set to "yes" if exported symbols are required.
27437 always_export_symbols=$always_export_symbols_CXX
27439 # The commands to list exported symbols.
27440 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27442 # Symbols that should not be listed in the preloaded symbols.
27443 exclude_expsyms=$lt_exclude_expsyms_CXX
27445 # Symbols that must always be exported.
27446 include_expsyms=$lt_include_expsyms_CXX
27448 # Commands necessary for linking programs (against libraries) with templates.
27449 prelink_cmds=$lt_prelink_cmds_CXX
27451 # Specify filename containing input files.
27452 file_list_spec=$lt_file_list_spec_CXX
27454 # How to hardcode a shared library path into an executable.
27455 hardcode_action=$hardcode_action_CXX
27457 # The directories searched by this compiler when creating a shared library.
27458 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27460 # Dependencies to place before and after the objects being linked to
27461 # create a shared library.
27462 predep_objects=$lt_predep_objects_CXX
27463 postdep_objects=$lt_postdep_objects_CXX
27464 predeps=$lt_predeps_CXX
27465 postdeps=$lt_postdeps_CXX
27467 # The library search path used internally by the compiler when linking
27468 # a shared library.
27469 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27471 # ### END LIBTOOL TAG CONFIG: CXX
27472 _LT_EOF
27475 cat <<_LT_EOF >> "$ofile"
27477 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27479 # The linker used to build libraries.
27480 LD=$lt_LD_GCJ
27482 # How to create reloadable object files.
27483 reload_flag=$lt_reload_flag_GCJ
27484 reload_cmds=$lt_reload_cmds_GCJ
27486 # Commands used to build an old-style archive.
27487 old_archive_cmds=$lt_old_archive_cmds_GCJ
27489 # A language specific compiler.
27490 CC=$lt_compiler_GCJ
27492 # Is the compiler the GNU compiler?
27493 with_gcc=$GCC_GCJ
27495 # Compiler flag to turn off builtin functions.
27496 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27498 # How to pass a linker flag through the compiler.
27499 wl=$lt_lt_prog_compiler_wl_GCJ
27501 # Additional compiler flags for building library objects.
27502 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27504 # Compiler flag to prevent dynamic linking.
27505 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27507 # Does compiler simultaneously support -c and -o options?
27508 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27510 # Whether or not to add -lc for building shared libraries.
27511 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27513 # Whether or not to disallow shared libs when runtime libs are static.
27514 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27516 # Compiler flag to allow reflexive dlopens.
27517 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27519 # Compiler flag to generate shared objects directly from archives.
27520 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27522 # Whether the compiler copes with passing no objects directly.
27523 compiler_needs_object=$lt_compiler_needs_object_GCJ
27525 # Create an old-style archive from a shared archive.
27526 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27528 # Create a temporary old-style archive to link instead of a shared archive.
27529 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27531 # Commands used to build a shared archive.
27532 archive_cmds=$lt_archive_cmds_GCJ
27533 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27535 # Commands used to build a loadable module if different from building
27536 # a shared archive.
27537 module_cmds=$lt_module_cmds_GCJ
27538 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27540 # Whether we are building with GNU ld or not.
27541 with_gnu_ld=$lt_with_gnu_ld_GCJ
27543 # Flag that allows shared libraries with undefined symbols to be built.
27544 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27546 # Flag that enforces no undefined symbols.
27547 no_undefined_flag=$lt_no_undefined_flag_GCJ
27549 # Flag to hardcode \$libdir into a binary during linking.
27550 # This must work even if \$libdir does not exist
27551 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27553 # If ld is used when linking, flag to hardcode \$libdir into a binary
27554 # during linking. This must work even if \$libdir does not exist.
27555 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27557 # Whether we need a single "-rpath" flag with a separated argument.
27558 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27560 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27561 # DIR into the resulting binary.
27562 hardcode_direct=$hardcode_direct_GCJ
27564 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27565 # DIR into the resulting binary and the resulting library dependency is
27566 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27567 # library is relocated.
27568 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27570 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27571 # into the resulting binary.
27572 hardcode_minus_L=$hardcode_minus_L_GCJ
27574 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27575 # into the resulting binary.
27576 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27578 # Set to "yes" if building a shared library automatically hardcodes DIR
27579 # into the library and all subsequent libraries and executables linked
27580 # against it.
27581 hardcode_automatic=$hardcode_automatic_GCJ
27583 # Set to yes if linker adds runtime paths of dependent libraries
27584 # to runtime path list.
27585 inherit_rpath=$inherit_rpath_GCJ
27587 # Whether libtool must link a program against all its dependency libraries.
27588 link_all_deplibs=$link_all_deplibs_GCJ
27590 # Fix the shell variable \$srcfile for the compiler.
27591 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27593 # Set to "yes" if exported symbols are required.
27594 always_export_symbols=$always_export_symbols_GCJ
27596 # The commands to list exported symbols.
27597 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27599 # Symbols that should not be listed in the preloaded symbols.
27600 exclude_expsyms=$lt_exclude_expsyms_GCJ
27602 # Symbols that must always be exported.
27603 include_expsyms=$lt_include_expsyms_GCJ
27605 # Commands necessary for linking programs (against libraries) with templates.
27606 prelink_cmds=$lt_prelink_cmds_GCJ
27608 # Specify filename containing input files.
27609 file_list_spec=$lt_file_list_spec_GCJ
27611 # How to hardcode a shared library path into an executable.
27612 hardcode_action=$hardcode_action_GCJ
27614 # The directories searched by this compiler when creating a shared library.
27615 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27617 # Dependencies to place before and after the objects being linked to
27618 # create a shared library.
27619 predep_objects=$lt_predep_objects_GCJ
27620 postdep_objects=$lt_postdep_objects_GCJ
27621 predeps=$lt_predeps_GCJ
27622 postdeps=$lt_postdeps_GCJ
27624 # The library search path used internally by the compiler when linking
27625 # a shared library.
27626 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27628 # ### END LIBTOOL TAG CONFIG: GCJ
27629 _LT_EOF
27632 "scripts/jar":F) chmod +x scripts/jar ;;
27634 esac
27635 done # for ac_tag
27638 as_fn_exit 0
27639 _ACEOF
27640 ac_clean_files=$ac_clean_files_save
27642 test $ac_write_fail = 0 ||
27643 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27646 # configure is writing to config.log, and then calls config.status.
27647 # config.status does its own redirection, appending to config.log.
27648 # Unfortunately, on DOS this fails, as config.log is still kept open
27649 # by configure, so config.status won't be able to write to it; its
27650 # output is simply discarded. So we exec the FD to /dev/null,
27651 # effectively closing config.log, so it can be properly (re)opened and
27652 # appended to by config.status. When coming back to configure, we
27653 # need to make the FD available again.
27654 if test "$no_create" != yes; then
27655 ac_cs_success=:
27656 ac_config_status_args=
27657 test "$silent" = yes &&
27658 ac_config_status_args="$ac_config_status_args --quiet"
27659 exec 5>/dev/null
27660 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27661 exec 5>>config.log
27662 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27663 # would make configure fail if this is the last instruction.
27664 $ac_cs_success || as_fn_exit $?
27668 # CONFIG_SUBDIRS section.
27670 if test "$no_recursion" != yes; then
27672 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27673 # so they do not pile up.
27674 ac_sub_configure_args=
27675 ac_prev=
27676 eval "set x $ac_configure_args"
27677 shift
27678 for ac_arg
27680 if test -n "$ac_prev"; then
27681 ac_prev=
27682 continue
27684 case $ac_arg in
27685 -cache-file | --cache-file | --cache-fil | --cache-fi \
27686 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27687 ac_prev=cache_file ;;
27688 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27689 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27690 | --c=*)
27692 --config-cache | -C)
27694 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27695 ac_prev=srcdir ;;
27696 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27698 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27699 ac_prev=prefix ;;
27700 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27702 --disable-option-checking)
27705 case $ac_arg in
27706 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27707 esac
27708 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27709 esac
27710 done
27712 # Always prepend --prefix to ensure using the same prefix
27713 # in subdir configurations.
27714 ac_arg="--prefix=$prefix"
27715 case $ac_arg in
27716 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27717 esac
27718 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27720 # Pass --silent
27721 if test "$silent" = yes; then
27722 ac_sub_configure_args="--silent $ac_sub_configure_args"
27725 # Always prepend --disable-option-checking to silence warnings, since
27726 # different subdirs can have different --enable and --with options.
27727 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
27729 ac_popdir=`pwd`
27730 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
27732 # Do not complain, so a configure script can configure whichever
27733 # parts of a large source tree are present.
27734 test -d "$srcdir/$ac_dir" || continue
27736 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27737 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
27738 $as_echo "$ac_msg" >&6
27739 as_dir="$ac_dir"; as_fn_mkdir_p
27740 ac_builddir=.
27742 case "$ac_dir" in
27743 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27745 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27746 # A ".." for each directory in $ac_dir_suffix.
27747 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27748 case $ac_top_builddir_sub in
27749 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27750 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27751 esac ;;
27752 esac
27753 ac_abs_top_builddir=$ac_pwd
27754 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27755 # for backward compatibility:
27756 ac_top_builddir=$ac_top_build_prefix
27758 case $srcdir in
27759 .) # We are building in place.
27760 ac_srcdir=.
27761 ac_top_srcdir=$ac_top_builddir_sub
27762 ac_abs_top_srcdir=$ac_pwd ;;
27763 [\\/]* | ?:[\\/]* ) # Absolute name.
27764 ac_srcdir=$srcdir$ac_dir_suffix;
27765 ac_top_srcdir=$srcdir
27766 ac_abs_top_srcdir=$srcdir ;;
27767 *) # Relative name.
27768 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27769 ac_top_srcdir=$ac_top_build_prefix$srcdir
27770 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27771 esac
27772 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27775 cd "$ac_dir"
27777 # Check for guested configure; otherwise get Cygnus style configure.
27778 if test -f "$ac_srcdir/configure.gnu"; then
27779 ac_sub_configure=$ac_srcdir/configure.gnu
27780 elif test -f "$ac_srcdir/configure"; then
27781 ac_sub_configure=$ac_srcdir/configure
27782 elif test -f "$ac_srcdir/configure.in"; then
27783 # This should be Cygnus configure.
27784 ac_sub_configure=$ac_aux_dir/configure
27785 else
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
27787 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27788 ac_sub_configure=
27791 # The recursion is here.
27792 if test -n "$ac_sub_configure"; then
27793 # Make the cache file name correct relative to the subdirectory.
27794 case $cache_file in
27795 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
27796 *) # Relative name.
27797 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
27798 esac
27800 { $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
27801 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27802 # The eval makes quoting arguments work.
27803 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27804 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27805 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
27808 cd "$ac_popdir"
27809 done
27811 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27813 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}