Add missing ChangeLog entries.
[official-gcc.git] / libjava / configure
blobb57a6ec7da0288ab73c356309ba5107ea6990e07
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_c_werror_flag=
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 LIBDIR
610 GCJ_BIN_DIR
611 JRE_LIB_DIR
612 JRE_BIN_DIR
613 SDK_INCLUDE_DIR
614 SDK_LIB_DIR
615 SDK_BIN_DIR
616 SDK_LNK
617 JRE_LNK
618 JRE_DIR
619 JVM_JAR_DIR
620 JVM_JAR_ROOT_DIR
621 JVM_ROOT_DIR
622 BUILD_VERSION
623 JAVA_VERSION
624 gcc_suffix
625 CREATE_JAVA_HOME_FALSE
626 CREATE_JAVA_HOME_TRUE
627 INSTALL_AOT_RPM_FALSE
628 INSTALL_AOT_RPM_TRUE
629 MAKE
630 python_mod_dir_expanded
631 python_mod_dir
632 here
633 LD_FINISH_STATIC_SPEC
634 LD_START_STATIC_SPEC
635 ANONVERSCRIPT_SUN_FALSE
636 ANONVERSCRIPT_SUN_TRUE
637 ANONVERSCRIPT_GNU_FALSE
638 ANONVERSCRIPT_GNU_TRUE
639 ANONVERSCRIPT_FALSE
640 ANONVERSCRIPT_TRUE
641 SYSDEP_SOURCES
642 PERL
643 libstdcxx_incdir
644 gxx_include_dir
645 gcjsubdir
646 dbexecdir
647 GCJVERSION
648 toolexeclibdir
649 toolexecmainlibdir
650 toolexecdir
651 GCC_UNWIND_INCLUDE
652 INSTALL_BINARIES_FALSE
653 INSTALL_BINARIES_TRUE
654 NEEDS_DATA_START_FALSE
655 NEEDS_DATA_START_TRUE
656 ENABLE_SHARED_FALSE
657 ENABLE_SHARED_TRUE
658 NATIVE_FALSE
659 NATIVE_TRUE
660 ATOMICSPEC
661 IEEESPEC
662 BACKTRACESPEC
663 EXCEPTIONSPEC
664 CHECKREFSPEC
665 DIVIDESPEC
666 ZINCS
667 SYS_ZLIBS
668 ZLIBS
669 CLASSPATH_SEPARATOR
670 LIBART_LIBS
671 LIBART_CFLAGS
672 GLIB_LIBS
673 GLIB_CFLAGS
674 GTK_LIBS
675 GTK_CFLAGS
676 PKG_CONFIG
677 LDLIBICONV
678 LTLIBICONV
679 LIBICONV
680 USING_GCC_FALSE
681 USING_GCC_TRUE
682 HASH_SYNC_SPEC
683 LIBGCJ_BC_SPEC
684 LIBGCJ_SPEC
685 USE_LIBGCJ_BC_FALSE
686 USE_LIBGCJ_BC_TRUE
687 USING_NO_THREADS_FALSE
688 USING_NO_THREADS_TRUE
689 USING_WIN32_THREADS_FALSE
690 USING_WIN32_THREADS_TRUE
691 USING_POSIX_THREADS_FALSE
692 USING_POSIX_THREADS_TRUE
693 THREADCXXFLAGS
694 THREADLDFLAGS
695 THREADSTARTFILESPEC
696 THREADSPEC
697 THREADDEPS
698 THREADINCS
699 THREADLIBS
700 USING_NOGC_FALSE
701 USING_NOGC_TRUE
702 USING_BOEHMGC_FALSE
703 USING_BOEHMGC_TRUE
704 GCTESTSPEC
705 JC1GCSPEC
706 GCSPEC
707 GCDEPS
708 GCINCS
709 GCLIBS
710 LIBGCJTESTSPEC
711 LIBMATHSPEC
712 LIBSTDCXXSPEC
713 extra_ldflags
714 extra_ldflags_libjava
715 X_EXTRA_LIBS
716 X_LIBS
717 X_PRE_LIBS
718 X_CFLAGS
719 XMKMF
720 ZLIBTESTSPEC
721 ZLIBSPEC
722 SYSTEMSPEC
723 USING_DARWIN_CRT_FALSE
724 USING_DARWIN_CRT_TRUE
725 USING_POSIX_PLATFORM_FALSE
726 USING_POSIX_PLATFORM_TRUE
727 USING_WIN32_PLATFORM_FALSE
728 USING_WIN32_PLATFORM_TRUE
729 PLATFORM
730 LIBFFIINCS
731 LIBFFI
732 INTERPRETER_FALSE
733 INTERPRETER_TRUE
734 INTERPRETER
735 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
736 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
737 SUPPRESS_LIBGCJ_BC_FALSE
738 SUPPRESS_LIBGCJ_BC_TRUE
739 JAVA_HOME
740 JAVA_HOME_SET_FALSE
741 JAVA_HOME_SET_TRUE
742 INSTALL_ECJ_JAR_FALSE
743 INSTALL_ECJ_JAR_TRUE
744 BUILD_ECJ1_FALSE
745 BUILD_ECJ1_TRUE
746 ECJ_JAR
747 ECJ_BUILD_JAR
748 TESTSUBDIR_FALSE
749 TESTSUBDIR_TRUE
750 subdirs
751 am__fastdepGCJ_FALSE
752 am__fastdepGCJ_TRUE
753 GCJDEPMODE
754 GCJFLAGS
755 ac_ct_GCJ
757 lt_host_flags
758 CXXCPP
760 OTOOL64
761 OTOOL
762 LIPO
763 NMEDIT
764 DSYMUTIL
765 OBJDUMP
767 ac_ct_DUMPBIN
768 DUMPBIN
769 FGREP
770 EGREP
771 GREP
773 LIBTOOL
774 DIRLTDL
775 LIBLTDL
776 INCLTDL
777 host_exeext
778 GCJH
779 GCC_FOR_ECJX
780 GCJ_FOR_ECJX
781 X_AWT_FALSE
782 X_AWT_TRUE
783 XLIB_AWT_FALSE
784 XLIB_AWT_TRUE
785 TOOLKIT
786 LIBGCJDEBUG
787 BUILD_SUBLIBS_FALSE
788 BUILD_SUBLIBS_TRUE
789 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
790 LIBGCJ_LD_SYMBOLIC
791 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
792 LIBGCJ_SUBLIB_LTFLAGS
793 LIBGCJ_JAVAFLAGS
794 LIBGCJ_CXXFLAGS
795 LIBGCJ_CFLAGS
796 MAINT
797 MAINTAINER_MODE_FALSE
798 MAINTAINER_MODE_TRUE
799 UNZIP
802 DLLTOOL
803 RANLIB
807 am__fastdepCXX_FALSE
808 am__fastdepCXX_TRUE
809 CXXDEPMODE
810 am__fastdepCC_FALSE
811 am__fastdepCC_TRUE
812 CCDEPMODE
813 AMDEPBACKSLASH
814 AMDEP_FALSE
815 AMDEP_TRUE
816 am__quote
817 am__include
818 DEPDIR
819 am__untar
820 am__tar
821 AMTAR
822 am__leading_dot
823 SET_MAKE
825 mkdir_p
826 MKDIR_P
827 INSTALL_STRIP_PROGRAM
828 STRIP
829 install_sh
830 MAKEINFO
831 AUTOHEADER
832 AUTOMAKE
833 AUTOCONF
834 ACLOCAL
835 VERSION
836 PACKAGE
837 CYGPATH_W
838 am__isrc
839 INSTALL_DATA
840 INSTALL_SCRIPT
841 INSTALL_PROGRAM
842 ac_ct_CXX
843 CXXFLAGS
845 OBJEXT
846 EXEEXT
847 ac_ct_CC
848 CPPFLAGS
849 LDFLAGS
850 CFLAGS
852 JAVA_MAINTAINER_MODE_FALSE
853 JAVA_MAINTAINER_MODE_TRUE
854 CREATE_GJDOC_FALSE
855 CREATE_GJDOC_TRUE
856 ANTLR_JAR
857 mkinstalldirs
858 LN_S
859 target_noncanonical
860 target_os
861 target_vendor
862 target_cpu
863 target
864 host_os
865 host_vendor
866 host_cpu
867 host
868 multi_basedir
869 target_subdir
870 host_subdir
871 build_subdir
872 build_libsubdir
873 build_os
874 build_vendor
875 build_cpu
876 build
877 target_alias
878 host_alias
879 build_alias
880 LIBS
881 ECHO_T
882 ECHO_N
883 ECHO_C
884 DEFS
885 mandir
886 localedir
887 libdir
888 psdir
889 pdfdir
890 dvidir
891 htmldir
892 infodir
893 docdir
894 oldincludedir
895 includedir
896 localstatedir
897 sharedstatedir
898 sysconfdir
899 datadir
900 datarootdir
901 libexecdir
902 sbindir
903 bindir
904 program_transform_name
905 prefix
906 exec_prefix
907 PACKAGE_URL
908 PACKAGE_BUGREPORT
909 PACKAGE_STRING
910 PACKAGE_VERSION
911 PACKAGE_TARNAME
912 PACKAGE_NAME
913 PATH_SEPARATOR
914 SHELL'
915 ac_subst_files=''
916 ac_user_opts='
917 enable_option_checking
918 with_build_libsubdir
919 with_target_subdir
920 enable_multilib
921 with_cross_host
922 with_newlib
923 enable_version_specific_runtime_libs
924 enable_browser_plugin
925 enable_gconf_peer
926 with_antlr_jar
927 enable_gjdoc
928 enable_java_maintainer_mode
929 enable_dependency_tracking
930 enable_maintainer_mode
931 enable_libgcj_sublibs
932 enable_libgcj_debug
933 with_escher
934 enable_java_awt
935 enable_shared
936 enable_static
937 with_pic
938 enable_fast_install
939 with_gnu_ld
940 enable_libtool_lock
941 enable_getenv_properties
942 enable_hash_synchronization
943 with_ecj_jar
944 with_java_home
945 enable_libgcj_bc
946 enable_reduced_reflection
947 with_win32_nlsapi
948 enable_gc_debug
949 enable_interpreter
950 enable_sjlj_exceptions
951 enable_java_net
952 with_libffi
953 enable_jvmpi
954 with_ecos
955 with_system_zlib
956 with_x
957 enable_java_gc
958 enable_rpath
959 with_libiconv_prefix
960 enable_tls
961 with_system_libunwind
962 enable_symvers
963 with_python_dir
964 enable_aot_compile_rpm
965 enable_java_home
966 with_gcc_suffix
967 with_arch_directory
968 with_os_directory
969 with_origin_name
970 with_arch_suffix
971 with_jvm_root_dir
972 with_jvm_jar_dir
974 ac_precious_vars='build_alias
975 host_alias
976 target_alias
978 CFLAGS
979 LDFLAGS
980 LIBS
981 CPPFLAGS
983 CXXFLAGS
986 CXXCPP
987 XMKMF'
988 ac_subdirs_all='classpath libltdl'
990 # Initialize some variables set by options.
991 ac_init_help=
992 ac_init_version=false
993 ac_unrecognized_opts=
994 ac_unrecognized_sep=
995 # The variables have the same names as the options, with
996 # dashes changed to underlines.
997 cache_file=/dev/null
998 exec_prefix=NONE
999 no_create=
1000 no_recursion=
1001 prefix=NONE
1002 program_prefix=NONE
1003 program_suffix=NONE
1004 program_transform_name=s,x,x,
1005 silent=
1006 site=
1007 srcdir=
1008 verbose=
1009 x_includes=NONE
1010 x_libraries=NONE
1012 # Installation directory options.
1013 # These are left unexpanded so users can "make install exec_prefix=/foo"
1014 # and all the variables that are supposed to be based on exec_prefix
1015 # by default will actually change.
1016 # Use braces instead of parens because sh, perl, etc. also accept them.
1017 # (The list follows the same order as the GNU Coding Standards.)
1018 bindir='${exec_prefix}/bin'
1019 sbindir='${exec_prefix}/sbin'
1020 libexecdir='${exec_prefix}/libexec'
1021 datarootdir='${prefix}/share'
1022 datadir='${datarootdir}'
1023 sysconfdir='${prefix}/etc'
1024 sharedstatedir='${prefix}/com'
1025 localstatedir='${prefix}/var'
1026 includedir='${prefix}/include'
1027 oldincludedir='/usr/include'
1028 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1029 infodir='${datarootdir}/info'
1030 htmldir='${docdir}'
1031 dvidir='${docdir}'
1032 pdfdir='${docdir}'
1033 psdir='${docdir}'
1034 libdir='${exec_prefix}/lib'
1035 localedir='${datarootdir}/locale'
1036 mandir='${datarootdir}/man'
1038 ac_prev=
1039 ac_dashdash=
1040 for ac_option
1042 # If the previous option needs an argument, assign it.
1043 if test -n "$ac_prev"; then
1044 eval $ac_prev=\$ac_option
1045 ac_prev=
1046 continue
1049 case $ac_option in
1050 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1051 *) ac_optarg=yes ;;
1052 esac
1054 # Accept the important Cygnus configure options, so we can diagnose typos.
1056 case $ac_dashdash$ac_option in
1058 ac_dashdash=yes ;;
1060 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1061 ac_prev=bindir ;;
1062 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1063 bindir=$ac_optarg ;;
1065 -build | --build | --buil | --bui | --bu)
1066 ac_prev=build_alias ;;
1067 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1068 build_alias=$ac_optarg ;;
1070 -cache-file | --cache-file | --cache-fil | --cache-fi \
1071 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1072 ac_prev=cache_file ;;
1073 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1074 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1075 cache_file=$ac_optarg ;;
1077 --config-cache | -C)
1078 cache_file=config.cache ;;
1080 -datadir | --datadir | --datadi | --datad)
1081 ac_prev=datadir ;;
1082 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1083 datadir=$ac_optarg ;;
1085 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1086 | --dataroo | --dataro | --datar)
1087 ac_prev=datarootdir ;;
1088 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1089 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1090 datarootdir=$ac_optarg ;;
1092 -disable-* | --disable-*)
1093 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1096 as_fn_error "invalid feature name: $ac_useropt"
1097 ac_useropt_orig=$ac_useropt
1098 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1099 case $ac_user_opts in
1101 "enable_$ac_useropt"
1102 "*) ;;
1103 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1104 ac_unrecognized_sep=', ';;
1105 esac
1106 eval enable_$ac_useropt=no ;;
1108 -docdir | --docdir | --docdi | --doc | --do)
1109 ac_prev=docdir ;;
1110 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1111 docdir=$ac_optarg ;;
1113 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1114 ac_prev=dvidir ;;
1115 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1116 dvidir=$ac_optarg ;;
1118 -enable-* | --enable-*)
1119 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1122 as_fn_error "invalid feature name: $ac_useropt"
1123 ac_useropt_orig=$ac_useropt
1124 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1127 "enable_$ac_useropt"
1128 "*) ;;
1129 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1130 ac_unrecognized_sep=', ';;
1131 esac
1132 eval enable_$ac_useropt=\$ac_optarg ;;
1134 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1135 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1136 | --exec | --exe | --ex)
1137 ac_prev=exec_prefix ;;
1138 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1139 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1140 | --exec=* | --exe=* | --ex=*)
1141 exec_prefix=$ac_optarg ;;
1143 -gas | --gas | --ga | --g)
1144 # Obsolete; use --with-gas.
1145 with_gas=yes ;;
1147 -help | --help | --hel | --he | -h)
1148 ac_init_help=long ;;
1149 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1150 ac_init_help=recursive ;;
1151 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1152 ac_init_help=short ;;
1154 -host | --host | --hos | --ho)
1155 ac_prev=host_alias ;;
1156 -host=* | --host=* | --hos=* | --ho=*)
1157 host_alias=$ac_optarg ;;
1159 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1160 ac_prev=htmldir ;;
1161 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1162 | --ht=*)
1163 htmldir=$ac_optarg ;;
1165 -includedir | --includedir | --includedi | --included | --include \
1166 | --includ | --inclu | --incl | --inc)
1167 ac_prev=includedir ;;
1168 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1169 | --includ=* | --inclu=* | --incl=* | --inc=*)
1170 includedir=$ac_optarg ;;
1172 -infodir | --infodir | --infodi | --infod | --info | --inf)
1173 ac_prev=infodir ;;
1174 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1175 infodir=$ac_optarg ;;
1177 -libdir | --libdir | --libdi | --libd)
1178 ac_prev=libdir ;;
1179 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1180 libdir=$ac_optarg ;;
1182 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1183 | --libexe | --libex | --libe)
1184 ac_prev=libexecdir ;;
1185 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1186 | --libexe=* | --libex=* | --libe=*)
1187 libexecdir=$ac_optarg ;;
1189 -localedir | --localedir | --localedi | --localed | --locale)
1190 ac_prev=localedir ;;
1191 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1192 localedir=$ac_optarg ;;
1194 -localstatedir | --localstatedir | --localstatedi | --localstated \
1195 | --localstate | --localstat | --localsta | --localst | --locals)
1196 ac_prev=localstatedir ;;
1197 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1198 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1199 localstatedir=$ac_optarg ;;
1201 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1202 ac_prev=mandir ;;
1203 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1204 mandir=$ac_optarg ;;
1206 -nfp | --nfp | --nf)
1207 # Obsolete; use --without-fp.
1208 with_fp=no ;;
1210 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1211 | --no-cr | --no-c | -n)
1212 no_create=yes ;;
1214 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1215 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1216 no_recursion=yes ;;
1218 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1219 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1220 | --oldin | --oldi | --old | --ol | --o)
1221 ac_prev=oldincludedir ;;
1222 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1223 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1224 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1225 oldincludedir=$ac_optarg ;;
1227 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1228 ac_prev=prefix ;;
1229 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1230 prefix=$ac_optarg ;;
1232 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1233 | --program-pre | --program-pr | --program-p)
1234 ac_prev=program_prefix ;;
1235 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1236 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1237 program_prefix=$ac_optarg ;;
1239 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1240 | --program-suf | --program-su | --program-s)
1241 ac_prev=program_suffix ;;
1242 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1243 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1244 program_suffix=$ac_optarg ;;
1246 -program-transform-name | --program-transform-name \
1247 | --program-transform-nam | --program-transform-na \
1248 | --program-transform-n | --program-transform- \
1249 | --program-transform | --program-transfor \
1250 | --program-transfo | --program-transf \
1251 | --program-trans | --program-tran \
1252 | --progr-tra | --program-tr | --program-t)
1253 ac_prev=program_transform_name ;;
1254 -program-transform-name=* | --program-transform-name=* \
1255 | --program-transform-nam=* | --program-transform-na=* \
1256 | --program-transform-n=* | --program-transform-=* \
1257 | --program-transform=* | --program-transfor=* \
1258 | --program-transfo=* | --program-transf=* \
1259 | --program-trans=* | --program-tran=* \
1260 | --progr-tra=* | --program-tr=* | --program-t=*)
1261 program_transform_name=$ac_optarg ;;
1263 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1264 ac_prev=pdfdir ;;
1265 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1266 pdfdir=$ac_optarg ;;
1268 -psdir | --psdir | --psdi | --psd | --ps)
1269 ac_prev=psdir ;;
1270 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1271 psdir=$ac_optarg ;;
1273 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1274 | -silent | --silent | --silen | --sile | --sil)
1275 silent=yes ;;
1277 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1278 ac_prev=sbindir ;;
1279 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1280 | --sbi=* | --sb=*)
1281 sbindir=$ac_optarg ;;
1283 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1284 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1285 | --sharedst | --shareds | --shared | --share | --shar \
1286 | --sha | --sh)
1287 ac_prev=sharedstatedir ;;
1288 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1289 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1290 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1291 | --sha=* | --sh=*)
1292 sharedstatedir=$ac_optarg ;;
1294 -site | --site | --sit)
1295 ac_prev=site ;;
1296 -site=* | --site=* | --sit=*)
1297 site=$ac_optarg ;;
1299 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1300 ac_prev=srcdir ;;
1301 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1302 srcdir=$ac_optarg ;;
1304 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1305 | --syscon | --sysco | --sysc | --sys | --sy)
1306 ac_prev=sysconfdir ;;
1307 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1308 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1309 sysconfdir=$ac_optarg ;;
1311 -target | --target | --targe | --targ | --tar | --ta | --t)
1312 ac_prev=target_alias ;;
1313 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1314 target_alias=$ac_optarg ;;
1316 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1317 verbose=yes ;;
1319 -version | --version | --versio | --versi | --vers | -V)
1320 ac_init_version=: ;;
1322 -with-* | --with-*)
1323 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1324 # Reject names that are not valid shell variable names.
1325 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1326 as_fn_error "invalid package name: $ac_useropt"
1327 ac_useropt_orig=$ac_useropt
1328 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1329 case $ac_user_opts in
1331 "with_$ac_useropt"
1332 "*) ;;
1333 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1334 ac_unrecognized_sep=', ';;
1335 esac
1336 eval with_$ac_useropt=\$ac_optarg ;;
1338 -without-* | --without-*)
1339 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1340 # Reject names that are not valid shell variable names.
1341 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1342 as_fn_error "invalid package name: $ac_useropt"
1343 ac_useropt_orig=$ac_useropt
1344 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1345 case $ac_user_opts in
1347 "with_$ac_useropt"
1348 "*) ;;
1349 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1350 ac_unrecognized_sep=', ';;
1351 esac
1352 eval with_$ac_useropt=no ;;
1354 --x)
1355 # Obsolete; use --with-x.
1356 with_x=yes ;;
1358 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1359 | --x-incl | --x-inc | --x-in | --x-i)
1360 ac_prev=x_includes ;;
1361 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1362 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1363 x_includes=$ac_optarg ;;
1365 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1366 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1367 ac_prev=x_libraries ;;
1368 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1369 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1370 x_libraries=$ac_optarg ;;
1372 -*) as_fn_error "unrecognized option: \`$ac_option'
1373 Try \`$0 --help' for more information."
1376 *=*)
1377 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1378 # Reject names that are not valid shell variable names.
1379 case $ac_envvar in #(
1380 '' | [0-9]* | *[!_$as_cr_alnum]* )
1381 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1382 esac
1383 eval $ac_envvar=\$ac_optarg
1384 export $ac_envvar ;;
1387 # FIXME: should be removed in autoconf 3.0.
1388 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1389 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1390 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1391 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1394 esac
1395 done
1397 if test -n "$ac_prev"; then
1398 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1399 as_fn_error "missing argument to $ac_option"
1402 if test -n "$ac_unrecognized_opts"; then
1403 case $enable_option_checking in
1404 no) ;;
1405 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1406 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1407 esac
1410 # Check all directory arguments for consistency.
1411 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1412 datadir sysconfdir sharedstatedir localstatedir includedir \
1413 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1414 libdir localedir mandir
1416 eval ac_val=\$$ac_var
1417 # Remove trailing slashes.
1418 case $ac_val in
1419 */ )
1420 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1421 eval $ac_var=\$ac_val;;
1422 esac
1423 # Be sure to have absolute directory names.
1424 case $ac_val in
1425 [\\/$]* | ?:[\\/]* ) continue;;
1426 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1427 esac
1428 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1429 done
1431 # There might be people who depend on the old broken behavior: `$host'
1432 # used to hold the argument of --host etc.
1433 # FIXME: To remove some day.
1434 build=$build_alias
1435 host=$host_alias
1436 target=$target_alias
1438 # FIXME: To remove some day.
1439 if test "x$host_alias" != x; then
1440 if test "x$build_alias" = x; then
1441 cross_compiling=maybe
1442 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1443 If a cross compiler is detected then cross compile mode will be used." >&2
1444 elif test "x$build_alias" != "x$host_alias"; then
1445 cross_compiling=yes
1449 ac_tool_prefix=
1450 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1452 test "$silent" = yes && exec 6>/dev/null
1455 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1456 ac_ls_di=`ls -di .` &&
1457 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1458 as_fn_error "working directory cannot be determined"
1459 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1460 as_fn_error "pwd does not report name of working directory"
1463 # Find the source files, if location was not specified.
1464 if test -z "$srcdir"; then
1465 ac_srcdir_defaulted=yes
1466 # Try the directory containing this script, then the parent directory.
1467 ac_confdir=`$as_dirname -- "$as_myself" ||
1468 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1469 X"$as_myself" : 'X\(//\)[^/]' \| \
1470 X"$as_myself" : 'X\(//\)$' \| \
1471 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1472 $as_echo X"$as_myself" |
1473 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1474 s//\1/
1477 /^X\(\/\/\)[^/].*/{
1478 s//\1/
1481 /^X\(\/\/\)$/{
1482 s//\1/
1485 /^X\(\/\).*/{
1486 s//\1/
1489 s/.*/./; q'`
1490 srcdir=$ac_confdir
1491 if test ! -r "$srcdir/$ac_unique_file"; then
1492 srcdir=..
1494 else
1495 ac_srcdir_defaulted=no
1497 if test ! -r "$srcdir/$ac_unique_file"; then
1498 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1499 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1501 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1502 ac_abs_confdir=`(
1503 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1504 pwd)`
1505 # When building in place, set srcdir=.
1506 if test "$ac_abs_confdir" = "$ac_pwd"; then
1507 srcdir=.
1509 # Remove unnecessary trailing slashes from srcdir.
1510 # Double slashes in file names in object file debugging info
1511 # mess up M-x gdb in Emacs.
1512 case $srcdir in
1513 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1514 esac
1515 for ac_var in $ac_precious_vars; do
1516 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1517 eval ac_env_${ac_var}_value=\$${ac_var}
1518 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1519 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1520 done
1523 # Report the --help message.
1525 if test "$ac_init_help" = "long"; then
1526 # Omit some internal or obsolete options to make the list less imposing.
1527 # This message is too long to be a string in the A/UX 3.1 sh.
1528 cat <<_ACEOF
1529 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1531 Usage: $0 [OPTION]... [VAR=VALUE]...
1533 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1534 VAR=VALUE. See below for descriptions of some of the useful variables.
1536 Defaults for the options are specified in brackets.
1538 Configuration:
1539 -h, --help display this help and exit
1540 --help=short display options specific to this package
1541 --help=recursive display the short help of all the included packages
1542 -V, --version display version information and exit
1543 -q, --quiet, --silent do not print \`checking...' messages
1544 --cache-file=FILE cache test results in FILE [disabled]
1545 -C, --config-cache alias for \`--cache-file=config.cache'
1546 -n, --no-create do not create output files
1547 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1549 Installation directories:
1550 --prefix=PREFIX install architecture-independent files in PREFIX
1551 [$ac_default_prefix]
1552 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1553 [PREFIX]
1555 By default, \`make install' will install all the files in
1556 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1557 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1558 for instance \`--prefix=\$HOME'.
1560 For better control, use the options below.
1562 Fine tuning of the installation directories:
1563 --bindir=DIR user executables [EPREFIX/bin]
1564 --sbindir=DIR system admin executables [EPREFIX/sbin]
1565 --libexecdir=DIR program executables [EPREFIX/libexec]
1566 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1567 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1568 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1569 --libdir=DIR object code libraries [EPREFIX/lib]
1570 --includedir=DIR C header files [PREFIX/include]
1571 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1572 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1573 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1574 --infodir=DIR info documentation [DATAROOTDIR/info]
1575 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1576 --mandir=DIR man documentation [DATAROOTDIR/man]
1577 --docdir=DIR documentation root [DATAROOTDIR/doc/libjava]
1578 --htmldir=DIR html documentation [DOCDIR]
1579 --dvidir=DIR dvi documentation [DOCDIR]
1580 --pdfdir=DIR pdf documentation [DOCDIR]
1581 --psdir=DIR ps documentation [DOCDIR]
1582 _ACEOF
1584 cat <<\_ACEOF
1586 Program names:
1587 --program-prefix=PREFIX prepend PREFIX to installed program names
1588 --program-suffix=SUFFIX append SUFFIX to installed program names
1589 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1591 X features:
1592 --x-includes=DIR X include files are in DIR
1593 --x-libraries=DIR X library files are in DIR
1595 System types:
1596 --build=BUILD configure for building on BUILD [guessed]
1597 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1598 --target=TARGET configure for building compilers for TARGET [HOST]
1599 _ACEOF
1602 if test -n "$ac_init_help"; then
1603 case $ac_init_help in
1604 short | recursive ) echo "Configuration of libjava version-unused:";;
1605 esac
1606 cat <<\_ACEOF
1608 Optional Features:
1609 --disable-option-checking ignore unrecognized --enable/--with options
1610 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1611 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1612 --enable-multilib build many library versions (default)
1613 --enable-version-specific-runtime-libs
1614 specify that runtime libraries should be installed
1615 in a compiler-specific directory
1616 --enable-browser-plugin build gcjwebplugin web browser plugin
1617 --enable-gconf-peer compile GConf native peers for util.preferences
1618 --disable-gjdoc compile GJDoc (disabled by --disable-gjdoc)
1619 default=yes
1620 --enable-java-maintainer-mode
1621 allow rebuilding of .class and .h files
1622 --disable-dependency-tracking speeds up one-time build
1623 --enable-dependency-tracking do not reject slow dependency extractors
1624 --enable-maintainer-mode enable make rules and dependencies not useful
1625 (and sometimes confusing) to the casual installer
1626 --enable-libgcj-sublibs build libgcj as many sub-libraries
1627 --enable-libgcj-debug enable runtime debugging code
1628 --enable-java-awt list of AWT peer implementations to be built
1629 --enable-shared[=PKGS] build shared libraries [default=yes]
1630 --enable-static[=PKGS] build static libraries [default=yes]
1631 --enable-fast-install[=PKGS]
1632 optimize for fast installation [default=yes]
1633 --disable-libtool-lock avoid locking (might break parallel builds)
1634 --disable-getenv-properties
1635 don't set system properties from GCJ_PROPERTIES
1636 --enable-hash-synchronization
1637 use global hash table for monitor locks
1638 --enable-libgcj-bc enable(default) or disable BC ABI for portions of
1639 libgcj
1640 --enable-reduced-reflection
1641 enable or disable(default) -freduced-reflection when
1642 building portions of libgcj
1643 --enable-gc-debug include full support for pointer backtracing etc.
1644 --enable-interpreter enable interpreter
1645 --enable-sjlj-exceptions
1646 force use of builtin_setjmp for exceptions
1647 --disable-java-net disable java.net
1648 --disable-jvmpi disable JVMPI support
1649 --enable-java-gc=TYPE choose garbage collector (default is boehm)
1650 --disable-rpath do not hardcode runtime library paths
1651 --enable-tls Use thread-local storage [default=yes]
1652 --disable-symvers disable symbol versioning for libjava
1653 --enable-aot-compile-rpm
1654 enable installation of aot-compile-rpm [default=no]
1655 --enable-java-home create a standard JDK-style directory layout in the
1656 install tree [default=no]
1658 Optional Packages:
1659 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1660 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1661 --with-build-libsubdir=DIR Directory where to find libraries for build system
1662 --with-target-subdir=SUBDIR
1663 configure in a subdirectory
1664 --with-cross-host=HOST configure with a cross compiler from HOST
1665 --with-newlib configure with newlib
1666 --with-antlr-jar=file Use ANTLR from the specified jar file
1667 --with-escher=ABS.PATH specify path to escher dir or JAR for X peers
1668 --with-pic try to use only PIC/non-PIC objects [default=use
1669 both]
1670 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1671 --with-ecj-jar=FILE use preinstalled ecj jar
1672 --with-java-home=DIRECTORY
1673 value of java.home system property
1674 --with-win32-nlsapi=ansi or unicows or unicode
1675 native MinGW libgcj Win32 OS API (default is ansi)
1676 --without-libffi don't use libffi
1677 --with-ecos enable runtime eCos target support
1678 --with-system-zlib use installed libz
1679 --with-x use the X Window System
1680 --with-gnu-ld assume the C compiler uses GNU ld default=no
1681 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1682 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1683 --with-system-libunwind use installed libunwind
1684 --with-python-dir the location to install Python modules. This path
1685 should NOT include the prefix.
1686 --with-gcc-suffix the GCC tool suffix (defaults to empty string)
1687 --with-arch-directory the arch directory under jre/lib (defaults to
1688 auto-detect)
1689 --with-os-directory the os directory under include (defaults to
1690 auto-detect)
1691 --with-origin-name the JPackage origin name of this package (default is
1692 gcj${gcc_suffix}
1693 --with-arch-suffix the arch directory suffix (default is the empty
1694 string
1695 --with-jvm-root-dir where to install SDK (default is ${prefix}/lib/jvm)
1696 --with-jvm-jar-dir where to install jars (default is
1697 ${prefix}/lib/jvm-exports)
1699 Some influential environment variables:
1700 CC C compiler command
1701 CFLAGS C compiler flags
1702 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1703 nonstandard directory <lib dir>
1704 LIBS libraries to pass to the linker, e.g. -l<library>
1705 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1706 you have headers in a nonstandard directory <include dir>
1707 CXX C++ compiler command
1708 CXXFLAGS C++ compiler flags
1709 CPP C preprocessor
1710 CXXCPP C++ preprocessor
1711 XMKMF Path to xmkmf, Makefile generator for X Window System
1713 Use these variables to override the choices made by `configure' or to help
1714 it to find libraries and programs with nonstandard names/locations.
1716 Report bugs to the package provider.
1717 _ACEOF
1718 ac_status=$?
1721 if test "$ac_init_help" = "recursive"; then
1722 # If there are subdirs, report their specific --help.
1723 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1724 test -d "$ac_dir" ||
1725 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1726 continue
1727 ac_builddir=.
1729 case "$ac_dir" in
1730 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1732 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1733 # A ".." for each directory in $ac_dir_suffix.
1734 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1735 case $ac_top_builddir_sub in
1736 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1738 esac ;;
1739 esac
1740 ac_abs_top_builddir=$ac_pwd
1741 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1742 # for backward compatibility:
1743 ac_top_builddir=$ac_top_build_prefix
1745 case $srcdir in
1746 .) # We are building in place.
1747 ac_srcdir=.
1748 ac_top_srcdir=$ac_top_builddir_sub
1749 ac_abs_top_srcdir=$ac_pwd ;;
1750 [\\/]* | ?:[\\/]* ) # Absolute name.
1751 ac_srcdir=$srcdir$ac_dir_suffix;
1752 ac_top_srcdir=$srcdir
1753 ac_abs_top_srcdir=$srcdir ;;
1754 *) # Relative name.
1755 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756 ac_top_srcdir=$ac_top_build_prefix$srcdir
1757 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1758 esac
1759 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1761 cd "$ac_dir" || { ac_status=$?; continue; }
1762 # Check for guested configure.
1763 if test -f "$ac_srcdir/configure.gnu"; then
1764 echo &&
1765 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766 elif test -f "$ac_srcdir/configure"; then
1767 echo &&
1768 $SHELL "$ac_srcdir/configure" --help=recursive
1769 else
1770 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1771 fi || ac_status=$?
1772 cd "$ac_pwd" || { ac_status=$?; break; }
1773 done
1776 test -n "$ac_init_help" && exit $ac_status
1777 if $ac_init_version; then
1778 cat <<\_ACEOF
1779 libjava configure version-unused
1780 generated by GNU Autoconf 2.64
1782 Copyright (C) 2009 Free Software Foundation, Inc.
1783 This configure script is free software; the Free Software Foundation
1784 gives unlimited permission to copy, distribute and modify it.
1785 _ACEOF
1786 exit
1789 ## ------------------------ ##
1790 ## Autoconf initialization. ##
1791 ## ------------------------ ##
1793 # ac_fn_c_try_compile LINENO
1794 # --------------------------
1795 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1796 ac_fn_c_try_compile ()
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 rm -f conftest.$ac_objext
1800 if { { ac_try="$ac_compile"
1801 case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_compile") 2>conftest.err
1808 ac_status=$?
1809 if test -s conftest.err; then
1810 grep -v '^ *+' conftest.err >conftest.er1
1811 cat conftest.er1 >&5
1812 mv -f conftest.er1 conftest.err
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && {
1816 test -z "$ac_c_werror_flag" ||
1817 test ! -s conftest.err
1818 } && test -s conftest.$ac_objext; then :
1819 ac_retval=0
1820 else
1821 $as_echo "$as_me: failed program was:" >&5
1822 sed 's/^/| /' conftest.$ac_ext >&5
1824 ac_retval=1
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 return $ac_retval
1829 } # ac_fn_c_try_compile
1831 # ac_fn_cxx_try_compile LINENO
1832 # ----------------------------
1833 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1834 ac_fn_cxx_try_compile ()
1836 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837 rm -f conftest.$ac_objext
1838 if { { ac_try="$ac_compile"
1839 case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_compile") 2>conftest.err
1846 ac_status=$?
1847 if test -s conftest.err; then
1848 grep -v '^ *+' conftest.err >conftest.er1
1849 cat conftest.er1 >&5
1850 mv -f conftest.er1 conftest.err
1852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1853 test $ac_status = 0; } && {
1854 test -z "$ac_cxx_werror_flag" ||
1855 test ! -s conftest.err
1856 } && test -s conftest.$ac_objext; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1862 ac_retval=1
1864 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1865 return $ac_retval
1867 } # ac_fn_cxx_try_compile
1869 # ac_fn_c_try_link LINENO
1870 # -----------------------
1871 # Try to link conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_c_try_link ()
1874 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875 rm -f conftest.$ac_objext conftest$ac_exeext
1876 if { { ac_try="$ac_link"
1877 case "(($ac_try" in
1878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879 *) ac_try_echo=$ac_try;;
1880 esac
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883 (eval "$ac_link") 2>conftest.err
1884 ac_status=$?
1885 if test -s conftest.err; then
1886 grep -v '^ *+' conftest.err >conftest.er1
1887 cat conftest.er1 >&5
1888 mv -f conftest.er1 conftest.err
1890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891 test $ac_status = 0; } && {
1892 test -z "$ac_c_werror_flag" ||
1893 test ! -s conftest.err
1894 } && test -s conftest$ac_exeext && {
1895 test "$cross_compiling" = yes ||
1896 $as_test_x conftest$ac_exeext
1897 }; then :
1898 ac_retval=0
1899 else
1900 $as_echo "$as_me: failed program was:" >&5
1901 sed 's/^/| /' conftest.$ac_ext >&5
1903 ac_retval=1
1905 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1906 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1907 # interfere with the next link command; also delete a directory that is
1908 # left behind by Apple's compiler. We do this before executing the actions.
1909 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1910 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1911 return $ac_retval
1913 } # ac_fn_c_try_link
1915 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists and can be compiled using the include files in
1918 # INCLUDES, setting the cache variable VAR accordingly.
1919 ac_fn_c_check_header_compile ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1925 $as_echo_n "(cached) " >&6
1926 else
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 eval "$3=yes"
1934 else
1935 eval "$3=no"
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1944 } # ac_fn_c_check_header_compile
1946 # ac_fn_c_try_cpp LINENO
1947 # ----------------------
1948 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1949 ac_fn_c_try_cpp ()
1951 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952 if { { ac_try="$ac_cpp conftest.$ac_ext"
1953 case "(($ac_try" in
1954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1955 *) ac_try_echo=$ac_try;;
1956 esac
1957 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1958 $as_echo "$ac_try_echo"; } >&5
1959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1960 ac_status=$?
1961 if test -s conftest.err; then
1962 grep -v '^ *+' conftest.err >conftest.er1
1963 cat conftest.er1 >&5
1964 mv -f conftest.er1 conftest.err
1966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1967 test $ac_status = 0; } >/dev/null && {
1968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1969 test ! -s conftest.err
1970 }; then :
1971 ac_retval=0
1972 else
1973 $as_echo "$as_me: failed program was:" >&5
1974 sed 's/^/| /' conftest.$ac_ext >&5
1976 ac_retval=1
1978 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1979 return $ac_retval
1981 } # ac_fn_c_try_cpp
1983 # ac_fn_c_try_run LINENO
1984 # ----------------------
1985 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1986 # that executables *can* be run.
1987 ac_fn_c_try_run ()
1989 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1990 if { { ac_try="$ac_link"
1991 case "(($ac_try" in
1992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1993 *) ac_try_echo=$ac_try;;
1994 esac
1995 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1996 $as_echo "$ac_try_echo"; } >&5
1997 (eval "$ac_link") 2>&5
1998 ac_status=$?
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2001 { { case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_try") 2>&5
2008 ac_status=$?
2009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2010 test $ac_status = 0; }; }; then :
2011 ac_retval=0
2012 else
2013 $as_echo "$as_me: program exited with status $ac_status" >&5
2014 $as_echo "$as_me: failed program was:" >&5
2015 sed 's/^/| /' conftest.$ac_ext >&5
2017 ac_retval=$ac_status
2019 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2020 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2021 return $ac_retval
2023 } # ac_fn_c_try_run
2025 # ac_fn_c_check_func LINENO FUNC VAR
2026 # ----------------------------------
2027 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2028 ac_fn_c_check_func ()
2030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2032 $as_echo_n "checking for $2... " >&6; }
2033 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2034 $as_echo_n "(cached) " >&6
2035 else
2036 if test x$gcc_no_link = xyes; then
2037 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2040 /* end confdefs.h. */
2041 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2042 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2043 #define $2 innocuous_$2
2045 /* System header to define __stub macros and hopefully few prototypes,
2046 which can conflict with char $2 (); below.
2047 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2048 <limits.h> exists even on freestanding compilers. */
2050 #ifdef __STDC__
2051 # include <limits.h>
2052 #else
2053 # include <assert.h>
2054 #endif
2056 #undef $2
2058 /* Override any GCC internal prototype to avoid an error.
2059 Use char because int might match the return type of a GCC
2060 builtin and then its argument prototype would still apply. */
2061 #ifdef __cplusplus
2062 extern "C"
2063 #endif
2064 char $2 ();
2065 /* The GNU C library defines this for functions which it implements
2066 to always fail with ENOSYS. Some functions are actually named
2067 something starting with __ and the normal name is an alias. */
2068 #if defined __stub_$2 || defined __stub___$2
2069 choke me
2070 #endif
2073 main ()
2075 return $2 ();
2077 return 0;
2079 _ACEOF
2080 if ac_fn_c_try_link "$LINENO"; then :
2081 eval "$3=yes"
2082 else
2083 eval "$3=no"
2085 rm -f core conftest.err conftest.$ac_objext \
2086 conftest$ac_exeext conftest.$ac_ext
2088 eval ac_res=\$$3
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2090 $as_echo "$ac_res" >&6; }
2091 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093 } # ac_fn_c_check_func
2095 # ac_fn_cxx_try_cpp LINENO
2096 # ------------------------
2097 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2098 ac_fn_cxx_try_cpp ()
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 if { { ac_try="$ac_cpp conftest.$ac_ext"
2102 case "(($ac_try" in
2103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104 *) ac_try_echo=$ac_try;;
2105 esac
2106 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107 $as_echo "$ac_try_echo"; } >&5
2108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2109 ac_status=$?
2110 if test -s conftest.err; then
2111 grep -v '^ *+' conftest.err >conftest.er1
2112 cat conftest.er1 >&5
2113 mv -f conftest.er1 conftest.err
2115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2116 test $ac_status = 0; } >/dev/null && {
2117 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2118 test ! -s conftest.err
2119 }; then :
2120 ac_retval=0
2121 else
2122 $as_echo "$as_me: failed program was:" >&5
2123 sed 's/^/| /' conftest.$ac_ext >&5
2125 ac_retval=1
2127 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2128 return $ac_retval
2130 } # ac_fn_cxx_try_cpp
2132 # ac_fn_cxx_try_link LINENO
2133 # -------------------------
2134 # Try to link conftest.$ac_ext, and return whether this succeeded.
2135 ac_fn_cxx_try_link ()
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 rm -f conftest.$ac_objext conftest$ac_exeext
2139 if { { ac_try="$ac_link"
2140 case "(($ac_try" in
2141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142 *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146 (eval "$ac_link") 2>conftest.err
2147 ac_status=$?
2148 if test -s conftest.err; then
2149 grep -v '^ *+' conftest.err >conftest.er1
2150 cat conftest.er1 >&5
2151 mv -f conftest.er1 conftest.err
2153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154 test $ac_status = 0; } && {
2155 test -z "$ac_cxx_werror_flag" ||
2156 test ! -s conftest.err
2157 } && test -s conftest$ac_exeext && {
2158 test "$cross_compiling" = yes ||
2159 $as_test_x conftest$ac_exeext
2160 }; then :
2161 ac_retval=0
2162 else
2163 $as_echo "$as_me: failed program was:" >&5
2164 sed 's/^/| /' conftest.$ac_ext >&5
2166 ac_retval=1
2168 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2169 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2170 # interfere with the next link command; also delete a directory that is
2171 # left behind by Apple's compiler. We do this before executing the actions.
2172 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2173 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2174 return $ac_retval
2176 } # ac_fn_cxx_try_link
2178 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2179 # -------------------------------------------------------
2180 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2181 # the include files in INCLUDES and setting the cache variable VAR
2182 # accordingly.
2183 ac_fn_c_check_header_mongrel ()
2185 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2186 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2188 $as_echo_n "checking for $2... " >&6; }
2189 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2190 $as_echo_n "(cached) " >&6
2192 eval ac_res=\$$3
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194 $as_echo "$ac_res" >&6; }
2195 else
2196 # Is the header compilable?
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2198 $as_echo_n "checking $2 usability... " >&6; }
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2202 #include <$2>
2203 _ACEOF
2204 if ac_fn_c_try_compile "$LINENO"; then :
2205 ac_header_compiler=yes
2206 else
2207 ac_header_compiler=no
2209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2211 $as_echo "$ac_header_compiler" >&6; }
2213 # Is the header present?
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2215 $as_echo_n "checking $2 presence... " >&6; }
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2218 #include <$2>
2219 _ACEOF
2220 if ac_fn_c_try_cpp "$LINENO"; then :
2221 ac_header_preproc=yes
2222 else
2223 ac_header_preproc=no
2225 rm -f conftest.err conftest.$ac_ext
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2227 $as_echo "$ac_header_preproc" >&6; }
2229 # So? What about this header?
2230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2231 yes:no: )
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2233 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&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 no:yes:* )
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2239 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2241 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2243 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2245 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2247 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2249 esac
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2251 $as_echo_n "checking for $2... " >&6; }
2252 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2253 $as_echo_n "(cached) " >&6
2254 else
2255 eval "$3=\$ac_header_compiler"
2257 eval ac_res=\$$3
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2261 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2263 } # ac_fn_c_check_header_mongrel
2265 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2266 # ----------------------------------------------------
2267 # Tries to find if the field MEMBER exists in type AGGR, after including
2268 # INCLUDES, setting cache variable VAR accordingly.
2269 ac_fn_c_check_member ()
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2273 $as_echo_n "checking for $2.$3... " >&6; }
2274 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2275 $as_echo_n "(cached) " >&6
2276 else
2277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2278 /* end confdefs.h. */
2281 main ()
2283 static $2 ac_aggr;
2284 if (ac_aggr.$3)
2285 return 0;
2287 return 0;
2289 _ACEOF
2290 if ac_fn_c_try_compile "$LINENO"; then :
2291 eval "$4=yes"
2292 else
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294 /* end confdefs.h. */
2297 main ()
2299 static $2 ac_aggr;
2300 if (sizeof ac_aggr.$3)
2301 return 0;
2303 return 0;
2305 _ACEOF
2306 if ac_fn_c_try_compile "$LINENO"; then :
2307 eval "$4=yes"
2308 else
2309 eval "$4=no"
2311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315 eval ac_res=\$$4
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2317 $as_echo "$ac_res" >&6; }
2318 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2320 } # ac_fn_c_check_member
2322 # ac_fn_c_check_decl LINENO SYMBOL VAR
2323 # ------------------------------------
2324 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2325 ac_fn_c_check_decl ()
2327 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2328 as_decl_name=`echo $2|sed 's/ *(.*//'`
2329 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2331 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2332 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2333 $as_echo_n "(cached) " >&6
2334 else
2335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2336 /* end confdefs.h. */
2339 main ()
2341 #ifndef $as_decl_name
2342 #ifdef __cplusplus
2343 (void) $as_decl_use;
2344 #else
2345 (void) $as_decl_name;
2346 #endif
2347 #endif
2350 return 0;
2352 _ACEOF
2353 if ac_fn_c_try_compile "$LINENO"; then :
2354 eval "$3=yes"
2355 else
2356 eval "$3=no"
2358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360 eval ac_res=\$$3
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362 $as_echo "$ac_res" >&6; }
2363 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2365 } # ac_fn_c_check_decl
2367 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2368 # --------------------------------------------
2369 # Tries to find the compile-time value of EXPR in a program that includes
2370 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2371 # computed
2372 ac_fn_c_compute_int ()
2374 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2375 if test "$cross_compiling" = yes; then
2376 # Depending upon the size, compute the lo and hi bounds.
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2381 main ()
2383 static int test_array [1 - 2 * !(($2) >= 0)];
2384 test_array [0] = 0
2387 return 0;
2389 _ACEOF
2390 if ac_fn_c_try_compile "$LINENO"; then :
2391 ac_lo=0 ac_mid=0
2392 while :; do
2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2394 /* end confdefs.h. */
2397 main ()
2399 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2400 test_array [0] = 0
2403 return 0;
2405 _ACEOF
2406 if ac_fn_c_try_compile "$LINENO"; then :
2407 ac_hi=$ac_mid; break
2408 else
2409 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2410 if test $ac_lo -le $ac_mid; then
2411 ac_lo= ac_hi=
2412 break
2414 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2417 done
2418 else
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h. */
2423 main ()
2425 static int test_array [1 - 2 * !(($2) < 0)];
2426 test_array [0] = 0
2429 return 0;
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433 ac_hi=-1 ac_mid=-1
2434 while :; do
2435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h. */
2439 main ()
2441 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2442 test_array [0] = 0
2445 return 0;
2447 _ACEOF
2448 if ac_fn_c_try_compile "$LINENO"; then :
2449 ac_lo=$ac_mid; break
2450 else
2451 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2452 if test $ac_mid -le $ac_hi; then
2453 ac_lo= ac_hi=
2454 break
2456 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459 done
2460 else
2461 ac_lo= ac_hi=
2463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2466 # Binary search between lo and hi bounds.
2467 while test "x$ac_lo" != "x$ac_hi"; do
2468 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2470 /* end confdefs.h. */
2473 main ()
2475 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2476 test_array [0] = 0
2479 return 0;
2481 _ACEOF
2482 if ac_fn_c_try_compile "$LINENO"; then :
2483 ac_hi=$ac_mid
2484 else
2485 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2488 done
2489 case $ac_lo in #((
2490 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2491 '') ac_retval=1 ;;
2492 esac
2493 else
2494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2495 /* end confdefs.h. */
2497 static long int longval () { return $2; }
2498 static unsigned long int ulongval () { return $2; }
2499 #include <stdio.h>
2500 #include <stdlib.h>
2502 main ()
2505 FILE *f = fopen ("conftest.val", "w");
2506 if (! f)
2507 return 1;
2508 if (($2) < 0)
2510 long int i = longval ();
2511 if (i != ($2))
2512 return 1;
2513 fprintf (f, "%ld", i);
2515 else
2517 unsigned long int i = ulongval ();
2518 if (i != ($2))
2519 return 1;
2520 fprintf (f, "%lu", i);
2522 /* Do not output a trailing newline, as this causes \r\n confusion
2523 on some platforms. */
2524 return ferror (f) || fclose (f) != 0;
2527 return 0;
2529 _ACEOF
2530 if ac_fn_c_try_run "$LINENO"; then :
2531 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2532 else
2533 ac_retval=1
2535 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2536 conftest.$ac_objext conftest.beam conftest.$ac_ext
2537 rm -f conftest.val
2540 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2541 return $ac_retval
2543 } # ac_fn_c_compute_int
2545 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2546 # -------------------------------------------
2547 # Tests whether TYPE exists after having included INCLUDES, setting cache
2548 # variable VAR accordingly.
2549 ac_fn_c_check_type ()
2551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2553 $as_echo_n "checking for $2... " >&6; }
2554 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2555 $as_echo_n "(cached) " >&6
2556 else
2557 eval "$3=no"
2558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2559 /* end confdefs.h. */
2562 main ()
2564 if (sizeof ($2))
2565 return 0;
2567 return 0;
2569 _ACEOF
2570 if ac_fn_c_try_compile "$LINENO"; then :
2571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2572 /* end confdefs.h. */
2575 main ()
2577 if (sizeof (($2)))
2578 return 0;
2580 return 0;
2582 _ACEOF
2583 if ac_fn_c_try_compile "$LINENO"; then :
2585 else
2586 eval "$3=yes"
2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2592 eval ac_res=\$$3
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594 $as_echo "$ac_res" >&6; }
2595 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2597 } # ac_fn_c_check_type
2598 cat >config.log <<_ACEOF
2599 This file contains any messages produced by compilers while
2600 running configure, to aid debugging if configure makes a mistake.
2602 It was created by libjava $as_me version-unused, which was
2603 generated by GNU Autoconf 2.64. Invocation command line was
2605 $ $0 $@
2607 _ACEOF
2608 exec 5>>config.log
2610 cat <<_ASUNAME
2611 ## --------- ##
2612 ## Platform. ##
2613 ## --------- ##
2615 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2616 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2617 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2618 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2619 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2621 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2622 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2624 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2625 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2626 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2627 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2628 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2629 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2630 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2632 _ASUNAME
2634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635 for as_dir in $PATH
2637 IFS=$as_save_IFS
2638 test -z "$as_dir" && as_dir=.
2639 $as_echo "PATH: $as_dir"
2640 done
2641 IFS=$as_save_IFS
2643 } >&5
2645 cat >&5 <<_ACEOF
2648 ## ----------- ##
2649 ## Core tests. ##
2650 ## ----------- ##
2652 _ACEOF
2655 # Keep a trace of the command line.
2656 # Strip out --no-create and --no-recursion so they do not pile up.
2657 # Strip out --silent because we don't want to record it for future runs.
2658 # Also quote any args containing shell meta-characters.
2659 # Make two passes to allow for proper duplicate-argument suppression.
2660 ac_configure_args=
2661 ac_configure_args0=
2662 ac_configure_args1=
2663 ac_must_keep_next=false
2664 for ac_pass in 1 2
2666 for ac_arg
2668 case $ac_arg in
2669 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2670 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2671 | -silent | --silent | --silen | --sile | --sil)
2672 continue ;;
2673 *\'*)
2674 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2675 esac
2676 case $ac_pass in
2677 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2679 as_fn_append ac_configure_args1 " '$ac_arg'"
2680 if test $ac_must_keep_next = true; then
2681 ac_must_keep_next=false # Got value, back to normal.
2682 else
2683 case $ac_arg in
2684 *=* | --config-cache | -C | -disable-* | --disable-* \
2685 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2686 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2687 | -with-* | --with-* | -without-* | --without-* | --x)
2688 case "$ac_configure_args0 " in
2689 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2690 esac
2692 -* ) ac_must_keep_next=true ;;
2693 esac
2695 as_fn_append ac_configure_args " '$ac_arg'"
2697 esac
2698 done
2699 done
2700 { ac_configure_args0=; unset ac_configure_args0;}
2701 { ac_configure_args1=; unset ac_configure_args1;}
2703 # When interrupted or exit'd, cleanup temporary files, and complete
2704 # config.log. We remove comments because anyway the quotes in there
2705 # would cause problems or look ugly.
2706 # WARNING: Use '\'' to represent an apostrophe within the trap.
2707 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2708 trap 'exit_status=$?
2709 # Save into config.log some information that might help in debugging.
2711 echo
2713 cat <<\_ASBOX
2714 ## ---------------- ##
2715 ## Cache variables. ##
2716 ## ---------------- ##
2717 _ASBOX
2718 echo
2719 # The following way of writing the cache mishandles newlines in values,
2721 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2722 eval ac_val=\$$ac_var
2723 case $ac_val in #(
2724 *${as_nl}*)
2725 case $ac_var in #(
2726 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2727 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2728 esac
2729 case $ac_var in #(
2730 _ | IFS | as_nl) ;; #(
2731 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2732 *) { eval $ac_var=; unset $ac_var;} ;;
2733 esac ;;
2734 esac
2735 done
2736 (set) 2>&1 |
2737 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2738 *${as_nl}ac_space=\ *)
2739 sed -n \
2740 "s/'\''/'\''\\\\'\'''\''/g;
2741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2742 ;; #(
2744 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2746 esac |
2747 sort
2749 echo
2751 cat <<\_ASBOX
2752 ## ----------------- ##
2753 ## Output variables. ##
2754 ## ----------------- ##
2755 _ASBOX
2756 echo
2757 for ac_var in $ac_subst_vars
2759 eval ac_val=\$$ac_var
2760 case $ac_val in
2761 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2762 esac
2763 $as_echo "$ac_var='\''$ac_val'\''"
2764 done | sort
2765 echo
2767 if test -n "$ac_subst_files"; then
2768 cat <<\_ASBOX
2769 ## ------------------- ##
2770 ## File substitutions. ##
2771 ## ------------------- ##
2772 _ASBOX
2773 echo
2774 for ac_var in $ac_subst_files
2776 eval ac_val=\$$ac_var
2777 case $ac_val in
2778 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2779 esac
2780 $as_echo "$ac_var='\''$ac_val'\''"
2781 done | sort
2782 echo
2785 if test -s confdefs.h; then
2786 cat <<\_ASBOX
2787 ## ----------- ##
2788 ## confdefs.h. ##
2789 ## ----------- ##
2790 _ASBOX
2791 echo
2792 cat confdefs.h
2793 echo
2795 test "$ac_signal" != 0 &&
2796 $as_echo "$as_me: caught signal $ac_signal"
2797 $as_echo "$as_me: exit $exit_status"
2798 } >&5
2799 rm -f core *.core core.conftest.* &&
2800 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2801 exit $exit_status
2803 for ac_signal in 1 2 13 15; do
2804 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2805 done
2806 ac_signal=0
2808 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2809 rm -f -r conftest* confdefs.h
2811 $as_echo "/* confdefs.h */" > confdefs.h
2813 # Predefined preprocessor variables.
2815 cat >>confdefs.h <<_ACEOF
2816 #define PACKAGE_NAME "$PACKAGE_NAME"
2817 _ACEOF
2819 cat >>confdefs.h <<_ACEOF
2820 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2821 _ACEOF
2823 cat >>confdefs.h <<_ACEOF
2824 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2825 _ACEOF
2827 cat >>confdefs.h <<_ACEOF
2828 #define PACKAGE_STRING "$PACKAGE_STRING"
2829 _ACEOF
2831 cat >>confdefs.h <<_ACEOF
2832 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2833 _ACEOF
2835 cat >>confdefs.h <<_ACEOF
2836 #define PACKAGE_URL "$PACKAGE_URL"
2837 _ACEOF
2840 # Let the site file select an alternate cache file if it wants to.
2841 # Prefer an explicitly selected file to automatically selected ones.
2842 ac_site_file1=NONE
2843 ac_site_file2=NONE
2844 if test -n "$CONFIG_SITE"; then
2845 ac_site_file1=$CONFIG_SITE
2846 elif test "x$prefix" != xNONE; then
2847 ac_site_file1=$prefix/share/config.site
2848 ac_site_file2=$prefix/etc/config.site
2849 else
2850 ac_site_file1=$ac_default_prefix/share/config.site
2851 ac_site_file2=$ac_default_prefix/etc/config.site
2853 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2855 test "x$ac_site_file" = xNONE && continue
2856 if test -r "$ac_site_file"; then
2857 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2858 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2859 sed 's/^/| /' "$ac_site_file" >&5
2860 . "$ac_site_file"
2862 done
2864 if test -r "$cache_file"; then
2865 # Some versions of bash will fail to source /dev/null (special
2866 # files actually), so we avoid doing that.
2867 if test -f "$cache_file"; then
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2869 $as_echo "$as_me: loading cache $cache_file" >&6;}
2870 case $cache_file in
2871 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2872 *) . "./$cache_file";;
2873 esac
2875 else
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2877 $as_echo "$as_me: creating cache $cache_file" >&6;}
2878 >$cache_file
2881 # Check that the precious variables saved in the cache have kept the same
2882 # value.
2883 ac_cache_corrupted=false
2884 for ac_var in $ac_precious_vars; do
2885 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2886 eval ac_new_set=\$ac_env_${ac_var}_set
2887 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2888 eval ac_new_val=\$ac_env_${ac_var}_value
2889 case $ac_old_set,$ac_new_set in
2890 set,)
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2892 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2893 ac_cache_corrupted=: ;;
2894 ,set)
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2896 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2897 ac_cache_corrupted=: ;;
2898 ,);;
2900 if test "x$ac_old_val" != "x$ac_new_val"; then
2901 # differences in whitespace do not lead to failure.
2902 ac_old_val_w=`echo x $ac_old_val`
2903 ac_new_val_w=`echo x $ac_new_val`
2904 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2906 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2907 ac_cache_corrupted=:
2908 else
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2910 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2911 eval $ac_var=\$ac_old_val
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2914 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2916 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2917 fi;;
2918 esac
2919 # Pass precious variables to config.status.
2920 if test "$ac_new_set" = set; then
2921 case $ac_new_val in
2922 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2923 *) ac_arg=$ac_var=$ac_new_val ;;
2924 esac
2925 case " $ac_configure_args " in
2926 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2927 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2928 esac
2930 done
2931 if $ac_cache_corrupted; then
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2933 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2935 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2936 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2938 ## -------------------- ##
2939 ## Main body of script. ##
2940 ## -------------------- ##
2942 ac_ext=c
2943 ac_cpp='$CPP $CPPFLAGS'
2944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2955 ac_aux_dir=
2956 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2957 for ac_t in install-sh install.sh shtool; do
2958 if test -f "$ac_dir/$ac_t"; then
2959 ac_aux_dir=$ac_dir
2960 ac_install_sh="$ac_aux_dir/$ac_t -c"
2961 break 2
2963 done
2964 done
2965 if test -z "$ac_aux_dir"; then
2966 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2969 # These three variables are undocumented and unsupported,
2970 # and are intended to be withdrawn in a future Autoconf release.
2971 # They can cause serious problems if a builder's source tree is in a directory
2972 # whose full name contains unusual characters.
2973 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2974 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2975 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2978 # Make sure we can run config.sub.
2979 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2980 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2983 $as_echo_n "checking build system type... " >&6; }
2984 if test "${ac_cv_build+set}" = set; then :
2985 $as_echo_n "(cached) " >&6
2986 else
2987 ac_build_alias=$build_alias
2988 test "x$ac_build_alias" = x &&
2989 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2990 test "x$ac_build_alias" = x &&
2991 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2992 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2993 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2997 $as_echo "$ac_cv_build" >&6; }
2998 case $ac_cv_build in
2999 *-*-*) ;;
3000 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3001 esac
3002 build=$ac_cv_build
3003 ac_save_IFS=$IFS; IFS='-'
3004 set x $ac_cv_build
3005 shift
3006 build_cpu=$1
3007 build_vendor=$2
3008 shift; shift
3009 # Remember, the first character of IFS is used to create $*,
3010 # except with old shells:
3011 build_os=$*
3012 IFS=$ac_save_IFS
3013 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3016 case ${build_alias} in
3017 "") build_noncanonical=${build} ;;
3018 *) build_noncanonical=${build_alias} ;;
3019 esac
3021 case ${host_alias} in
3022 "") host_noncanonical=${build_noncanonical} ;;
3023 *) host_noncanonical=${host_alias} ;;
3024 esac
3026 case ${target_alias} in
3027 "") target_noncanonical=${host_noncanonical} ;;
3028 *) target_noncanonical=${target_alias} ;;
3029 esac
3032 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3033 # have matching libraries, they should use host libraries: Makefile.tpl
3034 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3035 # However, they still use the build modules, because the corresponding
3036 # host modules (e.g. bison) are only built for the host when bootstrap
3037 # finishes. So:
3038 # - build_subdir is where we find build modules, and never changes.
3039 # - build_libsubdir is where we find build libraries, and can be overridden.
3041 # Prefix 'build-' so this never conflicts with target_subdir.
3042 build_subdir="build-${build_noncanonical}"
3044 # Check whether --with-build-libsubdir was given.
3045 if test "${with_build_libsubdir+set}" = set; then :
3046 withval=$with_build_libsubdir; build_libsubdir="$withval"
3047 else
3048 build_libsubdir="$build_subdir"
3051 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3052 if ( test $srcdir = . && test -d gcc ) \
3053 || test -d $srcdir/../host-${host_noncanonical}; then
3054 host_subdir="host-${host_noncanonical}"
3055 else
3056 host_subdir=.
3058 # No prefix.
3059 target_subdir=${target_noncanonical}
3062 # We use these options to decide which functions to include.
3064 # Check whether --with-target-subdir was given.
3065 if test "${with_target_subdir+set}" = set; then :
3066 withval=$with_target_subdir;
3070 # We may get other options which we don't document:
3071 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3073 # Find the rest of the source tree framework.
3074 # Default to --enable-multilib
3075 # Check whether --enable-multilib was given.
3076 if test "${enable_multilib+set}" = set; then :
3077 enableval=$enable_multilib; case "$enableval" in
3078 yes) multilib=yes ;;
3079 no) multilib=no ;;
3080 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3081 esac
3082 else
3083 multilib=yes
3087 # We may get other options which we leave undocumented:
3088 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3089 # See config-ml.in if you want the gory details.
3091 if test "$srcdir" = "."; then
3092 if test "$with_target_subdir" != "."; then
3093 multi_basedir="$srcdir/$with_multisrctop../.."
3094 else
3095 multi_basedir="$srcdir/$with_multisrctop.."
3097 else
3098 multi_basedir="$srcdir/.."
3102 # Even if the default multilib is not a cross compilation,
3103 # it may be that some of the other multilibs are.
3104 if test $cross_compiling = no && test $multilib = yes \
3105 && test "x${with_multisubdir}" != x ; then
3106 cross_compiling=maybe
3109 ac_config_commands="$ac_config_commands default-1"
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3113 $as_echo_n "checking host system type... " >&6; }
3114 if test "${ac_cv_host+set}" = set; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test "x$host_alias" = x; then
3118 ac_cv_host=$ac_cv_build
3119 else
3120 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3121 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3126 $as_echo "$ac_cv_host" >&6; }
3127 case $ac_cv_host in
3128 *-*-*) ;;
3129 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3130 esac
3131 host=$ac_cv_host
3132 ac_save_IFS=$IFS; IFS='-'
3133 set x $ac_cv_host
3134 shift
3135 host_cpu=$1
3136 host_vendor=$2
3137 shift; shift
3138 # Remember, the first character of IFS is used to create $*,
3139 # except with old shells:
3140 host_os=$*
3141 IFS=$ac_save_IFS
3142 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3146 $as_echo_n "checking target system type... " >&6; }
3147 if test "${ac_cv_target+set}" = set; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 if test "x$target_alias" = x; then
3151 ac_cv_target=$ac_cv_host
3152 else
3153 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3154 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3159 $as_echo "$ac_cv_target" >&6; }
3160 case $ac_cv_target in
3161 *-*-*) ;;
3162 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3163 esac
3164 target=$ac_cv_target
3165 ac_save_IFS=$IFS; IFS='-'
3166 set x $ac_cv_target
3167 shift
3168 target_cpu=$1
3169 target_vendor=$2
3170 shift; shift
3171 # Remember, the first character of IFS is used to create $*,
3172 # except with old shells:
3173 target_os=$*
3174 IFS=$ac_save_IFS
3175 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3178 # The aliases save the names the user supplied, while $host etc.
3179 # will get canonicalized.
3180 test -n "$target_alias" &&
3181 test "$program_prefix$program_suffix$program_transform_name" = \
3182 NONENONEs,x,x, &&
3183 program_prefix=${target_alias}-
3185 case ${build_alias} in
3186 "") build_noncanonical=${build} ;;
3187 *) build_noncanonical=${build_alias} ;;
3188 esac
3190 case ${target_alias} in
3191 "") target_noncanonical=${host_noncanonical} ;;
3192 *) target_noncanonical=${target_alias} ;;
3193 esac
3198 # This works around the fact that libtool configuration may change LD
3199 # for this particular configuration, but some shells, instead of
3200 # keeping the changes in LD private, export them just because LD is
3201 # exported.
3202 ORIGINAL_LD_FOR_MULTILIBS=$LD
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3205 $as_echo_n "checking whether ln -s works... " >&6; }
3206 LN_S=$as_ln_s
3207 if test "$LN_S" = "ln -s"; then
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3209 $as_echo "yes" >&6; }
3210 else
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3212 $as_echo "no, using $LN_S" >&6; }
3216 # This works around an automake problem.
3217 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3221 # Check whether --with-cross-host was given.
3222 if test "${with_cross_host+set}" = set; then :
3223 withval=$with_cross_host;
3228 # Check whether --with-newlib was given.
3229 if test "${with_newlib+set}" = set; then :
3230 withval=$with_newlib;
3234 # Check whether --enable-version-specific-runtime-libs was given.
3235 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3236 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3237 yes) version_specific_libs=yes ;;
3238 no) version_specific_libs=no ;;
3239 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3240 esac
3241 else
3242 version_specific_libs=no
3247 # Check whether --enable-browser-plugin was given.
3248 if test "${enable_browser_plugin+set}" = set; then :
3249 enableval=$enable_browser_plugin; case "$enableval" in
3250 yes) browser_plugin_enabled=yes ;;
3251 no) browser_plugin_enabled=no ;;
3252 *) as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3253 esac
3254 else
3255 browser_plugin_enabled=no
3260 # Check whether --enable-gconf-peer was given.
3261 if test "${enable_gconf_peer+set}" = set; then :
3262 enableval=$enable_gconf_peer; case "$enableval" in
3263 yes) gconf_enabled=yes ;;
3264 no) gconf_enabled=no ;;
3265 *) as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3266 esac
3267 else
3268 gconf_enabled=no
3274 # Check whether --with-antlr-jar was given.
3275 if test "${with_antlr_jar+set}" = set; then :
3276 withval=$with_antlr_jar;
3277 ANTLR_JAR=$withval
3279 else
3281 ANTLR_JAR=
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3287 $as_echo_n "checking for antlr.jar... " >&6; }
3288 if test "x$ANTLR_JAR" = x; then
3289 for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3290 /usr/share/antlr/lib /usr/share/java /usr/lib;
3292 if test -f "$antlr_lib_home/antlr.jar"; then
3293 # FIXME: version check for antlr needed without using a VM
3294 ANTLR_JAR="$antlr_lib_home/antlr.jar"
3295 break
3297 done
3298 if test "x$ANTLR_JAR" = x; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3300 $as_echo "not found" >&6; }
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3303 $as_echo "$ANTLR_JAR" >&6; }
3305 else
3306 if test -f "${ANTLR_JAR}"; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3308 $as_echo "$ANTLR_JAR" >&6; }
3309 else
3310 as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3315 # Check whether --enable-gjdoc was given.
3316 if test "${enable_gjdoc+set}" = set; then :
3317 enableval=$enable_gjdoc; case "${enableval}" in
3318 yes) BUILD_GJDOC=yes ;;
3319 no) BUILD_GJDOC=no ;;
3320 *) BUILD_GJDOC=yes ;;
3321 esac
3322 else
3323 BUILD_GJDOC=maybe
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3328 $as_echo_n "checking whether to build gjdoc... " >&6; }
3329 if test "x$BUILD_GJDOC" = xmaybe; then
3330 if test -f "${ANTLR_JAR}"; then
3331 BUILD_GJDOC=yes
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3334 else
3335 BUILD_GJDOC=no
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3337 $as_echo "no, antlr.jar not found" >&6; }
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3341 $as_echo "$BUILD_GJDOC" >&6; }
3343 if test "x${BUILD_GJDOC}" = xyes; then
3344 CREATE_GJDOC_TRUE=
3345 CREATE_GJDOC_FALSE='#'
3346 else
3347 CREATE_GJDOC_TRUE='#'
3348 CREATE_GJDOC_FALSE=
3352 # Check whether --enable-java-maintainer-mode was given.
3353 if test "${enable_java_maintainer_mode+set}" = set; then :
3354 enableval=$enable_java_maintainer_mode;
3357 if test "$enable_java_maintainer_mode" = yes; then
3358 JAVA_MAINTAINER_MODE_TRUE=
3359 JAVA_MAINTAINER_MODE_FALSE='#'
3360 else
3361 JAVA_MAINTAINER_MODE_TRUE='#'
3362 JAVA_MAINTAINER_MODE_FALSE=
3366 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3369 # For libstdc++-v3, -fno-builtin must be present here so that a
3370 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3371 # used in later tests. This may not be necessary in libjava; I don't know.
3372 save_CXXFLAGS="$CXXFLAGS"
3373 CXXFLAGS="$CXXFLAGS -fno-builtin"
3374 ac_ext=c
3375 ac_cpp='$CPP $CPPFLAGS'
3376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3379 if test -n "$ac_tool_prefix"; then
3380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3381 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3383 $as_echo_n "checking for $ac_word... " >&6; }
3384 if test "${ac_cv_prog_CC+set}" = set; then :
3385 $as_echo_n "(cached) " >&6
3386 else
3387 if test -n "$CC"; then
3388 ac_cv_prog_CC="$CC" # Let the user override the test.
3389 else
3390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3391 for as_dir in $PATH
3393 IFS=$as_save_IFS
3394 test -z "$as_dir" && as_dir=.
3395 for ac_exec_ext in '' $ac_executable_extensions; do
3396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3397 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3399 break 2
3401 done
3402 done
3403 IFS=$as_save_IFS
3407 CC=$ac_cv_prog_CC
3408 if test -n "$CC"; then
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3410 $as_echo "$CC" >&6; }
3411 else
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3418 if test -z "$ac_cv_prog_CC"; then
3419 ac_ct_CC=$CC
3420 # Extract the first word of "gcc", so it can be a program name with args.
3421 set dummy gcc; ac_word=$2
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423 $as_echo_n "checking for $ac_word... " >&6; }
3424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 if test -n "$ac_ct_CC"; then
3428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3429 else
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 for as_dir in $PATH
3433 IFS=$as_save_IFS
3434 test -z "$as_dir" && as_dir=.
3435 for ac_exec_ext in '' $ac_executable_extensions; do
3436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437 ac_cv_prog_ac_ct_CC="gcc"
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 break 2
3441 done
3442 done
3443 IFS=$as_save_IFS
3447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3448 if test -n "$ac_ct_CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3450 $as_echo "$ac_ct_CC" >&6; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3456 if test "x$ac_ct_CC" = x; then
3457 CC=""
3458 else
3459 case $cross_compiling:$ac_tool_warned in
3460 yes:)
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 ac_tool_warned=yes ;;
3464 esac
3465 CC=$ac_ct_CC
3467 else
3468 CC="$ac_cv_prog_CC"
3471 if test -z "$CC"; then
3472 if test -n "$ac_tool_prefix"; then
3473 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3474 set dummy ${ac_tool_prefix}cc; ac_word=$2
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3476 $as_echo_n "checking for $ac_word... " >&6; }
3477 if test "${ac_cv_prog_CC+set}" = set; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 if test -n "$CC"; then
3481 ac_cv_prog_CC="$CC" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3486 IFS=$as_save_IFS
3487 test -z "$as_dir" && as_dir=.
3488 for ac_exec_ext in '' $ac_executable_extensions; do
3489 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3490 ac_cv_prog_CC="${ac_tool_prefix}cc"
3491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3492 break 2
3494 done
3495 done
3496 IFS=$as_save_IFS
3500 CC=$ac_cv_prog_CC
3501 if test -n "$CC"; then
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3503 $as_echo "$CC" >&6; }
3504 else
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3512 if test -z "$CC"; then
3513 # Extract the first word of "cc", so it can be a program name with args.
3514 set dummy cc; ac_word=$2
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3516 $as_echo_n "checking for $ac_word... " >&6; }
3517 if test "${ac_cv_prog_CC+set}" = set; then :
3518 $as_echo_n "(cached) " >&6
3519 else
3520 if test -n "$CC"; then
3521 ac_cv_prog_CC="$CC" # Let the user override the test.
3522 else
3523 ac_prog_rejected=no
3524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3525 for as_dir in $PATH
3527 IFS=$as_save_IFS
3528 test -z "$as_dir" && as_dir=.
3529 for ac_exec_ext in '' $ac_executable_extensions; do
3530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3531 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3532 ac_prog_rejected=yes
3533 continue
3535 ac_cv_prog_CC="cc"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 break 2
3539 done
3540 done
3541 IFS=$as_save_IFS
3543 if test $ac_prog_rejected = yes; then
3544 # We found a bogon in the path, so make sure we never use it.
3545 set dummy $ac_cv_prog_CC
3546 shift
3547 if test $# != 0; then
3548 # We chose a different compiler from the bogus one.
3549 # However, it has the same basename, so the bogon will be chosen
3550 # first if we set CC to just the basename; use the full file name.
3551 shift
3552 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3557 CC=$ac_cv_prog_CC
3558 if test -n "$CC"; then
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3560 $as_echo "$CC" >&6; }
3561 else
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 $as_echo "no" >&6; }
3568 if test -z "$CC"; then
3569 if test -n "$ac_tool_prefix"; then
3570 for ac_prog in cl.exe
3572 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3573 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3575 $as_echo_n "checking for $ac_word... " >&6; }
3576 if test "${ac_cv_prog_CC+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
3578 else
3579 if test -n "$CC"; then
3580 ac_cv_prog_CC="$CC" # Let the user override the test.
3581 else
3582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3583 for as_dir in $PATH
3585 IFS=$as_save_IFS
3586 test -z "$as_dir" && as_dir=.
3587 for ac_exec_ext in '' $ac_executable_extensions; do
3588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3589 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3591 break 2
3593 done
3594 done
3595 IFS=$as_save_IFS
3599 CC=$ac_cv_prog_CC
3600 if test -n "$CC"; then
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3602 $as_echo "$CC" >&6; }
3603 else
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3605 $as_echo "no" >&6; }
3609 test -n "$CC" && break
3610 done
3612 if test -z "$CC"; then
3613 ac_ct_CC=$CC
3614 for ac_prog in cl.exe
3616 # Extract the first word of "$ac_prog", so it can be a program name with args.
3617 set dummy $ac_prog; ac_word=$2
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3619 $as_echo_n "checking for $ac_word... " >&6; }
3620 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3621 $as_echo_n "(cached) " >&6
3622 else
3623 if test -n "$ac_ct_CC"; then
3624 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3625 else
3626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3627 for as_dir in $PATH
3629 IFS=$as_save_IFS
3630 test -z "$as_dir" && as_dir=.
3631 for ac_exec_ext in '' $ac_executable_extensions; do
3632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3633 ac_cv_prog_ac_ct_CC="$ac_prog"
3634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 break 2
3637 done
3638 done
3639 IFS=$as_save_IFS
3643 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3644 if test -n "$ac_ct_CC"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3646 $as_echo "$ac_ct_CC" >&6; }
3647 else
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 $as_echo "no" >&6; }
3653 test -n "$ac_ct_CC" && break
3654 done
3656 if test "x$ac_ct_CC" = x; then
3657 CC=""
3658 else
3659 case $cross_compiling:$ac_tool_warned in
3660 yes:)
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3663 ac_tool_warned=yes ;;
3664 esac
3665 CC=$ac_ct_CC
3672 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3673 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3674 as_fn_error "no acceptable C compiler found in \$PATH
3675 See \`config.log' for more details." "$LINENO" 5; }
3677 # Provide some information about the compiler.
3678 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3679 set X $ac_compile
3680 ac_compiler=$2
3681 for ac_option in --version -v -V -qversion; do
3682 { { ac_try="$ac_compiler $ac_option >&5"
3683 case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3690 ac_status=$?
3691 if test -s conftest.err; then
3692 sed '10a\
3693 ... rest of stderr output deleted ...
3694 10q' conftest.err >conftest.er1
3695 cat conftest.er1 >&5
3696 rm -f conftest.er1 conftest.err
3698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3699 test $ac_status = 0; }
3700 done
3702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703 /* end confdefs.h. */
3706 main ()
3710 return 0;
3712 _ACEOF
3713 # FIXME: Cleanup?
3714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3715 (eval $ac_link) 2>&5
3716 ac_status=$?
3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }; then :
3719 gcc_no_link=no
3720 else
3721 gcc_no_link=yes
3723 if test x$gcc_no_link = xyes; then
3724 # Setting cross_compile will disable run tests; it will
3725 # also disable AC_CHECK_FILE but that's generally
3726 # correct if we can't link.
3727 cross_compiling=yes
3728 EXEEXT=
3729 else
3730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3731 /* end confdefs.h. */
3734 main ()
3738 return 0;
3740 _ACEOF
3741 ac_clean_files_save=$ac_clean_files
3742 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3743 # Try to create an executable without -o first, disregard a.out.
3744 # It will help us diagnose broken compilers, and finding out an intuition
3745 # of exeext.
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3747 $as_echo_n "checking for C compiler default output file name... " >&6; }
3748 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3750 # The possible output files:
3751 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3753 ac_rmfiles=
3754 for ac_file in $ac_files
3756 case $ac_file in
3757 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3758 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3759 esac
3760 done
3761 rm -f $ac_rmfiles
3763 if { { ac_try="$ac_link_default"
3764 case "(($ac_try" in
3765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3767 esac
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_link_default") 2>&5
3771 ac_status=$?
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }; then :
3774 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3775 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3776 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3777 # so that the user can short-circuit this test for compilers unknown to
3778 # Autoconf.
3779 for ac_file in $ac_files ''
3781 test -f "$ac_file" || continue
3782 case $ac_file in
3783 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3785 [ab].out )
3786 # We found the default executable, but exeext='' is most
3787 # certainly right.
3788 break;;
3789 *.* )
3790 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3791 then :; else
3792 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3794 # We set ac_cv_exeext here because the later test for it is not
3795 # safe: cross compilers may not add the suffix if given an `-o'
3796 # argument, so we may need to know it at that point already.
3797 # Even if this section looks crufty: it has the advantage of
3798 # actually working.
3799 break;;
3801 break;;
3802 esac
3803 done
3804 test "$ac_cv_exeext" = no && ac_cv_exeext=
3806 else
3807 ac_file=''
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3810 $as_echo "$ac_file" >&6; }
3811 if test -z "$ac_file"; then :
3812 $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 { as_fn_set_status 77
3818 as_fn_error "C compiler cannot create executables
3819 See \`config.log' for more details." "$LINENO" 5; }; }
3821 ac_exeext=$ac_cv_exeext
3823 # Check that the compiler produces executables we can run. If not, either
3824 # the compiler is broken, or we cross compile.
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3826 $as_echo_n "checking whether the C compiler works... " >&6; }
3827 # If not cross compiling, check that we can run a simple program.
3828 if test "$cross_compiling" != yes; then
3829 if { ac_try='./$ac_file'
3830 { { case "(($ac_try" in
3831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3832 *) ac_try_echo=$ac_try;;
3833 esac
3834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3835 $as_echo "$ac_try_echo"; } >&5
3836 (eval "$ac_try") 2>&5
3837 ac_status=$?
3838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3839 test $ac_status = 0; }; }; then
3840 cross_compiling=no
3841 else
3842 if test "$cross_compiling" = maybe; then
3843 cross_compiling=yes
3844 else
3845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3847 as_fn_error "cannot run C compiled programs.
3848 If you meant to cross compile, use \`--host'.
3849 See \`config.log' for more details." "$LINENO" 5; }
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3854 $as_echo "yes" >&6; }
3856 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3857 ac_clean_files=$ac_clean_files_save
3858 # Check that the compiler produces executables we can run. If not, either
3859 # the compiler is broken, or we cross compile.
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3861 $as_echo_n "checking whether we are cross compiling... " >&6; }
3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3863 $as_echo "$cross_compiling" >&6; }
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3866 $as_echo_n "checking for suffix of executables... " >&6; }
3867 if { { ac_try="$ac_link"
3868 case "(($ac_try" in
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3871 esac
3872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3873 $as_echo "$ac_try_echo"; } >&5
3874 (eval "$ac_link") 2>&5
3875 ac_status=$?
3876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3877 test $ac_status = 0; }; then :
3878 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3879 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3880 # work properly (i.e., refer to `conftest.exe'), while it won't with
3881 # `rm'.
3882 for ac_file in conftest.exe conftest conftest.*; do
3883 test -f "$ac_file" || continue
3884 case $ac_file in
3885 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3886 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3887 break;;
3888 * ) break;;
3889 esac
3890 done
3891 else
3892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894 as_fn_error "cannot compute suffix of executables: cannot compile and link
3895 See \`config.log' for more details." "$LINENO" 5; }
3897 rm -f conftest$ac_cv_exeext
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3899 $as_echo "$ac_cv_exeext" >&6; }
3901 rm -f conftest.$ac_ext
3902 EXEEXT=$ac_cv_exeext
3903 ac_exeext=$EXEEXT
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3906 $as_echo_n "checking for suffix of object files... " >&6; }
3907 if test "${ac_cv_objext+set}" = set; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3914 main ()
3918 return 0;
3920 _ACEOF
3921 rm -f conftest.o conftest.obj
3922 if { { ac_try="$ac_compile"
3923 case "(($ac_try" in
3924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925 *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3928 $as_echo "$ac_try_echo"; } >&5
3929 (eval "$ac_compile") 2>&5
3930 ac_status=$?
3931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3932 test $ac_status = 0; }; then :
3933 for ac_file in conftest.o conftest.obj conftest.*; do
3934 test -f "$ac_file" || continue;
3935 case $ac_file in
3936 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3937 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3938 break;;
3939 esac
3940 done
3941 else
3942 $as_echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3947 as_fn_error "cannot compute suffix of object files: cannot compile
3948 See \`config.log' for more details." "$LINENO" 5; }
3950 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3953 $as_echo "$ac_cv_objext" >&6; }
3954 OBJEXT=$ac_cv_objext
3955 ac_objext=$OBJEXT
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3957 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3958 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3959 $as_echo_n "(cached) " >&6
3960 else
3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3962 /* end confdefs.h. */
3965 main ()
3967 #ifndef __GNUC__
3968 choke me
3969 #endif
3972 return 0;
3974 _ACEOF
3975 if ac_fn_c_try_compile "$LINENO"; then :
3976 ac_compiler_gnu=yes
3977 else
3978 ac_compiler_gnu=no
3980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3981 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3985 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3986 if test $ac_compiler_gnu = yes; then
3987 GCC=yes
3988 else
3989 GCC=
3991 ac_test_CFLAGS=${CFLAGS+set}
3992 ac_save_CFLAGS=$CFLAGS
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3994 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3995 if test "${ac_cv_prog_cc_g+set}" = set; then :
3996 $as_echo_n "(cached) " >&6
3997 else
3998 ac_save_c_werror_flag=$ac_c_werror_flag
3999 ac_c_werror_flag=yes
4000 ac_cv_prog_cc_g=no
4001 CFLAGS="-g"
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4006 main ()
4010 return 0;
4012 _ACEOF
4013 if ac_fn_c_try_compile "$LINENO"; then :
4014 ac_cv_prog_cc_g=yes
4015 else
4016 CFLAGS=""
4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h. */
4021 main ()
4025 return 0;
4027 _ACEOF
4028 if ac_fn_c_try_compile "$LINENO"; then :
4030 else
4031 ac_c_werror_flag=$ac_save_c_werror_flag
4032 CFLAGS="-g"
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4037 main ()
4041 return 0;
4043 _ACEOF
4044 if ac_fn_c_try_compile "$LINENO"; then :
4045 ac_cv_prog_cc_g=yes
4047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4052 ac_c_werror_flag=$ac_save_c_werror_flag
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4055 $as_echo "$ac_cv_prog_cc_g" >&6; }
4056 if test "$ac_test_CFLAGS" = set; then
4057 CFLAGS=$ac_save_CFLAGS
4058 elif test $ac_cv_prog_cc_g = yes; then
4059 if test "$GCC" = yes; then
4060 CFLAGS="-g -O2"
4061 else
4062 CFLAGS="-g"
4064 else
4065 if test "$GCC" = yes; then
4066 CFLAGS="-O2"
4067 else
4068 CFLAGS=
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4072 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4073 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4074 $as_echo_n "(cached) " >&6
4075 else
4076 ac_cv_prog_cc_c89=no
4077 ac_save_CC=$CC
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 #include <stdarg.h>
4081 #include <stdio.h>
4082 #include <sys/types.h>
4083 #include <sys/stat.h>
4084 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4085 struct buf { int x; };
4086 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4087 static char *e (p, i)
4088 char **p;
4089 int i;
4091 return p[i];
4093 static char *f (char * (*g) (char **, int), char **p, ...)
4095 char *s;
4096 va_list v;
4097 va_start (v,p);
4098 s = g (p, va_arg (v,int));
4099 va_end (v);
4100 return s;
4103 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4104 function prototypes and stuff, but not '\xHH' hex character constants.
4105 These don't provoke an error unfortunately, instead are silently treated
4106 as 'x'. The following induces an error, until -std is added to get
4107 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4108 array size at least. It's necessary to write '\x00'==0 to get something
4109 that's true only with -std. */
4110 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4112 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4113 inside strings and character constants. */
4114 #define FOO(x) 'x'
4115 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4117 int test (int i, double x);
4118 struct s1 {int (*f) (int a);};
4119 struct s2 {int (*f) (double a);};
4120 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4121 int argc;
4122 char **argv;
4124 main ()
4126 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4128 return 0;
4130 _ACEOF
4131 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4132 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4134 CC="$ac_save_CC $ac_arg"
4135 if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_cv_prog_cc_c89=$ac_arg
4138 rm -f core conftest.err conftest.$ac_objext
4139 test "x$ac_cv_prog_cc_c89" != "xno" && break
4140 done
4141 rm -f conftest.$ac_ext
4142 CC=$ac_save_CC
4145 # AC_CACHE_VAL
4146 case "x$ac_cv_prog_cc_c89" in
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4149 $as_echo "none needed" >&6; } ;;
4150 xno)
4151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4152 $as_echo "unsupported" >&6; } ;;
4154 CC="$CC $ac_cv_prog_cc_c89"
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4156 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4157 esac
4158 if test "x$ac_cv_prog_cc_c89" != xno; then :
4162 ac_ext=c
4163 ac_cpp='$CPP $CPPFLAGS'
4164 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4168 ac_ext=cpp
4169 ac_cpp='$CXXCPP $CPPFLAGS'
4170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4173 if test -z "$CXX"; then
4174 if test -n "$CCC"; then
4175 CXX=$CCC
4176 else
4177 if test -n "$ac_tool_prefix"; then
4178 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4180 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4181 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4183 $as_echo_n "checking for $ac_word... " >&6; }
4184 if test "${ac_cv_prog_CXX+set}" = set; then :
4185 $as_echo_n "(cached) " >&6
4186 else
4187 if test -n "$CXX"; then
4188 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4189 else
4190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4191 for as_dir in $PATH
4193 IFS=$as_save_IFS
4194 test -z "$as_dir" && as_dir=.
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4197 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4199 break 2
4201 done
4202 done
4203 IFS=$as_save_IFS
4207 CXX=$ac_cv_prog_CXX
4208 if test -n "$CXX"; then
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4210 $as_echo "$CXX" >&6; }
4211 else
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 $as_echo "no" >&6; }
4217 test -n "$CXX" && break
4218 done
4220 if test -z "$CXX"; then
4221 ac_ct_CXX=$CXX
4222 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4224 # Extract the first word of "$ac_prog", so it can be a program name with args.
4225 set dummy $ac_prog; ac_word=$2
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4227 $as_echo_n "checking for $ac_word... " >&6; }
4228 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4229 $as_echo_n "(cached) " >&6
4230 else
4231 if test -n "$ac_ct_CXX"; then
4232 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4233 else
4234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4235 for as_dir in $PATH
4237 IFS=$as_save_IFS
4238 test -z "$as_dir" && as_dir=.
4239 for ac_exec_ext in '' $ac_executable_extensions; do
4240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4241 ac_cv_prog_ac_ct_CXX="$ac_prog"
4242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 break 2
4245 done
4246 done
4247 IFS=$as_save_IFS
4251 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4252 if test -n "$ac_ct_CXX"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4254 $as_echo "$ac_ct_CXX" >&6; }
4255 else
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4261 test -n "$ac_ct_CXX" && break
4262 done
4264 if test "x$ac_ct_CXX" = x; then
4265 CXX="g++"
4266 else
4267 case $cross_compiling:$ac_tool_warned in
4268 yes:)
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4271 ac_tool_warned=yes ;;
4272 esac
4273 CXX=$ac_ct_CXX
4279 # Provide some information about the compiler.
4280 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4281 set X $ac_compile
4282 ac_compiler=$2
4283 for ac_option in --version -v -V -qversion; do
4284 { { ac_try="$ac_compiler $ac_option >&5"
4285 case "(($ac_try" in
4286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4287 *) ac_try_echo=$ac_try;;
4288 esac
4289 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4290 $as_echo "$ac_try_echo"; } >&5
4291 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4292 ac_status=$?
4293 if test -s conftest.err; then
4294 sed '10a\
4295 ... rest of stderr output deleted ...
4296 10q' conftest.err >conftest.er1
4297 cat conftest.er1 >&5
4298 rm -f conftest.er1 conftest.err
4300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4301 test $ac_status = 0; }
4302 done
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4305 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4306 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4313 main ()
4315 #ifndef __GNUC__
4316 choke me
4317 #endif
4320 return 0;
4322 _ACEOF
4323 if ac_fn_cxx_try_compile "$LINENO"; then :
4324 ac_compiler_gnu=yes
4325 else
4326 ac_compiler_gnu=no
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4333 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4334 if test $ac_compiler_gnu = yes; then
4335 GXX=yes
4336 else
4337 GXX=
4339 ac_test_CXXFLAGS=${CXXFLAGS+set}
4340 ac_save_CXXFLAGS=$CXXFLAGS
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4342 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4343 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4347 ac_cxx_werror_flag=yes
4348 ac_cv_prog_cxx_g=no
4349 CXXFLAGS="-g"
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4354 main ()
4358 return 0;
4360 _ACEOF
4361 if ac_fn_cxx_try_compile "$LINENO"; then :
4362 ac_cv_prog_cxx_g=yes
4363 else
4364 CXXFLAGS=""
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4369 main ()
4373 return 0;
4375 _ACEOF
4376 if ac_fn_cxx_try_compile "$LINENO"; then :
4378 else
4379 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4380 CXXFLAGS="-g"
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4385 main ()
4389 return 0;
4391 _ACEOF
4392 if ac_fn_cxx_try_compile "$LINENO"; then :
4393 ac_cv_prog_cxx_g=yes
4395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4400 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4403 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4404 if test "$ac_test_CXXFLAGS" = set; then
4405 CXXFLAGS=$ac_save_CXXFLAGS
4406 elif test $ac_cv_prog_cxx_g = yes; then
4407 if test "$GXX" = yes; then
4408 CXXFLAGS="-g -O2"
4409 else
4410 CXXFLAGS="-g"
4412 else
4413 if test "$GXX" = yes; then
4414 CXXFLAGS="-O2"
4415 else
4416 CXXFLAGS=
4419 ac_ext=c
4420 ac_cpp='$CPP $CPPFLAGS'
4421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4425 CXXFLAGS="$save_CXXFLAGS"
4427 am__api_version='1.11'
4429 # Find a good install program. We prefer a C program (faster),
4430 # so one script is as good as another. But avoid the broken or
4431 # incompatible versions:
4432 # SysV /etc/install, /usr/sbin/install
4433 # SunOS /usr/etc/install
4434 # IRIX /sbin/install
4435 # AIX /bin/install
4436 # AmigaOS /C/install, which installs bootblocks on floppy discs
4437 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4438 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4439 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4440 # OS/2's system install, which has a completely different semantic
4441 # ./install, which can be erroneously created by make from ./install.sh.
4442 # Reject install programs that cannot install multiple files.
4443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4444 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4445 if test -z "$INSTALL"; then
4446 if test "${ac_cv_path_install+set}" = set; then :
4447 $as_echo_n "(cached) " >&6
4448 else
4449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4450 for as_dir in $PATH
4452 IFS=$as_save_IFS
4453 test -z "$as_dir" && as_dir=.
4454 # Account for people who put trailing slashes in PATH elements.
4455 case $as_dir/ in #((
4456 ./ | .// | /[cC]/* | \
4457 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4458 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4459 /usr/ucb/* ) ;;
4461 # OSF1 and SCO ODT 3.0 have their own names for install.
4462 # Don't use installbsd from OSF since it installs stuff as root
4463 # by default.
4464 for ac_prog in ginstall scoinst install; do
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4467 if test $ac_prog = install &&
4468 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4469 # AIX install. It has an incompatible calling convention.
4471 elif test $ac_prog = install &&
4472 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4473 # program-specific install script used by HP pwplus--don't use.
4475 else
4476 rm -rf conftest.one conftest.two conftest.dir
4477 echo one > conftest.one
4478 echo two > conftest.two
4479 mkdir conftest.dir
4480 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4481 test -s conftest.one && test -s conftest.two &&
4482 test -s conftest.dir/conftest.one &&
4483 test -s conftest.dir/conftest.two
4484 then
4485 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4486 break 3
4490 done
4491 done
4493 esac
4495 done
4496 IFS=$as_save_IFS
4498 rm -rf conftest.one conftest.two conftest.dir
4501 if test "${ac_cv_path_install+set}" = set; then
4502 INSTALL=$ac_cv_path_install
4503 else
4504 # As a last resort, use the slow shell script. Don't cache a
4505 # value for INSTALL within a source directory, because that will
4506 # break other packages using the cache if that directory is
4507 # removed, or if the value is a relative name.
4508 INSTALL=$ac_install_sh
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4512 $as_echo "$INSTALL" >&6; }
4514 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4515 # It thinks the first close brace ends the variable substitution.
4516 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4518 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4520 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4523 $as_echo_n "checking whether build environment is sane... " >&6; }
4524 # Just in case
4525 sleep 1
4526 echo timestamp > conftest.file
4527 # Reject unsafe characters in $srcdir or the absolute working directory
4528 # name. Accept space and tab only in the latter.
4529 am_lf='
4531 case `pwd` in
4532 *[\\\"\#\$\&\'\`$am_lf]*)
4533 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4534 esac
4535 case $srcdir in
4536 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4537 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4538 esac
4540 # Do `set' in a subshell so we don't clobber the current shell's
4541 # arguments. Must try -L first in case configure is actually a
4542 # symlink; some systems play weird games with the mod time of symlinks
4543 # (eg FreeBSD returns the mod time of the symlink's containing
4544 # directory).
4545 if (
4546 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4547 if test "$*" = "X"; then
4548 # -L didn't work.
4549 set X `ls -t "$srcdir/configure" conftest.file`
4551 rm -f conftest.file
4552 if test "$*" != "X $srcdir/configure conftest.file" \
4553 && test "$*" != "X conftest.file $srcdir/configure"; then
4555 # If neither matched, then we have a broken ls. This can happen
4556 # if, for instance, CONFIG_SHELL is bash and it inherits a
4557 # broken ls alias from the environment. This has actually
4558 # happened. Such a system could not be considered "sane".
4559 as_fn_error "ls -t appears to fail. Make sure there is not a broken
4560 alias in your environment" "$LINENO" 5
4563 test "$2" = conftest.file
4565 then
4566 # Ok.
4568 else
4569 as_fn_error "newly created file is older than distributed files!
4570 Check your system clock" "$LINENO" 5
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4573 $as_echo "yes" >&6; }
4574 test "$program_prefix" != NONE &&
4575 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4576 # Use a double $ so make ignores it.
4577 test "$program_suffix" != NONE &&
4578 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4579 # Double any \ or $.
4580 # By default was `s,x,x', remove it if useless.
4581 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4582 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4584 # expand $ac_aux_dir to an absolute path
4585 am_aux_dir=`cd $ac_aux_dir && pwd`
4587 if test x"${MISSING+set}" != xset; then
4588 case $am_aux_dir in
4589 *\ * | *\ *)
4590 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4592 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4593 esac
4595 # Use eval to expand $SHELL
4596 if eval "$MISSING --run true"; then
4597 am_missing_run="$MISSING --run "
4598 else
4599 am_missing_run=
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4601 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4604 if test x"${install_sh}" != xset; then
4605 case $am_aux_dir in
4606 *\ * | *\ *)
4607 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4609 install_sh="\${SHELL} $am_aux_dir/install-sh"
4610 esac
4613 # Installed binaries are usually stripped using `strip' when the user
4614 # run `make install-strip'. However `strip' might not be the right
4615 # tool to use in cross-compilation environments, therefore Automake
4616 # will honor the `STRIP' environment variable to overrule this program.
4617 if test "$cross_compiling" != no; then
4618 if test -n "$ac_tool_prefix"; then
4619 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4620 set dummy ${ac_tool_prefix}strip; ac_word=$2
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 $as_echo_n "checking for $ac_word... " >&6; }
4623 if test "${ac_cv_prog_STRIP+set}" = set; then :
4624 $as_echo_n "(cached) " >&6
4625 else
4626 if test -n "$STRIP"; then
4627 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4632 IFS=$as_save_IFS
4633 test -z "$as_dir" && as_dir=.
4634 for ac_exec_ext in '' $ac_executable_extensions; do
4635 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4636 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4638 break 2
4640 done
4641 done
4642 IFS=$as_save_IFS
4646 STRIP=$ac_cv_prog_STRIP
4647 if test -n "$STRIP"; then
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4649 $as_echo "$STRIP" >&6; }
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4657 if test -z "$ac_cv_prog_STRIP"; then
4658 ac_ct_STRIP=$STRIP
4659 # Extract the first word of "strip", so it can be a program name with args.
4660 set dummy strip; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$ac_ct_STRIP"; then
4667 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4676 ac_cv_prog_ac_ct_STRIP="strip"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4680 done
4681 done
4682 IFS=$as_save_IFS
4686 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4687 if test -n "$ac_ct_STRIP"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4689 $as_echo "$ac_ct_STRIP" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4695 if test "x$ac_ct_STRIP" = x; then
4696 STRIP=":"
4697 else
4698 case $cross_compiling:$ac_tool_warned in
4699 yes:)
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4701 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4702 ac_tool_warned=yes ;;
4703 esac
4704 STRIP=$ac_ct_STRIP
4706 else
4707 STRIP="$ac_cv_prog_STRIP"
4711 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4714 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4715 if test -z "$MKDIR_P"; then
4716 if test "${ac_cv_path_mkdir+set}" = set; then :
4717 $as_echo_n "(cached) " >&6
4718 else
4719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4720 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4722 IFS=$as_save_IFS
4723 test -z "$as_dir" && as_dir=.
4724 for ac_prog in mkdir gmkdir; do
4725 for ac_exec_ext in '' $ac_executable_extensions; do
4726 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4727 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4728 'mkdir (GNU coreutils) '* | \
4729 'mkdir (coreutils) '* | \
4730 'mkdir (fileutils) '4.1*)
4731 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4732 break 3;;
4733 esac
4734 done
4735 done
4736 done
4737 IFS=$as_save_IFS
4741 if test "${ac_cv_path_mkdir+set}" = set; then
4742 MKDIR_P="$ac_cv_path_mkdir -p"
4743 else
4744 # As a last resort, use the slow shell script. Don't cache a
4745 # value for MKDIR_P within a source directory, because that will
4746 # break other packages using the cache if that directory is
4747 # removed, or if the value is a relative name.
4748 test -d ./--version && rmdir ./--version
4749 MKDIR_P="$ac_install_sh -d"
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4753 $as_echo "$MKDIR_P" >&6; }
4755 mkdir_p="$MKDIR_P"
4756 case $mkdir_p in
4757 [\\/$]* | ?:[\\/]*) ;;
4758 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4759 esac
4761 for ac_prog in gawk mawk nawk awk
4763 # Extract the first word of "$ac_prog", so it can be a program name with args.
4764 set dummy $ac_prog; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if test "${ac_cv_prog_AWK+set}" = set; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -n "$AWK"; then
4771 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4780 ac_cv_prog_AWK="$ac_prog"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4784 done
4785 done
4786 IFS=$as_save_IFS
4790 AWK=$ac_cv_prog_AWK
4791 if test -n "$AWK"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4793 $as_echo "$AWK" >&6; }
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4800 test -n "$AWK" && break
4801 done
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4804 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4805 set x ${MAKE-make}
4806 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4807 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4808 $as_echo_n "(cached) " >&6
4809 else
4810 cat >conftest.make <<\_ACEOF
4811 SHELL = /bin/sh
4812 all:
4813 @echo '@@@%%%=$(MAKE)=@@@%%%'
4814 _ACEOF
4815 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4816 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4817 *@@@%%%=?*=@@@%%%*)
4818 eval ac_cv_prog_make_${ac_make}_set=yes;;
4820 eval ac_cv_prog_make_${ac_make}_set=no;;
4821 esac
4822 rm -f conftest.make
4824 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4826 $as_echo "yes" >&6; }
4827 SET_MAKE=
4828 else
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4831 SET_MAKE="MAKE=${MAKE-make}"
4834 rm -rf .tst 2>/dev/null
4835 mkdir .tst 2>/dev/null
4836 if test -d .tst; then
4837 am__leading_dot=.
4838 else
4839 am__leading_dot=_
4841 rmdir .tst 2>/dev/null
4843 DEPDIR="${am__leading_dot}deps"
4845 ac_config_commands="$ac_config_commands depfiles"
4848 am_make=${MAKE-make}
4849 cat > confinc << 'END'
4850 am__doit:
4851 @echo this is the am__doit target
4852 .PHONY: am__doit
4854 # If we don't find an include directive, just comment out the code.
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4856 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4857 am__include="#"
4858 am__quote=
4859 _am_result=none
4860 # First try GNU make style include.
4861 echo "include confinc" > confmf
4862 # Ignore all kinds of additional output from `make'.
4863 case `$am_make -s -f confmf 2> /dev/null` in #(
4864 *the\ am__doit\ target*)
4865 am__include=include
4866 am__quote=
4867 _am_result=GNU
4869 esac
4870 # Now try BSD make style include.
4871 if test "$am__include" = "#"; then
4872 echo '.include "confinc"' > confmf
4873 case `$am_make -s -f confmf 2> /dev/null` in #(
4874 *the\ am__doit\ target*)
4875 am__include=.include
4876 am__quote="\""
4877 _am_result=BSD
4879 esac
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4884 $as_echo "$_am_result" >&6; }
4885 rm -f confinc confmf
4887 # Check whether --enable-dependency-tracking was given.
4888 if test "${enable_dependency_tracking+set}" = set; then :
4889 enableval=$enable_dependency_tracking;
4892 if test "x$enable_dependency_tracking" != xno; then
4893 am_depcomp="$ac_aux_dir/depcomp"
4894 AMDEPBACKSLASH='\'
4896 if test "x$enable_dependency_tracking" != xno; then
4897 AMDEP_TRUE=
4898 AMDEP_FALSE='#'
4899 else
4900 AMDEP_TRUE='#'
4901 AMDEP_FALSE=
4905 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4906 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4907 # is not polluted with repeated "-I."
4908 am__isrc=' -I$(srcdir)'
4909 # test to see if srcdir already configured
4910 if test -f $srcdir/config.status; then
4911 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4915 # test whether we have cygpath
4916 if test -z "$CYGPATH_W"; then
4917 if (cygpath --version) >/dev/null 2>/dev/null; then
4918 CYGPATH_W='cygpath -w'
4919 else
4920 CYGPATH_W=echo
4925 # Define the identity of the package.
4926 PACKAGE='libjava'
4927 VERSION='version-unused'
4930 cat >>confdefs.h <<_ACEOF
4931 #define PACKAGE "$PACKAGE"
4932 _ACEOF
4935 cat >>confdefs.h <<_ACEOF
4936 #define VERSION "$VERSION"
4937 _ACEOF
4939 # Some tools Automake needs.
4941 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4944 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4947 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4950 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4953 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4955 # We need awk for the "check" target. The system "awk" is bad on
4956 # some platforms.
4957 # Always define AMTAR for backward compatibility.
4959 AMTAR=${AMTAR-"${am_missing_run}tar"}
4961 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4966 depcc="$CC" am_compiler_list=
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4969 $as_echo_n "checking dependency style of $depcc... " >&6; }
4970 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4971 $as_echo_n "(cached) " >&6
4972 else
4973 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4974 # We make a subdir and do the tests there. Otherwise we can end up
4975 # making bogus files that we don't know about and never remove. For
4976 # instance it was reported that on HP-UX the gcc test will end up
4977 # making a dummy file named `D' -- because `-MD' means `put the output
4978 # in D'.
4979 mkdir conftest.dir
4980 # Copy depcomp to subdir because otherwise we won't find it if we're
4981 # using a relative directory.
4982 cp "$am_depcomp" conftest.dir
4983 cd conftest.dir
4984 # We will build objects and dependencies in a subdirectory because
4985 # it helps to detect inapplicable dependency modes. For instance
4986 # both Tru64's cc and ICC support -MD to output dependencies as a
4987 # side effect of compilation, but ICC will put the dependencies in
4988 # the current directory while Tru64 will put them in the object
4989 # directory.
4990 mkdir sub
4992 am_cv_CC_dependencies_compiler_type=none
4993 if test "$am_compiler_list" = ""; then
4994 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4996 am__universal=false
4997 case " $depcc " in #(
4998 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4999 esac
5001 for depmode in $am_compiler_list; do
5002 # Setup a source with many dependencies, because some compilers
5003 # like to wrap large dependency lists on column 80 (with \), and
5004 # we should not choose a depcomp mode which is confused by this.
5006 # We need to recreate these files for each test, as the compiler may
5007 # overwrite some of them when testing with obscure command lines.
5008 # This happens at least with the AIX C compiler.
5009 : > sub/conftest.c
5010 for i in 1 2 3 4 5 6; do
5011 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5012 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5013 # Solaris 8's {/usr,}/bin/sh.
5014 touch sub/conftst$i.h
5015 done
5016 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5018 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5019 # mode. It turns out that the SunPro C++ compiler does not properly
5020 # handle `-M -o', and we need to detect this. Also, some Intel
5021 # versions had trouble with output in subdirs
5022 am__obj=sub/conftest.${OBJEXT-o}
5023 am__minus_obj="-o $am__obj"
5024 case $depmode in
5025 gcc)
5026 # This depmode causes a compiler race in universal mode.
5027 test "$am__universal" = false || continue
5029 nosideeffect)
5030 # after this tag, mechanisms are not by side-effect, so they'll
5031 # only be used when explicitly requested
5032 if test "x$enable_dependency_tracking" = xyes; then
5033 continue
5034 else
5035 break
5038 msvisualcpp | msvcmsys)
5039 # This compiler won't grok `-c -o', but also, the minuso test has
5040 # not run yet. These depmodes are late enough in the game, and
5041 # so weak that their functioning should not be impacted.
5042 am__obj=conftest.${OBJEXT-o}
5043 am__minus_obj=
5045 none) break ;;
5046 esac
5047 if depmode=$depmode \
5048 source=sub/conftest.c object=$am__obj \
5049 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5050 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5051 >/dev/null 2>conftest.err &&
5052 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5053 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5054 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5055 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5056 # icc doesn't choke on unknown options, it will just issue warnings
5057 # or remarks (even with -Werror). So we grep stderr for any message
5058 # that says an option was ignored or not supported.
5059 # When given -MP, icc 7.0 and 7.1 complain thusly:
5060 # icc: Command line warning: ignoring option '-M'; no argument required
5061 # The diagnosis changed in icc 8.0:
5062 # icc: Command line remark: option '-MP' not supported
5063 if (grep 'ignoring option' conftest.err ||
5064 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5065 am_cv_CC_dependencies_compiler_type=$depmode
5066 break
5069 done
5071 cd ..
5072 rm -rf conftest.dir
5073 else
5074 am_cv_CC_dependencies_compiler_type=none
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5079 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5080 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5083 test "x$enable_dependency_tracking" != xno \
5084 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5085 am__fastdepCC_TRUE=
5086 am__fastdepCC_FALSE='#'
5087 else
5088 am__fastdepCC_TRUE='#'
5089 am__fastdepCC_FALSE=
5093 depcc="$CXX" am_compiler_list=
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5096 $as_echo_n "checking dependency style of $depcc... " >&6; }
5097 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5098 $as_echo_n "(cached) " >&6
5099 else
5100 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5101 # We make a subdir and do the tests there. Otherwise we can end up
5102 # making bogus files that we don't know about and never remove. For
5103 # instance it was reported that on HP-UX the gcc test will end up
5104 # making a dummy file named `D' -- because `-MD' means `put the output
5105 # in D'.
5106 mkdir conftest.dir
5107 # Copy depcomp to subdir because otherwise we won't find it if we're
5108 # using a relative directory.
5109 cp "$am_depcomp" conftest.dir
5110 cd conftest.dir
5111 # We will build objects and dependencies in a subdirectory because
5112 # it helps to detect inapplicable dependency modes. For instance
5113 # both Tru64's cc and ICC support -MD to output dependencies as a
5114 # side effect of compilation, but ICC will put the dependencies in
5115 # the current directory while Tru64 will put them in the object
5116 # directory.
5117 mkdir sub
5119 am_cv_CXX_dependencies_compiler_type=none
5120 if test "$am_compiler_list" = ""; then
5121 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5123 am__universal=false
5124 case " $depcc " in #(
5125 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5126 esac
5128 for depmode in $am_compiler_list; do
5129 # Setup a source with many dependencies, because some compilers
5130 # like to wrap large dependency lists on column 80 (with \), and
5131 # we should not choose a depcomp mode which is confused by this.
5133 # We need to recreate these files for each test, as the compiler may
5134 # overwrite some of them when testing with obscure command lines.
5135 # This happens at least with the AIX C compiler.
5136 : > sub/conftest.c
5137 for i in 1 2 3 4 5 6; do
5138 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5139 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5140 # Solaris 8's {/usr,}/bin/sh.
5141 touch sub/conftst$i.h
5142 done
5143 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5145 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5146 # mode. It turns out that the SunPro C++ compiler does not properly
5147 # handle `-M -o', and we need to detect this. Also, some Intel
5148 # versions had trouble with output in subdirs
5149 am__obj=sub/conftest.${OBJEXT-o}
5150 am__minus_obj="-o $am__obj"
5151 case $depmode in
5152 gcc)
5153 # This depmode causes a compiler race in universal mode.
5154 test "$am__universal" = false || continue
5156 nosideeffect)
5157 # after this tag, mechanisms are not by side-effect, so they'll
5158 # only be used when explicitly requested
5159 if test "x$enable_dependency_tracking" = xyes; then
5160 continue
5161 else
5162 break
5165 msvisualcpp | msvcmsys)
5166 # This compiler won't grok `-c -o', but also, the minuso test has
5167 # not run yet. These depmodes are late enough in the game, and
5168 # so weak that their functioning should not be impacted.
5169 am__obj=conftest.${OBJEXT-o}
5170 am__minus_obj=
5172 none) break ;;
5173 esac
5174 if depmode=$depmode \
5175 source=sub/conftest.c object=$am__obj \
5176 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5177 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5178 >/dev/null 2>conftest.err &&
5179 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5180 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5181 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5182 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5183 # icc doesn't choke on unknown options, it will just issue warnings
5184 # or remarks (even with -Werror). So we grep stderr for any message
5185 # that says an option was ignored or not supported.
5186 # When given -MP, icc 7.0 and 7.1 complain thusly:
5187 # icc: Command line warning: ignoring option '-M'; no argument required
5188 # The diagnosis changed in icc 8.0:
5189 # icc: Command line remark: option '-MP' not supported
5190 if (grep 'ignoring option' conftest.err ||
5191 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5192 am_cv_CXX_dependencies_compiler_type=$depmode
5193 break
5196 done
5198 cd ..
5199 rm -rf conftest.dir
5200 else
5201 am_cv_CXX_dependencies_compiler_type=none
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5206 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5207 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5210 test "x$enable_dependency_tracking" != xno \
5211 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5212 am__fastdepCXX_TRUE=
5213 am__fastdepCXX_FALSE='#'
5214 else
5215 am__fastdepCXX_TRUE='#'
5216 am__fastdepCXX_FALSE=
5222 if test -n "$ac_tool_prefix"; then
5223 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5224 set dummy ${ac_tool_prefix}as; ac_word=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if test "${ac_cv_prog_AS+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 if test -n "$AS"; then
5231 ac_cv_prog_AS="$AS" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_prog_AS="${ac_tool_prefix}as"
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5244 done
5245 done
5246 IFS=$as_save_IFS
5250 AS=$ac_cv_prog_AS
5251 if test -n "$AS"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5253 $as_echo "$AS" >&6; }
5254 else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5261 if test -z "$ac_cv_prog_AS"; then
5262 ac_ct_AS=$AS
5263 # Extract the first word of "as", so it can be a program name with args.
5264 set dummy as; ac_word=$2
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5266 $as_echo_n "checking for $ac_word... " >&6; }
5267 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5268 $as_echo_n "(cached) " >&6
5269 else
5270 if test -n "$ac_ct_AS"; then
5271 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280 ac_cv_prog_ac_ct_AS="as"
5281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5284 done
5285 done
5286 IFS=$as_save_IFS
5290 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5291 if test -n "$ac_ct_AS"; then
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5293 $as_echo "$ac_ct_AS" >&6; }
5294 else
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5299 if test "x$ac_ct_AS" = x; then
5300 AS=""
5301 else
5302 case $cross_compiling:$ac_tool_warned in
5303 yes:)
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5306 ac_tool_warned=yes ;;
5307 esac
5308 AS=$ac_ct_AS
5310 else
5311 AS="$ac_cv_prog_AS"
5314 if test -n "$ac_tool_prefix"; then
5315 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5316 set dummy ${ac_tool_prefix}ld; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if test "${ac_cv_prog_LD+set}" = set; then :
5320 $as_echo_n "(cached) " >&6
5321 else
5322 if test -n "$LD"; then
5323 ac_cv_prog_LD="$LD" # Let the user override the test.
5324 else
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 for as_dir in $PATH
5328 IFS=$as_save_IFS
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5332 ac_cv_prog_LD="${ac_tool_prefix}ld"
5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5334 break 2
5336 done
5337 done
5338 IFS=$as_save_IFS
5342 LD=$ac_cv_prog_LD
5343 if test -n "$LD"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5345 $as_echo "$LD" >&6; }
5346 else
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5353 if test -z "$ac_cv_prog_LD"; then
5354 ac_ct_LD=$LD
5355 # Extract the first word of "ld", so it can be a program name with args.
5356 set dummy ld; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5360 $as_echo_n "(cached) " >&6
5361 else
5362 if test -n "$ac_ct_LD"; then
5363 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5364 else
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5366 for as_dir in $PATH
5368 IFS=$as_save_IFS
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5372 ac_cv_prog_ac_ct_LD="ld"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 break 2
5376 done
5377 done
5378 IFS=$as_save_IFS
5382 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5383 if test -n "$ac_ct_LD"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5385 $as_echo "$ac_ct_LD" >&6; }
5386 else
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5391 if test "x$ac_ct_LD" = x; then
5392 LD=""
5393 else
5394 case $cross_compiling:$ac_tool_warned in
5395 yes:)
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398 ac_tool_warned=yes ;;
5399 esac
5400 LD=$ac_ct_LD
5402 else
5403 LD="$ac_cv_prog_LD"
5406 if test -n "$ac_tool_prefix"; then
5407 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5408 set dummy ${ac_tool_prefix}ar; ac_word=$2
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5410 $as_echo_n "checking for $ac_word... " >&6; }
5411 if test "${ac_cv_prog_AR+set}" = set; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 if test -n "$AR"; then
5415 ac_cv_prog_AR="$AR" # Let the user override the test.
5416 else
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5418 for as_dir in $PATH
5420 IFS=$as_save_IFS
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5424 ac_cv_prog_AR="${ac_tool_prefix}ar"
5425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5426 break 2
5428 done
5429 done
5430 IFS=$as_save_IFS
5434 AR=$ac_cv_prog_AR
5435 if test -n "$AR"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5437 $as_echo "$AR" >&6; }
5438 else
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5445 if test -z "$ac_cv_prog_AR"; then
5446 ac_ct_AR=$AR
5447 # Extract the first word of "ar", so it can be a program name with args.
5448 set dummy ar; ac_word=$2
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5450 $as_echo_n "checking for $ac_word... " >&6; }
5451 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5452 $as_echo_n "(cached) " >&6
5453 else
5454 if test -n "$ac_ct_AR"; then
5455 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5456 else
5457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5458 for as_dir in $PATH
5460 IFS=$as_save_IFS
5461 test -z "$as_dir" && as_dir=.
5462 for ac_exec_ext in '' $ac_executable_extensions; do
5463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5464 ac_cv_prog_ac_ct_AR="ar"
5465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5466 break 2
5468 done
5469 done
5470 IFS=$as_save_IFS
5474 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5475 if test -n "$ac_ct_AR"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5477 $as_echo "$ac_ct_AR" >&6; }
5478 else
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5483 if test "x$ac_ct_AR" = x; then
5484 AR=""
5485 else
5486 case $cross_compiling:$ac_tool_warned in
5487 yes:)
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5489 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5490 ac_tool_warned=yes ;;
5491 esac
5492 AR=$ac_ct_AR
5494 else
5495 AR="$ac_cv_prog_AR"
5498 if test -n "$ac_tool_prefix"; then
5499 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5500 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5502 $as_echo_n "checking for $ac_word... " >&6; }
5503 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5504 $as_echo_n "(cached) " >&6
5505 else
5506 if test -n "$RANLIB"; then
5507 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5508 else
5509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5510 for as_dir in $PATH
5512 IFS=$as_save_IFS
5513 test -z "$as_dir" && as_dir=.
5514 for ac_exec_ext in '' $ac_executable_extensions; do
5515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5516 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5518 break 2
5520 done
5521 done
5522 IFS=$as_save_IFS
5526 RANLIB=$ac_cv_prog_RANLIB
5527 if test -n "$RANLIB"; then
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5529 $as_echo "$RANLIB" >&6; }
5530 else
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5532 $as_echo "no" >&6; }
5537 if test -z "$ac_cv_prog_RANLIB"; then
5538 ac_ct_RANLIB=$RANLIB
5539 # Extract the first word of "ranlib", so it can be a program name with args.
5540 set dummy ranlib; ac_word=$2
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5542 $as_echo_n "checking for $ac_word... " >&6; }
5543 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 if test -n "$ac_ct_RANLIB"; then
5547 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5548 else
5549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5550 for as_dir in $PATH
5552 IFS=$as_save_IFS
5553 test -z "$as_dir" && as_dir=.
5554 for ac_exec_ext in '' $ac_executable_extensions; do
5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5556 ac_cv_prog_ac_ct_RANLIB="ranlib"
5557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5558 break 2
5560 done
5561 done
5562 IFS=$as_save_IFS
5566 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5567 if test -n "$ac_ct_RANLIB"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5569 $as_echo "$ac_ct_RANLIB" >&6; }
5570 else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572 $as_echo "no" >&6; }
5575 if test "x$ac_ct_RANLIB" = x; then
5576 RANLIB=":"
5577 else
5578 case $cross_compiling:$ac_tool_warned in
5579 yes:)
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5582 ac_tool_warned=yes ;;
5583 esac
5584 RANLIB=$ac_ct_RANLIB
5586 else
5587 RANLIB="$ac_cv_prog_RANLIB"
5590 if test -n "$ac_tool_prefix"; then
5591 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5592 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5594 $as_echo_n "checking for $ac_word... " >&6; }
5595 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5596 $as_echo_n "(cached) " >&6
5597 else
5598 if test -n "$DLLTOOL"; then
5599 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5600 else
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5602 for as_dir in $PATH
5604 IFS=$as_save_IFS
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5608 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5610 break 2
5612 done
5613 done
5614 IFS=$as_save_IFS
5618 DLLTOOL=$ac_cv_prog_DLLTOOL
5619 if test -n "$DLLTOOL"; then
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5621 $as_echo "$DLLTOOL" >&6; }
5622 else
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5629 if test -z "$ac_cv_prog_DLLTOOL"; then
5630 ac_ct_DLLTOOL=$DLLTOOL
5631 # Extract the first word of "dlltool", so it can be a program name with args.
5632 set dummy dlltool; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test -n "$ac_ct_DLLTOOL"; then
5639 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5648 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5652 done
5653 done
5654 IFS=$as_save_IFS
5658 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5659 if test -n "$ac_ct_DLLTOOL"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5661 $as_echo "$ac_ct_DLLTOOL" >&6; }
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5667 if test "x$ac_ct_DLLTOOL" = x; then
5668 DLLTOOL=":"
5669 else
5670 case $cross_compiling:$ac_tool_warned in
5671 yes:)
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5673 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5674 ac_tool_warned=yes ;;
5675 esac
5676 DLLTOOL=$ac_ct_DLLTOOL
5678 else
5679 DLLTOOL="$ac_cv_prog_DLLTOOL"
5682 for ac_prog in gawk mawk nawk awk
5684 # Extract the first word of "$ac_prog", so it can be a program name with args.
5685 set dummy $ac_prog; ac_word=$2
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5687 $as_echo_n "checking for $ac_word... " >&6; }
5688 if test "${ac_cv_prog_AWK+set}" = set; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 if test -n "$AWK"; then
5692 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5693 else
5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 for as_dir in $PATH
5697 IFS=$as_save_IFS
5698 test -z "$as_dir" && as_dir=.
5699 for ac_exec_ext in '' $ac_executable_extensions; do
5700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5701 ac_cv_prog_AWK="$ac_prog"
5702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 break 2
5705 done
5706 done
5707 IFS=$as_save_IFS
5711 AWK=$ac_cv_prog_AWK
5712 if test -n "$AWK"; then
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5714 $as_echo "$AWK" >&6; }
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717 $as_echo "no" >&6; }
5721 test -n "$AWK" && break
5722 done
5724 for ac_prog in jar fastjar gjar
5726 # Extract the first word of "$ac_prog", so it can be a program name with args.
5727 set dummy $ac_prog; ac_word=$2
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5729 $as_echo_n "checking for $ac_word... " >&6; }
5730 if test "${ac_cv_prog_JAR+set}" = set; then :
5731 $as_echo_n "(cached) " >&6
5732 else
5733 if test -n "$JAR"; then
5734 ac_cv_prog_JAR="$JAR" # Let the user override the test.
5735 else
5736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5737 for as_dir in $PATH
5739 IFS=$as_save_IFS
5740 test -z "$as_dir" && as_dir=.
5741 for ac_exec_ext in '' $ac_executable_extensions; do
5742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5743 ac_cv_prog_JAR="$ac_prog"
5744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745 break 2
5747 done
5748 done
5749 IFS=$as_save_IFS
5753 JAR=$ac_cv_prog_JAR
5754 if test -n "$JAR"; then
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5756 $as_echo "$JAR" >&6; }
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5759 $as_echo "no" >&6; }
5763 test -n "$JAR" && break
5764 done
5765 test -n "$JAR" || JAR="no"
5767 # Extract the first word of "zip", so it can be a program name with args.
5768 set dummy zip; ac_word=$2
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5770 $as_echo_n "checking for $ac_word... " >&6; }
5771 if test "${ac_cv_path_ZIP+set}" = set; then :
5772 $as_echo_n "(cached) " >&6
5773 else
5774 case $ZIP in
5775 [\\/]* | ?:[\\/]*)
5776 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5782 IFS=$as_save_IFS
5783 test -z "$as_dir" && as_dir=.
5784 for ac_exec_ext in '' $ac_executable_extensions; do
5785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5786 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 break 2
5790 done
5791 done
5792 IFS=$as_save_IFS
5794 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5796 esac
5798 ZIP=$ac_cv_path_ZIP
5799 if test -n "$ZIP"; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5801 $as_echo "$ZIP" >&6; }
5802 else
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5804 $as_echo "no" >&6; }
5808 # Extract the first word of "unzip", so it can be a program name with args.
5809 set dummy unzip; ac_word=$2
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5811 $as_echo_n "checking for $ac_word... " >&6; }
5812 if test "${ac_cv_path_UNZIP+set}" = set; then :
5813 $as_echo_n "(cached) " >&6
5814 else
5815 case $UNZIP in
5816 [\\/]* | ?:[\\/]*)
5817 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5821 for as_dir in $PATH
5823 IFS=$as_save_IFS
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5827 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 break 2
5831 done
5832 done
5833 IFS=$as_save_IFS
5835 test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5837 esac
5839 UNZIP=$ac_cv_path_UNZIP
5840 if test -n "$UNZIP"; then
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5842 $as_echo "$UNZIP" >&6; }
5843 else
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5845 $as_echo "no" >&6; }
5850 # We need a jar that supports -@. This is a GNU extension.
5851 if test "$JAR" != no; then
5852 rm -f config-test.jar
5853 echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5854 if test -f config-test.jar; then
5855 rm -f config-test.jar
5856 else
5857 JAR=no
5861 # Prefer the jar we found, but fall back to our jar script.
5862 if test "$JAR" = no; then
5863 if test "$ZIP" = no; then
5864 as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5865 else
5866 # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5867 JAR=`pwd`/scripts/jar
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5875 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5876 # Check whether --enable-maintainer-mode was given.
5877 if test "${enable_maintainer_mode+set}" = set; then :
5878 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5879 else
5880 USE_MAINTAINER_MODE=no
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5884 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5885 if test $USE_MAINTAINER_MODE = yes; then
5886 MAINTAINER_MODE_TRUE=
5887 MAINTAINER_MODE_FALSE='#'
5888 else
5889 MAINTAINER_MODE_TRUE='#'
5890 MAINTAINER_MODE_FALSE=
5893 MAINT=$MAINTAINER_MODE_TRUE
5899 # configure.host sets the following important variables
5900 # libgcj_cflags - host specific C compiler flags
5901 # libgcj_cxxflags - host specific C++ compiler flags
5902 # libgcj_javaflags - host specific Java compiler flags
5903 # libgcj_sublib_ltflags - host specific Libtool flags
5904 # libgcj_sublib_core_extra_deps - host specific extra
5905 # dependencies for core sublib
5906 # (these last two only used when building sublibs)
5907 # and a number of others; see the list at the start of the file.
5909 libgcj_cflags=
5910 libgcj_cxxflags=
5911 libgcj_javaflags=
5912 libgcj_sublib_ltflags=
5913 libgcj_sublib_core_extra_deps=
5915 . ${srcdir}/configure.host
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5918 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5919 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5920 $as_echo_n "(cached) " >&6
5921 else
5922 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5923 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5924 acl_cv_prog_gnu_ld=yes
5925 else
5926 acl_cv_prog_gnu_ld=no
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5930 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5931 with_gnu_ld=$acl_cv_prog_gnu_ld
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5934 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5935 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5936 $as_echo_n "(cached) " >&6
5937 else
5939 acl_cv_prog_gnu_ld_symbolic=no
5941 if test x"$with_gnu_ld" = x"yes"; then
5942 if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5943 acl_cv_prog_gnu_ld_symbolic=yes
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5948 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5949 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5950 SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5951 else
5952 SYMBOLIC_LDFLAGS=''
5955 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5956 if test -z "$libgcj_ld_symbolic"; then
5957 libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5960 LIBGCJ_CFLAGS="${libgcj_cflags}"
5961 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5962 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5963 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5964 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5965 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5966 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5975 # Only use libltdl for non-newlib builds.
5976 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5978 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5979 library_names_spec=
5980 libname_spec='lib$name'
5981 soname_spec=
5982 shrext=".so"
5983 postinstall_cmds=
5984 postuninstall_cmds=
5985 finish_cmds=
5986 finish_eval=
5987 shlibpath_var=
5988 shlibpath_overrides_runpath=unknown
5989 version_type=none
5990 dynamic_linker="$host_os ld.so"
5991 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5992 if test "$GCC" = yes; then
5993 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5994 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5995 # if the path contains ";" then we assume it to be the separator
5996 # otherwise default to the standard path separator (i.e. ":") - it is
5997 # assumed that no part of a normal pathname contains ";" but that should
5998 # okay in the real world where ";" in dirpaths is itself problematic.
5999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6000 else
6001 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6003 else
6004 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
6006 need_lib_prefix=unknown
6007 hardcode_into_libs=no
6009 # when you set need_version to no, make sure it does not cause -set_version
6010 # flags to be left without arguments
6011 need_version=unknown
6013 case $host_os in
6014 aix3*)
6015 version_type=linux
6016 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6017 shlibpath_var=LIBPATH
6019 # AIX 3 has no versioning support, so we append a major version to the name.
6020 soname_spec='${libname}${release}${shared_ext}$major'
6023 aix[4-9]*)
6024 version_type=linux
6025 need_lib_prefix=no
6026 need_version=no
6027 hardcode_into_libs=yes
6028 if test "$host_cpu" = ia64; then
6029 # AIX 5 supports IA64
6030 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6031 shlibpath_var=LD_LIBRARY_PATH
6032 else
6033 # With GCC up to 2.95.x, collect2 would create an import file
6034 # for dependence libraries. The import file would start with
6035 # the line `#! .'. This would cause the generated library to
6036 # depend on `.', always an invalid library. This was fixed in
6037 # development snapshots of GCC prior to 3.0.
6038 case $host_os in
6039 aix4 | aix4.[01] | aix4.[01].*)
6040 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6041 echo ' yes '
6042 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6044 else
6045 can_build_shared=no
6048 esac
6049 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6050 # soname into executable. Probably we can add versioning support to
6051 # collect2, so additional links can be useful in future.
6052 if test "$aix_use_runtimelinking" = yes; then
6053 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6054 # instead of lib<name>.a to let people know that these are not
6055 # typical AIX shared libraries.
6056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6057 else
6058 # We preserve .a as extension for shared libraries through AIX4.2
6059 # and later when we are not doing run time linking.
6060 library_names_spec='${libname}${release}.a $libname.a'
6061 soname_spec='${libname}${release}${shared_ext}$major'
6063 shlibpath_var=LIBPATH
6067 amigaos*)
6068 library_names_spec='$libname.ixlibrary $libname.a'
6069 # Create ${libname}_ixlibrary.a entries in /sys/libs.
6070 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'
6073 beos*)
6074 library_names_spec='${libname}${shared_ext}'
6075 dynamic_linker="$host_os ld.so"
6076 shlibpath_var=LIBRARY_PATH
6079 bsdi4*)
6080 version_type=linux
6081 need_version=no
6082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6083 soname_spec='${libname}${release}${shared_ext}$major'
6084 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6085 shlibpath_var=LD_LIBRARY_PATH
6086 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6087 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6088 # the default ld.so.conf also contains /usr/contrib/lib and
6089 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6090 # libtool to hard-code these into programs
6093 cygwin* | mingw* | pw32*)
6094 version_type=windows
6095 shrext=".dll"
6096 need_version=no
6097 need_lib_prefix=no
6099 case $GCC,$host_os in
6100 yes,cygwin* | yes,mingw* | yes,pw32*)
6101 library_names_spec='$libname.dll.a'
6102 # DLL is installed to $(libdir)/../bin by postinstall_cmds
6103 postinstall_cmds='base_file=`basename \${file}`~
6104 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6105 dldir=$destdir/`dirname \$dlpath`~
6106 test -d \$dldir || mkdir -p \$dldir~
6107 $install_prog $dir/$dlname \$dldir/$dlname'
6108 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6109 dlpath=$dir/\$dldll~
6110 $rm \$dlpath'
6111 shlibpath_overrides_runpath=yes
6113 case $host_os in
6114 cygwin*)
6115 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6116 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6117 sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6119 mingw*)
6120 # MinGW DLLs use traditional 'lib' prefix
6121 soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6122 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6123 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6124 # It is most probably a Windows format PATH printed by
6125 # mingw gcc, but we are running on Cygwin. Gcc prints its search
6126 # path with ; separators, and with drive letters. We can handle the
6127 # drive letters (cygwin fileutils understands them), so leave them,
6128 # especially as we might pass files found there to a mingw objdump,
6129 # which wouldn't understand a cygwinified path. Ahh.
6130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6131 else
6132 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6135 pw32*)
6136 # pw32 DLLs use 'pw' prefix rather than 'lib'
6137 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6139 esac
6143 library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6145 esac
6146 dynamic_linker='Win32 ld.exe'
6147 # FIXME: first we should search . and the directory the executable is in
6148 shlibpath_var=PATH
6151 darwin* | rhapsody*)
6152 dynamic_linker="$host_os dyld"
6153 version_type=darwin
6154 need_lib_prefix=no
6155 need_version=no
6156 # FIXME: Relying on posixy $() will cause problems for
6157 # cross-compilation, but unfortunately the echo tests do not
6158 # yet detect zsh echo's removal of \ escapes.
6159 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6160 soname_spec='${libname}${release}${major}$shared_ext'
6161 shlibpath_overrides_runpath=yes
6162 shlibpath_var=DYLD_LIBRARY_PATH
6163 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6164 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6165 if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6166 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"`
6168 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6171 dgux*)
6172 version_type=linux
6173 need_lib_prefix=no
6174 need_version=no
6175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6176 soname_spec='${libname}${release}${shared_ext}$major'
6177 shlibpath_var=LD_LIBRARY_PATH
6180 freebsd*)
6181 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6182 version_type=freebsd-$objformat
6183 case $version_type in
6184 freebsd-elf*)
6185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6186 need_version=no
6187 need_lib_prefix=no
6189 freebsd-*)
6190 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6191 need_version=yes
6193 esac
6194 shlibpath_var=LD_LIBRARY_PATH
6195 case $host_os in
6196 freebsd2*)
6197 shlibpath_overrides_runpath=yes
6199 freebsd3.01* | freebsdelf3.01*)
6200 shlibpath_overrides_runpath=yes
6201 hardcode_into_libs=yes
6203 *) # from 3.2 on
6204 shlibpath_overrides_runpath=no
6205 hardcode_into_libs=yes
6207 esac
6210 gnu*)
6211 version_type=linux
6212 need_lib_prefix=no
6213 need_version=no
6214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6215 soname_spec='${libname}${release}${shared_ext}$major'
6216 shlibpath_var=LD_LIBRARY_PATH
6217 hardcode_into_libs=yes
6220 hpux9* | hpux10* | hpux11*)
6221 # Give a soname corresponding to the major version so that dld.sl refuses to
6222 # link against other versions.
6223 version_type=sunos
6224 need_lib_prefix=no
6225 need_version=no
6226 case "$host_cpu" in
6227 ia64*)
6228 shrext='.so'
6229 hardcode_into_libs=yes
6230 dynamic_linker="$host_os dld.so"
6231 shlibpath_var=LD_LIBRARY_PATH
6232 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6234 soname_spec='${libname}${release}${shared_ext}$major'
6235 if test "X$HPUX_IA64_MODE" = X32; then
6236 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6237 else
6238 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6240 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6242 hppa*64*)
6243 shrext='.sl'
6244 hardcode_into_libs=yes
6245 dynamic_linker="$host_os dld.sl"
6246 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6249 soname_spec='${libname}${release}${shared_ext}$major'
6250 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6251 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6254 shrext='.sl'
6255 dynamic_linker="$host_os dld.sl"
6256 shlibpath_var=SHLIB_PATH
6257 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6259 soname_spec='${libname}${release}${shared_ext}$major'
6261 esac
6262 # HP-UX runs *really* slowly unless shared libraries are mode 555.
6263 postinstall_cmds='chmod 555 $lib'
6266 irix5* | irix6* | nonstopux*)
6267 case $host_os in
6268 nonstopux*) version_type=nonstopux ;;
6270 if test "$lt_cv_prog_gnu_ld" = yes; then
6271 version_type=linux
6272 else
6273 version_type=irix
6274 fi ;;
6275 esac
6276 need_lib_prefix=no
6277 need_version=no
6278 soname_spec='${libname}${release}${shared_ext}$major'
6279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6280 case $host_os in
6281 irix5* | nonstopux*)
6282 libsuff= shlibsuff=
6285 case $LD in # libtool.m4 will add one of these switches to LD
6286 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6287 libsuff= shlibsuff= libmagic=32-bit;;
6288 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6289 libsuff=32 shlibsuff=N32 libmagic=N32;;
6290 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6291 libsuff=64 shlibsuff=64 libmagic=64-bit;;
6292 *) libsuff= shlibsuff= libmagic=never-match;;
6293 esac
6295 esac
6296 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6297 shlibpath_overrides_runpath=no
6298 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6299 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6300 hardcode_into_libs=yes
6303 # No shared lib support for Linux oldld, aout, or coff.
6304 linux*oldld* | linux*aout* | linux*coff*)
6305 dynamic_linker=no
6308 # This must be Linux ELF.
6309 linux*|k*bsd*-gnu)
6310 version_type=linux
6311 need_lib_prefix=no
6312 need_version=no
6313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6314 soname_spec='${libname}${release}${shared_ext}$major'
6315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6316 shlibpath_var=LD_LIBRARY_PATH
6317 shlibpath_overrides_runpath=no
6318 # This implies no fast_install, which is unacceptable.
6319 # Some rework will be needed to allow for fast_install
6320 # before this can be enabled.
6321 hardcode_into_libs=yes
6323 # We used to test for /lib/ld.so.1 and disable shared libraries on
6324 # powerpc, because MkLinux only supported shared libraries with the
6325 # GNU dynamic linker. Since this was broken with cross compilers,
6326 # most powerpc-linux boxes support dynamic linking these days and
6327 # people can always --disable-shared, the test was removed, and we
6328 # assume the GNU/Linux dynamic linker is in use.
6329 dynamic_linker='GNU/Linux ld.so'
6332 netbsd*)
6333 version_type=sunos
6334 need_lib_prefix=no
6335 need_version=no
6336 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6339 dynamic_linker='NetBSD (a.out) ld.so'
6340 else
6341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6342 soname_spec='${libname}${release}${shared_ext}$major'
6343 dynamic_linker='NetBSD ld.elf_so'
6345 shlibpath_var=LD_LIBRARY_PATH
6346 shlibpath_overrides_runpath=yes
6347 hardcode_into_libs=yes
6350 newsos6)
6351 version_type=linux
6352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6353 shlibpath_var=LD_LIBRARY_PATH
6354 shlibpath_overrides_runpath=yes
6357 nto-qnx)
6358 version_type=linux
6359 need_lib_prefix=no
6360 need_version=no
6361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6362 soname_spec='${libname}${release}${shared_ext}$major'
6363 shlibpath_var=LD_LIBRARY_PATH
6364 shlibpath_overrides_runpath=yes
6367 openbsd*)
6368 version_type=sunos
6369 need_lib_prefix=no
6370 need_version=no
6371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6372 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6373 shlibpath_var=LD_LIBRARY_PATH
6374 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6375 case $host_os in
6376 openbsd2.[89] | openbsd2.[89].*)
6377 shlibpath_overrides_runpath=no
6380 shlibpath_overrides_runpath=yes
6382 esac
6383 else
6384 shlibpath_overrides_runpath=yes
6388 os2*)
6389 libname_spec='$name'
6390 shrext=".dll"
6391 need_lib_prefix=no
6392 library_names_spec='$libname${shared_ext} $libname.a'
6393 dynamic_linker='OS/2 ld.exe'
6394 shlibpath_var=LIBPATH
6397 osf3* | osf4* | osf5*)
6398 version_type=osf
6399 need_lib_prefix=no
6400 need_version=no
6401 soname_spec='${libname}${release}${shared_ext}$major'
6402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6403 shlibpath_var=LD_LIBRARY_PATH
6404 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6405 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6408 sco3.2v5*)
6409 version_type=osf
6410 soname_spec='${libname}${release}${shared_ext}$major'
6411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6412 shlibpath_var=LD_LIBRARY_PATH
6415 solaris*)
6416 version_type=linux
6417 need_lib_prefix=no
6418 need_version=no
6419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6420 soname_spec='${libname}${release}${shared_ext}$major'
6421 shlibpath_var=LD_LIBRARY_PATH
6422 shlibpath_overrides_runpath=yes
6423 hardcode_into_libs=yes
6424 # ldd complains unless libraries are executable
6425 postinstall_cmds='chmod +x $lib'
6428 sunos4*)
6429 version_type=sunos
6430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6431 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6432 shlibpath_var=LD_LIBRARY_PATH
6433 shlibpath_overrides_runpath=yes
6434 if test "$with_gnu_ld" = yes; then
6435 need_lib_prefix=no
6437 need_version=yes
6440 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6441 version_type=linux
6442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6443 soname_spec='${libname}${release}${shared_ext}$major'
6444 shlibpath_var=LD_LIBRARY_PATH
6445 case $host_vendor in
6446 sni)
6447 shlibpath_overrides_runpath=no
6448 need_lib_prefix=no
6449 export_dynamic_flag_spec='${wl}-Blargedynsym'
6450 runpath_var=LD_RUN_PATH
6452 siemens)
6453 need_lib_prefix=no
6455 motorola)
6456 need_lib_prefix=no
6457 need_version=no
6458 shlibpath_overrides_runpath=no
6459 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6461 esac
6464 sysv4*MP*)
6465 if test -d /usr/nec ;then
6466 version_type=linux
6467 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6468 soname_spec='$libname${shared_ext}.$major'
6469 shlibpath_var=LD_LIBRARY_PATH
6473 uts4*)
6474 version_type=linux
6475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6476 soname_spec='${libname}${release}${shared_ext}$major'
6477 shlibpath_var=LD_LIBRARY_PATH
6481 dynamic_linker=no
6483 esac
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6485 $as_echo "$dynamic_linker" >&6; }
6486 test "$dynamic_linker" = no && can_build_shared=no
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6490 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6491 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6492 $as_echo_n "(cached) " >&6
6493 else
6494 libltdl_cv_shlibpath_var="$shlibpath_var"
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6497 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6498 if test -n "$libltdl_cv_shlibpath_var"; then
6500 cat >>confdefs.h <<_ACEOF
6501 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6502 _ACEOF
6508 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6511 # Possibly build libgcj as many sub-libraries.
6512 # Check whether --enable-libgcj-sublibs was given.
6513 if test "${enable_libgcj_sublibs+set}" = set; then :
6514 enableval=$enable_libgcj_sublibs;
6518 if test -z "$enable_libgcj_sublibs"; then
6519 enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6521 if test "$enable_libgcj_sublibs" = yes; then
6522 BUILD_SUBLIBS_TRUE=
6523 BUILD_SUBLIBS_FALSE='#'
6524 else
6525 BUILD_SUBLIBS_TRUE='#'
6526 BUILD_SUBLIBS_FALSE=
6529 if test "$enable_libgcj_sublibs" = yes ; then
6530 # In theory we could make do with only one override and simply
6531 # tag "_bc" onto the end of it when we use it to generate the
6532 # spec, but that's an ugly thing to do when there are multiple
6533 # words in the string and you're relying on the ordering to
6534 # append the correct one.
6535 libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6536 libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6540 # See if the user has requested runtime debugging.
6541 LIBGCJDEBUG="disable"
6543 # Check whether --enable-libgcj-debug was given.
6544 if test "${enable_libgcj_debug+set}" = set; then :
6545 enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6547 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6549 LIBGCJDEBUG="enable"
6555 # Check whether --with-escher was given.
6556 if test "${with_escher+set}" = set; then :
6557 withval=$with_escher;
6560 case "$with_escher" in
6562 use_escher=false
6564 "no")
6565 use_escher=false
6567 "yes")
6568 as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6571 use_escher=true
6573 esac
6575 # Determine which AWT peer libraries to build
6576 # Check whether --enable-java-awt was given.
6577 if test "${enable_java_awt+set}" = set; then :
6578 enableval=$enable_java_awt;
6582 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6583 use_xlib_awt=""
6584 use_gtk_awt=""
6585 use_qt_awt=""
6586 use_x_awt=""
6587 # The default toolkit to use is the first one specified.
6588 TOOLKIT=
6591 for peer in $peerlibs ; do
6592 case $peer in
6593 xlib)
6594 if test "$no_x" = yes; then
6595 echo "*** xlib peers requested but no X library available" 1>&2
6596 exit 1
6597 else
6598 use_xlib_awt="yes"
6599 if test -z "$TOOLKIT"; then
6600 TOOLKIT=gnu.awt.xlib.XToolkit
6604 gtk)
6605 if test "$no_x" = yes; then
6606 echo "*** gtk peers requested but no X library available" 1>&2
6607 exit 1
6608 else
6609 use_gtk_awt=yes
6610 if test -z "$TOOLKIT"; then
6611 TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6616 if test "$no_x" = yes; then
6617 # Perhaps we should admit the possibility of embedded Qt.
6618 echo "*** Qt peers requested but no X library available" 1>&2
6619 exit 1
6620 else
6621 use_qt_awt=yes
6622 if test -z "$TOOLKIT"; then
6623 TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6628 use_x_awt=yes
6629 if test -z "$TOOLKIT"; then
6630 TOOLKIT=gnu.java.awt.peer.x.XToolkit
6634 use_xlib_awt=
6635 use_gtk_awt=
6636 use_qt_awt=
6637 use_x_awt=
6638 break
6641 echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6642 exit 1
6643 esac
6644 done
6646 if test "$use_xlib_awt" = yes; then
6647 XLIB_AWT_TRUE=
6648 XLIB_AWT_FALSE='#'
6649 else
6650 XLIB_AWT_TRUE='#'
6651 XLIB_AWT_FALSE=
6654 if test "$use_x_awt" = yes; then
6655 X_AWT_TRUE=
6656 X_AWT_FALSE='#'
6657 else
6658 X_AWT_TRUE='#'
6659 X_AWT_FALSE=
6664 cat >>confdefs.h <<_ACEOF
6665 #define AWT_TOOLKIT "$TOOLKIT"
6666 _ACEOF
6669 expanded_prefix=$prefix
6670 if test "X$prefix" = XNONE; then
6671 expanded_prefix=${ac_default_prefix}
6675 cat >>confdefs.h <<_ACEOF
6676 #define LIBGCJ_PREFIX "$expanded_prefix"
6677 _ACEOF
6680 # Create standard.omit based on decisions we just made.
6681 cp $srcdir/standard.omit.in standard.omit
6682 if test "$use_xlib_awt" != yes; then
6683 echo gnu/awt/xlib >> standard.omit
6684 echo gnu/gcj/xlib >> standard.omit
6686 if test "$use_x_awt" != yes; then
6687 echo gnu/java/awt/peer/x >> standard.omit
6690 # Tools that need to be compiled against classpath's tools classes
6691 : > vm-tools-packages
6692 for package in gnu/gcj/tools/gc_analyze ; do
6693 echo $package >> standard.omit
6694 echo $package >> vm-tools-packages
6695 done
6697 if test -z "${with_multisubdir}"; then
6698 builddotdot=.
6699 else
6700 builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6703 NATIVE=yes
6705 # Which gcj and host gcj (for ecjx) do we use?
6706 which_gcj=default
6707 host_exeext=${ac_exeext}
6708 GCJ_FOR_ECJX='$(GCJ)'
6709 GCC_FOR_ECJX='$(CXX)'
6710 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6711 if test -n "${with_cross_host}"; then
6712 # We are being configured with a cross compiler. We can't
6713 # use ac_exeext, because that is for the target platform.
6714 NATIVE=no
6715 cross_host_exeext=
6716 GCJ_FOR_ECJX="${with_cross_host}-gcj"
6717 GCC_FOR_ECJX="${with_cross_host}-gcc"
6718 case "${with_cross_host}" in
6719 *mingw* | *cygwin*)
6720 cross_host_exeext=.exe
6722 esac
6723 host_exeext=${cross_host_exeext}
6724 if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6725 if test x"$build_noncanonical" = x"$with_cross_host"; then
6726 # Ordinary cross (host!=target and host=build)
6727 which_gcj=built
6728 else
6729 # Canadian cross (host!=target and host!=build)
6730 which_gcj=cross
6732 else
6733 which_gcj=cross
6735 else
6736 # We are being configured with a native or crossed-native compiler
6737 if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6738 if test x"$build" = x"$host"; then
6739 # True native build (host=target and host=build)
6740 which_gcj=built
6741 else
6742 # Crossed-native build (host=target and host!=build)
6743 which_gcj=cross
6745 else
6746 which_gcj=path
6749 libgcjdir=`${PWDCMD-pwd}`
6750 case $GCJ in
6751 *" -B"*)
6752 # Just in case there is a comma in the build dir, quote it for the
6753 # sed command below.
6754 case $libgcjdir in
6755 *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6756 *) qlibgcjdir=$libgcjdir;;
6757 esac
6758 GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6761 GCJ=$GCJ" -B$libgcjdir/"
6763 esac
6764 case "${which_gcj}" in
6765 built)
6766 GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6768 cross)
6769 if test "x${with_newlib}" = "xyes"; then
6770 # FIXME (comment): Why is this needed?
6771 GCC_UNWIND_INCLUDE=
6773 GCJH='$(target_noncanonical)-gcjh'
6775 path)
6776 GCJH=gcjh
6778 esac
6779 JAVAC="$GCJ -C"
6780 export JAVAC
6787 # Create it, so that compile/link tests don't fail
6788 test -f libgcj.spec || touch libgcj.spec
6792 # Set up to configure Classpath.
6793 # FIXME: no supported way to pass args in autoconf.
6794 # Disable tool wrappers to avoid ltdl.h configure check.
6795 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6796 ac_configure_args="$ac_configure_args --disable-load-library"
6797 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6798 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6799 dir1=`cd $srcdir && pwd`
6800 dir2=`pwd`
6801 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6802 ac_configure_args="$ac_configure_args --disable-core-jni"
6803 ac_configure_args="$ac_configure_args --disable-examples"
6804 ac_configure_args="$ac_configure_args --with-glibj=build"
6805 if test "$browser_plugin_enabled" != yes; then
6806 ac_configure_args="$ac_configure_args --disable-plugin"
6807 else
6808 ac_configure_args="$ac_configure_args --enable-plugin"
6810 if test "$gconf_enabled" != yes; then
6811 ac_configure_args="$ac_configure_args --disable-gconf-peer"
6812 ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6814 if test "$use_gtk_awt" != yes; then
6815 ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6817 if test "$use_qt_awt" != yes; then
6818 ac_configure_args="$ac_configure_args --disable-qt-peer"
6819 else
6820 # We need this as qt is disabled by default in classpath.
6821 ac_configure_args="$ac_configure_args --enable-qt-peer"
6823 if test "$use_x_awt" != yes; then
6824 ac_configure_args="$ac_configure_args --without-escher"
6825 else
6826 # We need this as escher is disabled by default in classpath.
6827 if test "$use_escher" != true; then
6828 as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6829 else
6830 ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6833 if test "x$BUILD_GJDOC" = xno; then
6834 ac_configure_args="$ac_configure_args --disable-gjdoc"
6836 # -Werror causes unavoidable problems in code using alsa.
6837 ac_configure_args="$ac_configure_args --disable-regen-headers"
6838 ac_configure_args="$ac_configure_args --disable-Werror"
6840 # Only use libltdl for non-newlib builds.
6841 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6842 case $enable_ltdl_convenience in
6843 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6844 "") enable_ltdl_convenience=yes
6845 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6846 esac
6847 LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6848 LTDLINCL='-I${top_srcdir}/''libltdl'
6849 # For backwards non-gettext consistent compatibility...
6850 INCLTDL="$LTDLINCL"
6852 enable_dlopen=yes
6856 DIRLTDL=libltdl
6858 $as_echo "#define USE_LTDL 1" >>confdefs.h
6860 # Sigh. Libtool's macro doesn't do the right thing.
6861 INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6862 # FIXME: this is a hack.
6863 sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6864 ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6869 case `pwd` in
6870 *\ * | *\ *)
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6872 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6873 esac
6877 macro_version='2.2.7a'
6878 macro_revision='1.3134'
6892 ltmain="$ac_aux_dir/ltmain.sh"
6894 # Backslashify metacharacters that are still active within
6895 # double-quoted strings.
6896 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6898 # Same as above, but do not quote variable references.
6899 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6901 # Sed substitution to delay expansion of an escaped shell variable in a
6902 # double_quote_subst'ed string.
6903 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6905 # Sed substitution to delay expansion of an escaped single quote.
6906 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6908 # Sed substitution to avoid accidental globbing in evaled expressions
6909 no_glob_subst='s/\*/\\\*/g'
6911 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6912 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6913 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6916 $as_echo_n "checking how to print strings... " >&6; }
6917 # Test print first, because it will be a builtin if present.
6918 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6919 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6920 ECHO='print -r --'
6921 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6922 ECHO='printf %s\n'
6923 else
6924 # Use this function as a fallback that always works.
6925 func_fallback_echo ()
6927 eval 'cat <<_LTECHO_EOF
6929 _LTECHO_EOF'
6931 ECHO='func_fallback_echo'
6934 # func_echo_all arg...
6935 # Invoke $ECHO with all args, space-separated.
6936 func_echo_all ()
6938 $ECHO ""
6941 case "$ECHO" in
6942 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6943 $as_echo "printf" >&6; } ;;
6944 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6945 $as_echo "print -r" >&6; } ;;
6946 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6947 $as_echo "cat" >&6; } ;;
6948 esac
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6964 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6965 if test "${ac_cv_path_SED+set}" = set; then :
6966 $as_echo_n "(cached) " >&6
6967 else
6968 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6969 for ac_i in 1 2 3 4 5 6 7; do
6970 ac_script="$ac_script$as_nl$ac_script"
6971 done
6972 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6973 { ac_script=; unset ac_script;}
6974 if test -z "$SED"; then
6975 ac_path_SED_found=false
6976 # Loop through the user's path and test for each of PROGNAME-LIST
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 for as_dir in $PATH
6980 IFS=$as_save_IFS
6981 test -z "$as_dir" && as_dir=.
6982 for ac_prog in sed gsed; do
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6985 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6986 # Check for GNU ac_path_SED and select it if it is found.
6987 # Check for GNU $ac_path_SED
6988 case `"$ac_path_SED" --version 2>&1` in
6989 *GNU*)
6990 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6992 ac_count=0
6993 $as_echo_n 0123456789 >"conftest.in"
6994 while :
6996 cat "conftest.in" "conftest.in" >"conftest.tmp"
6997 mv "conftest.tmp" "conftest.in"
6998 cp "conftest.in" "conftest.nl"
6999 $as_echo '' >> "conftest.nl"
7000 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7001 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7002 as_fn_arith $ac_count + 1 && ac_count=$as_val
7003 if test $ac_count -gt ${ac_path_SED_max-0}; then
7004 # Best one so far, save it but keep looking for a better one
7005 ac_cv_path_SED="$ac_path_SED"
7006 ac_path_SED_max=$ac_count
7008 # 10*(2^10) chars as input seems more than enough
7009 test $ac_count -gt 10 && break
7010 done
7011 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7012 esac
7014 $ac_path_SED_found && break 3
7015 done
7016 done
7017 done
7018 IFS=$as_save_IFS
7019 if test -z "$ac_cv_path_SED"; then
7020 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7022 else
7023 ac_cv_path_SED=$SED
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7028 $as_echo "$ac_cv_path_SED" >&6; }
7029 SED="$ac_cv_path_SED"
7030 rm -f conftest.sed
7032 test -z "$SED" && SED=sed
7033 Xsed="$SED -e 1s/^X//"
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7046 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7047 if test "${ac_cv_path_GREP+set}" = set; then :
7048 $as_echo_n "(cached) " >&6
7049 else
7050 if test -z "$GREP"; then
7051 ac_path_GREP_found=false
7052 # Loop through the user's path and test for each of PROGNAME-LIST
7053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7056 IFS=$as_save_IFS
7057 test -z "$as_dir" && as_dir=.
7058 for ac_prog in grep ggrep; do
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7061 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7062 # Check for GNU ac_path_GREP and select it if it is found.
7063 # Check for GNU $ac_path_GREP
7064 case `"$ac_path_GREP" --version 2>&1` in
7065 *GNU*)
7066 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7068 ac_count=0
7069 $as_echo_n 0123456789 >"conftest.in"
7070 while :
7072 cat "conftest.in" "conftest.in" >"conftest.tmp"
7073 mv "conftest.tmp" "conftest.in"
7074 cp "conftest.in" "conftest.nl"
7075 $as_echo 'GREP' >> "conftest.nl"
7076 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7078 as_fn_arith $ac_count + 1 && ac_count=$as_val
7079 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7080 # Best one so far, save it but keep looking for a better one
7081 ac_cv_path_GREP="$ac_path_GREP"
7082 ac_path_GREP_max=$ac_count
7084 # 10*(2^10) chars as input seems more than enough
7085 test $ac_count -gt 10 && break
7086 done
7087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7088 esac
7090 $ac_path_GREP_found && break 3
7091 done
7092 done
7093 done
7094 IFS=$as_save_IFS
7095 if test -z "$ac_cv_path_GREP"; then
7096 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7098 else
7099 ac_cv_path_GREP=$GREP
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7104 $as_echo "$ac_cv_path_GREP" >&6; }
7105 GREP="$ac_cv_path_GREP"
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7109 $as_echo_n "checking for egrep... " >&6; }
7110 if test "${ac_cv_path_EGREP+set}" = set; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7114 then ac_cv_path_EGREP="$GREP -E"
7115 else
7116 if test -z "$EGREP"; then
7117 ac_path_EGREP_found=false
7118 # Loop through the user's path and test for each of PROGNAME-LIST
7119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7120 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7122 IFS=$as_save_IFS
7123 test -z "$as_dir" && as_dir=.
7124 for ac_prog in egrep; do
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7127 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7128 # Check for GNU ac_path_EGREP and select it if it is found.
7129 # Check for GNU $ac_path_EGREP
7130 case `"$ac_path_EGREP" --version 2>&1` in
7131 *GNU*)
7132 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7134 ac_count=0
7135 $as_echo_n 0123456789 >"conftest.in"
7136 while :
7138 cat "conftest.in" "conftest.in" >"conftest.tmp"
7139 mv "conftest.tmp" "conftest.in"
7140 cp "conftest.in" "conftest.nl"
7141 $as_echo 'EGREP' >> "conftest.nl"
7142 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7143 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7144 as_fn_arith $ac_count + 1 && ac_count=$as_val
7145 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7146 # Best one so far, save it but keep looking for a better one
7147 ac_cv_path_EGREP="$ac_path_EGREP"
7148 ac_path_EGREP_max=$ac_count
7150 # 10*(2^10) chars as input seems more than enough
7151 test $ac_count -gt 10 && break
7152 done
7153 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7154 esac
7156 $ac_path_EGREP_found && break 3
7157 done
7158 done
7159 done
7160 IFS=$as_save_IFS
7161 if test -z "$ac_cv_path_EGREP"; then
7162 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7164 else
7165 ac_cv_path_EGREP=$EGREP
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7171 $as_echo "$ac_cv_path_EGREP" >&6; }
7172 EGREP="$ac_cv_path_EGREP"
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7176 $as_echo_n "checking for fgrep... " >&6; }
7177 if test "${ac_cv_path_FGREP+set}" = set; then :
7178 $as_echo_n "(cached) " >&6
7179 else
7180 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7181 then ac_cv_path_FGREP="$GREP -F"
7182 else
7183 if test -z "$FGREP"; then
7184 ac_path_FGREP_found=false
7185 # Loop through the user's path and test for each of PROGNAME-LIST
7186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7187 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7189 IFS=$as_save_IFS
7190 test -z "$as_dir" && as_dir=.
7191 for ac_prog in fgrep; do
7192 for ac_exec_ext in '' $ac_executable_extensions; do
7193 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7194 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7195 # Check for GNU ac_path_FGREP and select it if it is found.
7196 # Check for GNU $ac_path_FGREP
7197 case `"$ac_path_FGREP" --version 2>&1` in
7198 *GNU*)
7199 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7201 ac_count=0
7202 $as_echo_n 0123456789 >"conftest.in"
7203 while :
7205 cat "conftest.in" "conftest.in" >"conftest.tmp"
7206 mv "conftest.tmp" "conftest.in"
7207 cp "conftest.in" "conftest.nl"
7208 $as_echo 'FGREP' >> "conftest.nl"
7209 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7210 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7211 as_fn_arith $ac_count + 1 && ac_count=$as_val
7212 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7213 # Best one so far, save it but keep looking for a better one
7214 ac_cv_path_FGREP="$ac_path_FGREP"
7215 ac_path_FGREP_max=$ac_count
7217 # 10*(2^10) chars as input seems more than enough
7218 test $ac_count -gt 10 && break
7219 done
7220 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7221 esac
7223 $ac_path_FGREP_found && break 3
7224 done
7225 done
7226 done
7227 IFS=$as_save_IFS
7228 if test -z "$ac_cv_path_FGREP"; then
7229 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7231 else
7232 ac_cv_path_FGREP=$FGREP
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7238 $as_echo "$ac_cv_path_FGREP" >&6; }
7239 FGREP="$ac_cv_path_FGREP"
7242 test -z "$GREP" && GREP=grep
7262 # Check whether --with-gnu-ld was given.
7263 if test "${with_gnu_ld+set}" = set; then :
7264 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7265 else
7266 with_gnu_ld=no
7269 ac_prog=ld
7270 if test "$GCC" = yes; then
7271 # Check if gcc -print-prog-name=ld gives a path.
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7273 $as_echo_n "checking for ld used by $CC... " >&6; }
7274 case $host in
7275 *-*-mingw*)
7276 # gcc leaves a trailing carriage return which upsets mingw
7277 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7279 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7280 esac
7281 case $ac_prog in
7282 # Accept absolute paths.
7283 [\\/]* | ?:[\\/]*)
7284 re_direlt='/[^/][^/]*/\.\./'
7285 # Canonicalize the pathname of ld
7286 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7287 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7288 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7289 done
7290 test -z "$LD" && LD="$ac_prog"
7293 # If it fails, then pretend we aren't using GCC.
7294 ac_prog=ld
7297 # If it is relative, then search for the first ld in PATH.
7298 with_gnu_ld=unknown
7300 esac
7301 elif test "$with_gnu_ld" = yes; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7303 $as_echo_n "checking for GNU ld... " >&6; }
7304 else
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7306 $as_echo_n "checking for non-GNU ld... " >&6; }
7308 if test "${lt_cv_path_LD+set}" = set; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 if test -z "$LD"; then
7312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7313 for ac_dir in $PATH; do
7314 IFS="$lt_save_ifs"
7315 test -z "$ac_dir" && ac_dir=.
7316 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7317 lt_cv_path_LD="$ac_dir/$ac_prog"
7318 # Check to see if the program is GNU ld. I'd rather use --version,
7319 # but apparently some variants of GNU ld only accept -v.
7320 # Break only if it was the GNU/non-GNU ld that we prefer.
7321 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7322 *GNU* | *'with BFD'*)
7323 test "$with_gnu_ld" != no && break
7326 test "$with_gnu_ld" != yes && break
7328 esac
7330 done
7331 IFS="$lt_save_ifs"
7332 else
7333 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7337 LD="$lt_cv_path_LD"
7338 if test -n "$LD"; then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7340 $as_echo "$LD" >&6; }
7341 else
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }
7345 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7347 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7348 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7352 case `$LD -v 2>&1 </dev/null` in
7353 *GNU* | *'with BFD'*)
7354 lt_cv_prog_gnu_ld=yes
7357 lt_cv_prog_gnu_ld=no
7359 esac
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7362 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7363 with_gnu_ld=$lt_cv_prog_gnu_ld
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7374 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7375 if test "${lt_cv_path_NM+set}" = set; then :
7376 $as_echo_n "(cached) " >&6
7377 else
7378 if test -n "$NM"; then
7379 # Let the user override the test.
7380 lt_cv_path_NM="$NM"
7381 else
7382 lt_nm_to_check="${ac_tool_prefix}nm"
7383 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7384 lt_nm_to_check="$lt_nm_to_check nm"
7386 for lt_tmp_nm in $lt_nm_to_check; do
7387 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7388 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7389 IFS="$lt_save_ifs"
7390 test -z "$ac_dir" && ac_dir=.
7391 tmp_nm="$ac_dir/$lt_tmp_nm"
7392 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7393 # Check to see if the nm accepts a BSD-compat flag.
7394 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7395 # nm: unknown option "B" ignored
7396 # Tru64's nm complains that /dev/null is an invalid object file
7397 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7398 */dev/null* | *'Invalid file or object type'*)
7399 lt_cv_path_NM="$tmp_nm -B"
7400 break
7403 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7404 */dev/null*)
7405 lt_cv_path_NM="$tmp_nm -p"
7406 break
7409 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7410 continue # so that we can try to find one that supports BSD flags
7412 esac
7414 esac
7416 done
7417 IFS="$lt_save_ifs"
7418 done
7419 : ${lt_cv_path_NM=no}
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7423 $as_echo "$lt_cv_path_NM" >&6; }
7424 if test "$lt_cv_path_NM" != "no"; then
7425 NM="$lt_cv_path_NM"
7426 else
7427 # Didn't find any BSD compatible name lister, look for dumpbin.
7428 if test -n "$DUMPBIN"; then :
7429 # Let the user override the test.
7430 else
7431 if test -n "$ac_tool_prefix"; then
7432 for ac_prog in dumpbin "link -dump"
7434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 if test -n "$DUMPBIN"; then
7442 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7455 done
7456 done
7457 IFS=$as_save_IFS
7461 DUMPBIN=$ac_cv_prog_DUMPBIN
7462 if test -n "$DUMPBIN"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7464 $as_echo "$DUMPBIN" >&6; }
7465 else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7471 test -n "$DUMPBIN" && break
7472 done
7474 if test -z "$DUMPBIN"; then
7475 ac_ct_DUMPBIN=$DUMPBIN
7476 for ac_prog in dumpbin "link -dump"
7478 # Extract the first word of "$ac_prog", so it can be a program name with args.
7479 set dummy $ac_prog; ac_word=$2
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7481 $as_echo_n "checking for $ac_word... " >&6; }
7482 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7483 $as_echo_n "(cached) " >&6
7484 else
7485 if test -n "$ac_ct_DUMPBIN"; then
7486 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7487 else
7488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7489 for as_dir in $PATH
7491 IFS=$as_save_IFS
7492 test -z "$as_dir" && as_dir=.
7493 for ac_exec_ext in '' $ac_executable_extensions; do
7494 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7495 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7497 break 2
7499 done
7500 done
7501 IFS=$as_save_IFS
7505 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7506 if test -n "$ac_ct_DUMPBIN"; then
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7508 $as_echo "$ac_ct_DUMPBIN" >&6; }
7509 else
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7511 $as_echo "no" >&6; }
7515 test -n "$ac_ct_DUMPBIN" && break
7516 done
7518 if test "x$ac_ct_DUMPBIN" = x; then
7519 DUMPBIN=":"
7520 else
7521 case $cross_compiling:$ac_tool_warned in
7522 yes:)
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7525 ac_tool_warned=yes ;;
7526 esac
7527 DUMPBIN=$ac_ct_DUMPBIN
7531 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7532 *COFF*)
7533 DUMPBIN="$DUMPBIN -symbols"
7536 DUMPBIN=:
7538 esac
7541 if test "$DUMPBIN" != ":"; then
7542 NM="$DUMPBIN"
7545 test -z "$NM" && NM=nm
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7553 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7554 if test "${lt_cv_nm_interface+set}" = set; then :
7555 $as_echo_n "(cached) " >&6
7556 else
7557 lt_cv_nm_interface="BSD nm"
7558 echo "int some_variable = 0;" > conftest.$ac_ext
7559 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7560 (eval "$ac_compile" 2>conftest.err)
7561 cat conftest.err >&5
7562 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7563 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7564 cat conftest.err >&5
7565 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7566 cat conftest.out >&5
7567 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7568 lt_cv_nm_interface="MS dumpbin"
7570 rm -f conftest*
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7573 $as_echo "$lt_cv_nm_interface" >&6; }
7575 # find the maximum length of command line arguments
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7577 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7578 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7579 $as_echo_n "(cached) " >&6
7580 else
7582 teststring="ABCD"
7584 case $build_os in
7585 msdosdjgpp*)
7586 # On DJGPP, this test can blow up pretty badly due to problems in libc
7587 # (any single argument exceeding 2000 bytes causes a buffer overrun
7588 # during glob expansion). Even if it were fixed, the result of this
7589 # check would be larger than it should be.
7590 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7593 gnu*)
7594 # Under GNU Hurd, this test is not required because there is
7595 # no limit to the length of command line arguments.
7596 # Libtool will interpret -1 as no limit whatsoever
7597 lt_cv_sys_max_cmd_len=-1;
7600 cygwin* | mingw* | cegcc*)
7601 # On Win9x/ME, this test blows up -- it succeeds, but takes
7602 # about 5 minutes as the teststring grows exponentially.
7603 # Worse, since 9x/ME are not pre-emptively multitasking,
7604 # you end up with a "frozen" computer, even though with patience
7605 # the test eventually succeeds (with a max line length of 256k).
7606 # Instead, let's just punt: use the minimum linelength reported by
7607 # all of the supported platforms: 8192 (on NT/2K/XP).
7608 lt_cv_sys_max_cmd_len=8192;
7611 mint*)
7612 # On MiNT this can take a long time and run out of memory.
7613 lt_cv_sys_max_cmd_len=8192;
7616 amigaos*)
7617 # On AmigaOS with pdksh, this test takes hours, literally.
7618 # So we just punt and use a minimum line length of 8192.
7619 lt_cv_sys_max_cmd_len=8192;
7622 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7623 # This has been around since 386BSD, at least. Likely further.
7624 if test -x /sbin/sysctl; then
7625 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7626 elif test -x /usr/sbin/sysctl; then
7627 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7628 else
7629 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7631 # And add a safety zone
7632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7636 interix*)
7637 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7638 lt_cv_sys_max_cmd_len=196608
7641 osf*)
7642 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7643 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7644 # nice to cause kernel panics so lets avoid the loop below.
7645 # First set a reasonable default.
7646 lt_cv_sys_max_cmd_len=16384
7648 if test -x /sbin/sysconfig; then
7649 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7650 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7651 esac
7654 sco3.2v5*)
7655 lt_cv_sys_max_cmd_len=102400
7657 sysv5* | sco5v6* | sysv4.2uw2*)
7658 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7659 if test -n "$kargmax"; then
7660 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7661 else
7662 lt_cv_sys_max_cmd_len=32768
7666 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7667 if test -n "$lt_cv_sys_max_cmd_len"; then
7668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7670 else
7671 # Make teststring a little bigger before we do anything with it.
7672 # a 1K string should be a reasonable start.
7673 for i in 1 2 3 4 5 6 7 8 ; do
7674 teststring=$teststring$teststring
7675 done
7676 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7677 # If test is not a shell built-in, we'll probably end up computing a
7678 # maximum length that is only half of the actual maximum length, but
7679 # we can't tell.
7680 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7681 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7682 test $i != 17 # 1/2 MB should be enough
7684 i=`expr $i + 1`
7685 teststring=$teststring$teststring
7686 done
7687 # Only check the string length outside the loop.
7688 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7689 teststring=
7690 # Add a significant safety factor because C++ compilers can tack on
7691 # massive amounts of additional arguments before passing them to the
7692 # linker. It appears as though 1/2 is a usable value.
7693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7696 esac
7700 if test -n $lt_cv_sys_max_cmd_len ; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7702 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7703 else
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7705 $as_echo "none" >&6; }
7707 max_cmd_len=$lt_cv_sys_max_cmd_len
7714 : ${CP="cp -f"}
7715 : ${MV="mv -f"}
7716 : ${RM="rm -f"}
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7719 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7720 # Try some XSI features
7721 xsi_shell=no
7722 ( _lt_dummy="a/b/c"
7723 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7724 = c,a/b,, \
7725 && eval 'test $(( 1 + 1 )) -eq 2 \
7726 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7727 && xsi_shell=yes
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7729 $as_echo "$xsi_shell" >&6; }
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7733 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7734 lt_shell_append=no
7735 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7736 >/dev/null 2>&1 \
7737 && lt_shell_append=yes
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7739 $as_echo "$lt_shell_append" >&6; }
7742 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7743 lt_unset=unset
7744 else
7745 lt_unset=false
7752 # test EBCDIC or ASCII
7753 case `echo X|tr X '\101'` in
7754 A) # ASCII based system
7755 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7756 lt_SP2NL='tr \040 \012'
7757 lt_NL2SP='tr \015\012 \040\040'
7759 *) # EBCDIC based system
7760 lt_SP2NL='tr \100 \n'
7761 lt_NL2SP='tr \r\n \100\100'
7763 esac
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7774 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7775 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 lt_cv_ld_reload_flag='-r'
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7781 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7782 reload_flag=$lt_cv_ld_reload_flag
7783 case $reload_flag in
7784 "" | " "*) ;;
7785 *) reload_flag=" $reload_flag" ;;
7786 esac
7787 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7788 case $host_os in
7789 darwin*)
7790 if test "$GCC" = yes; then
7791 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7792 else
7793 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7796 esac
7806 if test -n "$ac_tool_prefix"; then
7807 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7808 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7810 $as_echo_n "checking for $ac_word... " >&6; }
7811 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 if test -n "$OBJDUMP"; then
7815 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7816 else
7817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7818 for as_dir in $PATH
7820 IFS=$as_save_IFS
7821 test -z "$as_dir" && as_dir=.
7822 for ac_exec_ext in '' $ac_executable_extensions; do
7823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7824 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7826 break 2
7828 done
7829 done
7830 IFS=$as_save_IFS
7834 OBJDUMP=$ac_cv_prog_OBJDUMP
7835 if test -n "$OBJDUMP"; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7837 $as_echo "$OBJDUMP" >&6; }
7838 else
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7840 $as_echo "no" >&6; }
7845 if test -z "$ac_cv_prog_OBJDUMP"; then
7846 ac_ct_OBJDUMP=$OBJDUMP
7847 # Extract the first word of "objdump", so it can be a program name with args.
7848 set dummy objdump; ac_word=$2
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7850 $as_echo_n "checking for $ac_word... " >&6; }
7851 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7852 $as_echo_n "(cached) " >&6
7853 else
7854 if test -n "$ac_ct_OBJDUMP"; then
7855 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7856 else
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7858 for as_dir in $PATH
7860 IFS=$as_save_IFS
7861 test -z "$as_dir" && as_dir=.
7862 for ac_exec_ext in '' $ac_executable_extensions; do
7863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7864 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 break 2
7868 done
7869 done
7870 IFS=$as_save_IFS
7874 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7875 if test -n "$ac_ct_OBJDUMP"; then
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7877 $as_echo "$ac_ct_OBJDUMP" >&6; }
7878 else
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7880 $as_echo "no" >&6; }
7883 if test "x$ac_ct_OBJDUMP" = x; then
7884 OBJDUMP="false"
7885 else
7886 case $cross_compiling:$ac_tool_warned in
7887 yes:)
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7890 ac_tool_warned=yes ;;
7891 esac
7892 OBJDUMP=$ac_ct_OBJDUMP
7894 else
7895 OBJDUMP="$ac_cv_prog_OBJDUMP"
7898 test -z "$OBJDUMP" && OBJDUMP=objdump
7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7909 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7910 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7911 $as_echo_n "(cached) " >&6
7912 else
7913 lt_cv_file_magic_cmd='$MAGIC_CMD'
7914 lt_cv_file_magic_test_file=
7915 lt_cv_deplibs_check_method='unknown'
7916 # Need to set the preceding variable on all platforms that support
7917 # interlibrary dependencies.
7918 # 'none' -- dependencies not supported.
7919 # `unknown' -- same as none, but documents that we really don't know.
7920 # 'pass_all' -- all dependencies passed with no checks.
7921 # 'test_compile' -- check by making test program.
7922 # 'file_magic [[regex]]' -- check by looking for files in library path
7923 # which responds to the $file_magic_cmd with a given extended regex.
7924 # If you have `file' or equivalent on your system and you're not sure
7925 # whether `pass_all' will *always* work, you probably want this one.
7927 case $host_os in
7928 aix[4-9]*)
7929 lt_cv_deplibs_check_method=pass_all
7932 beos*)
7933 lt_cv_deplibs_check_method=pass_all
7936 bsdi[45]*)
7937 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7938 lt_cv_file_magic_cmd='/usr/bin/file -L'
7939 lt_cv_file_magic_test_file=/shlib/libc.so
7942 cygwin*)
7943 # func_win32_libid is a shell function defined in ltmain.sh
7944 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7945 lt_cv_file_magic_cmd='func_win32_libid'
7948 mingw* | pw32*)
7949 # Base MSYS/MinGW do not provide the 'file' command needed by
7950 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7951 # unless we find 'file', for example because we are cross-compiling.
7952 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7953 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7954 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7955 lt_cv_file_magic_cmd='func_win32_libid'
7956 else
7957 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7958 lt_cv_file_magic_cmd='$OBJDUMP -f'
7962 cegcc*)
7963 # use the weaker test based on 'objdump'. See mingw*.
7964 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7965 lt_cv_file_magic_cmd='$OBJDUMP -f'
7968 darwin* | rhapsody*)
7969 lt_cv_deplibs_check_method=pass_all
7972 freebsd* | dragonfly*)
7973 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7974 case $host_cpu in
7975 i*86 )
7976 # Not sure whether the presence of OpenBSD here was a mistake.
7977 # Let's accept both of them until this is cleared up.
7978 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7979 lt_cv_file_magic_cmd=/usr/bin/file
7980 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7982 esac
7983 else
7984 lt_cv_deplibs_check_method=pass_all
7988 gnu*)
7989 lt_cv_deplibs_check_method=pass_all
7992 haiku*)
7993 lt_cv_deplibs_check_method=pass_all
7996 hpux10.20* | hpux11*)
7997 lt_cv_file_magic_cmd=/usr/bin/file
7998 case $host_cpu in
7999 ia64*)
8000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8001 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8003 hppa*64*)
8004 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]'
8005 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8009 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8011 esac
8014 interix[3-9]*)
8015 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8019 irix5* | irix6* | nonstopux*)
8020 case $LD in
8021 *-32|*"-32 ") libmagic=32-bit;;
8022 *-n32|*"-n32 ") libmagic=N32;;
8023 *-64|*"-64 ") libmagic=64-bit;;
8024 *) libmagic=never-match;;
8025 esac
8026 lt_cv_deplibs_check_method=pass_all
8029 # This must be Linux ELF.
8030 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8031 lt_cv_deplibs_check_method=pass_all
8034 netbsd*)
8035 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8037 else
8038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8042 newos6*)
8043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8044 lt_cv_file_magic_cmd=/usr/bin/file
8045 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8048 *nto* | *qnx*)
8049 lt_cv_deplibs_check_method=pass_all
8052 openbsd*)
8053 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8055 else
8056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8060 osf3* | osf4* | osf5*)
8061 lt_cv_deplibs_check_method=pass_all
8064 rdos*)
8065 lt_cv_deplibs_check_method=pass_all
8068 solaris*)
8069 lt_cv_deplibs_check_method=pass_all
8072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8073 lt_cv_deplibs_check_method=pass_all
8076 sysv4 | sysv4.3*)
8077 case $host_vendor in
8078 motorola)
8079 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]'
8080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8082 ncr)
8083 lt_cv_deplibs_check_method=pass_all
8085 sequent)
8086 lt_cv_file_magic_cmd='/bin/file'
8087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8089 sni)
8090 lt_cv_file_magic_cmd='/bin/file'
8091 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8092 lt_cv_file_magic_test_file=/lib/libc.so
8094 siemens)
8095 lt_cv_deplibs_check_method=pass_all
8098 lt_cv_deplibs_check_method=pass_all
8100 esac
8103 tpf*)
8104 lt_cv_deplibs_check_method=pass_all
8106 esac
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8110 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8111 file_magic_cmd=$lt_cv_file_magic_cmd
8112 deplibs_check_method=$lt_cv_deplibs_check_method
8113 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8126 if test -n "$ac_tool_prefix"; then
8127 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8128 set dummy ${ac_tool_prefix}ar; ac_word=$2
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8130 $as_echo_n "checking for $ac_word... " >&6; }
8131 if test "${ac_cv_prog_AR+set}" = set; then :
8132 $as_echo_n "(cached) " >&6
8133 else
8134 if test -n "$AR"; then
8135 ac_cv_prog_AR="$AR" # Let the user override the test.
8136 else
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8138 for as_dir in $PATH
8140 IFS=$as_save_IFS
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8144 ac_cv_prog_AR="${ac_tool_prefix}ar"
8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8146 break 2
8148 done
8149 done
8150 IFS=$as_save_IFS
8154 AR=$ac_cv_prog_AR
8155 if test -n "$AR"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8157 $as_echo "$AR" >&6; }
8158 else
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8165 if test -z "$ac_cv_prog_AR"; then
8166 ac_ct_AR=$AR
8167 # Extract the first word of "ar", so it can be a program name with args.
8168 set dummy ar; ac_word=$2
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170 $as_echo_n "checking for $ac_word... " >&6; }
8171 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8173 else
8174 if test -n "$ac_ct_AR"; then
8175 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8176 else
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8184 ac_cv_prog_ac_ct_AR="ar"
8185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186 break 2
8188 done
8189 done
8190 IFS=$as_save_IFS
8194 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8195 if test -n "$ac_ct_AR"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8197 $as_echo "$ac_ct_AR" >&6; }
8198 else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 $as_echo "no" >&6; }
8203 if test "x$ac_ct_AR" = x; then
8204 AR="false"
8205 else
8206 case $cross_compiling:$ac_tool_warned in
8207 yes:)
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8210 ac_tool_warned=yes ;;
8211 esac
8212 AR=$ac_ct_AR
8214 else
8215 AR="$ac_cv_prog_AR"
8218 test -z "$AR" && AR=ar
8219 test -z "$AR_FLAGS" && AR_FLAGS=cru
8231 if test -n "$ac_tool_prefix"; then
8232 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8233 set dummy ${ac_tool_prefix}strip; ac_word=$2
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8235 $as_echo_n "checking for $ac_word... " >&6; }
8236 if test "${ac_cv_prog_STRIP+set}" = set; then :
8237 $as_echo_n "(cached) " >&6
8238 else
8239 if test -n "$STRIP"; then
8240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8241 else
8242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8243 for as_dir in $PATH
8245 IFS=$as_save_IFS
8246 test -z "$as_dir" && as_dir=.
8247 for ac_exec_ext in '' $ac_executable_extensions; do
8248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8249 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8251 break 2
8253 done
8254 done
8255 IFS=$as_save_IFS
8259 STRIP=$ac_cv_prog_STRIP
8260 if test -n "$STRIP"; then
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8262 $as_echo "$STRIP" >&6; }
8263 else
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8265 $as_echo "no" >&6; }
8270 if test -z "$ac_cv_prog_STRIP"; then
8271 ac_ct_STRIP=$STRIP
8272 # Extract the first word of "strip", so it can be a program name with args.
8273 set dummy strip; ac_word=$2
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8275 $as_echo_n "checking for $ac_word... " >&6; }
8276 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8277 $as_echo_n "(cached) " >&6
8278 else
8279 if test -n "$ac_ct_STRIP"; then
8280 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8281 else
8282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8283 for as_dir in $PATH
8285 IFS=$as_save_IFS
8286 test -z "$as_dir" && as_dir=.
8287 for ac_exec_ext in '' $ac_executable_extensions; do
8288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8289 ac_cv_prog_ac_ct_STRIP="strip"
8290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8291 break 2
8293 done
8294 done
8295 IFS=$as_save_IFS
8299 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8300 if test -n "$ac_ct_STRIP"; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8302 $as_echo "$ac_ct_STRIP" >&6; }
8303 else
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8305 $as_echo "no" >&6; }
8308 if test "x$ac_ct_STRIP" = x; then
8309 STRIP=":"
8310 else
8311 case $cross_compiling:$ac_tool_warned in
8312 yes:)
8313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8315 ac_tool_warned=yes ;;
8316 esac
8317 STRIP=$ac_ct_STRIP
8319 else
8320 STRIP="$ac_cv_prog_STRIP"
8323 test -z "$STRIP" && STRIP=:
8330 if test -n "$ac_tool_prefix"; then
8331 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8332 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 if test -n "$RANLIB"; then
8339 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8340 else
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8344 IFS=$as_save_IFS
8345 test -z "$as_dir" && as_dir=.
8346 for ac_exec_ext in '' $ac_executable_extensions; do
8347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350 break 2
8352 done
8353 done
8354 IFS=$as_save_IFS
8358 RANLIB=$ac_cv_prog_RANLIB
8359 if test -n "$RANLIB"; then
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8361 $as_echo "$RANLIB" >&6; }
8362 else
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8369 if test -z "$ac_cv_prog_RANLIB"; then
8370 ac_ct_RANLIB=$RANLIB
8371 # Extract the first word of "ranlib", so it can be a program name with args.
8372 set dummy ranlib; ac_word=$2
8373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8374 $as_echo_n "checking for $ac_word... " >&6; }
8375 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8376 $as_echo_n "(cached) " >&6
8377 else
8378 if test -n "$ac_ct_RANLIB"; then
8379 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8380 else
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8382 for as_dir in $PATH
8384 IFS=$as_save_IFS
8385 test -z "$as_dir" && as_dir=.
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8388 ac_cv_prog_ac_ct_RANLIB="ranlib"
8389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8390 break 2
8392 done
8393 done
8394 IFS=$as_save_IFS
8398 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8399 if test -n "$ac_ct_RANLIB"; then
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8401 $as_echo "$ac_ct_RANLIB" >&6; }
8402 else
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8404 $as_echo "no" >&6; }
8407 if test "x$ac_ct_RANLIB" = x; then
8408 RANLIB=":"
8409 else
8410 case $cross_compiling:$ac_tool_warned in
8411 yes:)
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8414 ac_tool_warned=yes ;;
8415 esac
8416 RANLIB=$ac_ct_RANLIB
8418 else
8419 RANLIB="$ac_cv_prog_RANLIB"
8422 test -z "$RANLIB" && RANLIB=:
8429 # Determine commands to create old-style static archives.
8430 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8431 old_postinstall_cmds='chmod 644 $oldlib'
8432 old_postuninstall_cmds=
8434 if test -n "$RANLIB"; then
8435 case $host_os in
8436 openbsd*)
8437 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8440 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8442 esac
8443 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8446 case $host_os in
8447 darwin*)
8448 lock_old_archive_extraction=yes ;;
8450 lock_old_archive_extraction=no ;;
8451 esac
8491 # If no C compiler was specified, use CC.
8492 LTCC=${LTCC-"$CC"}
8494 # If no C compiler flags were specified, use CFLAGS.
8495 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8497 # Allow CC to be a program name with arguments.
8498 compiler=$CC
8501 # Check for command to grab the raw symbol name followed by C symbol from nm.
8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8503 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8504 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8505 $as_echo_n "(cached) " >&6
8506 else
8508 # These are sane defaults that work on at least a few old systems.
8509 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8511 # Character class describing NM global symbol codes.
8512 symcode='[BCDEGRST]'
8514 # Regexp to match symbols that can be accessed directly from C.
8515 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8517 # Define system-specific variables.
8518 case $host_os in
8519 aix*)
8520 symcode='[BCDT]'
8522 cygwin* | mingw* | pw32* | cegcc*)
8523 symcode='[ABCDGISTW]'
8525 hpux*)
8526 if test "$host_cpu" = ia64; then
8527 symcode='[ABCDEGRST]'
8530 irix* | nonstopux*)
8531 symcode='[BCDEGRST]'
8533 osf*)
8534 symcode='[BCDEGQRST]'
8536 solaris*)
8537 symcode='[BDRT]'
8539 sco3.2v5*)
8540 symcode='[DT]'
8542 sysv4.2uw2*)
8543 symcode='[DT]'
8545 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8546 symcode='[ABDT]'
8548 sysv4)
8549 symcode='[DFNSTU]'
8551 esac
8553 # If we're using GNU nm, then use its standard symbol codes.
8554 case `$NM -V 2>&1` in
8555 *GNU* | *'with BFD'*)
8556 symcode='[ABCDGIRSTW]' ;;
8557 esac
8559 # Transform an extracted symbol line into a proper C declaration.
8560 # Some systems (esp. on ia64) link data and code symbols differently,
8561 # so use this general approach.
8562 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8564 # Transform an extracted symbol line into symbol name and symbol address
8565 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8566 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'"
8568 # Handle CRLF in mingw tool chain
8569 opt_cr=
8570 case $build_os in
8571 mingw*)
8572 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8574 esac
8576 # Try without a prefix underscore, then with it.
8577 for ac_symprfx in "" "_"; do
8579 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8580 symxfrm="\\1 $ac_symprfx\\2 \\2"
8582 # Write the raw and C identifiers.
8583 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8584 # Fake it for dumpbin and say T for any non-static function
8585 # and D for any global variable.
8586 # Also find C++ and __fastcall symbols from MSVC++,
8587 # which start with @ or ?.
8588 lt_cv_sys_global_symbol_pipe="$AWK '"\
8589 " {last_section=section; section=\$ 3};"\
8590 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8591 " \$ 0!~/External *\|/{next};"\
8592 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8593 " {if(hide[section]) next};"\
8594 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8595 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8596 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8597 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8598 " ' prfx=^$ac_symprfx"
8599 else
8600 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8603 # Check to see that the pipe works correctly.
8604 pipe_works=no
8606 rm -f conftest*
8607 cat > conftest.$ac_ext <<_LT_EOF
8608 #ifdef __cplusplus
8609 extern "C" {
8610 #endif
8611 char nm_test_var;
8612 void nm_test_func(void);
8613 void nm_test_func(void){}
8614 #ifdef __cplusplus
8616 #endif
8617 int main(){nm_test_var='a';nm_test_func();return(0);}
8618 _LT_EOF
8620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8621 (eval $ac_compile) 2>&5
8622 ac_status=$?
8623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8624 test $ac_status = 0; }; then
8625 # Now try to grab the symbols.
8626 nlist=conftest.nm
8627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8628 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8629 ac_status=$?
8630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8631 test $ac_status = 0; } && test -s "$nlist"; then
8632 # Try sorting and uniquifying the output.
8633 if sort "$nlist" | uniq > "$nlist"T; then
8634 mv -f "$nlist"T "$nlist"
8635 else
8636 rm -f "$nlist"T
8639 # Make sure that we snagged all the symbols we need.
8640 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8641 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8642 cat <<_LT_EOF > conftest.$ac_ext
8643 #ifdef __cplusplus
8644 extern "C" {
8645 #endif
8647 _LT_EOF
8648 # Now generate the symbol file.
8649 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8651 cat <<_LT_EOF >> conftest.$ac_ext
8653 /* The mapping between symbol names and symbols. */
8654 const struct {
8655 const char *name;
8656 void *address;
8658 lt__PROGRAM__LTX_preloaded_symbols[] =
8660 { "@PROGRAM@", (void *) 0 },
8661 _LT_EOF
8662 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8663 cat <<\_LT_EOF >> conftest.$ac_ext
8664 {0, (void *) 0}
8667 /* This works around a problem in FreeBSD linker */
8668 #ifdef FREEBSD_WORKAROUND
8669 static const void *lt_preloaded_setup() {
8670 return lt__PROGRAM__LTX_preloaded_symbols;
8672 #endif
8674 #ifdef __cplusplus
8676 #endif
8677 _LT_EOF
8678 # Now try linking the two files.
8679 mv conftest.$ac_objext conftstm.$ac_objext
8680 lt_save_LIBS="$LIBS"
8681 lt_save_CFLAGS="$CFLAGS"
8682 LIBS="conftstm.$ac_objext"
8683 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8685 (eval $ac_link) 2>&5
8686 ac_status=$?
8687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8688 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8689 pipe_works=yes
8691 LIBS="$lt_save_LIBS"
8692 CFLAGS="$lt_save_CFLAGS"
8693 else
8694 echo "cannot find nm_test_func in $nlist" >&5
8696 else
8697 echo "cannot find nm_test_var in $nlist" >&5
8699 else
8700 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8702 else
8703 echo "$progname: failed program was:" >&5
8704 cat conftest.$ac_ext >&5
8706 rm -rf conftest* conftst*
8708 # Do not use the global_symbol_pipe unless it works.
8709 if test "$pipe_works" = yes; then
8710 break
8711 else
8712 lt_cv_sys_global_symbol_pipe=
8714 done
8718 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8719 lt_cv_sys_global_symbol_to_cdecl=
8721 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8723 $as_echo "failed" >&6; }
8724 else
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8726 $as_echo "ok" >&6; }
8751 # Check whether --enable-libtool-lock was given.
8752 if test "${enable_libtool_lock+set}" = set; then :
8753 enableval=$enable_libtool_lock;
8756 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8758 # Some flags need to be propagated to the compiler or linker for good
8759 # libtool support.
8760 case $host in
8761 ia64-*-hpux*)
8762 # Find out which ABI we are using.
8763 echo 'int i;' > conftest.$ac_ext
8764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8765 (eval $ac_compile) 2>&5
8766 ac_status=$?
8767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8768 test $ac_status = 0; }; then
8769 case `/usr/bin/file conftest.$ac_objext` in
8770 *ELF-32*)
8771 HPUX_IA64_MODE="32"
8773 *ELF-64*)
8774 HPUX_IA64_MODE="64"
8776 esac
8778 rm -rf conftest*
8780 *-*-irix6*)
8781 # Find out which ABI we are using.
8782 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8784 (eval $ac_compile) 2>&5
8785 ac_status=$?
8786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8787 test $ac_status = 0; }; then
8788 if test "$lt_cv_prog_gnu_ld" = yes; then
8789 case `/usr/bin/file conftest.$ac_objext` in
8790 *32-bit*)
8791 LD="${LD-ld} -melf32bsmip"
8793 *N32*)
8794 LD="${LD-ld} -melf32bmipn32"
8796 *64-bit*)
8797 LD="${LD-ld} -melf64bmip"
8799 esac
8800 else
8801 case `/usr/bin/file conftest.$ac_objext` in
8802 *32-bit*)
8803 LD="${LD-ld} -32"
8805 *N32*)
8806 LD="${LD-ld} -n32"
8808 *64-bit*)
8809 LD="${LD-ld} -64"
8811 esac
8814 rm -rf conftest*
8817 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8818 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8819 # Find out which ABI we are using.
8820 echo 'int i;' > conftest.$ac_ext
8821 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8822 (eval $ac_compile) 2>&5
8823 ac_status=$?
8824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8825 test $ac_status = 0; }; then
8826 case `/usr/bin/file conftest.o` in
8827 *32-bit*)
8828 case $host in
8829 x86_64-*kfreebsd*-gnu)
8830 LD="${LD-ld} -m elf_i386_fbsd"
8832 x86_64-*linux*)
8833 LD="${LD-ld} -m elf_i386"
8835 ppc64-*linux*|powerpc64-*linux*)
8836 LD="${LD-ld} -m elf32ppclinux"
8838 s390x-*linux*)
8839 LD="${LD-ld} -m elf_s390"
8841 sparc64-*linux*)
8842 LD="${LD-ld} -m elf32_sparc"
8844 esac
8846 *64-bit*)
8847 case $host in
8848 x86_64-*kfreebsd*-gnu)
8849 LD="${LD-ld} -m elf_x86_64_fbsd"
8851 x86_64-*linux*)
8852 LD="${LD-ld} -m elf_x86_64"
8854 ppc*-*linux*|powerpc*-*linux*)
8855 LD="${LD-ld} -m elf64ppc"
8857 s390*-*linux*|s390*-*tpf*)
8858 LD="${LD-ld} -m elf64_s390"
8860 sparc*-*linux*)
8861 LD="${LD-ld} -m elf64_sparc"
8863 esac
8865 esac
8867 rm -rf conftest*
8870 *-*-sco3.2v5*)
8871 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8872 SAVE_CFLAGS="$CFLAGS"
8873 CFLAGS="$CFLAGS -belf"
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8875 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8876 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8877 $as_echo_n "(cached) " >&6
8878 else
8879 ac_ext=c
8880 ac_cpp='$CPP $CPPFLAGS'
8881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8885 if test x$gcc_no_link = xyes; then
8886 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8889 /* end confdefs.h. */
8892 main ()
8896 return 0;
8898 _ACEOF
8899 if ac_fn_c_try_link "$LINENO"; then :
8900 lt_cv_cc_needs_belf=yes
8901 else
8902 lt_cv_cc_needs_belf=no
8904 rm -f core conftest.err conftest.$ac_objext \
8905 conftest$ac_exeext conftest.$ac_ext
8906 ac_ext=c
8907 ac_cpp='$CPP $CPPFLAGS'
8908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8914 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8915 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8916 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8917 CFLAGS="$SAVE_CFLAGS"
8920 sparc*-*solaris*)
8921 # Find out which ABI we are using.
8922 echo 'int i;' > conftest.$ac_ext
8923 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8924 (eval $ac_compile) 2>&5
8925 ac_status=$?
8926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8927 test $ac_status = 0; }; then
8928 case `/usr/bin/file conftest.o` in
8929 *64-bit*)
8930 case $lt_cv_prog_gnu_ld in
8931 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8933 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8934 LD="${LD-ld} -64"
8937 esac
8939 esac
8941 rm -rf conftest*
8943 esac
8945 need_locks="$enable_libtool_lock"
8948 case $host_os in
8949 rhapsody* | darwin*)
8950 if test -n "$ac_tool_prefix"; then
8951 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8952 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8954 $as_echo_n "checking for $ac_word... " >&6; }
8955 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8956 $as_echo_n "(cached) " >&6
8957 else
8958 if test -n "$DSYMUTIL"; then
8959 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8960 else
8961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8962 for as_dir in $PATH
8964 IFS=$as_save_IFS
8965 test -z "$as_dir" && as_dir=.
8966 for ac_exec_ext in '' $ac_executable_extensions; do
8967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8968 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8970 break 2
8972 done
8973 done
8974 IFS=$as_save_IFS
8978 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8979 if test -n "$DSYMUTIL"; then
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8981 $as_echo "$DSYMUTIL" >&6; }
8982 else
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8984 $as_echo "no" >&6; }
8989 if test -z "$ac_cv_prog_DSYMUTIL"; then
8990 ac_ct_DSYMUTIL=$DSYMUTIL
8991 # Extract the first word of "dsymutil", so it can be a program name with args.
8992 set dummy dsymutil; ac_word=$2
8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8994 $as_echo_n "checking for $ac_word... " >&6; }
8995 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8996 $as_echo_n "(cached) " >&6
8997 else
8998 if test -n "$ac_ct_DSYMUTIL"; then
8999 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9000 else
9001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9002 for as_dir in $PATH
9004 IFS=$as_save_IFS
9005 test -z "$as_dir" && as_dir=.
9006 for ac_exec_ext in '' $ac_executable_extensions; do
9007 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9008 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9010 break 2
9012 done
9013 done
9014 IFS=$as_save_IFS
9018 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9019 if test -n "$ac_ct_DSYMUTIL"; then
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9021 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9022 else
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9024 $as_echo "no" >&6; }
9027 if test "x$ac_ct_DSYMUTIL" = x; then
9028 DSYMUTIL=":"
9029 else
9030 case $cross_compiling:$ac_tool_warned in
9031 yes:)
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9034 ac_tool_warned=yes ;;
9035 esac
9036 DSYMUTIL=$ac_ct_DSYMUTIL
9038 else
9039 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9042 if test -n "$ac_tool_prefix"; then
9043 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9044 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9046 $as_echo_n "checking for $ac_word... " >&6; }
9047 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9048 $as_echo_n "(cached) " >&6
9049 else
9050 if test -n "$NMEDIT"; then
9051 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9052 else
9053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9054 for as_dir in $PATH
9056 IFS=$as_save_IFS
9057 test -z "$as_dir" && as_dir=.
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9060 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9062 break 2
9064 done
9065 done
9066 IFS=$as_save_IFS
9070 NMEDIT=$ac_cv_prog_NMEDIT
9071 if test -n "$NMEDIT"; then
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9073 $as_echo "$NMEDIT" >&6; }
9074 else
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 $as_echo "no" >&6; }
9081 if test -z "$ac_cv_prog_NMEDIT"; then
9082 ac_ct_NMEDIT=$NMEDIT
9083 # Extract the first word of "nmedit", so it can be a program name with args.
9084 set dummy nmedit; ac_word=$2
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9086 $as_echo_n "checking for $ac_word... " >&6; }
9087 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9088 $as_echo_n "(cached) " >&6
9089 else
9090 if test -n "$ac_ct_NMEDIT"; then
9091 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9092 else
9093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9094 for as_dir in $PATH
9096 IFS=$as_save_IFS
9097 test -z "$as_dir" && as_dir=.
9098 for ac_exec_ext in '' $ac_executable_extensions; do
9099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9100 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9102 break 2
9104 done
9105 done
9106 IFS=$as_save_IFS
9110 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9111 if test -n "$ac_ct_NMEDIT"; then
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9113 $as_echo "$ac_ct_NMEDIT" >&6; }
9114 else
9115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9116 $as_echo "no" >&6; }
9119 if test "x$ac_ct_NMEDIT" = x; then
9120 NMEDIT=":"
9121 else
9122 case $cross_compiling:$ac_tool_warned in
9123 yes:)
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9126 ac_tool_warned=yes ;;
9127 esac
9128 NMEDIT=$ac_ct_NMEDIT
9130 else
9131 NMEDIT="$ac_cv_prog_NMEDIT"
9134 if test -n "$ac_tool_prefix"; then
9135 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9136 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9138 $as_echo_n "checking for $ac_word... " >&6; }
9139 if test "${ac_cv_prog_LIPO+set}" = set; then :
9140 $as_echo_n "(cached) " >&6
9141 else
9142 if test -n "$LIPO"; then
9143 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9144 else
9145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9146 for as_dir in $PATH
9148 IFS=$as_save_IFS
9149 test -z "$as_dir" && as_dir=.
9150 for ac_exec_ext in '' $ac_executable_extensions; do
9151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9152 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9154 break 2
9156 done
9157 done
9158 IFS=$as_save_IFS
9162 LIPO=$ac_cv_prog_LIPO
9163 if test -n "$LIPO"; then
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9165 $as_echo "$LIPO" >&6; }
9166 else
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9168 $as_echo "no" >&6; }
9173 if test -z "$ac_cv_prog_LIPO"; then
9174 ac_ct_LIPO=$LIPO
9175 # Extract the first word of "lipo", so it can be a program name with args.
9176 set dummy lipo; ac_word=$2
9177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9178 $as_echo_n "checking for $ac_word... " >&6; }
9179 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9180 $as_echo_n "(cached) " >&6
9181 else
9182 if test -n "$ac_ct_LIPO"; then
9183 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9184 else
9185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9186 for as_dir in $PATH
9188 IFS=$as_save_IFS
9189 test -z "$as_dir" && as_dir=.
9190 for ac_exec_ext in '' $ac_executable_extensions; do
9191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9192 ac_cv_prog_ac_ct_LIPO="lipo"
9193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9194 break 2
9196 done
9197 done
9198 IFS=$as_save_IFS
9202 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9203 if test -n "$ac_ct_LIPO"; then
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9205 $as_echo "$ac_ct_LIPO" >&6; }
9206 else
9207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9208 $as_echo "no" >&6; }
9211 if test "x$ac_ct_LIPO" = x; then
9212 LIPO=":"
9213 else
9214 case $cross_compiling:$ac_tool_warned in
9215 yes:)
9216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9217 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9218 ac_tool_warned=yes ;;
9219 esac
9220 LIPO=$ac_ct_LIPO
9222 else
9223 LIPO="$ac_cv_prog_LIPO"
9226 if test -n "$ac_tool_prefix"; then
9227 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9228 set dummy ${ac_tool_prefix}otool; ac_word=$2
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9230 $as_echo_n "checking for $ac_word... " >&6; }
9231 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9232 $as_echo_n "(cached) " >&6
9233 else
9234 if test -n "$OTOOL"; then
9235 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9236 else
9237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9238 for as_dir in $PATH
9240 IFS=$as_save_IFS
9241 test -z "$as_dir" && as_dir=.
9242 for ac_exec_ext in '' $ac_executable_extensions; do
9243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9244 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9246 break 2
9248 done
9249 done
9250 IFS=$as_save_IFS
9254 OTOOL=$ac_cv_prog_OTOOL
9255 if test -n "$OTOOL"; then
9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9257 $as_echo "$OTOOL" >&6; }
9258 else
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9260 $as_echo "no" >&6; }
9265 if test -z "$ac_cv_prog_OTOOL"; then
9266 ac_ct_OTOOL=$OTOOL
9267 # Extract the first word of "otool", so it can be a program name with args.
9268 set dummy otool; ac_word=$2
9269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9270 $as_echo_n "checking for $ac_word... " >&6; }
9271 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9272 $as_echo_n "(cached) " >&6
9273 else
9274 if test -n "$ac_ct_OTOOL"; then
9275 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9276 else
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9278 for as_dir in $PATH
9280 IFS=$as_save_IFS
9281 test -z "$as_dir" && as_dir=.
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9284 ac_cv_prog_ac_ct_OTOOL="otool"
9285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9286 break 2
9288 done
9289 done
9290 IFS=$as_save_IFS
9294 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9295 if test -n "$ac_ct_OTOOL"; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9297 $as_echo "$ac_ct_OTOOL" >&6; }
9298 else
9299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9300 $as_echo "no" >&6; }
9303 if test "x$ac_ct_OTOOL" = x; then
9304 OTOOL=":"
9305 else
9306 case $cross_compiling:$ac_tool_warned in
9307 yes:)
9308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9310 ac_tool_warned=yes ;;
9311 esac
9312 OTOOL=$ac_ct_OTOOL
9314 else
9315 OTOOL="$ac_cv_prog_OTOOL"
9318 if test -n "$ac_tool_prefix"; then
9319 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9320 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9322 $as_echo_n "checking for $ac_word... " >&6; }
9323 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9324 $as_echo_n "(cached) " >&6
9325 else
9326 if test -n "$OTOOL64"; then
9327 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9328 else
9329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9330 for as_dir in $PATH
9332 IFS=$as_save_IFS
9333 test -z "$as_dir" && as_dir=.
9334 for ac_exec_ext in '' $ac_executable_extensions; do
9335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9336 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9338 break 2
9340 done
9341 done
9342 IFS=$as_save_IFS
9346 OTOOL64=$ac_cv_prog_OTOOL64
9347 if test -n "$OTOOL64"; then
9348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9349 $as_echo "$OTOOL64" >&6; }
9350 else
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9352 $as_echo "no" >&6; }
9357 if test -z "$ac_cv_prog_OTOOL64"; then
9358 ac_ct_OTOOL64=$OTOOL64
9359 # Extract the first word of "otool64", so it can be a program name with args.
9360 set dummy otool64; ac_word=$2
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9362 $as_echo_n "checking for $ac_word... " >&6; }
9363 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9364 $as_echo_n "(cached) " >&6
9365 else
9366 if test -n "$ac_ct_OTOOL64"; then
9367 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9368 else
9369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9370 for as_dir in $PATH
9372 IFS=$as_save_IFS
9373 test -z "$as_dir" && as_dir=.
9374 for ac_exec_ext in '' $ac_executable_extensions; do
9375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9376 ac_cv_prog_ac_ct_OTOOL64="otool64"
9377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9378 break 2
9380 done
9381 done
9382 IFS=$as_save_IFS
9386 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9387 if test -n "$ac_ct_OTOOL64"; then
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9389 $as_echo "$ac_ct_OTOOL64" >&6; }
9390 else
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9392 $as_echo "no" >&6; }
9395 if test "x$ac_ct_OTOOL64" = x; then
9396 OTOOL64=":"
9397 else
9398 case $cross_compiling:$ac_tool_warned in
9399 yes:)
9400 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9401 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9402 ac_tool_warned=yes ;;
9403 esac
9404 OTOOL64=$ac_ct_OTOOL64
9406 else
9407 OTOOL64="$ac_cv_prog_OTOOL64"
9436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9437 $as_echo_n "checking for -single_module linker flag... " >&6; }
9438 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9439 $as_echo_n "(cached) " >&6
9440 else
9441 lt_cv_apple_cc_single_mod=no
9442 if test -z "${LT_MULTI_MODULE}"; then
9443 # By default we will add the -single_module flag. You can override
9444 # by either setting the environment variable LT_MULTI_MODULE
9445 # non-empty at configure time, or by adding -multi_module to the
9446 # link flags.
9447 rm -rf libconftest.dylib*
9448 echo "int foo(void){return 1;}" > conftest.c
9449 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9450 -dynamiclib -Wl,-single_module conftest.c" >&5
9451 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9452 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9453 _lt_result=$?
9454 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9455 lt_cv_apple_cc_single_mod=yes
9456 else
9457 cat conftest.err >&5
9459 rm -rf libconftest.dylib*
9460 rm -f conftest.*
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9464 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9466 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9467 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9468 $as_echo_n "(cached) " >&6
9469 else
9470 lt_cv_ld_exported_symbols_list=no
9471 save_LDFLAGS=$LDFLAGS
9472 echo "_main" > conftest.sym
9473 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9474 if test x$gcc_no_link = xyes; then
9475 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9478 /* end confdefs.h. */
9481 main ()
9485 return 0;
9487 _ACEOF
9488 if ac_fn_c_try_link "$LINENO"; then :
9489 lt_cv_ld_exported_symbols_list=yes
9490 else
9491 lt_cv_ld_exported_symbols_list=no
9493 rm -f core conftest.err conftest.$ac_objext \
9494 conftest$ac_exeext conftest.$ac_ext
9495 LDFLAGS="$save_LDFLAGS"
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9499 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9501 $as_echo_n "checking for -force_load linker flag... " >&6; }
9502 if test "${lt_cv_ld_force_load+set}" = set; then :
9503 $as_echo_n "(cached) " >&6
9504 else
9505 lt_cv_ld_force_load=no
9506 cat > conftest.c << _LT_EOF
9507 int forced_loaded() { return 2;}
9508 _LT_EOF
9509 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9510 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9511 echo "$AR cru libconftest.a conftest.o" >&5
9512 $AR cru libconftest.a conftest.o 2>&5
9513 cat > conftest.c << _LT_EOF
9514 int main() { return 0;}
9515 _LT_EOF
9516 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9517 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9518 _lt_result=$?
9519 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9520 lt_cv_ld_force_load=yes
9521 else
9522 cat conftest.err >&5
9524 rm -f conftest.err libconftest.a conftest conftest.c
9525 rm -rf conftest.dSYM
9528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9529 $as_echo "$lt_cv_ld_force_load" >&6; }
9530 case $host_os in
9531 rhapsody* | darwin1.[012])
9532 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9533 darwin1.*)
9534 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9535 darwin*) # darwin 5.x on
9536 # if running on 10.5 or later, the deployment target defaults
9537 # to the OS version, if on x86, and 10.4, the deployment
9538 # target defaults to 10.4. Don't you love it?
9539 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9540 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9541 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9542 10.[012]*)
9543 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9544 10.*)
9545 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9546 esac
9548 esac
9549 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9550 _lt_dar_single_mod='$single_module'
9552 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9553 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9554 else
9555 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9557 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9558 _lt_dsymutil='~$DSYMUTIL $lib || :'
9559 else
9560 _lt_dsymutil=
9563 esac
9565 ac_ext=c
9566 ac_cpp='$CPP $CPPFLAGS'
9567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9571 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9572 # On Suns, sometimes $CPP names a directory.
9573 if test -n "$CPP" && test -d "$CPP"; then
9574 CPP=
9576 if test -z "$CPP"; then
9577 if test "${ac_cv_prog_CPP+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 # Double quotes because CPP needs to be expanded
9581 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9583 ac_preproc_ok=false
9584 for ac_c_preproc_warn_flag in '' yes
9586 # Use a header file that comes with gcc, so configuring glibc
9587 # with a fresh cross-compiler works.
9588 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9589 # <limits.h> exists even on freestanding compilers.
9590 # On the NeXT, cc -E runs the code through the compiler's parser,
9591 # not just through cpp. "Syntax error" is here to catch this case.
9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9593 /* end confdefs.h. */
9594 #ifdef __STDC__
9595 # include <limits.h>
9596 #else
9597 # include <assert.h>
9598 #endif
9599 Syntax error
9600 _ACEOF
9601 if ac_fn_c_try_cpp "$LINENO"; then :
9603 else
9604 # Broken: fails on valid input.
9605 continue
9607 rm -f conftest.err conftest.$ac_ext
9609 # OK, works on sane cases. Now check whether nonexistent headers
9610 # can be detected and how.
9611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9612 /* end confdefs.h. */
9613 #include <ac_nonexistent.h>
9614 _ACEOF
9615 if ac_fn_c_try_cpp "$LINENO"; then :
9616 # Broken: success on invalid input.
9617 continue
9618 else
9619 # Passes both tests.
9620 ac_preproc_ok=:
9621 break
9623 rm -f conftest.err conftest.$ac_ext
9625 done
9626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9627 rm -f conftest.err conftest.$ac_ext
9628 if $ac_preproc_ok; then :
9629 break
9632 done
9633 ac_cv_prog_CPP=$CPP
9636 CPP=$ac_cv_prog_CPP
9637 else
9638 ac_cv_prog_CPP=$CPP
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9641 $as_echo "$CPP" >&6; }
9642 ac_preproc_ok=false
9643 for ac_c_preproc_warn_flag in '' yes
9645 # Use a header file that comes with gcc, so configuring glibc
9646 # with a fresh cross-compiler works.
9647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9648 # <limits.h> exists even on freestanding compilers.
9649 # On the NeXT, cc -E runs the code through the compiler's parser,
9650 # not just through cpp. "Syntax error" is here to catch this case.
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 #ifdef __STDC__
9654 # include <limits.h>
9655 #else
9656 # include <assert.h>
9657 #endif
9658 Syntax error
9659 _ACEOF
9660 if ac_fn_c_try_cpp "$LINENO"; then :
9662 else
9663 # Broken: fails on valid input.
9664 continue
9666 rm -f conftest.err conftest.$ac_ext
9668 # OK, works on sane cases. Now check whether nonexistent headers
9669 # can be detected and how.
9670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9671 /* end confdefs.h. */
9672 #include <ac_nonexistent.h>
9673 _ACEOF
9674 if ac_fn_c_try_cpp "$LINENO"; then :
9675 # Broken: success on invalid input.
9676 continue
9677 else
9678 # Passes both tests.
9679 ac_preproc_ok=:
9680 break
9682 rm -f conftest.err conftest.$ac_ext
9684 done
9685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9686 rm -f conftest.err conftest.$ac_ext
9687 if $ac_preproc_ok; then :
9689 else
9690 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9692 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9693 See \`config.log' for more details." "$LINENO" 5; }
9696 ac_ext=c
9697 ac_cpp='$CPP $CPPFLAGS'
9698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9704 $as_echo_n "checking for ANSI C header files... " >&6; }
9705 if test "${ac_cv_header_stdc+set}" = set; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9709 /* end confdefs.h. */
9710 #include <stdlib.h>
9711 #include <stdarg.h>
9712 #include <string.h>
9713 #include <float.h>
9716 main ()
9720 return 0;
9722 _ACEOF
9723 if ac_fn_c_try_compile "$LINENO"; then :
9724 ac_cv_header_stdc=yes
9725 else
9726 ac_cv_header_stdc=no
9728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 if test $ac_cv_header_stdc = yes; then
9731 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9733 /* end confdefs.h. */
9734 #include <string.h>
9736 _ACEOF
9737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9738 $EGREP "memchr" >/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 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750 /* end confdefs.h. */
9751 #include <stdlib.h>
9753 _ACEOF
9754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9755 $EGREP "free" >/dev/null 2>&1; then :
9757 else
9758 ac_cv_header_stdc=no
9760 rm -f conftest*
9764 if test $ac_cv_header_stdc = yes; then
9765 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9766 if test "$cross_compiling" = yes; then :
9768 else
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770 /* end confdefs.h. */
9771 #include <ctype.h>
9772 #include <stdlib.h>
9773 #if ((' ' & 0x0FF) == 0x020)
9774 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9775 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9776 #else
9777 # define ISLOWER(c) \
9778 (('a' <= (c) && (c) <= 'i') \
9779 || ('j' <= (c) && (c) <= 'r') \
9780 || ('s' <= (c) && (c) <= 'z'))
9781 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9782 #endif
9784 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9786 main ()
9788 int i;
9789 for (i = 0; i < 256; i++)
9790 if (XOR (islower (i), ISLOWER (i))
9791 || toupper (i) != TOUPPER (i))
9792 return 2;
9793 return 0;
9795 _ACEOF
9796 if ac_fn_c_try_run "$LINENO"; then :
9798 else
9799 ac_cv_header_stdc=no
9801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9802 conftest.$ac_objext conftest.beam conftest.$ac_ext
9807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9808 $as_echo "$ac_cv_header_stdc" >&6; }
9809 if test $ac_cv_header_stdc = yes; then
9811 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9815 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9816 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9817 inttypes.h stdint.h unistd.h
9818 do :
9819 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9820 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9822 eval as_val=\$$as_ac_Header
9823 if test "x$as_val" = x""yes; then :
9824 cat >>confdefs.h <<_ACEOF
9825 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9826 _ACEOF
9830 done
9833 for ac_header in dlfcn.h
9834 do :
9835 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9837 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9838 cat >>confdefs.h <<_ACEOF
9839 #define HAVE_DLFCN_H 1
9840 _ACEOF
9844 done
9851 # Set options
9856 enable_win32_dll=no
9859 # Check whether --enable-shared was given.
9860 if test "${enable_shared+set}" = set; then :
9861 enableval=$enable_shared; p=${PACKAGE-default}
9862 case $enableval in
9863 yes) enable_shared=yes ;;
9864 no) enable_shared=no ;;
9866 enable_shared=no
9867 # Look at the argument we got. We use all the common list separators.
9868 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9869 for pkg in $enableval; do
9870 IFS="$lt_save_ifs"
9871 if test "X$pkg" = "X$p"; then
9872 enable_shared=yes
9874 done
9875 IFS="$lt_save_ifs"
9877 esac
9878 else
9879 enable_shared=yes
9890 # Check whether --enable-static was given.
9891 if test "${enable_static+set}" = set; then :
9892 enableval=$enable_static; p=${PACKAGE-default}
9893 case $enableval in
9894 yes) enable_static=yes ;;
9895 no) enable_static=no ;;
9897 enable_static=no
9898 # Look at the argument we got. We use all the common list separators.
9899 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9900 for pkg in $enableval; do
9901 IFS="$lt_save_ifs"
9902 if test "X$pkg" = "X$p"; then
9903 enable_static=yes
9905 done
9906 IFS="$lt_save_ifs"
9908 esac
9909 else
9910 enable_static=yes
9922 # Check whether --with-pic was given.
9923 if test "${with_pic+set}" = set; then :
9924 withval=$with_pic; p=${PACKAGE-default}
9925 case "$withval" in
9926 yes|no) pic_mode="$withval" ;;
9928 pic_mode=default
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 $withval; do
9932 IFS="$lt_save_ifs"
9933 if test "X$pkg" = "X$p"; then
9934 pic_mode=yes
9936 done
9937 IFS="$lt_save_ifs"
9939 esac
9940 else
9941 pic_mode=default
9945 test -z "$pic_mode" && pic_mode=default
9953 # Check whether --enable-fast-install was given.
9954 if test "${enable_fast_install+set}" = set; then :
9955 enableval=$enable_fast_install; p=${PACKAGE-default}
9956 case $enableval in
9957 yes) enable_fast_install=yes ;;
9958 no) enable_fast_install=no ;;
9960 enable_fast_install=no
9961 # Look at the argument we got. We use all the common list separators.
9962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9963 for pkg in $enableval; do
9964 IFS="$lt_save_ifs"
9965 if test "X$pkg" = "X$p"; then
9966 enable_fast_install=yes
9968 done
9969 IFS="$lt_save_ifs"
9971 esac
9972 else
9973 enable_fast_install=yes
9986 # This can be used to rebuild libtool when needed
9987 LIBTOOL_DEPS="$ltmain"
9989 # Always use our own libtool.
9990 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
10017 test -z "$LN_S" && LN_S="ln -s"
10032 if test -n "${ZSH_VERSION+set}" ; then
10033 setopt NO_GLOB_SUBST
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10037 $as_echo_n "checking for objdir... " >&6; }
10038 if test "${lt_cv_objdir+set}" = set; then :
10039 $as_echo_n "(cached) " >&6
10040 else
10041 rm -f .libs 2>/dev/null
10042 mkdir .libs 2>/dev/null
10043 if test -d .libs; then
10044 lt_cv_objdir=.libs
10045 else
10046 # MS-DOS does not allow filenames that begin with a dot.
10047 lt_cv_objdir=_libs
10049 rmdir .libs 2>/dev/null
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10052 $as_echo "$lt_cv_objdir" >&6; }
10053 objdir=$lt_cv_objdir
10059 cat >>confdefs.h <<_ACEOF
10060 #define LT_OBJDIR "$lt_cv_objdir/"
10061 _ACEOF
10066 case $host_os in
10067 aix3*)
10068 # AIX sometimes has problems with the GCC collect2 program. For some
10069 # reason, if we set the COLLECT_NAMES environment variable, the problems
10070 # vanish in a puff of smoke.
10071 if test "X${COLLECT_NAMES+set}" != Xset; then
10072 COLLECT_NAMES=
10073 export COLLECT_NAMES
10076 esac
10078 # Global variables:
10079 ofile=libtool
10080 can_build_shared=yes
10082 # All known linkers require a `.a' archive for static linking (except MSVC,
10083 # which needs '.lib').
10084 libext=a
10086 with_gnu_ld="$lt_cv_prog_gnu_ld"
10088 old_CC="$CC"
10089 old_CFLAGS="$CFLAGS"
10091 # Set sane defaults for various variables
10092 test -z "$CC" && CC=cc
10093 test -z "$LTCC" && LTCC=$CC
10094 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10095 test -z "$LD" && LD=ld
10096 test -z "$ac_objext" && ac_objext=o
10098 for cc_temp in $compiler""; do
10099 case $cc_temp in
10100 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10101 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10102 \-*) ;;
10103 *) break;;
10104 esac
10105 done
10106 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10109 # Only perform the check for file, if the check method requires it
10110 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10111 case $deplibs_check_method in
10112 file_magic*)
10113 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10115 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10116 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10117 $as_echo_n "(cached) " >&6
10118 else
10119 case $MAGIC_CMD in
10120 [\\/*] | ?:[\\/]*)
10121 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10124 lt_save_MAGIC_CMD="$MAGIC_CMD"
10125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10126 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10127 for ac_dir in $ac_dummy; do
10128 IFS="$lt_save_ifs"
10129 test -z "$ac_dir" && ac_dir=.
10130 if test -f $ac_dir/${ac_tool_prefix}file; then
10131 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10132 if test -n "$file_magic_test_file"; then
10133 case $deplibs_check_method in
10134 "file_magic "*)
10135 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10137 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10138 $EGREP "$file_magic_regex" > /dev/null; then
10140 else
10141 cat <<_LT_EOF 1>&2
10143 *** Warning: the command libtool uses to detect shared libraries,
10144 *** $file_magic_cmd, produces output that libtool cannot recognize.
10145 *** The result is that libtool may fail to recognize shared libraries
10146 *** as such. This will affect the creation of libtool libraries that
10147 *** depend on shared libraries, but programs linked with such libtool
10148 *** libraries will work regardless of this problem. Nevertheless, you
10149 *** may want to report the problem to your system manager and/or to
10150 *** bug-libtool@gnu.org
10152 _LT_EOF
10153 fi ;;
10154 esac
10156 break
10158 done
10159 IFS="$lt_save_ifs"
10160 MAGIC_CMD="$lt_save_MAGIC_CMD"
10162 esac
10165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10166 if test -n "$MAGIC_CMD"; then
10167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10168 $as_echo "$MAGIC_CMD" >&6; }
10169 else
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10171 $as_echo "no" >&6; }
10178 if test -z "$lt_cv_path_MAGIC_CMD"; then
10179 if test -n "$ac_tool_prefix"; then
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10181 $as_echo_n "checking for file... " >&6; }
10182 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10183 $as_echo_n "(cached) " >&6
10184 else
10185 case $MAGIC_CMD in
10186 [\\/*] | ?:[\\/]*)
10187 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10190 lt_save_MAGIC_CMD="$MAGIC_CMD"
10191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10192 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10193 for ac_dir in $ac_dummy; do
10194 IFS="$lt_save_ifs"
10195 test -z "$ac_dir" && ac_dir=.
10196 if test -f $ac_dir/file; then
10197 lt_cv_path_MAGIC_CMD="$ac_dir/file"
10198 if test -n "$file_magic_test_file"; then
10199 case $deplibs_check_method in
10200 "file_magic "*)
10201 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10202 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10203 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10204 $EGREP "$file_magic_regex" > /dev/null; then
10206 else
10207 cat <<_LT_EOF 1>&2
10209 *** Warning: the command libtool uses to detect shared libraries,
10210 *** $file_magic_cmd, produces output that libtool cannot recognize.
10211 *** The result is that libtool may fail to recognize shared libraries
10212 *** as such. This will affect the creation of libtool libraries that
10213 *** depend on shared libraries, but programs linked with such libtool
10214 *** libraries will work regardless of this problem. Nevertheless, you
10215 *** may want to report the problem to your system manager and/or to
10216 *** bug-libtool@gnu.org
10218 _LT_EOF
10219 fi ;;
10220 esac
10222 break
10224 done
10225 IFS="$lt_save_ifs"
10226 MAGIC_CMD="$lt_save_MAGIC_CMD"
10228 esac
10231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10232 if test -n "$MAGIC_CMD"; then
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10234 $as_echo "$MAGIC_CMD" >&6; }
10235 else
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10237 $as_echo "no" >&6; }
10241 else
10242 MAGIC_CMD=:
10248 esac
10250 # Use C for the default configuration in the libtool script
10252 lt_save_CC="$CC"
10253 ac_ext=c
10254 ac_cpp='$CPP $CPPFLAGS'
10255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10260 # Source file extension for C test sources.
10261 ac_ext=c
10263 # Object file extension for compiled C test sources.
10264 objext=o
10265 objext=$objext
10267 # Code to be used in simple compile tests
10268 lt_simple_compile_test_code="int some_variable = 0;"
10270 # Code to be used in simple link tests
10271 lt_simple_link_test_code='int main(){return(0);}'
10279 # If no C compiler was specified, use CC.
10280 LTCC=${LTCC-"$CC"}
10282 # If no C compiler flags were specified, use CFLAGS.
10283 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10285 # Allow CC to be a program name with arguments.
10286 compiler=$CC
10288 # Save the default compiler, since it gets overwritten when the other
10289 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10290 compiler_DEFAULT=$CC
10292 # save warnings/boilerplate of simple test code
10293 ac_outfile=conftest.$ac_objext
10294 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10295 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10296 _lt_compiler_boilerplate=`cat conftest.err`
10297 $RM conftest*
10299 ac_outfile=conftest.$ac_objext
10300 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10301 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10302 _lt_linker_boilerplate=`cat conftest.err`
10303 $RM -r conftest*
10306 ## CAVEAT EMPTOR:
10307 ## There is no encapsulation within the following macros, do not change
10308 ## the running order or otherwise move them around unless you know exactly
10309 ## what you are doing...
10310 if test -n "$compiler"; then
10312 lt_prog_compiler_no_builtin_flag=
10314 if test "$GCC" = yes; then
10315 case $cc_basename in
10316 nvcc*)
10317 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10319 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10320 esac
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10323 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10324 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10325 $as_echo_n "(cached) " >&6
10326 else
10327 lt_cv_prog_compiler_rtti_exceptions=no
10328 ac_outfile=conftest.$ac_objext
10329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10330 lt_compiler_flag="-fno-rtti -fno-exceptions"
10331 # Insert the option either (1) after the last *FLAGS variable, or
10332 # (2) before a word containing "conftest.", or (3) at the end.
10333 # Note that $ac_compile itself does not contain backslashes and begins
10334 # with a dollar sign (not a hyphen), so the echo should work correctly.
10335 # The option is referenced via a variable to avoid confusing sed.
10336 lt_compile=`echo "$ac_compile" | $SED \
10337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10339 -e 's:$: $lt_compiler_flag:'`
10340 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10341 (eval "$lt_compile" 2>conftest.err)
10342 ac_status=$?
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 if (exit $ac_status) && test -s "$ac_outfile"; then
10346 # The compiler can only warn and ignore the option if not recognized
10347 # So say no if there are warnings other than the usual output.
10348 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10351 lt_cv_prog_compiler_rtti_exceptions=yes
10354 $RM conftest*
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10358 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10360 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10361 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10362 else
10373 lt_prog_compiler_wl=
10374 lt_prog_compiler_pic=
10375 lt_prog_compiler_static=
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10378 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10380 if test "$GCC" = yes; then
10381 lt_prog_compiler_wl='-Wl,'
10382 lt_prog_compiler_static='-static'
10384 case $host_os in
10385 aix*)
10386 # All AIX code is PIC.
10387 if test "$host_cpu" = ia64; then
10388 # AIX 5 now supports IA64 processor
10389 lt_prog_compiler_static='-Bstatic'
10393 amigaos*)
10394 case $host_cpu in
10395 powerpc)
10396 # see comment about AmigaOS4 .so support
10397 lt_prog_compiler_pic='-fPIC'
10399 m68k)
10400 # FIXME: we need at least 68020 code to build shared libraries, but
10401 # adding the `-m68020' flag to GCC prevents building anything better,
10402 # like `-m68040'.
10403 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10405 esac
10408 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10409 # PIC is the default for these OSes.
10412 mingw* | cygwin* | pw32* | os2* | cegcc*)
10413 # This hack is so that the source file can tell whether it is being
10414 # built for inclusion in a dll (and should export symbols for example).
10415 # Although the cygwin gcc ignores -fPIC, still need this for old-style
10416 # (--disable-auto-import) libraries
10417 lt_prog_compiler_pic='-DDLL_EXPORT'
10420 darwin* | rhapsody*)
10421 # PIC is the default on this platform
10422 # Common symbols not allowed in MH_DYLIB files
10423 lt_prog_compiler_pic='-fno-common'
10426 haiku*)
10427 # PIC is the default for Haiku.
10428 # The "-static" flag exists, but is broken.
10429 lt_prog_compiler_static=
10432 hpux*)
10433 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10434 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
10435 # sets the default TLS model and affects inlining.
10436 case $host_cpu in
10437 hppa*64*)
10438 # +Z the default
10441 lt_prog_compiler_pic='-fPIC'
10443 esac
10446 interix[3-9]*)
10447 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10448 # Instead, we relocate shared libraries at runtime.
10451 msdosdjgpp*)
10452 # Just because we use GCC doesn't mean we suddenly get shared libraries
10453 # on systems that don't support them.
10454 lt_prog_compiler_can_build_shared=no
10455 enable_shared=no
10458 *nto* | *qnx*)
10459 # QNX uses GNU C++, but need to define -shared option too, otherwise
10460 # it will coredump.
10461 lt_prog_compiler_pic='-fPIC -shared'
10464 sysv4*MP*)
10465 if test -d /usr/nec; then
10466 lt_prog_compiler_pic=-Kconform_pic
10471 lt_prog_compiler_pic='-fPIC'
10473 esac
10475 case $cc_basename in
10476 nvcc*) # Cuda Compiler Driver 2.2
10477 lt_prog_compiler_wl='-Xlinker '
10478 lt_prog_compiler_pic='-Xcompiler -fPIC'
10480 esac
10481 else
10482 # PORTME Check for flag to pass linker flags through the system compiler.
10483 case $host_os in
10484 aix*)
10485 lt_prog_compiler_wl='-Wl,'
10486 if test "$host_cpu" = ia64; then
10487 # AIX 5 now supports IA64 processor
10488 lt_prog_compiler_static='-Bstatic'
10489 else
10490 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10494 mingw* | cygwin* | pw32* | os2* | cegcc*)
10495 # This hack is so that the source file can tell whether it is being
10496 # built for inclusion in a dll (and should export symbols for example).
10497 lt_prog_compiler_pic='-DDLL_EXPORT'
10500 hpux9* | hpux10* | hpux11*)
10501 lt_prog_compiler_wl='-Wl,'
10502 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10503 # not for PA HP-UX.
10504 case $host_cpu in
10505 hppa*64*|ia64*)
10506 # +Z the default
10509 lt_prog_compiler_pic='+Z'
10511 esac
10512 # Is there a better lt_prog_compiler_static that works with the bundled CC?
10513 lt_prog_compiler_static='${wl}-a ${wl}archive'
10516 irix5* | irix6* | nonstopux*)
10517 lt_prog_compiler_wl='-Wl,'
10518 # PIC (with -KPIC) is the default.
10519 lt_prog_compiler_static='-non_shared'
10522 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10523 case $cc_basename in
10524 # old Intel for x86_64 which still supported -KPIC.
10525 ecc*)
10526 lt_prog_compiler_wl='-Wl,'
10527 lt_prog_compiler_pic='-KPIC'
10528 lt_prog_compiler_static='-static'
10530 # icc used to be incompatible with GCC.
10531 # ICC 10 doesn't accept -KPIC any more.
10532 icc* | ifort*)
10533 lt_prog_compiler_wl='-Wl,'
10534 lt_prog_compiler_pic='-fPIC'
10535 lt_prog_compiler_static='-static'
10537 # Lahey Fortran 8.1.
10538 lf95*)
10539 lt_prog_compiler_wl='-Wl,'
10540 lt_prog_compiler_pic='--shared'
10541 lt_prog_compiler_static='--static'
10543 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10544 # Portland Group compilers (*not* the Pentium gcc compiler,
10545 # which looks to be a dead project)
10546 lt_prog_compiler_wl='-Wl,'
10547 lt_prog_compiler_pic='-fpic'
10548 lt_prog_compiler_static='-Bstatic'
10550 ccc*)
10551 lt_prog_compiler_wl='-Wl,'
10552 # All Alpha code is PIC.
10553 lt_prog_compiler_static='-non_shared'
10555 xl* | bgxl* | bgf* | mpixl*)
10556 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10557 lt_prog_compiler_wl='-Wl,'
10558 lt_prog_compiler_pic='-qpic'
10559 lt_prog_compiler_static='-qstaticlink'
10562 case `$CC -V 2>&1 | sed 5q` in
10563 *Sun\ F* | *Sun*Fortran*)
10564 # Sun Fortran 8.3 passes all unrecognized flags to the linker
10565 lt_prog_compiler_pic='-KPIC'
10566 lt_prog_compiler_static='-Bstatic'
10567 lt_prog_compiler_wl=''
10569 *Sun\ C*)
10570 # Sun C 5.9
10571 lt_prog_compiler_pic='-KPIC'
10572 lt_prog_compiler_static='-Bstatic'
10573 lt_prog_compiler_wl='-Wl,'
10575 esac
10577 esac
10580 newsos6)
10581 lt_prog_compiler_pic='-KPIC'
10582 lt_prog_compiler_static='-Bstatic'
10585 *nto* | *qnx*)
10586 # QNX uses GNU C++, but need to define -shared option too, otherwise
10587 # it will coredump.
10588 lt_prog_compiler_pic='-fPIC -shared'
10591 osf3* | osf4* | osf5*)
10592 lt_prog_compiler_wl='-Wl,'
10593 # All OSF/1 code is PIC.
10594 lt_prog_compiler_static='-non_shared'
10597 rdos*)
10598 lt_prog_compiler_static='-non_shared'
10601 solaris*)
10602 lt_prog_compiler_pic='-KPIC'
10603 lt_prog_compiler_static='-Bstatic'
10604 case $cc_basename in
10605 f77* | f90* | f95*)
10606 lt_prog_compiler_wl='-Qoption ld ';;
10608 lt_prog_compiler_wl='-Wl,';;
10609 esac
10612 sunos4*)
10613 lt_prog_compiler_wl='-Qoption ld '
10614 lt_prog_compiler_pic='-PIC'
10615 lt_prog_compiler_static='-Bstatic'
10618 sysv4 | sysv4.2uw2* | sysv4.3*)
10619 lt_prog_compiler_wl='-Wl,'
10620 lt_prog_compiler_pic='-KPIC'
10621 lt_prog_compiler_static='-Bstatic'
10624 sysv4*MP*)
10625 if test -d /usr/nec ;then
10626 lt_prog_compiler_pic='-Kconform_pic'
10627 lt_prog_compiler_static='-Bstatic'
10631 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10632 lt_prog_compiler_wl='-Wl,'
10633 lt_prog_compiler_pic='-KPIC'
10634 lt_prog_compiler_static='-Bstatic'
10637 unicos*)
10638 lt_prog_compiler_wl='-Wl,'
10639 lt_prog_compiler_can_build_shared=no
10642 uts4*)
10643 lt_prog_compiler_pic='-pic'
10644 lt_prog_compiler_static='-Bstatic'
10648 lt_prog_compiler_can_build_shared=no
10650 esac
10653 case $host_os in
10654 # For platforms which do not support PIC, -DPIC is meaningless:
10655 *djgpp*)
10656 lt_prog_compiler_pic=
10659 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10661 esac
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10663 $as_echo "$lt_prog_compiler_pic" >&6; }
10671 # Check to make sure the PIC flag actually works.
10673 if test -n "$lt_prog_compiler_pic"; then
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10675 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10676 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 lt_cv_prog_compiler_pic_works=no
10680 ac_outfile=conftest.$ac_objext
10681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10682 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10683 # Insert the option either (1) after the last *FLAGS variable, or
10684 # (2) before a word containing "conftest.", or (3) at the end.
10685 # Note that $ac_compile itself does not contain backslashes and begins
10686 # with a dollar sign (not a hyphen), so the echo should work correctly.
10687 # The option is referenced via a variable to avoid confusing sed.
10688 lt_compile=`echo "$ac_compile" | $SED \
10689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10691 -e 's:$: $lt_compiler_flag:'`
10692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10693 (eval "$lt_compile" 2>conftest.err)
10694 ac_status=$?
10695 cat conftest.err >&5
10696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10697 if (exit $ac_status) && test -s "$ac_outfile"; then
10698 # The compiler can only warn and ignore the option if not recognized
10699 # So say no if there are warnings other than the usual output.
10700 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10703 lt_cv_prog_compiler_pic_works=yes
10706 $RM conftest*
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10710 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10712 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10713 case $lt_prog_compiler_pic in
10714 "" | " "*) ;;
10715 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10716 esac
10717 else
10718 lt_prog_compiler_pic=
10719 lt_prog_compiler_can_build_shared=no
10730 # Check to make sure the static flag actually works.
10732 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10734 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10735 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10736 $as_echo_n "(cached) " >&6
10737 else
10738 lt_cv_prog_compiler_static_works=no
10739 save_LDFLAGS="$LDFLAGS"
10740 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10741 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10742 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10743 # The linker can only warn and ignore the option if not recognized
10744 # So say no if there are warnings
10745 if test -s conftest.err; then
10746 # Append any errors to the config.log.
10747 cat conftest.err 1>&5
10748 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10749 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10750 if diff conftest.exp conftest.er2 >/dev/null; then
10751 lt_cv_prog_compiler_static_works=yes
10753 else
10754 lt_cv_prog_compiler_static_works=yes
10757 $RM -r conftest*
10758 LDFLAGS="$save_LDFLAGS"
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10762 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10764 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10766 else
10767 lt_prog_compiler_static=
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10777 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10778 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10779 $as_echo_n "(cached) " >&6
10780 else
10781 lt_cv_prog_compiler_c_o=no
10782 $RM -r conftest 2>/dev/null
10783 mkdir conftest
10784 cd conftest
10785 mkdir out
10786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10788 lt_compiler_flag="-o out/conftest2.$ac_objext"
10789 # Insert the option either (1) after the last *FLAGS variable, or
10790 # (2) before a word containing "conftest.", or (3) at the end.
10791 # Note that $ac_compile itself does not contain backslashes and begins
10792 # with a dollar sign (not a hyphen), so the echo should work correctly.
10793 lt_compile=`echo "$ac_compile" | $SED \
10794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10796 -e 's:$: $lt_compiler_flag:'`
10797 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10798 (eval "$lt_compile" 2>out/conftest.err)
10799 ac_status=$?
10800 cat out/conftest.err >&5
10801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10802 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10803 then
10804 # The compiler can only warn and ignore the option if not recognized
10805 # So say no if there are warnings
10806 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10807 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10808 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10809 lt_cv_prog_compiler_c_o=yes
10812 chmod u+w . 2>&5
10813 $RM conftest*
10814 # SGI C++ compiler will create directory out/ii_files/ for
10815 # template instantiation
10816 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10817 $RM out/* && rmdir out
10818 cd ..
10819 $RM -r conftest
10820 $RM conftest*
10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10824 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10832 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10833 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10834 $as_echo_n "(cached) " >&6
10835 else
10836 lt_cv_prog_compiler_c_o=no
10837 $RM -r conftest 2>/dev/null
10838 mkdir conftest
10839 cd conftest
10840 mkdir out
10841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10843 lt_compiler_flag="-o out/conftest2.$ac_objext"
10844 # Insert the option either (1) after the last *FLAGS variable, or
10845 # (2) before a word containing "conftest.", or (3) at the end.
10846 # Note that $ac_compile itself does not contain backslashes and begins
10847 # with a dollar sign (not a hyphen), so the echo should work correctly.
10848 lt_compile=`echo "$ac_compile" | $SED \
10849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10851 -e 's:$: $lt_compiler_flag:'`
10852 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10853 (eval "$lt_compile" 2>out/conftest.err)
10854 ac_status=$?
10855 cat out/conftest.err >&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10858 then
10859 # The compiler can only warn and ignore the option if not recognized
10860 # So say no if there are warnings
10861 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10862 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10863 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10864 lt_cv_prog_compiler_c_o=yes
10867 chmod u+w . 2>&5
10868 $RM conftest*
10869 # SGI C++ compiler will create directory out/ii_files/ for
10870 # template instantiation
10871 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10872 $RM out/* && rmdir out
10873 cd ..
10874 $RM -r conftest
10875 $RM conftest*
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10879 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10884 hard_links="nottested"
10885 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10886 # do not overwrite the value of need_locks provided by the user
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10888 $as_echo_n "checking if we can lock with hard links... " >&6; }
10889 hard_links=yes
10890 $RM conftest*
10891 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10892 touch conftest.a
10893 ln conftest.a conftest.b 2>&5 || hard_links=no
10894 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10896 $as_echo "$hard_links" >&6; }
10897 if test "$hard_links" = no; then
10898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10899 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10900 need_locks=warn
10902 else
10903 need_locks=no
10911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10912 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10914 runpath_var=
10915 allow_undefined_flag=
10916 always_export_symbols=no
10917 archive_cmds=
10918 archive_expsym_cmds=
10919 compiler_needs_object=no
10920 enable_shared_with_static_runtimes=no
10921 export_dynamic_flag_spec=
10922 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10923 hardcode_automatic=no
10924 hardcode_direct=no
10925 hardcode_direct_absolute=no
10926 hardcode_libdir_flag_spec=
10927 hardcode_libdir_flag_spec_ld=
10928 hardcode_libdir_separator=
10929 hardcode_minus_L=no
10930 hardcode_shlibpath_var=unsupported
10931 inherit_rpath=no
10932 link_all_deplibs=unknown
10933 module_cmds=
10934 module_expsym_cmds=
10935 old_archive_from_new_cmds=
10936 old_archive_from_expsyms_cmds=
10937 thread_safe_flag_spec=
10938 whole_archive_flag_spec=
10939 # include_expsyms should be a list of space-separated symbols to be *always*
10940 # included in the symbol list
10941 include_expsyms=
10942 # exclude_expsyms can be an extended regexp of symbols to exclude
10943 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10944 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10945 # as well as any symbol that contains `d'.
10946 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10947 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10948 # platforms (ab)use it in PIC code, but their linkers get confused if
10949 # the symbol is explicitly referenced. Since portable code cannot
10950 # rely on this symbol name, it's probably fine to never include it in
10951 # preloaded symbol tables.
10952 # Exclude shared library initialization/finalization symbols.
10953 extract_expsyms_cmds=
10955 case $host_os in
10956 cygwin* | mingw* | pw32* | cegcc*)
10957 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10958 # When not using gcc, we currently assume that we are using
10959 # Microsoft Visual C++.
10960 if test "$GCC" != yes; then
10961 with_gnu_ld=no
10964 interix*)
10965 # we just hope/assume this is gcc and not c89 (= MSVC++)
10966 with_gnu_ld=yes
10968 openbsd*)
10969 with_gnu_ld=no
10971 esac
10973 ld_shlibs=yes
10975 # On some targets, GNU ld is compatible enough with the native linker
10976 # that we're better off using the native interface for both.
10977 lt_use_gnu_ld_interface=no
10978 if test "$with_gnu_ld" = yes; then
10979 case $host_os in
10980 aix*)
10981 # The AIX port of GNU ld has always aspired to compatibility
10982 # with the native linker. However, as the warning in the GNU ld
10983 # block says, versions before 2.19.5* couldn't really create working
10984 # shared libraries, regardless of the interface used.
10985 case `$LD -v 2>&1` in
10986 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10987 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10988 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10990 lt_use_gnu_ld_interface=yes
10992 esac
10995 lt_use_gnu_ld_interface=yes
10997 esac
11000 if test "$lt_use_gnu_ld_interface" = yes; then
11001 # If archive_cmds runs LD, not CC, wlarc should be empty
11002 wlarc='${wl}'
11004 # Set some defaults for GNU ld with shared library support. These
11005 # are reset later if shared libraries are not supported. Putting them
11006 # here allows them to be overridden if necessary.
11007 runpath_var=LD_RUN_PATH
11008 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11009 export_dynamic_flag_spec='${wl}--export-dynamic'
11010 # ancient GNU ld didn't support --whole-archive et. al.
11011 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
11012 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11013 else
11014 whole_archive_flag_spec=
11016 supports_anon_versioning=no
11017 case `$LD -v 2>&1` in
11018 *GNU\ gold*) supports_anon_versioning=yes ;;
11019 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11020 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11021 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11022 *\ 2.11.*) ;; # other 2.11 versions
11023 *) supports_anon_versioning=yes ;;
11024 esac
11026 # See if GNU ld supports shared libraries.
11027 case $host_os in
11028 aix[3-9]*)
11029 # On AIX/PPC, the GNU linker is very broken
11030 if test "$host_cpu" != ia64; then
11031 ld_shlibs=no
11032 cat <<_LT_EOF 1>&2
11034 *** Warning: the GNU linker, at least up to release 2.19, is reported
11035 *** to be unable to reliably create shared libraries on AIX.
11036 *** Therefore, libtool is disabling shared libraries support. If you
11037 *** really care for shared libraries, you may want to install binutils
11038 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11039 *** You will then need to restart the configuration process.
11041 _LT_EOF
11045 amigaos*)
11046 case $host_cpu in
11047 powerpc)
11048 # see comment about AmigaOS4 .so support
11049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11050 archive_expsym_cmds=''
11052 m68k)
11053 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)'
11054 hardcode_libdir_flag_spec='-L$libdir'
11055 hardcode_minus_L=yes
11057 esac
11060 beos*)
11061 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11062 allow_undefined_flag=unsupported
11063 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11064 # support --undefined. This deserves some investigation. FIXME
11065 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11066 else
11067 ld_shlibs=no
11071 cygwin* | mingw* | pw32* | cegcc*)
11072 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11073 # as there is no search path for DLLs.
11074 hardcode_libdir_flag_spec='-L$libdir'
11075 export_dynamic_flag_spec='${wl}--export-all-symbols'
11076 allow_undefined_flag=unsupported
11077 always_export_symbols=no
11078 enable_shared_with_static_runtimes=yes
11079 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11081 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11083 # If the export-symbols file already is a .def file (1st line
11084 # is EXPORTS), use it as is; otherwise, prepend...
11085 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11086 cp $export_symbols $output_objdir/$soname.def;
11087 else
11088 echo EXPORTS > $output_objdir/$soname.def;
11089 cat $export_symbols >> $output_objdir/$soname.def;
11091 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11092 else
11093 ld_shlibs=no
11097 haiku*)
11098 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11099 link_all_deplibs=yes
11102 interix[3-9]*)
11103 hardcode_direct=no
11104 hardcode_shlibpath_var=no
11105 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11106 export_dynamic_flag_spec='${wl}-E'
11107 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11108 # Instead, shared libraries are loaded at an image base (0x10000000 by
11109 # default) and relocated if they conflict, which is a slow very memory
11110 # consuming and fragmenting process. To avoid this, we pick a random,
11111 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11112 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11113 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11114 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'
11117 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11118 tmp_diet=no
11119 if test "$host_os" = linux-dietlibc; then
11120 case $cc_basename in
11121 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
11122 esac
11124 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11125 && test "$tmp_diet" = no
11126 then
11127 tmp_addflag=
11128 tmp_sharedflag='-shared'
11129 case $cc_basename,$host_cpu in
11130 pgcc*) # Portland Group C compiler
11131 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'
11132 tmp_addflag=' $pic_flag'
11134 pgf77* | pgf90* | pgf95* | pgfortran*)
11135 # Portland Group f77 and f90 compilers
11136 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'
11137 tmp_addflag=' $pic_flag -Mnomain' ;;
11138 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
11139 tmp_addflag=' -i_dynamic' ;;
11140 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
11141 tmp_addflag=' -i_dynamic -nofor_main' ;;
11142 ifc* | ifort*) # Intel Fortran compiler
11143 tmp_addflag=' -nofor_main' ;;
11144 lf95*) # Lahey Fortran 8.1
11145 whole_archive_flag_spec=
11146 tmp_sharedflag='--shared' ;;
11147 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11148 tmp_sharedflag='-qmkshrobj'
11149 tmp_addflag= ;;
11150 nvcc*) # Cuda Compiler Driver 2.2
11151 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'
11152 compiler_needs_object=yes
11154 esac
11155 case `$CC -V 2>&1 | sed 5q` in
11156 *Sun\ C*) # Sun C 5.9
11157 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'
11158 compiler_needs_object=yes
11159 tmp_sharedflag='-G' ;;
11160 *Sun\ F*) # Sun Fortran 8.3
11161 tmp_sharedflag='-G' ;;
11162 esac
11163 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11165 if test "x$supports_anon_versioning" = xyes; then
11166 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11167 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11168 echo "local: *; };" >> $output_objdir/$libname.ver~
11169 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11172 case $cc_basename in
11173 xlf* | bgf* | bgxlf* | mpixlf*)
11174 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11175 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11176 hardcode_libdir_flag_spec=
11177 hardcode_libdir_flag_spec_ld='-rpath $libdir'
11178 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11179 if test "x$supports_anon_versioning" = xyes; then
11180 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11181 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11182 echo "local: *; };" >> $output_objdir/$libname.ver~
11183 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11186 esac
11187 else
11188 ld_shlibs=no
11192 netbsd*)
11193 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11194 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11195 wlarc=
11196 else
11197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11198 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11202 solaris*)
11203 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11204 ld_shlibs=no
11205 cat <<_LT_EOF 1>&2
11207 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11208 *** create shared libraries on Solaris systems. Therefore, libtool
11209 *** is disabling shared libraries support. We urge you to upgrade GNU
11210 *** binutils to release 2.9.1 or newer. Another option is to modify
11211 *** your PATH or compiler configuration so that the native linker is
11212 *** used, and then restart.
11214 _LT_EOF
11215 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11217 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11218 else
11219 ld_shlibs=no
11223 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11224 case `$LD -v 2>&1` in
11225 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11226 ld_shlibs=no
11227 cat <<_LT_EOF 1>&2
11229 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11230 *** reliably create shared libraries on SCO systems. Therefore, libtool
11231 *** is disabling shared libraries support. We urge you to upgrade GNU
11232 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
11233 *** your PATH or compiler configuration so that the native linker is
11234 *** used, and then restart.
11236 _LT_EOF
11239 # For security reasons, it is highly recommended that you always
11240 # use absolute paths for naming shared libraries, and exclude the
11241 # DT_RUNPATH tag from executables and libraries. But doing so
11242 # requires that you compile everything twice, which is a pain.
11243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11244 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11245 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11246 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11247 else
11248 ld_shlibs=no
11251 esac
11254 sunos4*)
11255 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11256 wlarc=
11257 hardcode_direct=yes
11258 hardcode_shlibpath_var=no
11262 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11263 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11264 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11265 else
11266 ld_shlibs=no
11269 esac
11271 if test "$ld_shlibs" = no; then
11272 runpath_var=
11273 hardcode_libdir_flag_spec=
11274 export_dynamic_flag_spec=
11275 whole_archive_flag_spec=
11277 else
11278 # PORTME fill in a description of your system's linker (not GNU ld)
11279 case $host_os in
11280 aix3*)
11281 allow_undefined_flag=unsupported
11282 always_export_symbols=yes
11283 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'
11284 # Note: this linker hardcodes the directories in LIBPATH if there
11285 # are no directories specified by -L.
11286 hardcode_minus_L=yes
11287 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11288 # Neither direct hardcoding nor static linking is supported with a
11289 # broken collect2.
11290 hardcode_direct=unsupported
11294 aix[4-9]*)
11295 if test "$host_cpu" = ia64; then
11296 # On IA64, the linker does run time linking by default, so we don't
11297 # have to do anything special.
11298 aix_use_runtimelinking=no
11299 exp_sym_flag='-Bexport'
11300 no_entry_flag=""
11301 else
11302 # If we're using GNU nm, then we don't want the "-C" option.
11303 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11304 # Also, AIX nm treats weak defined symbols like other global
11305 # defined symbols, whereas GNU nm marks them as "W".
11306 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11307 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'
11308 else
11309 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'
11311 aix_use_runtimelinking=no
11313 # Test if we are trying to use run time linking or normal
11314 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11315 # need to do runtime linking.
11316 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11317 for ld_flag in $LDFLAGS; do
11318 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11319 aix_use_runtimelinking=yes
11320 break
11322 done
11324 esac
11326 exp_sym_flag='-bexport'
11327 no_entry_flag='-bnoentry'
11330 # When large executables or shared objects are built, AIX ld can
11331 # have problems creating the table of contents. If linking a library
11332 # or program results in "error TOC overflow" add -mminimal-toc to
11333 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11334 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11336 archive_cmds=''
11337 hardcode_direct=yes
11338 hardcode_direct_absolute=yes
11339 hardcode_libdir_separator=':'
11340 link_all_deplibs=yes
11341 file_list_spec='${wl}-f,'
11343 if test "$GCC" = yes; then
11344 case $host_os in aix4.[012]|aix4.[012].*)
11345 # We only want to do this on AIX 4.2 and lower, the check
11346 # below for broken collect2 doesn't work under 4.3+
11347 collect2name=`${CC} -print-prog-name=collect2`
11348 if test -f "$collect2name" &&
11349 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11350 then
11351 # We have reworked collect2
11353 else
11354 # We have old collect2
11355 hardcode_direct=unsupported
11356 # It fails to find uninstalled libraries when the uninstalled
11357 # path is not listed in the libpath. Setting hardcode_minus_L
11358 # to unsupported forces relinking
11359 hardcode_minus_L=yes
11360 hardcode_libdir_flag_spec='-L$libdir'
11361 hardcode_libdir_separator=
11364 esac
11365 shared_flag='-shared'
11366 if test "$aix_use_runtimelinking" = yes; then
11367 shared_flag="$shared_flag "'${wl}-G'
11369 else
11370 # not using gcc
11371 if test "$host_cpu" = ia64; then
11372 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11373 # chokes on -Wl,-G. The following line is correct:
11374 shared_flag='-G'
11375 else
11376 if test "$aix_use_runtimelinking" = yes; then
11377 shared_flag='${wl}-G'
11378 else
11379 shared_flag='${wl}-bM:SRE'
11384 export_dynamic_flag_spec='${wl}-bexpall'
11385 # It seems that -bexpall does not export symbols beginning with
11386 # underscore (_), so it is better to generate a list of symbols to export.
11387 always_export_symbols=yes
11388 if test "$aix_use_runtimelinking" = yes; then
11389 # Warning - without using the other runtime loading flags (-brtl),
11390 # -berok will link without error, but may produce a broken library.
11391 allow_undefined_flag='-berok'
11392 # Determine the default libpath from the value encoded in an
11393 # empty executable.
11394 if test x$gcc_no_link = xyes; then
11395 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11401 main ()
11405 return 0;
11407 _ACEOF
11408 if ac_fn_c_try_link "$LINENO"; then :
11410 lt_aix_libpath_sed='
11411 /Import File Strings/,/^$/ {
11412 /^0/ {
11413 s/^0 *\(.*\)$/\1/
11417 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11418 # Check for a 64-bit object if we didn't find anything.
11419 if test -z "$aix_libpath"; then
11420 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11423 rm -f core conftest.err conftest.$ac_objext \
11424 conftest$ac_exeext conftest.$ac_ext
11425 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11427 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11428 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"
11429 else
11430 if test "$host_cpu" = ia64; then
11431 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11432 allow_undefined_flag="-z nodefs"
11433 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"
11434 else
11435 # Determine the default libpath from the value encoded in an
11436 # empty executable.
11437 if test x$gcc_no_link = xyes; then
11438 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11441 /* end confdefs.h. */
11444 main ()
11448 return 0;
11450 _ACEOF
11451 if ac_fn_c_try_link "$LINENO"; then :
11453 lt_aix_libpath_sed='
11454 /Import File Strings/,/^$/ {
11455 /^0/ {
11456 s/^0 *\(.*\)$/\1/
11460 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11461 # Check for a 64-bit object if we didn't find anything.
11462 if test -z "$aix_libpath"; then
11463 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11466 rm -f core conftest.err conftest.$ac_objext \
11467 conftest$ac_exeext conftest.$ac_ext
11468 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11470 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11471 # Warning - without using the other run time loading flags,
11472 # -berok will link without error, but may produce a broken library.
11473 no_undefined_flag=' ${wl}-bernotok'
11474 allow_undefined_flag=' ${wl}-berok'
11475 if test "$with_gnu_ld" = yes; then
11476 # We only use this code for GNU lds that support --whole-archive.
11477 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11478 else
11479 # Exported symbols can be pulled into shared objects from archives
11480 whole_archive_flag_spec='$convenience'
11482 archive_cmds_need_lc=yes
11483 # This is similar to how AIX traditionally builds its shared libraries.
11484 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'
11489 amigaos*)
11490 case $host_cpu in
11491 powerpc)
11492 # see comment about AmigaOS4 .so support
11493 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11494 archive_expsym_cmds=''
11496 m68k)
11497 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)'
11498 hardcode_libdir_flag_spec='-L$libdir'
11499 hardcode_minus_L=yes
11501 esac
11504 bsdi[45]*)
11505 export_dynamic_flag_spec=-rdynamic
11508 cygwin* | mingw* | pw32* | cegcc*)
11509 # When not using gcc, we currently assume that we are using
11510 # Microsoft Visual C++.
11511 # hardcode_libdir_flag_spec is actually meaningless, as there is
11512 # no search path for DLLs.
11513 hardcode_libdir_flag_spec=' '
11514 allow_undefined_flag=unsupported
11515 # Tell ltmain to make .lib files, not .a files.
11516 libext=lib
11517 # Tell ltmain to make .dll files, not .so files.
11518 shrext_cmds=".dll"
11519 # FIXME: Setting linknames here is a bad hack.
11520 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11521 # The linker will automatically build a .lib file if we build a DLL.
11522 old_archive_from_new_cmds='true'
11523 # FIXME: Should let the user specify the lib program.
11524 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11525 fix_srcfile_path='`cygpath -w "$srcfile"`'
11526 enable_shared_with_static_runtimes=yes
11529 darwin* | rhapsody*)
11532 archive_cmds_need_lc=no
11533 hardcode_direct=no
11534 hardcode_automatic=yes
11535 hardcode_shlibpath_var=unsupported
11536 if test "$lt_cv_ld_force_load" = "yes"; then
11537 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\"`'
11538 else
11539 whole_archive_flag_spec=''
11541 link_all_deplibs=yes
11542 allow_undefined_flag="$_lt_dar_allow_undefined"
11543 case $cc_basename in
11544 ifort*) _lt_dar_can_shared=yes ;;
11545 *) _lt_dar_can_shared=$GCC ;;
11546 esac
11547 if test "$_lt_dar_can_shared" = "yes"; then
11548 output_verbose_link_cmd=func_echo_all
11549 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11550 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11551 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}"
11552 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}"
11554 else
11555 ld_shlibs=no
11560 dgux*)
11561 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11562 hardcode_libdir_flag_spec='-L$libdir'
11563 hardcode_shlibpath_var=no
11566 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11567 # support. Future versions do this automatically, but an explicit c++rt0.o
11568 # does not break anything, and helps significantly (at the cost of a little
11569 # extra space).
11570 freebsd2.2*)
11571 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11572 hardcode_libdir_flag_spec='-R$libdir'
11573 hardcode_direct=yes
11574 hardcode_shlibpath_var=no
11577 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11578 freebsd2*)
11579 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11580 hardcode_direct=yes
11581 hardcode_minus_L=yes
11582 hardcode_shlibpath_var=no
11585 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11586 freebsd* | dragonfly*)
11587 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11588 hardcode_libdir_flag_spec='-R$libdir'
11589 hardcode_direct=yes
11590 hardcode_shlibpath_var=no
11593 hpux9*)
11594 if test "$GCC" = yes; then
11595 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'
11596 else
11597 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'
11599 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11600 hardcode_libdir_separator=:
11601 hardcode_direct=yes
11603 # hardcode_minus_L: Not really in the search PATH,
11604 # but as the default location of the library.
11605 hardcode_minus_L=yes
11606 export_dynamic_flag_spec='${wl}-E'
11609 hpux10*)
11610 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11611 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11612 else
11613 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11615 if test "$with_gnu_ld" = no; then
11616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11617 hardcode_libdir_flag_spec_ld='+b $libdir'
11618 hardcode_libdir_separator=:
11619 hardcode_direct=yes
11620 hardcode_direct_absolute=yes
11621 export_dynamic_flag_spec='${wl}-E'
11622 # hardcode_minus_L: Not really in the search PATH,
11623 # but as the default location of the library.
11624 hardcode_minus_L=yes
11628 hpux11*)
11629 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11630 case $host_cpu in
11631 hppa*64*)
11632 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11634 ia64*)
11635 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11638 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11640 esac
11641 else
11642 case $host_cpu in
11643 hppa*64*)
11644 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11646 ia64*)
11647 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11651 # Older versions of the 11.00 compiler do not understand -b yet
11652 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11654 $as_echo_n "checking if $CC understands -b... " >&6; }
11655 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11656 $as_echo_n "(cached) " >&6
11657 else
11658 lt_cv_prog_compiler__b=no
11659 save_LDFLAGS="$LDFLAGS"
11660 LDFLAGS="$LDFLAGS -b"
11661 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11662 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11663 # The linker can only warn and ignore the option if not recognized
11664 # So say no if there are warnings
11665 if test -s conftest.err; then
11666 # Append any errors to the config.log.
11667 cat conftest.err 1>&5
11668 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11669 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11670 if diff conftest.exp conftest.er2 >/dev/null; then
11671 lt_cv_prog_compiler__b=yes
11673 else
11674 lt_cv_prog_compiler__b=yes
11677 $RM -r conftest*
11678 LDFLAGS="$save_LDFLAGS"
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11682 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11684 if test x"$lt_cv_prog_compiler__b" = xyes; then
11685 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11686 else
11687 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11691 esac
11693 if test "$with_gnu_ld" = no; then
11694 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11695 hardcode_libdir_separator=:
11697 case $host_cpu in
11698 hppa*64*|ia64*)
11699 hardcode_direct=no
11700 hardcode_shlibpath_var=no
11703 hardcode_direct=yes
11704 hardcode_direct_absolute=yes
11705 export_dynamic_flag_spec='${wl}-E'
11707 # hardcode_minus_L: Not really in the search PATH,
11708 # but as the default location of the library.
11709 hardcode_minus_L=yes
11711 esac
11715 irix5* | irix6* | nonstopux*)
11716 if test "$GCC" = yes; then
11717 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'
11718 # Try to use the -exported_symbol ld option, if it does not
11719 # work, assume that -exports_file does not work either and
11720 # implicitly export all symbols.
11721 save_LDFLAGS="$LDFLAGS"
11722 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11723 if test x$gcc_no_link = xyes; then
11724 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11727 /* end confdefs.h. */
11728 int foo(void) {}
11729 _ACEOF
11730 if ac_fn_c_try_link "$LINENO"; then :
11731 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'
11734 rm -f core conftest.err conftest.$ac_objext \
11735 conftest$ac_exeext conftest.$ac_ext
11736 LDFLAGS="$save_LDFLAGS"
11737 else
11738 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'
11739 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'
11741 archive_cmds_need_lc='no'
11742 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11743 hardcode_libdir_separator=:
11744 inherit_rpath=yes
11745 link_all_deplibs=yes
11748 netbsd*)
11749 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11750 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11751 else
11752 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11754 hardcode_libdir_flag_spec='-R$libdir'
11755 hardcode_direct=yes
11756 hardcode_shlibpath_var=no
11759 newsos6)
11760 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11761 hardcode_direct=yes
11762 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11763 hardcode_libdir_separator=:
11764 hardcode_shlibpath_var=no
11767 *nto* | *qnx*)
11770 openbsd*)
11771 if test -f /usr/libexec/ld.so; then
11772 hardcode_direct=yes
11773 hardcode_shlibpath_var=no
11774 hardcode_direct_absolute=yes
11775 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11776 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11777 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11778 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11779 export_dynamic_flag_spec='${wl}-E'
11780 else
11781 case $host_os in
11782 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11783 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11784 hardcode_libdir_flag_spec='-R$libdir'
11787 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11788 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11790 esac
11792 else
11793 ld_shlibs=no
11797 os2*)
11798 hardcode_libdir_flag_spec='-L$libdir'
11799 hardcode_minus_L=yes
11800 allow_undefined_flag=unsupported
11801 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'
11802 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11805 osf3*)
11806 if test "$GCC" = yes; then
11807 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11808 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'
11809 else
11810 allow_undefined_flag=' -expect_unresolved \*'
11811 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'
11813 archive_cmds_need_lc='no'
11814 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11815 hardcode_libdir_separator=:
11818 osf4* | osf5*) # as osf3* with the addition of -msym flag
11819 if test "$GCC" = yes; then
11820 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11821 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'
11822 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11823 else
11824 allow_undefined_flag=' -expect_unresolved \*'
11825 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'
11826 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~
11827 $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'
11829 # Both c and cxx compiler support -rpath directly
11830 hardcode_libdir_flag_spec='-rpath $libdir'
11832 archive_cmds_need_lc='no'
11833 hardcode_libdir_separator=:
11836 solaris*)
11837 no_undefined_flag=' -z defs'
11838 if test "$GCC" = yes; then
11839 wlarc='${wl}'
11840 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11841 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11842 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11843 else
11844 case `$CC -V 2>&1` in
11845 *"Compilers 5.0"*)
11846 wlarc=''
11847 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11848 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11849 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11852 wlarc='${wl}'
11853 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11854 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11855 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11857 esac
11859 hardcode_libdir_flag_spec='-R$libdir'
11860 hardcode_shlibpath_var=no
11861 case $host_os in
11862 solaris2.[0-5] | solaris2.[0-5].*) ;;
11864 # The compiler driver will combine and reorder linker options,
11865 # but understands `-z linker_flag'. GCC discards it without `$wl',
11866 # but is careful enough not to reorder.
11867 # Supported since Solaris 2.6 (maybe 2.5.1?)
11868 if test "$GCC" = yes; then
11869 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11870 else
11871 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11874 esac
11875 link_all_deplibs=yes
11878 sunos4*)
11879 if test "x$host_vendor" = xsequent; then
11880 # Use $CC to link under sequent, because it throws in some extra .o
11881 # files that make .init and .fini sections work.
11882 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11883 else
11884 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11886 hardcode_libdir_flag_spec='-L$libdir'
11887 hardcode_direct=yes
11888 hardcode_minus_L=yes
11889 hardcode_shlibpath_var=no
11892 sysv4)
11893 case $host_vendor in
11894 sni)
11895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11896 hardcode_direct=yes # is this really true???
11898 siemens)
11899 ## LD is ld it makes a PLAMLIB
11900 ## CC just makes a GrossModule.
11901 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11902 reload_cmds='$CC -r -o $output$reload_objs'
11903 hardcode_direct=no
11905 motorola)
11906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11907 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11909 esac
11910 runpath_var='LD_RUN_PATH'
11911 hardcode_shlibpath_var=no
11914 sysv4.3*)
11915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11916 hardcode_shlibpath_var=no
11917 export_dynamic_flag_spec='-Bexport'
11920 sysv4*MP*)
11921 if test -d /usr/nec; then
11922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11923 hardcode_shlibpath_var=no
11924 runpath_var=LD_RUN_PATH
11925 hardcode_runpath_var=yes
11926 ld_shlibs=yes
11930 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11931 no_undefined_flag='${wl}-z,text'
11932 archive_cmds_need_lc=no
11933 hardcode_shlibpath_var=no
11934 runpath_var='LD_RUN_PATH'
11936 if test "$GCC" = yes; then
11937 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11938 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11939 else
11940 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11941 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11945 sysv5* | sco3.2v5* | sco5v6*)
11946 # Note: We can NOT use -z defs as we might desire, because we do not
11947 # link with -lc, and that would cause any symbols used from libc to
11948 # always be unresolved, which means just about no library would
11949 # ever link correctly. If we're not using GNU ld we use -z text
11950 # though, which does catch some bad symbols but isn't as heavy-handed
11951 # as -z defs.
11952 no_undefined_flag='${wl}-z,text'
11953 allow_undefined_flag='${wl}-z,nodefs'
11954 archive_cmds_need_lc=no
11955 hardcode_shlibpath_var=no
11956 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11957 hardcode_libdir_separator=':'
11958 link_all_deplibs=yes
11959 export_dynamic_flag_spec='${wl}-Bexport'
11960 runpath_var='LD_RUN_PATH'
11962 if test "$GCC" = yes; then
11963 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11964 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11965 else
11966 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11967 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11971 uts4*)
11972 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11973 hardcode_libdir_flag_spec='-L$libdir'
11974 hardcode_shlibpath_var=no
11978 ld_shlibs=no
11980 esac
11982 if test x$host_vendor = xsni; then
11983 case $host in
11984 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11985 export_dynamic_flag_spec='${wl}-Blargedynsym'
11987 esac
11991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11992 $as_echo "$ld_shlibs" >&6; }
11993 test "$ld_shlibs" = no && can_build_shared=no
11995 with_gnu_ld=$with_gnu_ld
12012 # Do we need to explicitly link libc?
12014 case "x$archive_cmds_need_lc" in
12015 x|xyes)
12016 # Assume -lc should be added
12017 archive_cmds_need_lc=yes
12019 if test "$enable_shared" = yes && test "$GCC" = yes; then
12020 case $archive_cmds in
12021 *'~'*)
12022 # FIXME: we may have to deal with multi-command sequences.
12024 '$CC '*)
12025 # Test whether the compiler implicitly links with -lc since on some
12026 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12027 # to ld, don't add -lc before -lgcc.
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12029 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12030 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12031 $as_echo_n "(cached) " >&6
12032 else
12033 $RM conftest*
12034 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12037 (eval $ac_compile) 2>&5
12038 ac_status=$?
12039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12040 test $ac_status = 0; } 2>conftest.err; then
12041 soname=conftest
12042 lib=conftest
12043 libobjs=conftest.$ac_objext
12044 deplibs=
12045 wl=$lt_prog_compiler_wl
12046 pic_flag=$lt_prog_compiler_pic
12047 compiler_flags=-v
12048 linker_flags=-v
12049 verstring=
12050 output_objdir=.
12051 libname=conftest
12052 lt_save_allow_undefined_flag=$allow_undefined_flag
12053 allow_undefined_flag=
12054 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12055 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12056 ac_status=$?
12057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12058 test $ac_status = 0; }
12059 then
12060 lt_cv_archive_cmds_need_lc=no
12061 else
12062 lt_cv_archive_cmds_need_lc=yes
12064 allow_undefined_flag=$lt_save_allow_undefined_flag
12065 else
12066 cat conftest.err 1>&5
12068 $RM conftest*
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12072 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12073 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12075 esac
12078 esac
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12237 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12239 if test "$GCC" = yes; then
12240 case $host_os in
12241 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12242 *) lt_awk_arg="/^libraries:/" ;;
12243 esac
12244 case $host_os in
12245 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12246 *) lt_sed_strip_eq="s,=/,/,g" ;;
12247 esac
12248 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12249 case $lt_search_path_spec in
12250 *\;*)
12251 # if the path contains ";" then we assume it to be the separator
12252 # otherwise default to the standard path separator (i.e. ":") - it is
12253 # assumed that no part of a normal pathname contains ";" but that should
12254 # okay in the real world where ";" in dirpaths is itself problematic.
12255 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12258 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12260 esac
12261 # Ok, now we have the path, separated by spaces, we can step through it
12262 # and add multilib dir if necessary.
12263 lt_tmp_lt_search_path_spec=
12264 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12265 for lt_sys_path in $lt_search_path_spec; do
12266 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12267 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12268 else
12269 test -d "$lt_sys_path" && \
12270 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12272 done
12273 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12274 BEGIN {RS=" "; FS="/|\n";} {
12275 lt_foo="";
12276 lt_count=0;
12277 for (lt_i = NF; lt_i > 0; lt_i--) {
12278 if ($lt_i != "" && $lt_i != ".") {
12279 if ($lt_i == "..") {
12280 lt_count++;
12281 } else {
12282 if (lt_count == 0) {
12283 lt_foo="/" $lt_i lt_foo;
12284 } else {
12285 lt_count--;
12290 if (lt_foo != "") { lt_freq[lt_foo]++; }
12291 if (lt_freq[lt_foo] == 1) { print lt_foo; }
12293 # AWK program above erroneously prepends '/' to C:/dos/paths
12294 # for these hosts.
12295 case $host_os in
12296 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12297 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12298 esac
12299 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12300 else
12301 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12303 library_names_spec=
12304 libname_spec='lib$name'
12305 soname_spec=
12306 shrext_cmds=".so"
12307 postinstall_cmds=
12308 postuninstall_cmds=
12309 finish_cmds=
12310 finish_eval=
12311 shlibpath_var=
12312 shlibpath_overrides_runpath=unknown
12313 version_type=none
12314 dynamic_linker="$host_os ld.so"
12315 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12316 need_lib_prefix=unknown
12317 hardcode_into_libs=no
12319 # when you set need_version to no, make sure it does not cause -set_version
12320 # flags to be left without arguments
12321 need_version=unknown
12323 case $host_os in
12324 aix3*)
12325 version_type=linux
12326 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12327 shlibpath_var=LIBPATH
12329 # AIX 3 has no versioning support, so we append a major version to the name.
12330 soname_spec='${libname}${release}${shared_ext}$major'
12333 aix[4-9]*)
12334 version_type=linux
12335 need_lib_prefix=no
12336 need_version=no
12337 hardcode_into_libs=yes
12338 if test "$host_cpu" = ia64; then
12339 # AIX 5 supports IA64
12340 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12341 shlibpath_var=LD_LIBRARY_PATH
12342 else
12343 # With GCC up to 2.95.x, collect2 would create an import file
12344 # for dependence libraries. The import file would start with
12345 # the line `#! .'. This would cause the generated library to
12346 # depend on `.', always an invalid library. This was fixed in
12347 # development snapshots of GCC prior to 3.0.
12348 case $host_os in
12349 aix4 | aix4.[01] | aix4.[01].*)
12350 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12351 echo ' yes '
12352 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12354 else
12355 can_build_shared=no
12358 esac
12359 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12360 # soname into executable. Probably we can add versioning support to
12361 # collect2, so additional links can be useful in future.
12362 if test "$aix_use_runtimelinking" = yes; then
12363 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12364 # instead of lib<name>.a to let people know that these are not
12365 # typical AIX shared libraries.
12366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12367 else
12368 # We preserve .a as extension for shared libraries through AIX4.2
12369 # and later when we are not doing run time linking.
12370 library_names_spec='${libname}${release}.a $libname.a'
12371 soname_spec='${libname}${release}${shared_ext}$major'
12373 shlibpath_var=LIBPATH
12377 amigaos*)
12378 case $host_cpu in
12379 powerpc)
12380 # Since July 2007 AmigaOS4 officially supports .so libraries.
12381 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384 m68k)
12385 library_names_spec='$libname.ixlibrary $libname.a'
12386 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12387 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'
12389 esac
12392 beos*)
12393 library_names_spec='${libname}${shared_ext}'
12394 dynamic_linker="$host_os ld.so"
12395 shlibpath_var=LIBRARY_PATH
12398 bsdi[45]*)
12399 version_type=linux
12400 need_version=no
12401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12402 soname_spec='${libname}${release}${shared_ext}$major'
12403 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12404 shlibpath_var=LD_LIBRARY_PATH
12405 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12406 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12407 # the default ld.so.conf also contains /usr/contrib/lib and
12408 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12409 # libtool to hard-code these into programs
12412 cygwin* | mingw* | pw32* | cegcc*)
12413 version_type=windows
12414 shrext_cmds=".dll"
12415 need_version=no
12416 need_lib_prefix=no
12418 case $GCC,$host_os in
12419 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12420 library_names_spec='$libname.dll.a'
12421 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12422 postinstall_cmds='base_file=`basename \${file}`~
12423 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12424 dldir=$destdir/`dirname \$dlpath`~
12425 test -d \$dldir || mkdir -p \$dldir~
12426 $install_prog $dir/$dlname \$dldir/$dlname~
12427 chmod a+x \$dldir/$dlname~
12428 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12429 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12431 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12432 dlpath=$dir/\$dldll~
12433 $RM \$dlpath'
12434 shlibpath_overrides_runpath=yes
12436 case $host_os in
12437 cygwin*)
12438 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12439 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12441 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12443 mingw* | cegcc*)
12444 # MinGW DLLs use traditional 'lib' prefix
12445 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12447 pw32*)
12448 # pw32 DLLs use 'pw' prefix rather than 'lib'
12449 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12451 esac
12455 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12457 esac
12458 dynamic_linker='Win32 ld.exe'
12459 # FIXME: first we should search . and the directory the executable is in
12460 shlibpath_var=PATH
12463 darwin* | rhapsody*)
12464 dynamic_linker="$host_os dyld"
12465 version_type=darwin
12466 need_lib_prefix=no
12467 need_version=no
12468 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12469 soname_spec='${libname}${release}${major}$shared_ext'
12470 shlibpath_overrides_runpath=yes
12471 shlibpath_var=DYLD_LIBRARY_PATH
12472 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12474 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12475 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12478 dgux*)
12479 version_type=linux
12480 need_lib_prefix=no
12481 need_version=no
12482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12483 soname_spec='${libname}${release}${shared_ext}$major'
12484 shlibpath_var=LD_LIBRARY_PATH
12487 freebsd* | dragonfly*)
12488 # DragonFly does not have aout. When/if they implement a new
12489 # versioning mechanism, adjust this.
12490 if test -x /usr/bin/objformat; then
12491 objformat=`/usr/bin/objformat`
12492 else
12493 case $host_os in
12494 freebsd[123]*) objformat=aout ;;
12495 *) objformat=elf ;;
12496 esac
12498 version_type=freebsd-$objformat
12499 case $version_type in
12500 freebsd-elf*)
12501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12502 need_version=no
12503 need_lib_prefix=no
12505 freebsd-*)
12506 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12507 need_version=yes
12509 esac
12510 shlibpath_var=LD_LIBRARY_PATH
12511 case $host_os in
12512 freebsd2*)
12513 shlibpath_overrides_runpath=yes
12515 freebsd3.[01]* | freebsdelf3.[01]*)
12516 shlibpath_overrides_runpath=yes
12517 hardcode_into_libs=yes
12519 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12520 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12521 shlibpath_overrides_runpath=no
12522 hardcode_into_libs=yes
12524 *) # from 4.6 on, and DragonFly
12525 shlibpath_overrides_runpath=yes
12526 hardcode_into_libs=yes
12528 esac
12531 gnu*)
12532 version_type=linux
12533 need_lib_prefix=no
12534 need_version=no
12535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12536 soname_spec='${libname}${release}${shared_ext}$major'
12537 shlibpath_var=LD_LIBRARY_PATH
12538 hardcode_into_libs=yes
12541 haiku*)
12542 version_type=linux
12543 need_lib_prefix=no
12544 need_version=no
12545 dynamic_linker="$host_os runtime_loader"
12546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12547 soname_spec='${libname}${release}${shared_ext}$major'
12548 shlibpath_var=LIBRARY_PATH
12549 shlibpath_overrides_runpath=yes
12550 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12551 hardcode_into_libs=yes
12554 hpux9* | hpux10* | hpux11*)
12555 # Give a soname corresponding to the major version so that dld.sl refuses to
12556 # link against other versions.
12557 version_type=sunos
12558 need_lib_prefix=no
12559 need_version=no
12560 case $host_cpu in
12561 ia64*)
12562 shrext_cmds='.so'
12563 hardcode_into_libs=yes
12564 dynamic_linker="$host_os dld.so"
12565 shlibpath_var=LD_LIBRARY_PATH
12566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12568 soname_spec='${libname}${release}${shared_ext}$major'
12569 if test "X$HPUX_IA64_MODE" = X32; then
12570 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12571 else
12572 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12574 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12576 hppa*64*)
12577 shrext_cmds='.sl'
12578 hardcode_into_libs=yes
12579 dynamic_linker="$host_os dld.sl"
12580 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12581 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12588 shrext_cmds='.sl'
12589 dynamic_linker="$host_os dld.sl"
12590 shlibpath_var=SHLIB_PATH
12591 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12593 soname_spec='${libname}${release}${shared_ext}$major'
12595 esac
12596 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12597 postinstall_cmds='chmod 555 $lib'
12598 # or fails outright, so override atomically:
12599 install_override_mode=555
12602 interix[3-9]*)
12603 version_type=linux
12604 need_lib_prefix=no
12605 need_version=no
12606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12607 soname_spec='${libname}${release}${shared_ext}$major'
12608 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12609 shlibpath_var=LD_LIBRARY_PATH
12610 shlibpath_overrides_runpath=no
12611 hardcode_into_libs=yes
12614 irix5* | irix6* | nonstopux*)
12615 case $host_os in
12616 nonstopux*) version_type=nonstopux ;;
12618 if test "$lt_cv_prog_gnu_ld" = yes; then
12619 version_type=linux
12620 else
12621 version_type=irix
12622 fi ;;
12623 esac
12624 need_lib_prefix=no
12625 need_version=no
12626 soname_spec='${libname}${release}${shared_ext}$major'
12627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12628 case $host_os in
12629 irix5* | nonstopux*)
12630 libsuff= shlibsuff=
12633 case $LD in # libtool.m4 will add one of these switches to LD
12634 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12635 libsuff= shlibsuff= libmagic=32-bit;;
12636 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12637 libsuff=32 shlibsuff=N32 libmagic=N32;;
12638 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12639 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12640 *) libsuff= shlibsuff= libmagic=never-match;;
12641 esac
12643 esac
12644 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12645 shlibpath_overrides_runpath=no
12646 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12647 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12648 hardcode_into_libs=yes
12651 # No shared lib support for Linux oldld, aout, or coff.
12652 linux*oldld* | linux*aout* | linux*coff*)
12653 dynamic_linker=no
12656 # This must be Linux ELF.
12657 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12658 version_type=linux
12659 need_lib_prefix=no
12660 need_version=no
12661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12662 soname_spec='${libname}${release}${shared_ext}$major'
12663 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12664 shlibpath_var=LD_LIBRARY_PATH
12665 shlibpath_overrides_runpath=no
12667 # Some binutils ld are patched to set DT_RUNPATH
12668 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12669 $as_echo_n "(cached) " >&6
12670 else
12671 lt_cv_shlibpath_overrides_runpath=no
12672 save_LDFLAGS=$LDFLAGS
12673 save_libdir=$libdir
12674 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12675 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12676 if test x$gcc_no_link = xyes; then
12677 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12680 /* end confdefs.h. */
12683 main ()
12687 return 0;
12689 _ACEOF
12690 if ac_fn_c_try_link "$LINENO"; then :
12691 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12692 lt_cv_shlibpath_overrides_runpath=yes
12695 rm -f core conftest.err conftest.$ac_objext \
12696 conftest$ac_exeext conftest.$ac_ext
12697 LDFLAGS=$save_LDFLAGS
12698 libdir=$save_libdir
12702 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12704 # This implies no fast_install, which is unacceptable.
12705 # Some rework will be needed to allow for fast_install
12706 # before this can be enabled.
12707 hardcode_into_libs=yes
12709 # Append ld.so.conf contents to the search path
12710 if test -f /etc/ld.so.conf; then
12711 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' ' '`
12712 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12715 # We used to test for /lib/ld.so.1 and disable shared libraries on
12716 # powerpc, because MkLinux only supported shared libraries with the
12717 # GNU dynamic linker. Since this was broken with cross compilers,
12718 # most powerpc-linux boxes support dynamic linking these days and
12719 # people can always --disable-shared, the test was removed, and we
12720 # assume the GNU/Linux dynamic linker is in use.
12721 dynamic_linker='GNU/Linux ld.so'
12724 netbsd*)
12725 version_type=sunos
12726 need_lib_prefix=no
12727 need_version=no
12728 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12731 dynamic_linker='NetBSD (a.out) ld.so'
12732 else
12733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12734 soname_spec='${libname}${release}${shared_ext}$major'
12735 dynamic_linker='NetBSD ld.elf_so'
12737 shlibpath_var=LD_LIBRARY_PATH
12738 shlibpath_overrides_runpath=yes
12739 hardcode_into_libs=yes
12742 newsos6)
12743 version_type=linux
12744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12745 shlibpath_var=LD_LIBRARY_PATH
12746 shlibpath_overrides_runpath=yes
12749 *nto* | *qnx*)
12750 version_type=qnx
12751 need_lib_prefix=no
12752 need_version=no
12753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12754 soname_spec='${libname}${release}${shared_ext}$major'
12755 shlibpath_var=LD_LIBRARY_PATH
12756 shlibpath_overrides_runpath=no
12757 hardcode_into_libs=yes
12758 dynamic_linker='ldqnx.so'
12761 openbsd*)
12762 version_type=sunos
12763 sys_lib_dlsearch_path_spec="/usr/lib"
12764 need_lib_prefix=no
12765 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12766 case $host_os in
12767 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12768 *) need_version=no ;;
12769 esac
12770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12772 shlibpath_var=LD_LIBRARY_PATH
12773 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12774 case $host_os in
12775 openbsd2.[89] | openbsd2.[89].*)
12776 shlibpath_overrides_runpath=no
12779 shlibpath_overrides_runpath=yes
12781 esac
12782 else
12783 shlibpath_overrides_runpath=yes
12787 os2*)
12788 libname_spec='$name'
12789 shrext_cmds=".dll"
12790 need_lib_prefix=no
12791 library_names_spec='$libname${shared_ext} $libname.a'
12792 dynamic_linker='OS/2 ld.exe'
12793 shlibpath_var=LIBPATH
12796 osf3* | osf4* | osf5*)
12797 version_type=osf
12798 need_lib_prefix=no
12799 need_version=no
12800 soname_spec='${libname}${release}${shared_ext}$major'
12801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12802 shlibpath_var=LD_LIBRARY_PATH
12803 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12804 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12807 rdos*)
12808 dynamic_linker=no
12811 solaris*)
12812 version_type=linux
12813 need_lib_prefix=no
12814 need_version=no
12815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12816 soname_spec='${libname}${release}${shared_ext}$major'
12817 shlibpath_var=LD_LIBRARY_PATH
12818 shlibpath_overrides_runpath=yes
12819 hardcode_into_libs=yes
12820 # ldd complains unless libraries are executable
12821 postinstall_cmds='chmod +x $lib'
12824 sunos4*)
12825 version_type=sunos
12826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12827 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12828 shlibpath_var=LD_LIBRARY_PATH
12829 shlibpath_overrides_runpath=yes
12830 if test "$with_gnu_ld" = yes; then
12831 need_lib_prefix=no
12833 need_version=yes
12836 sysv4 | sysv4.3*)
12837 version_type=linux
12838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12839 soname_spec='${libname}${release}${shared_ext}$major'
12840 shlibpath_var=LD_LIBRARY_PATH
12841 case $host_vendor in
12842 sni)
12843 shlibpath_overrides_runpath=no
12844 need_lib_prefix=no
12845 runpath_var=LD_RUN_PATH
12847 siemens)
12848 need_lib_prefix=no
12850 motorola)
12851 need_lib_prefix=no
12852 need_version=no
12853 shlibpath_overrides_runpath=no
12854 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12856 esac
12859 sysv4*MP*)
12860 if test -d /usr/nec ;then
12861 version_type=linux
12862 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12863 soname_spec='$libname${shared_ext}.$major'
12864 shlibpath_var=LD_LIBRARY_PATH
12868 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12869 version_type=freebsd-elf
12870 need_lib_prefix=no
12871 need_version=no
12872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12873 soname_spec='${libname}${release}${shared_ext}$major'
12874 shlibpath_var=LD_LIBRARY_PATH
12875 shlibpath_overrides_runpath=yes
12876 hardcode_into_libs=yes
12877 if test "$with_gnu_ld" = yes; then
12878 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12879 else
12880 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12881 case $host_os in
12882 sco3.2v5*)
12883 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12885 esac
12887 sys_lib_dlsearch_path_spec='/usr/lib'
12890 tpf*)
12891 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12892 version_type=linux
12893 need_lib_prefix=no
12894 need_version=no
12895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12896 shlibpath_var=LD_LIBRARY_PATH
12897 shlibpath_overrides_runpath=no
12898 hardcode_into_libs=yes
12901 uts4*)
12902 version_type=linux
12903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12904 soname_spec='${libname}${release}${shared_ext}$major'
12905 shlibpath_var=LD_LIBRARY_PATH
12909 dynamic_linker=no
12911 esac
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12913 $as_echo "$dynamic_linker" >&6; }
12914 test "$dynamic_linker" = no && can_build_shared=no
12916 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12917 if test "$GCC" = yes; then
12918 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12921 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12922 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12924 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12925 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13020 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13021 hardcode_action=
13022 if test -n "$hardcode_libdir_flag_spec" ||
13023 test -n "$runpath_var" ||
13024 test "X$hardcode_automatic" = "Xyes" ; then
13026 # We can hardcode non-existent directories.
13027 if test "$hardcode_direct" != no &&
13028 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13029 # have to relink, otherwise we might link with an installed library
13030 # when we should be linking with a yet-to-be-installed one
13031 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13032 test "$hardcode_minus_L" != no; then
13033 # Linking always hardcodes the temporary library directory.
13034 hardcode_action=relink
13035 else
13036 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13037 hardcode_action=immediate
13039 else
13040 # We cannot hardcode anything, or else we can only hardcode existing
13041 # directories.
13042 hardcode_action=unsupported
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13045 $as_echo "$hardcode_action" >&6; }
13047 if test "$hardcode_action" = relink ||
13048 test "$inherit_rpath" = yes; then
13049 # Fast installation is not supported
13050 enable_fast_install=no
13051 elif test "$shlibpath_overrides_runpath" = yes ||
13052 test "$enable_shared" = no; then
13053 # Fast installation is not necessary
13054 enable_fast_install=needless
13062 if test "x$enable_dlopen" != xyes; then
13063 enable_dlopen=unknown
13064 enable_dlopen_self=unknown
13065 enable_dlopen_self_static=unknown
13066 else
13067 lt_cv_dlopen=no
13068 lt_cv_dlopen_libs=
13070 case $host_os in
13071 beos*)
13072 lt_cv_dlopen="load_add_on"
13073 lt_cv_dlopen_libs=
13074 lt_cv_dlopen_self=yes
13077 mingw* | pw32* | cegcc*)
13078 lt_cv_dlopen="LoadLibrary"
13079 lt_cv_dlopen_libs=
13082 cygwin*)
13083 lt_cv_dlopen="dlopen"
13084 lt_cv_dlopen_libs=
13087 darwin*)
13088 # if libdl is installed we need to link against it
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13090 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13091 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13092 $as_echo_n "(cached) " >&6
13093 else
13094 ac_check_lib_save_LIBS=$LIBS
13095 LIBS="-ldl $LIBS"
13096 if test x$gcc_no_link = xyes; then
13097 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13100 /* end confdefs.h. */
13102 /* Override any GCC internal prototype to avoid an error.
13103 Use char because int might match the return type of a GCC
13104 builtin and then its argument prototype would still apply. */
13105 #ifdef __cplusplus
13106 extern "C"
13107 #endif
13108 char dlopen ();
13110 main ()
13112 return dlopen ();
13114 return 0;
13116 _ACEOF
13117 if ac_fn_c_try_link "$LINENO"; then :
13118 ac_cv_lib_dl_dlopen=yes
13119 else
13120 ac_cv_lib_dl_dlopen=no
13122 rm -f core conftest.err conftest.$ac_objext \
13123 conftest$ac_exeext conftest.$ac_ext
13124 LIBS=$ac_check_lib_save_LIBS
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13127 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13128 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13129 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13130 else
13132 lt_cv_dlopen="dyld"
13133 lt_cv_dlopen_libs=
13134 lt_cv_dlopen_self=yes
13141 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13142 if test "x$ac_cv_func_shl_load" = x""yes; then :
13143 lt_cv_dlopen="shl_load"
13144 else
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13146 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13147 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13148 $as_echo_n "(cached) " >&6
13149 else
13150 ac_check_lib_save_LIBS=$LIBS
13151 LIBS="-ldld $LIBS"
13152 if test x$gcc_no_link = xyes; then
13153 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13156 /* end confdefs.h. */
13158 /* Override any GCC internal prototype to avoid an error.
13159 Use char because int might match the return type of a GCC
13160 builtin and then its argument prototype would still apply. */
13161 #ifdef __cplusplus
13162 extern "C"
13163 #endif
13164 char shl_load ();
13166 main ()
13168 return shl_load ();
13170 return 0;
13172 _ACEOF
13173 if ac_fn_c_try_link "$LINENO"; then :
13174 ac_cv_lib_dld_shl_load=yes
13175 else
13176 ac_cv_lib_dld_shl_load=no
13178 rm -f core conftest.err conftest.$ac_objext \
13179 conftest$ac_exeext conftest.$ac_ext
13180 LIBS=$ac_check_lib_save_LIBS
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13183 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13184 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13185 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13186 else
13187 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13188 if test "x$ac_cv_func_dlopen" = x""yes; then :
13189 lt_cv_dlopen="dlopen"
13190 else
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13192 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13193 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13194 $as_echo_n "(cached) " >&6
13195 else
13196 ac_check_lib_save_LIBS=$LIBS
13197 LIBS="-ldl $LIBS"
13198 if test x$gcc_no_link = xyes; then
13199 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13204 /* Override any GCC internal prototype to avoid an error.
13205 Use char because int might match the return type of a GCC
13206 builtin and then its argument prototype would still apply. */
13207 #ifdef __cplusplus
13208 extern "C"
13209 #endif
13210 char dlopen ();
13212 main ()
13214 return dlopen ();
13216 return 0;
13218 _ACEOF
13219 if ac_fn_c_try_link "$LINENO"; then :
13220 ac_cv_lib_dl_dlopen=yes
13221 else
13222 ac_cv_lib_dl_dlopen=no
13224 rm -f core conftest.err conftest.$ac_objext \
13225 conftest$ac_exeext conftest.$ac_ext
13226 LIBS=$ac_check_lib_save_LIBS
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13229 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13230 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13231 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13232 else
13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13234 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13235 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13236 $as_echo_n "(cached) " >&6
13237 else
13238 ac_check_lib_save_LIBS=$LIBS
13239 LIBS="-lsvld $LIBS"
13240 if test x$gcc_no_link = xyes; then
13241 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h. */
13246 /* Override any GCC internal prototype to avoid an error.
13247 Use char because int might match the return type of a GCC
13248 builtin and then its argument prototype would still apply. */
13249 #ifdef __cplusplus
13250 extern "C"
13251 #endif
13252 char dlopen ();
13254 main ()
13256 return dlopen ();
13258 return 0;
13260 _ACEOF
13261 if ac_fn_c_try_link "$LINENO"; then :
13262 ac_cv_lib_svld_dlopen=yes
13263 else
13264 ac_cv_lib_svld_dlopen=no
13266 rm -f core conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
13268 LIBS=$ac_check_lib_save_LIBS
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13271 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13272 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13273 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13274 else
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13276 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13277 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 ac_check_lib_save_LIBS=$LIBS
13281 LIBS="-ldld $LIBS"
13282 if test x$gcc_no_link = xyes; then
13283 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 /* end confdefs.h. */
13288 /* Override any GCC internal prototype to avoid an error.
13289 Use char because int might match the return type of a GCC
13290 builtin and then its argument prototype would still apply. */
13291 #ifdef __cplusplus
13292 extern "C"
13293 #endif
13294 char dld_link ();
13296 main ()
13298 return dld_link ();
13300 return 0;
13302 _ACEOF
13303 if ac_fn_c_try_link "$LINENO"; then :
13304 ac_cv_lib_dld_dld_link=yes
13305 else
13306 ac_cv_lib_dld_dld_link=no
13308 rm -f core conftest.err conftest.$ac_objext \
13309 conftest$ac_exeext conftest.$ac_ext
13310 LIBS=$ac_check_lib_save_LIBS
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13313 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13314 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13315 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13334 esac
13336 if test "x$lt_cv_dlopen" != xno; then
13337 enable_dlopen=yes
13338 else
13339 enable_dlopen=no
13342 case $lt_cv_dlopen in
13343 dlopen)
13344 save_CPPFLAGS="$CPPFLAGS"
13345 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13347 save_LDFLAGS="$LDFLAGS"
13348 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13350 save_LIBS="$LIBS"
13351 LIBS="$lt_cv_dlopen_libs $LIBS"
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13354 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13355 if test "${lt_cv_dlopen_self+set}" = set; then :
13356 $as_echo_n "(cached) " >&6
13357 else
13358 if test "$cross_compiling" = yes; then :
13359 lt_cv_dlopen_self=cross
13360 else
13361 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13362 lt_status=$lt_dlunknown
13363 cat > conftest.$ac_ext <<_LT_EOF
13364 #line 13364 "configure"
13365 #include "confdefs.h"
13367 #if HAVE_DLFCN_H
13368 #include <dlfcn.h>
13369 #endif
13371 #include <stdio.h>
13373 #ifdef RTLD_GLOBAL
13374 # define LT_DLGLOBAL RTLD_GLOBAL
13375 #else
13376 # ifdef DL_GLOBAL
13377 # define LT_DLGLOBAL DL_GLOBAL
13378 # else
13379 # define LT_DLGLOBAL 0
13380 # endif
13381 #endif
13383 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13384 find out it does not work in some platform. */
13385 #ifndef LT_DLLAZY_OR_NOW
13386 # ifdef RTLD_LAZY
13387 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13388 # else
13389 # ifdef DL_LAZY
13390 # define LT_DLLAZY_OR_NOW DL_LAZY
13391 # else
13392 # ifdef RTLD_NOW
13393 # define LT_DLLAZY_OR_NOW RTLD_NOW
13394 # else
13395 # ifdef DL_NOW
13396 # define LT_DLLAZY_OR_NOW DL_NOW
13397 # else
13398 # define LT_DLLAZY_OR_NOW 0
13399 # endif
13400 # endif
13401 # endif
13402 # endif
13403 #endif
13405 /* When -fvisbility=hidden is used, assume the code has been annotated
13406 correspondingly for the symbols needed. */
13407 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13408 void fnord () __attribute__((visibility("default")));
13409 #endif
13411 void fnord () { int i=42; }
13412 int main ()
13414 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13415 int status = $lt_dlunknown;
13417 if (self)
13419 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13420 else
13422 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13423 else puts (dlerror ());
13425 /* dlclose (self); */
13427 else
13428 puts (dlerror ());
13430 return status;
13432 _LT_EOF
13433 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13434 (eval $ac_link) 2>&5
13435 ac_status=$?
13436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13437 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13438 (./conftest; exit; ) >&5 2>/dev/null
13439 lt_status=$?
13440 case x$lt_status in
13441 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13442 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13443 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13444 esac
13445 else :
13446 # compilation failed
13447 lt_cv_dlopen_self=no
13450 rm -fr conftest*
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13455 $as_echo "$lt_cv_dlopen_self" >&6; }
13457 if test "x$lt_cv_dlopen_self" = xyes; then
13458 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13460 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13461 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13462 $as_echo_n "(cached) " >&6
13463 else
13464 if test "$cross_compiling" = yes; then :
13465 lt_cv_dlopen_self_static=cross
13466 else
13467 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13468 lt_status=$lt_dlunknown
13469 cat > conftest.$ac_ext <<_LT_EOF
13470 #line 13470 "configure"
13471 #include "confdefs.h"
13473 #if HAVE_DLFCN_H
13474 #include <dlfcn.h>
13475 #endif
13477 #include <stdio.h>
13479 #ifdef RTLD_GLOBAL
13480 # define LT_DLGLOBAL RTLD_GLOBAL
13481 #else
13482 # ifdef DL_GLOBAL
13483 # define LT_DLGLOBAL DL_GLOBAL
13484 # else
13485 # define LT_DLGLOBAL 0
13486 # endif
13487 #endif
13489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13490 find out it does not work in some platform. */
13491 #ifndef LT_DLLAZY_OR_NOW
13492 # ifdef RTLD_LAZY
13493 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13494 # else
13495 # ifdef DL_LAZY
13496 # define LT_DLLAZY_OR_NOW DL_LAZY
13497 # else
13498 # ifdef RTLD_NOW
13499 # define LT_DLLAZY_OR_NOW RTLD_NOW
13500 # else
13501 # ifdef DL_NOW
13502 # define LT_DLLAZY_OR_NOW DL_NOW
13503 # else
13504 # define LT_DLLAZY_OR_NOW 0
13505 # endif
13506 # endif
13507 # endif
13508 # endif
13509 #endif
13511 /* When -fvisbility=hidden is used, assume the code has been annotated
13512 correspondingly for the symbols needed. */
13513 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13514 void fnord () __attribute__((visibility("default")));
13515 #endif
13517 void fnord () { int i=42; }
13518 int main ()
13520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13521 int status = $lt_dlunknown;
13523 if (self)
13525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13526 else
13528 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13529 else puts (dlerror ());
13531 /* dlclose (self); */
13533 else
13534 puts (dlerror ());
13536 return status;
13538 _LT_EOF
13539 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13540 (eval $ac_link) 2>&5
13541 ac_status=$?
13542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13543 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13544 (./conftest; exit; ) >&5 2>/dev/null
13545 lt_status=$?
13546 case x$lt_status in
13547 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13548 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13549 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13550 esac
13551 else :
13552 # compilation failed
13553 lt_cv_dlopen_self_static=no
13556 rm -fr conftest*
13560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13561 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13564 CPPFLAGS="$save_CPPFLAGS"
13565 LDFLAGS="$save_LDFLAGS"
13566 LIBS="$save_LIBS"
13568 esac
13570 case $lt_cv_dlopen_self in
13571 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13572 *) enable_dlopen_self=unknown ;;
13573 esac
13575 case $lt_cv_dlopen_self_static in
13576 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13577 *) enable_dlopen_self_static=unknown ;;
13578 esac
13597 striplib=
13598 old_striplib=
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13600 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13601 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13602 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13603 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13605 $as_echo "yes" >&6; }
13606 else
13607 # FIXME - insert some real tests, host_os isn't really good enough
13608 case $host_os in
13609 darwin*)
13610 if test -n "$STRIP" ; then
13611 striplib="$STRIP -x"
13612 old_striplib="$STRIP -S"
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13614 $as_echo "yes" >&6; }
13615 else
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13617 $as_echo "no" >&6; }
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13622 $as_echo "no" >&6; }
13624 esac
13638 # Report which library types will actually be built
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13640 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13642 $as_echo "$can_build_shared" >&6; }
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13645 $as_echo_n "checking whether to build shared libraries... " >&6; }
13646 test "$can_build_shared" = "no" && enable_shared=no
13648 # On AIX, shared libraries and static libraries use the same namespace, and
13649 # are all built from PIC.
13650 case $host_os in
13651 aix3*)
13652 test "$enable_shared" = yes && enable_static=no
13653 if test -n "$RANLIB"; then
13654 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13655 postinstall_cmds='$RANLIB $lib'
13659 aix[4-9]*)
13660 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13661 test "$enable_shared" = yes && enable_static=no
13664 esac
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13666 $as_echo "$enable_shared" >&6; }
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13669 $as_echo_n "checking whether to build static libraries... " >&6; }
13670 # Make sure either enable_shared or enable_static is yes.
13671 test "$enable_shared" = yes || enable_static=yes
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13673 $as_echo "$enable_static" >&6; }
13679 ac_ext=c
13680 ac_cpp='$CPP $CPPFLAGS'
13681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13685 CC="$lt_save_CC"
13687 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13688 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13689 (test "X$CXX" != "Xg++"))) ; then
13690 ac_ext=cpp
13691 ac_cpp='$CXXCPP $CPPFLAGS'
13692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13696 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13697 if test -z "$CXXCPP"; then
13698 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13699 $as_echo_n "(cached) " >&6
13700 else
13701 # Double quotes because CXXCPP needs to be expanded
13702 for CXXCPP in "$CXX -E" "/lib/cpp"
13704 ac_preproc_ok=false
13705 for ac_cxx_preproc_warn_flag in '' yes
13707 # Use a header file that comes with gcc, so configuring glibc
13708 # with a fresh cross-compiler works.
13709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13710 # <limits.h> exists even on freestanding compilers.
13711 # On the NeXT, cc -E runs the code through the compiler's parser,
13712 # not just through cpp. "Syntax error" is here to catch this case.
13713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714 /* end confdefs.h. */
13715 #ifdef __STDC__
13716 # include <limits.h>
13717 #else
13718 # include <assert.h>
13719 #endif
13720 Syntax error
13721 _ACEOF
13722 if ac_fn_cxx_try_cpp "$LINENO"; then :
13724 else
13725 # Broken: fails on valid input.
13726 continue
13728 rm -f conftest.err conftest.$ac_ext
13730 # OK, works on sane cases. Now check whether nonexistent headers
13731 # can be detected and how.
13732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13733 /* end confdefs.h. */
13734 #include <ac_nonexistent.h>
13735 _ACEOF
13736 if ac_fn_cxx_try_cpp "$LINENO"; then :
13737 # Broken: success on invalid input.
13738 continue
13739 else
13740 # Passes both tests.
13741 ac_preproc_ok=:
13742 break
13744 rm -f conftest.err conftest.$ac_ext
13746 done
13747 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13748 rm -f conftest.err conftest.$ac_ext
13749 if $ac_preproc_ok; then :
13750 break
13753 done
13754 ac_cv_prog_CXXCPP=$CXXCPP
13757 CXXCPP=$ac_cv_prog_CXXCPP
13758 else
13759 ac_cv_prog_CXXCPP=$CXXCPP
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13762 $as_echo "$CXXCPP" >&6; }
13763 ac_preproc_ok=false
13764 for ac_cxx_preproc_warn_flag in '' yes
13766 # Use a header file that comes with gcc, so configuring glibc
13767 # with a fresh cross-compiler works.
13768 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13769 # <limits.h> exists even on freestanding compilers.
13770 # On the NeXT, cc -E runs the code through the compiler's parser,
13771 # not just through cpp. "Syntax error" is here to catch this case.
13772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13774 #ifdef __STDC__
13775 # include <limits.h>
13776 #else
13777 # include <assert.h>
13778 #endif
13779 Syntax error
13780 _ACEOF
13781 if ac_fn_cxx_try_cpp "$LINENO"; then :
13783 else
13784 # Broken: fails on valid input.
13785 continue
13787 rm -f conftest.err conftest.$ac_ext
13789 # OK, works on sane cases. Now check whether nonexistent headers
13790 # can be detected and how.
13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13792 /* end confdefs.h. */
13793 #include <ac_nonexistent.h>
13794 _ACEOF
13795 if ac_fn_cxx_try_cpp "$LINENO"; then :
13796 # Broken: success on invalid input.
13797 continue
13798 else
13799 # Passes both tests.
13800 ac_preproc_ok=:
13801 break
13803 rm -f conftest.err conftest.$ac_ext
13805 done
13806 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13807 rm -f conftest.err conftest.$ac_ext
13808 if $ac_preproc_ok; then :
13810 else
13811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13813 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13814 See \`config.log' for more details." "$LINENO" 5; }
13817 ac_ext=c
13818 ac_cpp='$CPP $CPPFLAGS'
13819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13823 else
13824 _lt_caught_CXX_error=yes
13827 ac_ext=cpp
13828 ac_cpp='$CXXCPP $CPPFLAGS'
13829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13833 archive_cmds_need_lc_CXX=no
13834 allow_undefined_flag_CXX=
13835 always_export_symbols_CXX=no
13836 archive_expsym_cmds_CXX=
13837 compiler_needs_object_CXX=no
13838 export_dynamic_flag_spec_CXX=
13839 hardcode_direct_CXX=no
13840 hardcode_direct_absolute_CXX=no
13841 hardcode_libdir_flag_spec_CXX=
13842 hardcode_libdir_flag_spec_ld_CXX=
13843 hardcode_libdir_separator_CXX=
13844 hardcode_minus_L_CXX=no
13845 hardcode_shlibpath_var_CXX=unsupported
13846 hardcode_automatic_CXX=no
13847 inherit_rpath_CXX=no
13848 module_cmds_CXX=
13849 module_expsym_cmds_CXX=
13850 link_all_deplibs_CXX=unknown
13851 old_archive_cmds_CXX=$old_archive_cmds
13852 reload_flag_CXX=$reload_flag
13853 reload_cmds_CXX=$reload_cmds
13854 no_undefined_flag_CXX=
13855 whole_archive_flag_spec_CXX=
13856 enable_shared_with_static_runtimes_CXX=no
13858 # Source file extension for C++ test sources.
13859 ac_ext=cpp
13861 # Object file extension for compiled C++ test sources.
13862 objext=o
13863 objext_CXX=$objext
13865 # No sense in running all these tests if we already determined that
13866 # the CXX compiler isn't working. Some variables (like enable_shared)
13867 # are currently assumed to apply to all compilers on this platform,
13868 # and will be corrupted by setting them based on a non-working compiler.
13869 if test "$_lt_caught_CXX_error" != yes; then
13870 # Code to be used in simple compile tests
13871 lt_simple_compile_test_code="int some_variable = 0;"
13873 # Code to be used in simple link tests
13874 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13876 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13883 # If no C compiler was specified, use CC.
13884 LTCC=${LTCC-"$CC"}
13886 # If no C compiler flags were specified, use CFLAGS.
13887 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13889 # Allow CC to be a program name with arguments.
13890 compiler=$CC
13893 # save warnings/boilerplate of simple test code
13894 ac_outfile=conftest.$ac_objext
13895 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13896 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13897 _lt_compiler_boilerplate=`cat conftest.err`
13898 $RM conftest*
13900 ac_outfile=conftest.$ac_objext
13901 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13902 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13903 _lt_linker_boilerplate=`cat conftest.err`
13904 $RM -r conftest*
13907 # Allow CC to be a program name with arguments.
13908 lt_save_CC=$CC
13909 lt_save_LD=$LD
13910 lt_save_GCC=$GCC
13911 GCC=$GXX
13912 lt_save_with_gnu_ld=$with_gnu_ld
13913 lt_save_path_LD=$lt_cv_path_LD
13914 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13915 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13916 else
13917 $as_unset lt_cv_prog_gnu_ld
13919 if test -n "${lt_cv_path_LDCXX+set}"; then
13920 lt_cv_path_LD=$lt_cv_path_LDCXX
13921 else
13922 $as_unset lt_cv_path_LD
13924 test -z "${LDCXX+set}" || LD=$LDCXX
13925 CC=${CXX-"c++"}
13926 compiler=$CC
13927 compiler_CXX=$CC
13928 for cc_temp in $compiler""; do
13929 case $cc_temp in
13930 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13931 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13932 \-*) ;;
13933 *) break;;
13934 esac
13935 done
13936 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13939 if test -n "$compiler"; then
13940 # We don't want -fno-exception when compiling C++ code, so set the
13941 # no_builtin_flag separately
13942 if test "$GXX" = yes; then
13943 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13944 else
13945 lt_prog_compiler_no_builtin_flag_CXX=
13948 if test "$GXX" = yes; then
13949 # Set up default GNU C++ configuration
13953 # Check whether --with-gnu-ld was given.
13954 if test "${with_gnu_ld+set}" = set; then :
13955 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13956 else
13957 with_gnu_ld=no
13960 ac_prog=ld
13961 if test "$GCC" = yes; then
13962 # Check if gcc -print-prog-name=ld gives a path.
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13964 $as_echo_n "checking for ld used by $CC... " >&6; }
13965 case $host in
13966 *-*-mingw*)
13967 # gcc leaves a trailing carriage return which upsets mingw
13968 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13970 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13971 esac
13972 case $ac_prog in
13973 # Accept absolute paths.
13974 [\\/]* | ?:[\\/]*)
13975 re_direlt='/[^/][^/]*/\.\./'
13976 # Canonicalize the pathname of ld
13977 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13978 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13979 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13980 done
13981 test -z "$LD" && LD="$ac_prog"
13984 # If it fails, then pretend we aren't using GCC.
13985 ac_prog=ld
13988 # If it is relative, then search for the first ld in PATH.
13989 with_gnu_ld=unknown
13991 esac
13992 elif test "$with_gnu_ld" = yes; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13994 $as_echo_n "checking for GNU ld... " >&6; }
13995 else
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13997 $as_echo_n "checking for non-GNU ld... " >&6; }
13999 if test "${lt_cv_path_LD+set}" = set; then :
14000 $as_echo_n "(cached) " >&6
14001 else
14002 if test -z "$LD"; then
14003 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14004 for ac_dir in $PATH; do
14005 IFS="$lt_save_ifs"
14006 test -z "$ac_dir" && ac_dir=.
14007 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14008 lt_cv_path_LD="$ac_dir/$ac_prog"
14009 # Check to see if the program is GNU ld. I'd rather use --version,
14010 # but apparently some variants of GNU ld only accept -v.
14011 # Break only if it was the GNU/non-GNU ld that we prefer.
14012 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14013 *GNU* | *'with BFD'*)
14014 test "$with_gnu_ld" != no && break
14017 test "$with_gnu_ld" != yes && break
14019 esac
14021 done
14022 IFS="$lt_save_ifs"
14023 else
14024 lt_cv_path_LD="$LD" # Let the user override the test with a path.
14028 LD="$lt_cv_path_LD"
14029 if test -n "$LD"; then
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14031 $as_echo "$LD" >&6; }
14032 else
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14034 $as_echo "no" >&6; }
14036 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14038 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14039 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14040 $as_echo_n "(cached) " >&6
14041 else
14042 # I'd rather use --version here, but apparently some GNU lds only accept -v.
14043 case `$LD -v 2>&1 </dev/null` in
14044 *GNU* | *'with BFD'*)
14045 lt_cv_prog_gnu_ld=yes
14048 lt_cv_prog_gnu_ld=no
14050 esac
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14053 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14054 with_gnu_ld=$lt_cv_prog_gnu_ld
14062 # Check if GNU C++ uses GNU ld as the underlying linker, since the
14063 # archiving commands below assume that GNU ld is being used.
14064 if test "$with_gnu_ld" = yes; then
14065 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14066 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'
14068 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14069 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14071 # If archive_cmds runs LD, not CC, wlarc should be empty
14072 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14073 # investigate it a little bit more. (MM)
14074 wlarc='${wl}'
14076 # ancient GNU ld didn't support --whole-archive et. al.
14077 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14078 $GREP 'no-whole-archive' > /dev/null; then
14079 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14080 else
14081 whole_archive_flag_spec_CXX=
14083 else
14084 with_gnu_ld=no
14085 wlarc=
14087 # A generic and very simple default shared library creation
14088 # command for GNU C++ for the case where it uses the native
14089 # linker, instead of GNU ld. If possible, this setting should
14090 # overridden to take advantage of the native linker features on
14091 # the platform it is being used on.
14092 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14095 # Commands to make compiler produce verbose output that lists
14096 # what "hidden" libraries, object files and flags are used when
14097 # linking a shared library.
14098 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14100 else
14101 GXX=no
14102 with_gnu_ld=no
14103 wlarc=
14106 # PORTME: fill in a description of your system's C++ link characteristics
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14108 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14109 ld_shlibs_CXX=yes
14110 case $host_os in
14111 aix3*)
14112 # FIXME: insert proper C++ library support
14113 ld_shlibs_CXX=no
14115 aix[4-9]*)
14116 if test "$host_cpu" = ia64; then
14117 # On IA64, the linker does run time linking by default, so we don't
14118 # have to do anything special.
14119 aix_use_runtimelinking=no
14120 exp_sym_flag='-Bexport'
14121 no_entry_flag=""
14122 else
14123 aix_use_runtimelinking=no
14125 # Test if we are trying to use run time linking or normal
14126 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14127 # need to do runtime linking.
14128 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14129 for ld_flag in $LDFLAGS; do
14130 case $ld_flag in
14131 *-brtl*)
14132 aix_use_runtimelinking=yes
14133 break
14135 esac
14136 done
14138 esac
14140 exp_sym_flag='-bexport'
14141 no_entry_flag='-bnoentry'
14144 # When large executables or shared objects are built, AIX ld can
14145 # have problems creating the table of contents. If linking a library
14146 # or program results in "error TOC overflow" add -mminimal-toc to
14147 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14148 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14150 archive_cmds_CXX=''
14151 hardcode_direct_CXX=yes
14152 hardcode_direct_absolute_CXX=yes
14153 hardcode_libdir_separator_CXX=':'
14154 link_all_deplibs_CXX=yes
14155 file_list_spec_CXX='${wl}-f,'
14157 if test "$GXX" = yes; then
14158 case $host_os in aix4.[012]|aix4.[012].*)
14159 # We only want to do this on AIX 4.2 and lower, the check
14160 # below for broken collect2 doesn't work under 4.3+
14161 collect2name=`${CC} -print-prog-name=collect2`
14162 if test -f "$collect2name" &&
14163 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14164 then
14165 # We have reworked collect2
14167 else
14168 # We have old collect2
14169 hardcode_direct_CXX=unsupported
14170 # It fails to find uninstalled libraries when the uninstalled
14171 # path is not listed in the libpath. Setting hardcode_minus_L
14172 # to unsupported forces relinking
14173 hardcode_minus_L_CXX=yes
14174 hardcode_libdir_flag_spec_CXX='-L$libdir'
14175 hardcode_libdir_separator_CXX=
14177 esac
14178 shared_flag='-shared'
14179 if test "$aix_use_runtimelinking" = yes; then
14180 shared_flag="$shared_flag "'${wl}-G'
14182 else
14183 # not using gcc
14184 if test "$host_cpu" = ia64; then
14185 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14186 # chokes on -Wl,-G. The following line is correct:
14187 shared_flag='-G'
14188 else
14189 if test "$aix_use_runtimelinking" = yes; then
14190 shared_flag='${wl}-G'
14191 else
14192 shared_flag='${wl}-bM:SRE'
14197 export_dynamic_flag_spec_CXX='${wl}-bexpall'
14198 # It seems that -bexpall does not export symbols beginning with
14199 # underscore (_), so it is better to generate a list of symbols to
14200 # export.
14201 always_export_symbols_CXX=yes
14202 if test "$aix_use_runtimelinking" = yes; then
14203 # Warning - without using the other runtime loading flags (-brtl),
14204 # -berok will link without error, but may produce a broken library.
14205 allow_undefined_flag_CXX='-berok'
14206 # Determine the default libpath from the value encoded in an empty
14207 # executable.
14208 if test x$gcc_no_link = xyes; then
14209 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14212 /* end confdefs.h. */
14215 main ()
14219 return 0;
14221 _ACEOF
14222 if ac_fn_cxx_try_link "$LINENO"; then :
14224 lt_aix_libpath_sed='
14225 /Import File Strings/,/^$/ {
14226 /^0/ {
14227 s/^0 *\(.*\)$/\1/
14231 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14232 # Check for a 64-bit object if we didn't find anything.
14233 if test -z "$aix_libpath"; then
14234 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14237 rm -f core conftest.err conftest.$ac_objext \
14238 conftest$ac_exeext conftest.$ac_ext
14239 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14241 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14243 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"
14244 else
14245 if test "$host_cpu" = ia64; then
14246 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14247 allow_undefined_flag_CXX="-z nodefs"
14248 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"
14249 else
14250 # Determine the default libpath from the value encoded in an
14251 # empty executable.
14252 if test x$gcc_no_link = xyes; then
14253 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14259 main ()
14263 return 0;
14265 _ACEOF
14266 if ac_fn_cxx_try_link "$LINENO"; then :
14268 lt_aix_libpath_sed='
14269 /Import File Strings/,/^$/ {
14270 /^0/ {
14271 s/^0 *\(.*\)$/\1/
14275 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14276 # Check for a 64-bit object if we didn't find anything.
14277 if test -z "$aix_libpath"; then
14278 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14281 rm -f core conftest.err conftest.$ac_objext \
14282 conftest$ac_exeext conftest.$ac_ext
14283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14285 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14286 # Warning - without using the other run time loading flags,
14287 # -berok will link without error, but may produce a broken library.
14288 no_undefined_flag_CXX=' ${wl}-bernotok'
14289 allow_undefined_flag_CXX=' ${wl}-berok'
14290 if test "$with_gnu_ld" = yes; then
14291 # We only use this code for GNU lds that support --whole-archive.
14292 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14293 else
14294 # Exported symbols can be pulled into shared objects from archives
14295 whole_archive_flag_spec_CXX='$convenience'
14297 archive_cmds_need_lc_CXX=yes
14298 # This is similar to how AIX traditionally builds its shared
14299 # libraries.
14300 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'
14305 beos*)
14306 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14307 allow_undefined_flag_CXX=unsupported
14308 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14309 # support --undefined. This deserves some investigation. FIXME
14310 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14311 else
14312 ld_shlibs_CXX=no
14316 chorus*)
14317 case $cc_basename in
14319 # FIXME: insert proper C++ library support
14320 ld_shlibs_CXX=no
14322 esac
14325 cygwin* | mingw* | pw32* | cegcc*)
14326 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14327 # as there is no search path for DLLs.
14328 hardcode_libdir_flag_spec_CXX='-L$libdir'
14329 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14330 allow_undefined_flag_CXX=unsupported
14331 always_export_symbols_CXX=no
14332 enable_shared_with_static_runtimes_CXX=yes
14334 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14335 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'
14336 # If the export-symbols file already is a .def file (1st line
14337 # is EXPORTS), use it as is; otherwise, prepend...
14338 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14339 cp $export_symbols $output_objdir/$soname.def;
14340 else
14341 echo EXPORTS > $output_objdir/$soname.def;
14342 cat $export_symbols >> $output_objdir/$soname.def;
14344 $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'
14345 else
14346 ld_shlibs_CXX=no
14349 darwin* | rhapsody*)
14352 archive_cmds_need_lc_CXX=no
14353 hardcode_direct_CXX=no
14354 hardcode_automatic_CXX=yes
14355 hardcode_shlibpath_var_CXX=unsupported
14356 if test "$lt_cv_ld_force_load" = "yes"; then
14357 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\"`'
14358 else
14359 whole_archive_flag_spec_CXX=''
14361 link_all_deplibs_CXX=yes
14362 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14363 case $cc_basename in
14364 ifort*) _lt_dar_can_shared=yes ;;
14365 *) _lt_dar_can_shared=$GCC ;;
14366 esac
14367 if test "$_lt_dar_can_shared" = "yes"; then
14368 output_verbose_link_cmd=func_echo_all
14369 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}"
14370 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14371 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}"
14372 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}"
14373 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14374 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}"
14375 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}"
14378 else
14379 ld_shlibs_CXX=no
14384 dgux*)
14385 case $cc_basename in
14386 ec++*)
14387 # FIXME: insert proper C++ library support
14388 ld_shlibs_CXX=no
14390 ghcx*)
14391 # Green Hills C++ Compiler
14392 # FIXME: insert proper C++ library support
14393 ld_shlibs_CXX=no
14396 # FIXME: insert proper C++ library support
14397 ld_shlibs_CXX=no
14399 esac
14402 freebsd[12]*)
14403 # C++ shared libraries reported to be fairly broken before
14404 # switch to ELF
14405 ld_shlibs_CXX=no
14408 freebsd-elf*)
14409 archive_cmds_need_lc_CXX=no
14412 freebsd* | dragonfly*)
14413 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14414 # conventions
14415 ld_shlibs_CXX=yes
14418 gnu*)
14421 haiku*)
14422 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14423 link_all_deplibs_CXX=yes
14426 hpux9*)
14427 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14428 hardcode_libdir_separator_CXX=:
14429 export_dynamic_flag_spec_CXX='${wl}-E'
14430 hardcode_direct_CXX=yes
14431 hardcode_minus_L_CXX=yes # Not in the search PATH,
14432 # but as the default
14433 # location of the library.
14435 case $cc_basename in
14436 CC*)
14437 # FIXME: insert proper C++ library support
14438 ld_shlibs_CXX=no
14440 aCC*)
14441 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'
14442 # Commands to make compiler produce verbose output that lists
14443 # what "hidden" libraries, object files and flags are used when
14444 # linking a shared library.
14446 # There doesn't appear to be a way to prevent this compiler from
14447 # explicitly linking system object files so we need to strip them
14448 # from the output so that they don't get included in the library
14449 # dependencies.
14450 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"'
14453 if test "$GXX" = yes; then
14454 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'
14455 else
14456 # FIXME: insert proper C++ library support
14457 ld_shlibs_CXX=no
14460 esac
14463 hpux10*|hpux11*)
14464 if test $with_gnu_ld = no; then
14465 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14466 hardcode_libdir_separator_CXX=:
14468 case $host_cpu in
14469 hppa*64*|ia64*)
14472 export_dynamic_flag_spec_CXX='${wl}-E'
14474 esac
14476 case $host_cpu in
14477 hppa*64*|ia64*)
14478 hardcode_direct_CXX=no
14479 hardcode_shlibpath_var_CXX=no
14482 hardcode_direct_CXX=yes
14483 hardcode_direct_absolute_CXX=yes
14484 hardcode_minus_L_CXX=yes # Not in the search PATH,
14485 # but as the default
14486 # location of the library.
14488 esac
14490 case $cc_basename in
14491 CC*)
14492 # FIXME: insert proper C++ library support
14493 ld_shlibs_CXX=no
14495 aCC*)
14496 case $host_cpu in
14497 hppa*64*)
14498 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14500 ia64*)
14501 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14504 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14506 esac
14507 # Commands to make compiler produce verbose output that lists
14508 # what "hidden" libraries, object files and flags are used when
14509 # linking a shared library.
14511 # There doesn't appear to be a way to prevent this compiler from
14512 # explicitly linking system object files so we need to strip them
14513 # from the output so that they don't get included in the library
14514 # dependencies.
14515 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"'
14518 if test "$GXX" = yes; then
14519 if test $with_gnu_ld = no; then
14520 case $host_cpu in
14521 hppa*64*)
14522 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14524 ia64*)
14525 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14528 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'
14530 esac
14532 else
14533 # FIXME: insert proper C++ library support
14534 ld_shlibs_CXX=no
14537 esac
14540 interix[3-9]*)
14541 hardcode_direct_CXX=no
14542 hardcode_shlibpath_var_CXX=no
14543 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14544 export_dynamic_flag_spec_CXX='${wl}-E'
14545 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14546 # Instead, shared libraries are loaded at an image base (0x10000000 by
14547 # default) and relocated if they conflict, which is a slow very memory
14548 # consuming and fragmenting process. To avoid this, we pick a random,
14549 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14550 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14551 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'
14552 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'
14554 irix5* | irix6*)
14555 case $cc_basename in
14556 CC*)
14557 # SGI C++
14558 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'
14560 # Archives containing C++ object files must be created using
14561 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14562 # necessary to make sure instantiated templates are included
14563 # in the archive.
14564 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14567 if test "$GXX" = yes; then
14568 if test "$with_gnu_ld" = no; then
14569 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'
14570 else
14571 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'
14574 link_all_deplibs_CXX=yes
14576 esac
14577 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14578 hardcode_libdir_separator_CXX=:
14579 inherit_rpath_CXX=yes
14582 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14583 case $cc_basename in
14584 KCC*)
14585 # Kuck and Associates, Inc. (KAI) C++ Compiler
14587 # KCC will only create a shared library if the output file
14588 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14589 # to its proper name (with version) after linking.
14590 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'
14591 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'
14592 # Commands to make compiler produce verbose output that lists
14593 # what "hidden" libraries, object files and flags are used when
14594 # linking a shared library.
14596 # There doesn't appear to be a way to prevent this compiler from
14597 # explicitly linking system object files so we need to strip them
14598 # from the output so that they don't get included in the library
14599 # dependencies.
14600 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"'
14602 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14603 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14605 # Archives containing C++ object files must be created using
14606 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14607 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14609 icpc* | ecpc* )
14610 # Intel C++
14611 with_gnu_ld=yes
14612 # version 8.0 and above of icpc choke on multiply defined symbols
14613 # if we add $predep_objects and $postdep_objects, however 7.1 and
14614 # earlier do not add the objects themselves.
14615 case `$CC -V 2>&1` in
14616 *"Version 7."*)
14617 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14618 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'
14620 *) # Version 8.0 or newer
14621 tmp_idyn=
14622 case $host_cpu in
14623 ia64*) tmp_idyn=' -i_dynamic';;
14624 esac
14625 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14626 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'
14628 esac
14629 archive_cmds_need_lc_CXX=no
14630 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14631 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14632 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14634 pgCC* | pgcpp*)
14635 # Portland Group C++ compiler
14636 case `$CC -V` in
14637 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14638 prelink_cmds_CXX='tpldir=Template.dir~
14639 rm -rf $tpldir~
14640 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14641 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14642 old_archive_cmds_CXX='tpldir=Template.dir~
14643 rm -rf $tpldir~
14644 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14645 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14646 $RANLIB $oldlib'
14647 archive_cmds_CXX='tpldir=Template.dir~
14648 rm -rf $tpldir~
14649 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14650 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14651 archive_expsym_cmds_CXX='tpldir=Template.dir~
14652 rm -rf $tpldir~
14653 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14654 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14656 *) # Version 6 and above use weak symbols
14657 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14658 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'
14660 esac
14662 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14663 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14664 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'
14666 cxx*)
14667 # Compaq C++
14668 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14669 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'
14671 runpath_var=LD_RUN_PATH
14672 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14673 hardcode_libdir_separator_CXX=:
14675 # Commands to make compiler produce verbose output that lists
14676 # what "hidden" libraries, object files and flags are used when
14677 # linking a shared library.
14679 # There doesn't appear to be a way to prevent this compiler from
14680 # explicitly linking system object files so we need to strip them
14681 # from the output so that they don't get included in the library
14682 # dependencies.
14683 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'
14685 xl* | mpixl* | bgxl*)
14686 # IBM XL 8.0 on PPC, with GNU ld
14687 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14688 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14689 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14690 if test "x$supports_anon_versioning" = xyes; then
14691 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14692 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14693 echo "local: *; };" >> $output_objdir/$libname.ver~
14694 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14698 case `$CC -V 2>&1 | sed 5q` in
14699 *Sun\ C*)
14700 # Sun C++ 5.9
14701 no_undefined_flag_CXX=' -zdefs'
14702 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14703 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'
14704 hardcode_libdir_flag_spec_CXX='-R$libdir'
14705 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'
14706 compiler_needs_object_CXX=yes
14708 # Not sure whether something based on
14709 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14710 # would be better.
14711 output_verbose_link_cmd='func_echo_all'
14713 # Archives containing C++ object files must be created using
14714 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14715 # necessary to make sure instantiated templates are included
14716 # in the archive.
14717 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14719 esac
14721 esac
14724 lynxos*)
14725 # FIXME: insert proper C++ library support
14726 ld_shlibs_CXX=no
14729 m88k*)
14730 # FIXME: insert proper C++ library support
14731 ld_shlibs_CXX=no
14734 mvs*)
14735 case $cc_basename in
14736 cxx*)
14737 # FIXME: insert proper C++ library support
14738 ld_shlibs_CXX=no
14741 # FIXME: insert proper C++ library support
14742 ld_shlibs_CXX=no
14744 esac
14747 netbsd*)
14748 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14749 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14750 wlarc=
14751 hardcode_libdir_flag_spec_CXX='-R$libdir'
14752 hardcode_direct_CXX=yes
14753 hardcode_shlibpath_var_CXX=no
14755 # Workaround some broken pre-1.5 toolchains
14756 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14759 *nto* | *qnx*)
14760 ld_shlibs_CXX=yes
14763 openbsd2*)
14764 # C++ shared libraries are fairly broken
14765 ld_shlibs_CXX=no
14768 openbsd*)
14769 if test -f /usr/libexec/ld.so; then
14770 hardcode_direct_CXX=yes
14771 hardcode_shlibpath_var_CXX=no
14772 hardcode_direct_absolute_CXX=yes
14773 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14774 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14775 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14776 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14777 export_dynamic_flag_spec_CXX='${wl}-E'
14778 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14780 output_verbose_link_cmd=func_echo_all
14781 else
14782 ld_shlibs_CXX=no
14786 osf3* | osf4* | osf5*)
14787 case $cc_basename in
14788 KCC*)
14789 # Kuck and Associates, Inc. (KAI) C++ Compiler
14791 # KCC will only create a shared library if the output file
14792 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14793 # to its proper name (with version) after linking.
14794 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'
14796 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14797 hardcode_libdir_separator_CXX=:
14799 # Archives containing C++ object files must be created using
14800 # the KAI C++ compiler.
14801 case $host in
14802 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14803 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14804 esac
14806 RCC*)
14807 # Rational C++ 2.4.1
14808 # FIXME: insert proper C++ library support
14809 ld_shlibs_CXX=no
14811 cxx*)
14812 case $host in
14813 osf3*)
14814 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14815 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'
14816 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14819 allow_undefined_flag_CXX=' -expect_unresolved \*'
14820 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'
14821 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14822 echo "-hidden">> $lib.exp~
14823 $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~
14824 $RM $lib.exp'
14825 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14827 esac
14829 hardcode_libdir_separator_CXX=:
14831 # Commands to make compiler produce verbose output that lists
14832 # what "hidden" libraries, object files and flags are used when
14833 # linking a shared library.
14835 # There doesn't appear to be a way to prevent this compiler from
14836 # explicitly linking system object files so we need to strip them
14837 # from the output so that they don't get included in the library
14838 # dependencies.
14839 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"'
14842 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14843 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14844 case $host in
14845 osf3*)
14846 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'
14849 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'
14851 esac
14853 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14854 hardcode_libdir_separator_CXX=:
14856 # Commands to make compiler produce verbose output that lists
14857 # what "hidden" libraries, object files and flags are used when
14858 # linking a shared library.
14859 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14861 else
14862 # FIXME: insert proper C++ library support
14863 ld_shlibs_CXX=no
14866 esac
14869 psos*)
14870 # FIXME: insert proper C++ library support
14871 ld_shlibs_CXX=no
14874 sunos4*)
14875 case $cc_basename in
14876 CC*)
14877 # Sun C++ 4.x
14878 # FIXME: insert proper C++ library support
14879 ld_shlibs_CXX=no
14881 lcc*)
14882 # Lucid
14883 # FIXME: insert proper C++ library support
14884 ld_shlibs_CXX=no
14887 # FIXME: insert proper C++ library support
14888 ld_shlibs_CXX=no
14890 esac
14893 solaris*)
14894 case $cc_basename in
14895 CC*)
14896 # Sun C++ 4.2, 5.x and Centerline C++
14897 archive_cmds_need_lc_CXX=yes
14898 no_undefined_flag_CXX=' -zdefs'
14899 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14900 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14901 $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'
14903 hardcode_libdir_flag_spec_CXX='-R$libdir'
14904 hardcode_shlibpath_var_CXX=no
14905 case $host_os in
14906 solaris2.[0-5] | solaris2.[0-5].*) ;;
14908 # The compiler driver will combine and reorder linker options,
14909 # but understands `-z linker_flag'.
14910 # Supported since Solaris 2.6 (maybe 2.5.1?)
14911 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14913 esac
14914 link_all_deplibs_CXX=yes
14916 output_verbose_link_cmd='func_echo_all'
14918 # Archives containing C++ object files must be created using
14919 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14920 # necessary to make sure instantiated templates are included
14921 # in the archive.
14922 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14924 gcx*)
14925 # Green Hills C++ Compiler
14926 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14928 # The C++ compiler must be used to create the archive.
14929 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14932 # GNU C++ compiler with Solaris linker
14933 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14934 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14935 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14936 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14937 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14938 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14940 # Commands to make compiler produce verbose output that lists
14941 # what "hidden" libraries, object files and flags are used when
14942 # linking a shared library.
14943 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14944 else
14945 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14946 # platform.
14947 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14948 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14949 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14951 # Commands to make compiler produce verbose output that lists
14952 # what "hidden" libraries, object files and flags are used when
14953 # linking a shared library.
14954 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14957 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14958 case $host_os in
14959 solaris2.[0-5] | solaris2.[0-5].*) ;;
14961 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14963 esac
14966 esac
14969 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14970 no_undefined_flag_CXX='${wl}-z,text'
14971 archive_cmds_need_lc_CXX=no
14972 hardcode_shlibpath_var_CXX=no
14973 runpath_var='LD_RUN_PATH'
14975 case $cc_basename in
14976 CC*)
14977 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14978 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14981 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14982 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14984 esac
14987 sysv5* | sco3.2v5* | sco5v6*)
14988 # Note: We can NOT use -z defs as we might desire, because we do not
14989 # link with -lc, and that would cause any symbols used from libc to
14990 # always be unresolved, which means just about no library would
14991 # ever link correctly. If we're not using GNU ld we use -z text
14992 # though, which does catch some bad symbols but isn't as heavy-handed
14993 # as -z defs.
14994 no_undefined_flag_CXX='${wl}-z,text'
14995 allow_undefined_flag_CXX='${wl}-z,nodefs'
14996 archive_cmds_need_lc_CXX=no
14997 hardcode_shlibpath_var_CXX=no
14998 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14999 hardcode_libdir_separator_CXX=':'
15000 link_all_deplibs_CXX=yes
15001 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15002 runpath_var='LD_RUN_PATH'
15004 case $cc_basename in
15005 CC*)
15006 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15007 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15008 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
15009 '"$old_archive_cmds_CXX"
15010 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
15011 '"$reload_cmds_CXX"
15014 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15015 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15017 esac
15020 tandem*)
15021 case $cc_basename in
15022 NCC*)
15023 # NonStop-UX NCC 3.20
15024 # FIXME: insert proper C++ library support
15025 ld_shlibs_CXX=no
15028 # FIXME: insert proper C++ library support
15029 ld_shlibs_CXX=no
15031 esac
15034 vxworks*)
15035 # FIXME: insert proper C++ library support
15036 ld_shlibs_CXX=no
15040 # FIXME: insert proper C++ library support
15041 ld_shlibs_CXX=no
15043 esac
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15046 $as_echo "$ld_shlibs_CXX" >&6; }
15047 test "$ld_shlibs_CXX" = no && can_build_shared=no
15049 GCC_CXX="$GXX"
15050 LD_CXX="$LD"
15052 ## CAVEAT EMPTOR:
15053 ## There is no encapsulation within the following macros, do not change
15054 ## the running order or otherwise move them around unless you know exactly
15055 ## what you are doing...
15056 # Dependencies to place before and after the object being linked:
15057 predep_objects_CXX=
15058 postdep_objects_CXX=
15059 predeps_CXX=
15060 postdeps_CXX=
15061 compiler_lib_search_path_CXX=
15063 cat > conftest.$ac_ext <<_LT_EOF
15064 class Foo
15066 public:
15067 Foo (void) { a = 0; }
15068 private:
15069 int a;
15071 _LT_EOF
15073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15074 (eval $ac_compile) 2>&5
15075 ac_status=$?
15076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15077 test $ac_status = 0; }; then
15078 # Parse the compiler output and extract the necessary
15079 # objects, libraries and library flags.
15081 # Sentinel used to keep track of whether or not we are before
15082 # the conftest object file.
15083 pre_test_object_deps_done=no
15085 for p in `eval "$output_verbose_link_cmd"`; do
15086 case $p in
15088 -L* | -R* | -l*)
15089 # Some compilers place space between "-{L,R}" and the path.
15090 # Remove the space.
15091 if test $p = "-L" ||
15092 test $p = "-R"; then
15093 prev=$p
15094 continue
15095 else
15096 prev=
15099 if test "$pre_test_object_deps_done" = no; then
15100 case $p in
15101 -L* | -R*)
15102 # Internal compiler library paths should come after those
15103 # provided the user. The postdeps already come after the
15104 # user supplied libs so there is no need to process them.
15105 if test -z "$compiler_lib_search_path_CXX"; then
15106 compiler_lib_search_path_CXX="${prev}${p}"
15107 else
15108 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15111 # The "-l" case would never come before the object being
15112 # linked, so don't bother handling this case.
15113 esac
15114 else
15115 if test -z "$postdeps_CXX"; then
15116 postdeps_CXX="${prev}${p}"
15117 else
15118 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15123 *.$objext)
15124 # This assumes that the test object file only shows up
15125 # once in the compiler output.
15126 if test "$p" = "conftest.$objext"; then
15127 pre_test_object_deps_done=yes
15128 continue
15131 if test "$pre_test_object_deps_done" = no; then
15132 if test -z "$predep_objects_CXX"; then
15133 predep_objects_CXX="$p"
15134 else
15135 predep_objects_CXX="$predep_objects_CXX $p"
15137 else
15138 if test -z "$postdep_objects_CXX"; then
15139 postdep_objects_CXX="$p"
15140 else
15141 postdep_objects_CXX="$postdep_objects_CXX $p"
15146 *) ;; # Ignore the rest.
15148 esac
15149 done
15151 # Clean up.
15152 rm -f a.out a.exe
15153 else
15154 echo "libtool.m4: error: problem compiling CXX test program"
15157 $RM -f confest.$objext
15159 # PORTME: override above test on systems where it is broken
15160 case $host_os in
15161 interix[3-9]*)
15162 # Interix 3.5 installs completely hosed .la files for C++, so rather than
15163 # hack all around it, let's just trust "g++" to DTRT.
15164 predep_objects_CXX=
15165 postdep_objects_CXX=
15166 postdeps_CXX=
15169 linux*)
15170 case `$CC -V 2>&1 | sed 5q` in
15171 *Sun\ C*)
15172 # Sun C++ 5.9
15174 # The more standards-conforming stlport4 library is
15175 # incompatible with the Cstd library. Avoid specifying
15176 # it if it's in CXXFLAGS. Ignore libCrun as
15177 # -library=stlport4 depends on it.
15178 case " $CXX $CXXFLAGS " in
15179 *" -library=stlport4 "*)
15180 solaris_use_stlport4=yes
15182 esac
15184 if test "$solaris_use_stlport4" != yes; then
15185 postdeps_CXX='-library=Cstd -library=Crun'
15188 esac
15191 solaris*)
15192 case $cc_basename in
15193 CC*)
15194 # The more standards-conforming stlport4 library is
15195 # incompatible with the Cstd library. Avoid specifying
15196 # it if it's in CXXFLAGS. Ignore libCrun as
15197 # -library=stlport4 depends on it.
15198 case " $CXX $CXXFLAGS " in
15199 *" -library=stlport4 "*)
15200 solaris_use_stlport4=yes
15202 esac
15204 # Adding this requires a known-good setup of shared libraries for
15205 # Sun compiler versions before 5.6, else PIC objects from an old
15206 # archive will be linked into the output, leading to subtle bugs.
15207 if test "$solaris_use_stlport4" != yes; then
15208 postdeps_CXX='-library=Cstd -library=Crun'
15211 esac
15213 esac
15216 case " $postdeps_CXX " in
15217 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15218 esac
15219 compiler_lib_search_dirs_CXX=
15220 if test -n "${compiler_lib_search_path_CXX}"; then
15221 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15254 lt_prog_compiler_wl_CXX=
15255 lt_prog_compiler_pic_CXX=
15256 lt_prog_compiler_static_CXX=
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15259 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15261 # C++ specific cases for pic, static, wl, etc.
15262 if test "$GXX" = yes; then
15263 lt_prog_compiler_wl_CXX='-Wl,'
15264 lt_prog_compiler_static_CXX='-static'
15266 case $host_os in
15267 aix*)
15268 # All AIX code is PIC.
15269 if test "$host_cpu" = ia64; then
15270 # AIX 5 now supports IA64 processor
15271 lt_prog_compiler_static_CXX='-Bstatic'
15275 amigaos*)
15276 case $host_cpu in
15277 powerpc)
15278 # see comment about AmigaOS4 .so support
15279 lt_prog_compiler_pic_CXX='-fPIC'
15281 m68k)
15282 # FIXME: we need at least 68020 code to build shared libraries, but
15283 # adding the `-m68020' flag to GCC prevents building anything better,
15284 # like `-m68040'.
15285 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15287 esac
15290 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15291 # PIC is the default for these OSes.
15293 mingw* | cygwin* | os2* | pw32* | cegcc*)
15294 # This hack is so that the source file can tell whether it is being
15295 # built for inclusion in a dll (and should export symbols for example).
15296 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15297 # (--disable-auto-import) libraries
15298 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15300 darwin* | rhapsody*)
15301 # PIC is the default on this platform
15302 # Common symbols not allowed in MH_DYLIB files
15303 lt_prog_compiler_pic_CXX='-fno-common'
15305 *djgpp*)
15306 # DJGPP does not support shared libraries at all
15307 lt_prog_compiler_pic_CXX=
15309 haiku*)
15310 # PIC is the default for Haiku.
15311 # The "-static" flag exists, but is broken.
15312 lt_prog_compiler_static_CXX=
15314 interix[3-9]*)
15315 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15316 # Instead, we relocate shared libraries at runtime.
15318 sysv4*MP*)
15319 if test -d /usr/nec; then
15320 lt_prog_compiler_pic_CXX=-Kconform_pic
15323 hpux*)
15324 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15325 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15326 # sets the default TLS model and affects inlining.
15327 case $host_cpu in
15328 hppa*64*)
15331 lt_prog_compiler_pic_CXX='-fPIC'
15333 esac
15335 *qnx* | *nto*)
15336 # QNX uses GNU C++, but need to define -shared option too, otherwise
15337 # it will coredump.
15338 lt_prog_compiler_pic_CXX='-fPIC -shared'
15341 lt_prog_compiler_pic_CXX='-fPIC'
15343 esac
15344 else
15345 case $host_os in
15346 aix[4-9]*)
15347 # All AIX code is PIC.
15348 if test "$host_cpu" = ia64; then
15349 # AIX 5 now supports IA64 processor
15350 lt_prog_compiler_static_CXX='-Bstatic'
15351 else
15352 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15355 chorus*)
15356 case $cc_basename in
15357 cxch68*)
15358 # Green Hills C++ Compiler
15359 # _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"
15361 esac
15363 dgux*)
15364 case $cc_basename in
15365 ec++*)
15366 lt_prog_compiler_pic_CXX='-KPIC'
15368 ghcx*)
15369 # Green Hills C++ Compiler
15370 lt_prog_compiler_pic_CXX='-pic'
15374 esac
15376 freebsd* | dragonfly*)
15377 # FreeBSD uses GNU C++
15379 hpux9* | hpux10* | hpux11*)
15380 case $cc_basename in
15381 CC*)
15382 lt_prog_compiler_wl_CXX='-Wl,'
15383 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15384 if test "$host_cpu" != ia64; then
15385 lt_prog_compiler_pic_CXX='+Z'
15388 aCC*)
15389 lt_prog_compiler_wl_CXX='-Wl,'
15390 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15391 case $host_cpu in
15392 hppa*64*|ia64*)
15393 # +Z the default
15396 lt_prog_compiler_pic_CXX='+Z'
15398 esac
15402 esac
15404 interix*)
15405 # This is c89, which is MS Visual C++ (no shared libs)
15406 # Anyone wants to do a port?
15408 irix5* | irix6* | nonstopux*)
15409 case $cc_basename in
15410 CC*)
15411 lt_prog_compiler_wl_CXX='-Wl,'
15412 lt_prog_compiler_static_CXX='-non_shared'
15413 # CC pic flag -KPIC is the default.
15417 esac
15419 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15420 case $cc_basename in
15421 KCC*)
15422 # KAI C++ Compiler
15423 lt_prog_compiler_wl_CXX='--backend -Wl,'
15424 lt_prog_compiler_pic_CXX='-fPIC'
15426 ecpc* )
15427 # old Intel C++ for x86_64 which still supported -KPIC.
15428 lt_prog_compiler_wl_CXX='-Wl,'
15429 lt_prog_compiler_pic_CXX='-KPIC'
15430 lt_prog_compiler_static_CXX='-static'
15432 icpc* )
15433 # Intel C++, used to be incompatible with GCC.
15434 # ICC 10 doesn't accept -KPIC any more.
15435 lt_prog_compiler_wl_CXX='-Wl,'
15436 lt_prog_compiler_pic_CXX='-fPIC'
15437 lt_prog_compiler_static_CXX='-static'
15439 pgCC* | pgcpp*)
15440 # Portland Group C++ compiler
15441 lt_prog_compiler_wl_CXX='-Wl,'
15442 lt_prog_compiler_pic_CXX='-fpic'
15443 lt_prog_compiler_static_CXX='-Bstatic'
15445 cxx*)
15446 # Compaq C++
15447 # Make sure the PIC flag is empty. It appears that all Alpha
15448 # Linux and Compaq Tru64 Unix objects are PIC.
15449 lt_prog_compiler_pic_CXX=
15450 lt_prog_compiler_static_CXX='-non_shared'
15452 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15453 # IBM XL 8.0, 9.0 on PPC and BlueGene
15454 lt_prog_compiler_wl_CXX='-Wl,'
15455 lt_prog_compiler_pic_CXX='-qpic'
15456 lt_prog_compiler_static_CXX='-qstaticlink'
15459 case `$CC -V 2>&1 | sed 5q` in
15460 *Sun\ C*)
15461 # Sun C++ 5.9
15462 lt_prog_compiler_pic_CXX='-KPIC'
15463 lt_prog_compiler_static_CXX='-Bstatic'
15464 lt_prog_compiler_wl_CXX='-Qoption ld '
15466 esac
15468 esac
15470 lynxos*)
15472 m88k*)
15474 mvs*)
15475 case $cc_basename in
15476 cxx*)
15477 lt_prog_compiler_pic_CXX='-W c,exportall'
15481 esac
15483 netbsd*)
15485 *qnx* | *nto*)
15486 # QNX uses GNU C++, but need to define -shared option too, otherwise
15487 # it will coredump.
15488 lt_prog_compiler_pic_CXX='-fPIC -shared'
15490 osf3* | osf4* | osf5*)
15491 case $cc_basename in
15492 KCC*)
15493 lt_prog_compiler_wl_CXX='--backend -Wl,'
15495 RCC*)
15496 # Rational C++ 2.4.1
15497 lt_prog_compiler_pic_CXX='-pic'
15499 cxx*)
15500 # Digital/Compaq C++
15501 lt_prog_compiler_wl_CXX='-Wl,'
15502 # Make sure the PIC flag is empty. It appears that all Alpha
15503 # Linux and Compaq Tru64 Unix objects are PIC.
15504 lt_prog_compiler_pic_CXX=
15505 lt_prog_compiler_static_CXX='-non_shared'
15509 esac
15511 psos*)
15513 solaris*)
15514 case $cc_basename in
15515 CC*)
15516 # Sun C++ 4.2, 5.x and Centerline C++
15517 lt_prog_compiler_pic_CXX='-KPIC'
15518 lt_prog_compiler_static_CXX='-Bstatic'
15519 lt_prog_compiler_wl_CXX='-Qoption ld '
15521 gcx*)
15522 # Green Hills C++ Compiler
15523 lt_prog_compiler_pic_CXX='-PIC'
15527 esac
15529 sunos4*)
15530 case $cc_basename in
15531 CC*)
15532 # Sun C++ 4.x
15533 lt_prog_compiler_pic_CXX='-pic'
15534 lt_prog_compiler_static_CXX='-Bstatic'
15536 lcc*)
15537 # Lucid
15538 lt_prog_compiler_pic_CXX='-pic'
15542 esac
15544 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15545 case $cc_basename in
15546 CC*)
15547 lt_prog_compiler_wl_CXX='-Wl,'
15548 lt_prog_compiler_pic_CXX='-KPIC'
15549 lt_prog_compiler_static_CXX='-Bstatic'
15551 esac
15553 tandem*)
15554 case $cc_basename in
15555 NCC*)
15556 # NonStop-UX NCC 3.20
15557 lt_prog_compiler_pic_CXX='-KPIC'
15561 esac
15563 vxworks*)
15566 lt_prog_compiler_can_build_shared_CXX=no
15568 esac
15571 case $host_os in
15572 # For platforms which do not support PIC, -DPIC is meaningless:
15573 *djgpp*)
15574 lt_prog_compiler_pic_CXX=
15577 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15579 esac
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15581 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15586 # Check to make sure the PIC flag actually works.
15588 if test -n "$lt_prog_compiler_pic_CXX"; then
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15590 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15591 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15592 $as_echo_n "(cached) " >&6
15593 else
15594 lt_cv_prog_compiler_pic_works_CXX=no
15595 ac_outfile=conftest.$ac_objext
15596 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15597 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15598 # Insert the option either (1) after the last *FLAGS variable, or
15599 # (2) before a word containing "conftest.", or (3) at the end.
15600 # Note that $ac_compile itself does not contain backslashes and begins
15601 # with a dollar sign (not a hyphen), so the echo should work correctly.
15602 # The option is referenced via a variable to avoid confusing sed.
15603 lt_compile=`echo "$ac_compile" | $SED \
15604 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15605 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15606 -e 's:$: $lt_compiler_flag:'`
15607 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15608 (eval "$lt_compile" 2>conftest.err)
15609 ac_status=$?
15610 cat conftest.err >&5
15611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15612 if (exit $ac_status) && test -s "$ac_outfile"; then
15613 # The compiler can only warn and ignore the option if not recognized
15614 # So say no if there are warnings other than the usual output.
15615 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15616 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15617 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15618 lt_cv_prog_compiler_pic_works_CXX=yes
15621 $RM conftest*
15624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15625 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15627 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15628 case $lt_prog_compiler_pic_CXX in
15629 "" | " "*) ;;
15630 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15631 esac
15632 else
15633 lt_prog_compiler_pic_CXX=
15634 lt_prog_compiler_can_build_shared_CXX=no
15642 # Check to make sure the static flag actually works.
15644 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15646 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15647 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15648 $as_echo_n "(cached) " >&6
15649 else
15650 lt_cv_prog_compiler_static_works_CXX=no
15651 save_LDFLAGS="$LDFLAGS"
15652 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15653 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15654 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15655 # The linker can only warn and ignore the option if not recognized
15656 # So say no if there are warnings
15657 if test -s conftest.err; then
15658 # Append any errors to the config.log.
15659 cat conftest.err 1>&5
15660 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15661 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15662 if diff conftest.exp conftest.er2 >/dev/null; then
15663 lt_cv_prog_compiler_static_works_CXX=yes
15665 else
15666 lt_cv_prog_compiler_static_works_CXX=yes
15669 $RM -r conftest*
15670 LDFLAGS="$save_LDFLAGS"
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15674 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15676 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15678 else
15679 lt_prog_compiler_static_CXX=
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15686 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15687 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15688 $as_echo_n "(cached) " >&6
15689 else
15690 lt_cv_prog_compiler_c_o_CXX=no
15691 $RM -r conftest 2>/dev/null
15692 mkdir conftest
15693 cd conftest
15694 mkdir out
15695 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15697 lt_compiler_flag="-o out/conftest2.$ac_objext"
15698 # Insert the option either (1) after the last *FLAGS variable, or
15699 # (2) before a word containing "conftest.", or (3) at the end.
15700 # Note that $ac_compile itself does not contain backslashes and begins
15701 # with a dollar sign (not a hyphen), so the echo should work correctly.
15702 lt_compile=`echo "$ac_compile" | $SED \
15703 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15704 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15705 -e 's:$: $lt_compiler_flag:'`
15706 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15707 (eval "$lt_compile" 2>out/conftest.err)
15708 ac_status=$?
15709 cat out/conftest.err >&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15712 then
15713 # The compiler can only warn and ignore the option if not recognized
15714 # So say no if there are warnings
15715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15716 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15717 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15718 lt_cv_prog_compiler_c_o_CXX=yes
15721 chmod u+w . 2>&5
15722 $RM conftest*
15723 # SGI C++ compiler will create directory out/ii_files/ for
15724 # template instantiation
15725 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15726 $RM out/* && rmdir out
15727 cd ..
15728 $RM -r conftest
15729 $RM conftest*
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15733 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15738 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15739 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15740 $as_echo_n "(cached) " >&6
15741 else
15742 lt_cv_prog_compiler_c_o_CXX=no
15743 $RM -r conftest 2>/dev/null
15744 mkdir conftest
15745 cd conftest
15746 mkdir out
15747 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15749 lt_compiler_flag="-o out/conftest2.$ac_objext"
15750 # Insert the option either (1) after the last *FLAGS variable, or
15751 # (2) before a word containing "conftest.", or (3) at the end.
15752 # Note that $ac_compile itself does not contain backslashes and begins
15753 # with a dollar sign (not a hyphen), so the echo should work correctly.
15754 lt_compile=`echo "$ac_compile" | $SED \
15755 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15756 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15757 -e 's:$: $lt_compiler_flag:'`
15758 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15759 (eval "$lt_compile" 2>out/conftest.err)
15760 ac_status=$?
15761 cat out/conftest.err >&5
15762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15763 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15764 then
15765 # The compiler can only warn and ignore the option if not recognized
15766 # So say no if there are warnings
15767 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15768 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15769 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15770 lt_cv_prog_compiler_c_o_CXX=yes
15773 chmod u+w . 2>&5
15774 $RM conftest*
15775 # SGI C++ compiler will create directory out/ii_files/ for
15776 # template instantiation
15777 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15778 $RM out/* && rmdir out
15779 cd ..
15780 $RM -r conftest
15781 $RM conftest*
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15785 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15790 hard_links="nottested"
15791 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15792 # do not overwrite the value of need_locks provided by the user
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15794 $as_echo_n "checking if we can lock with hard links... " >&6; }
15795 hard_links=yes
15796 $RM conftest*
15797 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15798 touch conftest.a
15799 ln conftest.a conftest.b 2>&5 || hard_links=no
15800 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15802 $as_echo "$hard_links" >&6; }
15803 if test "$hard_links" = no; then
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15805 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15806 need_locks=warn
15808 else
15809 need_locks=no
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15815 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15817 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15818 case $host_os in
15819 aix[4-9]*)
15820 # If we're using GNU nm, then we don't want the "-C" option.
15821 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15822 # Also, AIX nm treats weak defined symbols like other global defined
15823 # symbols, whereas GNU nm marks them as "W".
15824 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15825 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'
15826 else
15827 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15830 pw32*)
15831 export_symbols_cmds_CXX="$ltdll_cmds"
15833 cygwin* | mingw* | cegcc*)
15834 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'
15837 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15839 esac
15840 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15843 $as_echo "$ld_shlibs_CXX" >&6; }
15844 test "$ld_shlibs_CXX" = no && can_build_shared=no
15846 with_gnu_ld_CXX=$with_gnu_ld
15854 # Do we need to explicitly link libc?
15856 case "x$archive_cmds_need_lc_CXX" in
15857 x|xyes)
15858 # Assume -lc should be added
15859 archive_cmds_need_lc_CXX=yes
15861 if test "$enable_shared" = yes && test "$GCC" = yes; then
15862 case $archive_cmds_CXX in
15863 *'~'*)
15864 # FIXME: we may have to deal with multi-command sequences.
15866 '$CC '*)
15867 # Test whether the compiler implicitly links with -lc since on some
15868 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15869 # to ld, don't add -lc before -lgcc.
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15871 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15872 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15873 $as_echo_n "(cached) " >&6
15874 else
15875 $RM conftest*
15876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15879 (eval $ac_compile) 2>&5
15880 ac_status=$?
15881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15882 test $ac_status = 0; } 2>conftest.err; then
15883 soname=conftest
15884 lib=conftest
15885 libobjs=conftest.$ac_objext
15886 deplibs=
15887 wl=$lt_prog_compiler_wl_CXX
15888 pic_flag=$lt_prog_compiler_pic_CXX
15889 compiler_flags=-v
15890 linker_flags=-v
15891 verstring=
15892 output_objdir=.
15893 libname=conftest
15894 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15895 allow_undefined_flag_CXX=
15896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15897 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15898 ac_status=$?
15899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15900 test $ac_status = 0; }
15901 then
15902 lt_cv_archive_cmds_need_lc_CXX=no
15903 else
15904 lt_cv_archive_cmds_need_lc_CXX=yes
15906 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15907 else
15908 cat conftest.err 1>&5
15910 $RM conftest*
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15914 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15915 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15917 esac
15920 esac
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15986 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15988 library_names_spec=
15989 libname_spec='lib$name'
15990 soname_spec=
15991 shrext_cmds=".so"
15992 postinstall_cmds=
15993 postuninstall_cmds=
15994 finish_cmds=
15995 finish_eval=
15996 shlibpath_var=
15997 shlibpath_overrides_runpath=unknown
15998 version_type=none
15999 dynamic_linker="$host_os ld.so"
16000 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16001 need_lib_prefix=unknown
16002 hardcode_into_libs=no
16004 # when you set need_version to no, make sure it does not cause -set_version
16005 # flags to be left without arguments
16006 need_version=unknown
16008 case $host_os in
16009 aix3*)
16010 version_type=linux
16011 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16012 shlibpath_var=LIBPATH
16014 # AIX 3 has no versioning support, so we append a major version to the name.
16015 soname_spec='${libname}${release}${shared_ext}$major'
16018 aix[4-9]*)
16019 version_type=linux
16020 need_lib_prefix=no
16021 need_version=no
16022 hardcode_into_libs=yes
16023 if test "$host_cpu" = ia64; then
16024 # AIX 5 supports IA64
16025 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16026 shlibpath_var=LD_LIBRARY_PATH
16027 else
16028 # With GCC up to 2.95.x, collect2 would create an import file
16029 # for dependence libraries. The import file would start with
16030 # the line `#! .'. This would cause the generated library to
16031 # depend on `.', always an invalid library. This was fixed in
16032 # development snapshots of GCC prior to 3.0.
16033 case $host_os in
16034 aix4 | aix4.[01] | aix4.[01].*)
16035 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16036 echo ' yes '
16037 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16039 else
16040 can_build_shared=no
16043 esac
16044 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16045 # soname into executable. Probably we can add versioning support to
16046 # collect2, so additional links can be useful in future.
16047 if test "$aix_use_runtimelinking" = yes; then
16048 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16049 # instead of lib<name>.a to let people know that these are not
16050 # typical AIX shared libraries.
16051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16052 else
16053 # We preserve .a as extension for shared libraries through AIX4.2
16054 # and later when we are not doing run time linking.
16055 library_names_spec='${libname}${release}.a $libname.a'
16056 soname_spec='${libname}${release}${shared_ext}$major'
16058 shlibpath_var=LIBPATH
16062 amigaos*)
16063 case $host_cpu in
16064 powerpc)
16065 # Since July 2007 AmigaOS4 officially supports .so libraries.
16066 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16069 m68k)
16070 library_names_spec='$libname.ixlibrary $libname.a'
16071 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16072 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'
16074 esac
16077 beos*)
16078 library_names_spec='${libname}${shared_ext}'
16079 dynamic_linker="$host_os ld.so"
16080 shlibpath_var=LIBRARY_PATH
16083 bsdi[45]*)
16084 version_type=linux
16085 need_version=no
16086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087 soname_spec='${libname}${release}${shared_ext}$major'
16088 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16089 shlibpath_var=LD_LIBRARY_PATH
16090 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16091 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16092 # the default ld.so.conf also contains /usr/contrib/lib and
16093 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16094 # libtool to hard-code these into programs
16097 cygwin* | mingw* | pw32* | cegcc*)
16098 version_type=windows
16099 shrext_cmds=".dll"
16100 need_version=no
16101 need_lib_prefix=no
16103 case $GCC,$host_os in
16104 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16105 library_names_spec='$libname.dll.a'
16106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16107 postinstall_cmds='base_file=`basename \${file}`~
16108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16109 dldir=$destdir/`dirname \$dlpath`~
16110 test -d \$dldir || mkdir -p \$dldir~
16111 $install_prog $dir/$dlname \$dldir/$dlname~
16112 chmod a+x \$dldir/$dlname~
16113 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16114 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16116 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16117 dlpath=$dir/\$dldll~
16118 $RM \$dlpath'
16119 shlibpath_overrides_runpath=yes
16121 case $host_os in
16122 cygwin*)
16123 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16124 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16127 mingw* | cegcc*)
16128 # MinGW DLLs use traditional 'lib' prefix
16129 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16131 pw32*)
16132 # pw32 DLLs use 'pw' prefix rather than 'lib'
16133 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16135 esac
16139 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16141 esac
16142 dynamic_linker='Win32 ld.exe'
16143 # FIXME: first we should search . and the directory the executable is in
16144 shlibpath_var=PATH
16147 darwin* | rhapsody*)
16148 dynamic_linker="$host_os dyld"
16149 version_type=darwin
16150 need_lib_prefix=no
16151 need_version=no
16152 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16153 soname_spec='${libname}${release}${major}$shared_ext'
16154 shlibpath_overrides_runpath=yes
16155 shlibpath_var=DYLD_LIBRARY_PATH
16156 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16158 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16161 dgux*)
16162 version_type=linux
16163 need_lib_prefix=no
16164 need_version=no
16165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16166 soname_spec='${libname}${release}${shared_ext}$major'
16167 shlibpath_var=LD_LIBRARY_PATH
16170 freebsd* | dragonfly*)
16171 # DragonFly does not have aout. When/if they implement a new
16172 # versioning mechanism, adjust this.
16173 if test -x /usr/bin/objformat; then
16174 objformat=`/usr/bin/objformat`
16175 else
16176 case $host_os in
16177 freebsd[123]*) objformat=aout ;;
16178 *) objformat=elf ;;
16179 esac
16181 version_type=freebsd-$objformat
16182 case $version_type in
16183 freebsd-elf*)
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16185 need_version=no
16186 need_lib_prefix=no
16188 freebsd-*)
16189 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16190 need_version=yes
16192 esac
16193 shlibpath_var=LD_LIBRARY_PATH
16194 case $host_os in
16195 freebsd2*)
16196 shlibpath_overrides_runpath=yes
16198 freebsd3.[01]* | freebsdelf3.[01]*)
16199 shlibpath_overrides_runpath=yes
16200 hardcode_into_libs=yes
16202 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16203 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16204 shlibpath_overrides_runpath=no
16205 hardcode_into_libs=yes
16207 *) # from 4.6 on, and DragonFly
16208 shlibpath_overrides_runpath=yes
16209 hardcode_into_libs=yes
16211 esac
16214 gnu*)
16215 version_type=linux
16216 need_lib_prefix=no
16217 need_version=no
16218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16219 soname_spec='${libname}${release}${shared_ext}$major'
16220 shlibpath_var=LD_LIBRARY_PATH
16221 hardcode_into_libs=yes
16224 haiku*)
16225 version_type=linux
16226 need_lib_prefix=no
16227 need_version=no
16228 dynamic_linker="$host_os runtime_loader"
16229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16230 soname_spec='${libname}${release}${shared_ext}$major'
16231 shlibpath_var=LIBRARY_PATH
16232 shlibpath_overrides_runpath=yes
16233 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16234 hardcode_into_libs=yes
16237 hpux9* | hpux10* | hpux11*)
16238 # Give a soname corresponding to the major version so that dld.sl refuses to
16239 # link against other versions.
16240 version_type=sunos
16241 need_lib_prefix=no
16242 need_version=no
16243 case $host_cpu in
16244 ia64*)
16245 shrext_cmds='.so'
16246 hardcode_into_libs=yes
16247 dynamic_linker="$host_os dld.so"
16248 shlibpath_var=LD_LIBRARY_PATH
16249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16251 soname_spec='${libname}${release}${shared_ext}$major'
16252 if test "X$HPUX_IA64_MODE" = X32; then
16253 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16254 else
16255 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16257 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16259 hppa*64*)
16260 shrext_cmds='.sl'
16261 hardcode_into_libs=yes
16262 dynamic_linker="$host_os dld.sl"
16263 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16264 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16266 soname_spec='${libname}${release}${shared_ext}$major'
16267 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16271 shrext_cmds='.sl'
16272 dynamic_linker="$host_os dld.sl"
16273 shlibpath_var=SHLIB_PATH
16274 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16276 soname_spec='${libname}${release}${shared_ext}$major'
16278 esac
16279 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16280 postinstall_cmds='chmod 555 $lib'
16281 # or fails outright, so override atomically:
16282 install_override_mode=555
16285 interix[3-9]*)
16286 version_type=linux
16287 need_lib_prefix=no
16288 need_version=no
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16290 soname_spec='${libname}${release}${shared_ext}$major'
16291 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16292 shlibpath_var=LD_LIBRARY_PATH
16293 shlibpath_overrides_runpath=no
16294 hardcode_into_libs=yes
16297 irix5* | irix6* | nonstopux*)
16298 case $host_os in
16299 nonstopux*) version_type=nonstopux ;;
16301 if test "$lt_cv_prog_gnu_ld" = yes; then
16302 version_type=linux
16303 else
16304 version_type=irix
16305 fi ;;
16306 esac
16307 need_lib_prefix=no
16308 need_version=no
16309 soname_spec='${libname}${release}${shared_ext}$major'
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16311 case $host_os in
16312 irix5* | nonstopux*)
16313 libsuff= shlibsuff=
16316 case $LD in # libtool.m4 will add one of these switches to LD
16317 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16318 libsuff= shlibsuff= libmagic=32-bit;;
16319 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16320 libsuff=32 shlibsuff=N32 libmagic=N32;;
16321 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16322 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16323 *) libsuff= shlibsuff= libmagic=never-match;;
16324 esac
16326 esac
16327 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16328 shlibpath_overrides_runpath=no
16329 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16330 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16331 hardcode_into_libs=yes
16334 # No shared lib support for Linux oldld, aout, or coff.
16335 linux*oldld* | linux*aout* | linux*coff*)
16336 dynamic_linker=no
16339 # This must be Linux ELF.
16340 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16341 version_type=linux
16342 need_lib_prefix=no
16343 need_version=no
16344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16345 soname_spec='${libname}${release}${shared_ext}$major'
16346 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16347 shlibpath_var=LD_LIBRARY_PATH
16348 shlibpath_overrides_runpath=no
16350 # Some binutils ld are patched to set DT_RUNPATH
16351 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16352 $as_echo_n "(cached) " >&6
16353 else
16354 lt_cv_shlibpath_overrides_runpath=no
16355 save_LDFLAGS=$LDFLAGS
16356 save_libdir=$libdir
16357 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16358 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16359 if test x$gcc_no_link = xyes; then
16360 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16363 /* end confdefs.h. */
16366 main ()
16370 return 0;
16372 _ACEOF
16373 if ac_fn_cxx_try_link "$LINENO"; then :
16374 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16375 lt_cv_shlibpath_overrides_runpath=yes
16378 rm -f core conftest.err conftest.$ac_objext \
16379 conftest$ac_exeext conftest.$ac_ext
16380 LDFLAGS=$save_LDFLAGS
16381 libdir=$save_libdir
16385 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16387 # This implies no fast_install, which is unacceptable.
16388 # Some rework will be needed to allow for fast_install
16389 # before this can be enabled.
16390 hardcode_into_libs=yes
16392 # Append ld.so.conf contents to the search path
16393 if test -f /etc/ld.so.conf; then
16394 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16395 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16398 # We used to test for /lib/ld.so.1 and disable shared libraries on
16399 # powerpc, because MkLinux only supported shared libraries with the
16400 # GNU dynamic linker. Since this was broken with cross compilers,
16401 # most powerpc-linux boxes support dynamic linking these days and
16402 # people can always --disable-shared, the test was removed, and we
16403 # assume the GNU/Linux dynamic linker is in use.
16404 dynamic_linker='GNU/Linux ld.so'
16407 netbsd*)
16408 version_type=sunos
16409 need_lib_prefix=no
16410 need_version=no
16411 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16413 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16414 dynamic_linker='NetBSD (a.out) ld.so'
16415 else
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 dynamic_linker='NetBSD ld.elf_so'
16420 shlibpath_var=LD_LIBRARY_PATH
16421 shlibpath_overrides_runpath=yes
16422 hardcode_into_libs=yes
16425 newsos6)
16426 version_type=linux
16427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16428 shlibpath_var=LD_LIBRARY_PATH
16429 shlibpath_overrides_runpath=yes
16432 *nto* | *qnx*)
16433 version_type=qnx
16434 need_lib_prefix=no
16435 need_version=no
16436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16437 soname_spec='${libname}${release}${shared_ext}$major'
16438 shlibpath_var=LD_LIBRARY_PATH
16439 shlibpath_overrides_runpath=no
16440 hardcode_into_libs=yes
16441 dynamic_linker='ldqnx.so'
16444 openbsd*)
16445 version_type=sunos
16446 sys_lib_dlsearch_path_spec="/usr/lib"
16447 need_lib_prefix=no
16448 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16449 case $host_os in
16450 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16451 *) need_version=no ;;
16452 esac
16453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16454 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16455 shlibpath_var=LD_LIBRARY_PATH
16456 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16457 case $host_os in
16458 openbsd2.[89] | openbsd2.[89].*)
16459 shlibpath_overrides_runpath=no
16462 shlibpath_overrides_runpath=yes
16464 esac
16465 else
16466 shlibpath_overrides_runpath=yes
16470 os2*)
16471 libname_spec='$name'
16472 shrext_cmds=".dll"
16473 need_lib_prefix=no
16474 library_names_spec='$libname${shared_ext} $libname.a'
16475 dynamic_linker='OS/2 ld.exe'
16476 shlibpath_var=LIBPATH
16479 osf3* | osf4* | osf5*)
16480 version_type=osf
16481 need_lib_prefix=no
16482 need_version=no
16483 soname_spec='${libname}${release}${shared_ext}$major'
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16485 shlibpath_var=LD_LIBRARY_PATH
16486 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16487 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16490 rdos*)
16491 dynamic_linker=no
16494 solaris*)
16495 version_type=linux
16496 need_lib_prefix=no
16497 need_version=no
16498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16499 soname_spec='${libname}${release}${shared_ext}$major'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 shlibpath_overrides_runpath=yes
16502 hardcode_into_libs=yes
16503 # ldd complains unless libraries are executable
16504 postinstall_cmds='chmod +x $lib'
16507 sunos4*)
16508 version_type=sunos
16509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16510 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16511 shlibpath_var=LD_LIBRARY_PATH
16512 shlibpath_overrides_runpath=yes
16513 if test "$with_gnu_ld" = yes; then
16514 need_lib_prefix=no
16516 need_version=yes
16519 sysv4 | sysv4.3*)
16520 version_type=linux
16521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16522 soname_spec='${libname}${release}${shared_ext}$major'
16523 shlibpath_var=LD_LIBRARY_PATH
16524 case $host_vendor in
16525 sni)
16526 shlibpath_overrides_runpath=no
16527 need_lib_prefix=no
16528 runpath_var=LD_RUN_PATH
16530 siemens)
16531 need_lib_prefix=no
16533 motorola)
16534 need_lib_prefix=no
16535 need_version=no
16536 shlibpath_overrides_runpath=no
16537 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16539 esac
16542 sysv4*MP*)
16543 if test -d /usr/nec ;then
16544 version_type=linux
16545 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16546 soname_spec='$libname${shared_ext}.$major'
16547 shlibpath_var=LD_LIBRARY_PATH
16551 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16552 version_type=freebsd-elf
16553 need_lib_prefix=no
16554 need_version=no
16555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16556 soname_spec='${libname}${release}${shared_ext}$major'
16557 shlibpath_var=LD_LIBRARY_PATH
16558 shlibpath_overrides_runpath=yes
16559 hardcode_into_libs=yes
16560 if test "$with_gnu_ld" = yes; then
16561 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16562 else
16563 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16564 case $host_os in
16565 sco3.2v5*)
16566 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16568 esac
16570 sys_lib_dlsearch_path_spec='/usr/lib'
16573 tpf*)
16574 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16575 version_type=linux
16576 need_lib_prefix=no
16577 need_version=no
16578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579 shlibpath_var=LD_LIBRARY_PATH
16580 shlibpath_overrides_runpath=no
16581 hardcode_into_libs=yes
16584 uts4*)
16585 version_type=linux
16586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16587 soname_spec='${libname}${release}${shared_ext}$major'
16588 shlibpath_var=LD_LIBRARY_PATH
16592 dynamic_linker=no
16594 esac
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16596 $as_echo "$dynamic_linker" >&6; }
16597 test "$dynamic_linker" = no && can_build_shared=no
16599 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16600 if test "$GCC" = yes; then
16601 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16604 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16605 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16607 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16608 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16649 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16650 hardcode_action_CXX=
16651 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16652 test -n "$runpath_var_CXX" ||
16653 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16655 # We can hardcode non-existent directories.
16656 if test "$hardcode_direct_CXX" != no &&
16657 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16658 # have to relink, otherwise we might link with an installed library
16659 # when we should be linking with a yet-to-be-installed one
16660 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16661 test "$hardcode_minus_L_CXX" != no; then
16662 # Linking always hardcodes the temporary library directory.
16663 hardcode_action_CXX=relink
16664 else
16665 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16666 hardcode_action_CXX=immediate
16668 else
16669 # We cannot hardcode anything, or else we can only hardcode existing
16670 # directories.
16671 hardcode_action_CXX=unsupported
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16674 $as_echo "$hardcode_action_CXX" >&6; }
16676 if test "$hardcode_action_CXX" = relink ||
16677 test "$inherit_rpath_CXX" = yes; then
16678 # Fast installation is not supported
16679 enable_fast_install=no
16680 elif test "$shlibpath_overrides_runpath" = yes ||
16681 test "$enable_shared" = no; then
16682 # Fast installation is not necessary
16683 enable_fast_install=needless
16692 fi # test -n "$compiler"
16694 CC=$lt_save_CC
16695 LDCXX=$LD
16696 LD=$lt_save_LD
16697 GCC=$lt_save_GCC
16698 with_gnu_ld=$lt_save_with_gnu_ld
16699 lt_cv_path_LDCXX=$lt_cv_path_LD
16700 lt_cv_path_LD=$lt_save_path_LD
16701 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16702 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16703 fi # test "$_lt_caught_CXX_error" != yes
16705 ac_ext=c
16706 ac_cpp='$CPP $CPPFLAGS'
16707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16723 ac_config_commands="$ac_config_commands libtool"
16728 # Only expand once:
16734 case $host in
16735 *-cygwin* | *-mingw*)
16736 # 'host' will be top-level target in the case of a target lib,
16737 # we must compare to with_cross_host to decide if this is a native
16738 # or cross-compiler and select where to install dlls appropriately.
16739 if test -n "$with_cross_host" &&
16740 test x"$with_cross_host" != x"no"; then
16741 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
16742 else
16743 lt_host_flags='-no-undefined -bindir "$(bindir)"';
16747 lt_host_flags=
16749 esac
16754 if test -n "$ac_tool_prefix"; then
16755 for ac_prog in gcj
16757 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16758 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16760 $as_echo_n "checking for $ac_word... " >&6; }
16761 if test "${ac_cv_prog_GCJ+set}" = set; then :
16762 $as_echo_n "(cached) " >&6
16763 else
16764 if test -n "$GCJ"; then
16765 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16766 else
16767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16768 for as_dir in $PATH
16770 IFS=$as_save_IFS
16771 test -z "$as_dir" && as_dir=.
16772 for ac_exec_ext in '' $ac_executable_extensions; do
16773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16774 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16776 break 2
16778 done
16779 done
16780 IFS=$as_save_IFS
16784 GCJ=$ac_cv_prog_GCJ
16785 if test -n "$GCJ"; then
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16787 $as_echo "$GCJ" >&6; }
16788 else
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16790 $as_echo "no" >&6; }
16794 test -n "$GCJ" && break
16795 done
16797 if test -z "$GCJ"; then
16798 ac_ct_GCJ=$GCJ
16799 for ac_prog in gcj
16801 # Extract the first word of "$ac_prog", so it can be a program name with args.
16802 set dummy $ac_prog; ac_word=$2
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16804 $as_echo_n "checking for $ac_word... " >&6; }
16805 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16806 $as_echo_n "(cached) " >&6
16807 else
16808 if test -n "$ac_ct_GCJ"; then
16809 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16810 else
16811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16812 for as_dir in $PATH
16814 IFS=$as_save_IFS
16815 test -z "$as_dir" && as_dir=.
16816 for ac_exec_ext in '' $ac_executable_extensions; do
16817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16818 ac_cv_prog_ac_ct_GCJ="$ac_prog"
16819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16820 break 2
16822 done
16823 done
16824 IFS=$as_save_IFS
16828 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16829 if test -n "$ac_ct_GCJ"; then
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16831 $as_echo "$ac_ct_GCJ" >&6; }
16832 else
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16834 $as_echo "no" >&6; }
16838 test -n "$ac_ct_GCJ" && break
16839 done
16841 if test "x$ac_ct_GCJ" = x; then
16842 GCJ="gcj"
16843 else
16844 case $cross_compiling:$ac_tool_warned in
16845 yes:)
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16847 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16848 ac_tool_warned=yes ;;
16849 esac
16850 GCJ=$ac_ct_GCJ
16854 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16855 if test "x${GCJFLAGS-unset}" = xunset; then
16856 GCJFLAGS="-g -O2"
16860 depcc="$GCJ" am_compiler_list='gcc3 gcc'
16862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16863 $as_echo_n "checking dependency style of $depcc... " >&6; }
16864 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16865 $as_echo_n "(cached) " >&6
16866 else
16867 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16868 # We make a subdir and do the tests there. Otherwise we can end up
16869 # making bogus files that we don't know about and never remove. For
16870 # instance it was reported that on HP-UX the gcc test will end up
16871 # making a dummy file named `D' -- because `-MD' means `put the output
16872 # in D'.
16873 mkdir conftest.dir
16874 # Copy depcomp to subdir because otherwise we won't find it if we're
16875 # using a relative directory.
16876 cp "$am_depcomp" conftest.dir
16877 cd conftest.dir
16878 # We will build objects and dependencies in a subdirectory because
16879 # it helps to detect inapplicable dependency modes. For instance
16880 # both Tru64's cc and ICC support -MD to output dependencies as a
16881 # side effect of compilation, but ICC will put the dependencies in
16882 # the current directory while Tru64 will put them in the object
16883 # directory.
16884 mkdir sub
16886 am_cv_GCJ_dependencies_compiler_type=none
16887 if test "$am_compiler_list" = ""; then
16888 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16890 am__universal=false
16893 for depmode in $am_compiler_list; do
16894 # Setup a source with many dependencies, because some compilers
16895 # like to wrap large dependency lists on column 80 (with \), and
16896 # we should not choose a depcomp mode which is confused by this.
16898 # We need to recreate these files for each test, as the compiler may
16899 # overwrite some of them when testing with obscure command lines.
16900 # This happens at least with the AIX C compiler.
16901 : > sub/conftest.c
16902 for i in 1 2 3 4 5 6; do
16903 echo '#include "conftst'$i'.h"' >> sub/conftest.c
16904 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16905 # Solaris 8's {/usr,}/bin/sh.
16906 touch sub/conftst$i.h
16907 done
16908 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16910 # We check with `-c' and `-o' for the sake of the "dashmstdout"
16911 # mode. It turns out that the SunPro C++ compiler does not properly
16912 # handle `-M -o', and we need to detect this. Also, some Intel
16913 # versions had trouble with output in subdirs
16914 am__obj=sub/conftest.${OBJEXT-o}
16915 am__minus_obj="-o $am__obj"
16916 case $depmode in
16917 gcc)
16918 # This depmode causes a compiler race in universal mode.
16919 test "$am__universal" = false || continue
16921 nosideeffect)
16922 # after this tag, mechanisms are not by side-effect, so they'll
16923 # only be used when explicitly requested
16924 if test "x$enable_dependency_tracking" = xyes; then
16925 continue
16926 else
16927 break
16930 msvisualcpp | msvcmsys)
16931 # This compiler won't grok `-c -o', but also, the minuso test has
16932 # not run yet. These depmodes are late enough in the game, and
16933 # so weak that their functioning should not be impacted.
16934 am__obj=conftest.${OBJEXT-o}
16935 am__minus_obj=
16937 none) break ;;
16938 esac
16939 if depmode=$depmode \
16940 source=sub/conftest.c object=$am__obj \
16941 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16942 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16943 >/dev/null 2>conftest.err &&
16944 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16945 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16946 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16947 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16948 # icc doesn't choke on unknown options, it will just issue warnings
16949 # or remarks (even with -Werror). So we grep stderr for any message
16950 # that says an option was ignored or not supported.
16951 # When given -MP, icc 7.0 and 7.1 complain thusly:
16952 # icc: Command line warning: ignoring option '-M'; no argument required
16953 # The diagnosis changed in icc 8.0:
16954 # icc: Command line remark: option '-MP' not supported
16955 if (grep 'ignoring option' conftest.err ||
16956 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16957 am_cv_GCJ_dependencies_compiler_type=$depmode
16958 break
16961 done
16963 cd ..
16964 rm -rf conftest.dir
16965 else
16966 am_cv_GCJ_dependencies_compiler_type=none
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16971 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16972 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16975 test "x$enable_dependency_tracking" != xno \
16976 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16977 am__fastdepGCJ_TRUE=
16978 am__fastdepGCJ_FALSE='#'
16979 else
16980 am__fastdepGCJ_TRUE='#'
16981 am__fastdepGCJ_FALSE=
16986 if test -n "$ac_tool_prefix"; then
16987 for ac_prog in gcj
16989 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16990 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16992 $as_echo_n "checking for $ac_word... " >&6; }
16993 if test "${ac_cv_prog_GCJ+set}" = set; then :
16994 $as_echo_n "(cached) " >&6
16995 else
16996 if test -n "$GCJ"; then
16997 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16998 else
16999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17000 for as_dir in $PATH
17002 IFS=$as_save_IFS
17003 test -z "$as_dir" && as_dir=.
17004 for ac_exec_ext in '' $ac_executable_extensions; do
17005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17006 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
17007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17008 break 2
17010 done
17011 done
17012 IFS=$as_save_IFS
17016 GCJ=$ac_cv_prog_GCJ
17017 if test -n "$GCJ"; then
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
17019 $as_echo "$GCJ" >&6; }
17020 else
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17022 $as_echo "no" >&6; }
17026 test -n "$GCJ" && break
17027 done
17029 if test -z "$GCJ"; then
17030 ac_ct_GCJ=$GCJ
17031 for ac_prog in gcj
17033 # Extract the first word of "$ac_prog", so it can be a program name with args.
17034 set dummy $ac_prog; ac_word=$2
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17036 $as_echo_n "checking for $ac_word... " >&6; }
17037 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17038 $as_echo_n "(cached) " >&6
17039 else
17040 if test -n "$ac_ct_GCJ"; then
17041 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17042 else
17043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17044 for as_dir in $PATH
17046 IFS=$as_save_IFS
17047 test -z "$as_dir" && as_dir=.
17048 for ac_exec_ext in '' $ac_executable_extensions; do
17049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17050 ac_cv_prog_ac_ct_GCJ="$ac_prog"
17051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17052 break 2
17054 done
17055 done
17056 IFS=$as_save_IFS
17060 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17061 if test -n "$ac_ct_GCJ"; then
17062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17063 $as_echo "$ac_ct_GCJ" >&6; }
17064 else
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17066 $as_echo "no" >&6; }
17070 test -n "$ac_ct_GCJ" && break
17071 done
17073 if test "x$ac_ct_GCJ" = x; then
17074 GCJ="gcj"
17075 else
17076 case $cross_compiling:$ac_tool_warned in
17077 yes:)
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17080 ac_tool_warned=yes ;;
17081 esac
17082 GCJ=$ac_ct_GCJ
17086 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17087 if test "x${GCJFLAGS-unset}" = xunset; then
17088 GCJFLAGS="-g -O2"
17092 depcc="$GCJ" am_compiler_list='gcc3 gcc'
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17095 $as_echo_n "checking dependency style of $depcc... " >&6; }
17096 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17097 $as_echo_n "(cached) " >&6
17098 else
17099 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17100 # We make a subdir and do the tests there. Otherwise we can end up
17101 # making bogus files that we don't know about and never remove. For
17102 # instance it was reported that on HP-UX the gcc test will end up
17103 # making a dummy file named `D' -- because `-MD' means `put the output
17104 # in D'.
17105 mkdir conftest.dir
17106 # Copy depcomp to subdir because otherwise we won't find it if we're
17107 # using a relative directory.
17108 cp "$am_depcomp" conftest.dir
17109 cd conftest.dir
17110 # We will build objects and dependencies in a subdirectory because
17111 # it helps to detect inapplicable dependency modes. For instance
17112 # both Tru64's cc and ICC support -MD to output dependencies as a
17113 # side effect of compilation, but ICC will put the dependencies in
17114 # the current directory while Tru64 will put them in the object
17115 # directory.
17116 mkdir sub
17118 am_cv_GCJ_dependencies_compiler_type=none
17119 if test "$am_compiler_list" = ""; then
17120 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17122 am__universal=false
17125 for depmode in $am_compiler_list; do
17126 # Setup a source with many dependencies, because some compilers
17127 # like to wrap large dependency lists on column 80 (with \), and
17128 # we should not choose a depcomp mode which is confused by this.
17130 # We need to recreate these files for each test, as the compiler may
17131 # overwrite some of them when testing with obscure command lines.
17132 # This happens at least with the AIX C compiler.
17133 : > sub/conftest.c
17134 for i in 1 2 3 4 5 6; do
17135 echo '#include "conftst'$i'.h"' >> sub/conftest.c
17136 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17137 # Solaris 8's {/usr,}/bin/sh.
17138 touch sub/conftst$i.h
17139 done
17140 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17142 # We check with `-c' and `-o' for the sake of the "dashmstdout"
17143 # mode. It turns out that the SunPro C++ compiler does not properly
17144 # handle `-M -o', and we need to detect this. Also, some Intel
17145 # versions had trouble with output in subdirs
17146 am__obj=sub/conftest.${OBJEXT-o}
17147 am__minus_obj="-o $am__obj"
17148 case $depmode in
17149 gcc)
17150 # This depmode causes a compiler race in universal mode.
17151 test "$am__universal" = false || continue
17153 nosideeffect)
17154 # after this tag, mechanisms are not by side-effect, so they'll
17155 # only be used when explicitly requested
17156 if test "x$enable_dependency_tracking" = xyes; then
17157 continue
17158 else
17159 break
17162 msvisualcpp | msvcmsys)
17163 # This compiler won't grok `-c -o', but also, the minuso test has
17164 # not run yet. These depmodes are late enough in the game, and
17165 # so weak that their functioning should not be impacted.
17166 am__obj=conftest.${OBJEXT-o}
17167 am__minus_obj=
17169 none) break ;;
17170 esac
17171 if depmode=$depmode \
17172 source=sub/conftest.c object=$am__obj \
17173 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17174 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17175 >/dev/null 2>conftest.err &&
17176 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17177 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17178 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17179 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17180 # icc doesn't choke on unknown options, it will just issue warnings
17181 # or remarks (even with -Werror). So we grep stderr for any message
17182 # that says an option was ignored or not supported.
17183 # When given -MP, icc 7.0 and 7.1 complain thusly:
17184 # icc: Command line warning: ignoring option '-M'; no argument required
17185 # The diagnosis changed in icc 8.0:
17186 # icc: Command line remark: option '-MP' not supported
17187 if (grep 'ignoring option' conftest.err ||
17188 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17189 am_cv_GCJ_dependencies_compiler_type=$depmode
17190 break
17193 done
17195 cd ..
17196 rm -rf conftest.dir
17197 else
17198 am_cv_GCJ_dependencies_compiler_type=none
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17203 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17204 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17207 test "x$enable_dependency_tracking" != xno \
17208 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17209 am__fastdepGCJ_TRUE=
17210 am__fastdepGCJ_FALSE='#'
17211 else
17212 am__fastdepGCJ_TRUE='#'
17213 am__fastdepGCJ_FALSE=
17220 # Source file extension for Java test sources.
17221 ac_ext=c
17223 # Object file extension for compiled Java test sources.
17224 objext=o
17225 objext_GCJ=$objext
17227 # Code to be used in simple compile tests
17228 lt_simple_compile_test_code="int some_variable = 0;"
17230 # Code to be used in simple link tests
17231 lt_simple_link_test_code='int main(){return(0);}'
17233 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17240 # If no C compiler was specified, use CC.
17241 LTCC=${LTCC-"$CC"}
17243 # If no C compiler flags were specified, use CFLAGS.
17244 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17246 # Allow CC to be a program name with arguments.
17247 compiler=$CC
17250 # save warnings/boilerplate of simple test code
17251 ac_outfile=conftest.$ac_objext
17252 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17253 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17254 _lt_compiler_boilerplate=`cat conftest.err`
17255 $RM conftest*
17257 ac_outfile=conftest.$ac_objext
17258 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17259 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17260 _lt_linker_boilerplate=`cat conftest.err`
17261 $RM -r conftest*
17264 # Allow CC to be a program name with arguments.
17265 GCC=yes
17266 compiler=$CC
17267 compiler_GCJ=$CC
17268 for cc_temp in $compiler""; do
17269 case $cc_temp in
17270 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17271 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17272 \-*) ;;
17273 *) break;;
17274 esac
17275 done
17276 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17279 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17280 archive_cmds_need_lc_GCJ=no
17282 old_archive_cmds_GCJ=$old_archive_cmds
17284 ## CAVEAT EMPTOR:
17285 ## There is no encapsulation within the following macros, do not change
17286 ## the running order or otherwise move them around unless you know exactly
17287 ## what you are doing...
17288 if test -n "$compiler"; then
17290 lt_prog_compiler_no_builtin_flag_GCJ=
17292 if test "$GCC" = yes; then
17293 case $cc_basename in
17294 nvcc*)
17295 lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17297 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17298 esac
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17301 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17302 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17303 $as_echo_n "(cached) " >&6
17304 else
17305 lt_cv_prog_compiler_rtti_exceptions=no
17306 ac_outfile=conftest.$ac_objext
17307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17308 lt_compiler_flag="-fno-rtti -fno-exceptions"
17309 # Insert the option either (1) after the last *FLAGS variable, or
17310 # (2) before a word containing "conftest.", or (3) at the end.
17311 # Note that $ac_compile itself does not contain backslashes and begins
17312 # with a dollar sign (not a hyphen), so the echo should work correctly.
17313 # The option is referenced via a variable to avoid confusing sed.
17314 lt_compile=`echo "$ac_compile" | $SED \
17315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17317 -e 's:$: $lt_compiler_flag:'`
17318 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17319 (eval "$lt_compile" 2>conftest.err)
17320 ac_status=$?
17321 cat conftest.err >&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 if (exit $ac_status) && test -s "$ac_outfile"; then
17324 # The compiler can only warn and ignore the option if not recognized
17325 # So say no if there are warnings other than the usual output.
17326 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17328 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17329 lt_cv_prog_compiler_rtti_exceptions=yes
17332 $RM conftest*
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17336 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17338 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17339 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17340 else
17348 lt_prog_compiler_wl_GCJ=
17349 lt_prog_compiler_pic_GCJ=
17350 lt_prog_compiler_static_GCJ=
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17353 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17355 if test "$GCC" = yes; then
17356 lt_prog_compiler_wl_GCJ='-Wl,'
17357 lt_prog_compiler_static_GCJ='-static'
17359 case $host_os in
17360 aix*)
17361 # All AIX code is PIC.
17362 if test "$host_cpu" = ia64; then
17363 # AIX 5 now supports IA64 processor
17364 lt_prog_compiler_static_GCJ='-Bstatic'
17368 amigaos*)
17369 case $host_cpu in
17370 powerpc)
17371 # see comment about AmigaOS4 .so support
17372 lt_prog_compiler_pic_GCJ='-fPIC'
17374 m68k)
17375 # FIXME: we need at least 68020 code to build shared libraries, but
17376 # adding the `-m68020' flag to GCC prevents building anything better,
17377 # like `-m68040'.
17378 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17380 esac
17383 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17384 # PIC is the default for these OSes.
17387 mingw* | cygwin* | pw32* | os2* | cegcc*)
17388 # This hack is so that the source file can tell whether it is being
17389 # built for inclusion in a dll (and should export symbols for example).
17390 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17391 # (--disable-auto-import) libraries
17395 darwin* | rhapsody*)
17396 # PIC is the default on this platform
17397 # Common symbols not allowed in MH_DYLIB files
17398 lt_prog_compiler_pic_GCJ='-fno-common'
17401 haiku*)
17402 # PIC is the default for Haiku.
17403 # The "-static" flag exists, but is broken.
17404 lt_prog_compiler_static_GCJ=
17407 hpux*)
17408 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17409 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17410 # sets the default TLS model and affects inlining.
17411 case $host_cpu in
17412 hppa*64*)
17413 # +Z the default
17416 lt_prog_compiler_pic_GCJ='-fPIC'
17418 esac
17421 interix[3-9]*)
17422 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17423 # Instead, we relocate shared libraries at runtime.
17426 msdosdjgpp*)
17427 # Just because we use GCC doesn't mean we suddenly get shared libraries
17428 # on systems that don't support them.
17429 lt_prog_compiler_can_build_shared_GCJ=no
17430 enable_shared=no
17433 *nto* | *qnx*)
17434 # QNX uses GNU C++, but need to define -shared option too, otherwise
17435 # it will coredump.
17436 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17439 sysv4*MP*)
17440 if test -d /usr/nec; then
17441 lt_prog_compiler_pic_GCJ=-Kconform_pic
17446 lt_prog_compiler_pic_GCJ='-fPIC'
17448 esac
17450 case $cc_basename in
17451 nvcc*) # Cuda Compiler Driver 2.2
17452 lt_prog_compiler_wl_GCJ='-Xlinker '
17453 lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17455 esac
17456 else
17457 # PORTME Check for flag to pass linker flags through the system compiler.
17458 case $host_os in
17459 aix*)
17460 lt_prog_compiler_wl_GCJ='-Wl,'
17461 if test "$host_cpu" = ia64; then
17462 # AIX 5 now supports IA64 processor
17463 lt_prog_compiler_static_GCJ='-Bstatic'
17464 else
17465 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17469 mingw* | cygwin* | pw32* | os2* | cegcc*)
17470 # This hack is so that the source file can tell whether it is being
17471 # built for inclusion in a dll (and should export symbols for example).
17475 hpux9* | hpux10* | hpux11*)
17476 lt_prog_compiler_wl_GCJ='-Wl,'
17477 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17478 # not for PA HP-UX.
17479 case $host_cpu in
17480 hppa*64*|ia64*)
17481 # +Z the default
17484 lt_prog_compiler_pic_GCJ='+Z'
17486 esac
17487 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17488 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17491 irix5* | irix6* | nonstopux*)
17492 lt_prog_compiler_wl_GCJ='-Wl,'
17493 # PIC (with -KPIC) is the default.
17494 lt_prog_compiler_static_GCJ='-non_shared'
17497 linux* | k*bsd*-gnu | kopensolaris*-gnu)
17498 case $cc_basename in
17499 # old Intel for x86_64 which still supported -KPIC.
17500 ecc*)
17501 lt_prog_compiler_wl_GCJ='-Wl,'
17502 lt_prog_compiler_pic_GCJ='-KPIC'
17503 lt_prog_compiler_static_GCJ='-static'
17505 # icc used to be incompatible with GCC.
17506 # ICC 10 doesn't accept -KPIC any more.
17507 icc* | ifort*)
17508 lt_prog_compiler_wl_GCJ='-Wl,'
17509 lt_prog_compiler_pic_GCJ='-fPIC'
17510 lt_prog_compiler_static_GCJ='-static'
17512 # Lahey Fortran 8.1.
17513 lf95*)
17514 lt_prog_compiler_wl_GCJ='-Wl,'
17515 lt_prog_compiler_pic_GCJ='--shared'
17516 lt_prog_compiler_static_GCJ='--static'
17518 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17519 # Portland Group compilers (*not* the Pentium gcc compiler,
17520 # which looks to be a dead project)
17521 lt_prog_compiler_wl_GCJ='-Wl,'
17522 lt_prog_compiler_pic_GCJ='-fpic'
17523 lt_prog_compiler_static_GCJ='-Bstatic'
17525 ccc*)
17526 lt_prog_compiler_wl_GCJ='-Wl,'
17527 # All Alpha code is PIC.
17528 lt_prog_compiler_static_GCJ='-non_shared'
17530 xl* | bgxl* | bgf* | mpixl*)
17531 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17532 lt_prog_compiler_wl_GCJ='-Wl,'
17533 lt_prog_compiler_pic_GCJ='-qpic'
17534 lt_prog_compiler_static_GCJ='-qstaticlink'
17537 case `$CC -V 2>&1 | sed 5q` in
17538 *Sun\ F* | *Sun*Fortran*)
17539 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17540 lt_prog_compiler_pic_GCJ='-KPIC'
17541 lt_prog_compiler_static_GCJ='-Bstatic'
17542 lt_prog_compiler_wl_GCJ=''
17544 *Sun\ C*)
17545 # Sun C 5.9
17546 lt_prog_compiler_pic_GCJ='-KPIC'
17547 lt_prog_compiler_static_GCJ='-Bstatic'
17548 lt_prog_compiler_wl_GCJ='-Wl,'
17550 esac
17552 esac
17555 newsos6)
17556 lt_prog_compiler_pic_GCJ='-KPIC'
17557 lt_prog_compiler_static_GCJ='-Bstatic'
17560 *nto* | *qnx*)
17561 # QNX uses GNU C++, but need to define -shared option too, otherwise
17562 # it will coredump.
17563 lt_prog_compiler_pic_GCJ='-fPIC -shared'
17566 osf3* | osf4* | osf5*)
17567 lt_prog_compiler_wl_GCJ='-Wl,'
17568 # All OSF/1 code is PIC.
17569 lt_prog_compiler_static_GCJ='-non_shared'
17572 rdos*)
17573 lt_prog_compiler_static_GCJ='-non_shared'
17576 solaris*)
17577 lt_prog_compiler_pic_GCJ='-KPIC'
17578 lt_prog_compiler_static_GCJ='-Bstatic'
17579 case $cc_basename in
17580 f77* | f90* | f95*)
17581 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17583 lt_prog_compiler_wl_GCJ='-Wl,';;
17584 esac
17587 sunos4*)
17588 lt_prog_compiler_wl_GCJ='-Qoption ld '
17589 lt_prog_compiler_pic_GCJ='-PIC'
17590 lt_prog_compiler_static_GCJ='-Bstatic'
17593 sysv4 | sysv4.2uw2* | sysv4.3*)
17594 lt_prog_compiler_wl_GCJ='-Wl,'
17595 lt_prog_compiler_pic_GCJ='-KPIC'
17596 lt_prog_compiler_static_GCJ='-Bstatic'
17599 sysv4*MP*)
17600 if test -d /usr/nec ;then
17601 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17602 lt_prog_compiler_static_GCJ='-Bstatic'
17606 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17607 lt_prog_compiler_wl_GCJ='-Wl,'
17608 lt_prog_compiler_pic_GCJ='-KPIC'
17609 lt_prog_compiler_static_GCJ='-Bstatic'
17612 unicos*)
17613 lt_prog_compiler_wl_GCJ='-Wl,'
17614 lt_prog_compiler_can_build_shared_GCJ=no
17617 uts4*)
17618 lt_prog_compiler_pic_GCJ='-pic'
17619 lt_prog_compiler_static_GCJ='-Bstatic'
17623 lt_prog_compiler_can_build_shared_GCJ=no
17625 esac
17628 case $host_os in
17629 # For platforms which do not support PIC, -DPIC is meaningless:
17630 *djgpp*)
17631 lt_prog_compiler_pic_GCJ=
17634 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17636 esac
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17638 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17643 # Check to make sure the PIC flag actually works.
17645 if test -n "$lt_prog_compiler_pic_GCJ"; then
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17647 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17648 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17649 $as_echo_n "(cached) " >&6
17650 else
17651 lt_cv_prog_compiler_pic_works_GCJ=no
17652 ac_outfile=conftest.$ac_objext
17653 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17654 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17655 # Insert the option either (1) after the last *FLAGS variable, or
17656 # (2) before a word containing "conftest.", or (3) at the end.
17657 # Note that $ac_compile itself does not contain backslashes and begins
17658 # with a dollar sign (not a hyphen), so the echo should work correctly.
17659 # The option is referenced via a variable to avoid confusing sed.
17660 lt_compile=`echo "$ac_compile" | $SED \
17661 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17662 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17663 -e 's:$: $lt_compiler_flag:'`
17664 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17665 (eval "$lt_compile" 2>conftest.err)
17666 ac_status=$?
17667 cat conftest.err >&5
17668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17669 if (exit $ac_status) && test -s "$ac_outfile"; then
17670 # The compiler can only warn and ignore the option if not recognized
17671 # So say no if there are warnings other than the usual output.
17672 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17673 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17674 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17675 lt_cv_prog_compiler_pic_works_GCJ=yes
17678 $RM conftest*
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17682 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17684 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17685 case $lt_prog_compiler_pic_GCJ in
17686 "" | " "*) ;;
17687 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17688 esac
17689 else
17690 lt_prog_compiler_pic_GCJ=
17691 lt_prog_compiler_can_build_shared_GCJ=no
17699 # Check to make sure the static flag actually works.
17701 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17703 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17704 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17705 $as_echo_n "(cached) " >&6
17706 else
17707 lt_cv_prog_compiler_static_works_GCJ=no
17708 save_LDFLAGS="$LDFLAGS"
17709 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17710 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17711 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17712 # The linker can only warn and ignore the option if not recognized
17713 # So say no if there are warnings
17714 if test -s conftest.err; then
17715 # Append any errors to the config.log.
17716 cat conftest.err 1>&5
17717 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17719 if diff conftest.exp conftest.er2 >/dev/null; then
17720 lt_cv_prog_compiler_static_works_GCJ=yes
17722 else
17723 lt_cv_prog_compiler_static_works_GCJ=yes
17726 $RM -r conftest*
17727 LDFLAGS="$save_LDFLAGS"
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17731 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17733 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17735 else
17736 lt_prog_compiler_static_GCJ=
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17743 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17744 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17745 $as_echo_n "(cached) " >&6
17746 else
17747 lt_cv_prog_compiler_c_o_GCJ=no
17748 $RM -r conftest 2>/dev/null
17749 mkdir conftest
17750 cd conftest
17751 mkdir out
17752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17754 lt_compiler_flag="-o out/conftest2.$ac_objext"
17755 # Insert the option either (1) after the last *FLAGS variable, or
17756 # (2) before a word containing "conftest.", or (3) at the end.
17757 # Note that $ac_compile itself does not contain backslashes and begins
17758 # with a dollar sign (not a hyphen), so the echo should work correctly.
17759 lt_compile=`echo "$ac_compile" | $SED \
17760 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17761 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17762 -e 's:$: $lt_compiler_flag:'`
17763 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17764 (eval "$lt_compile" 2>out/conftest.err)
17765 ac_status=$?
17766 cat out/conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17769 then
17770 # The compiler can only warn and ignore the option if not recognized
17771 # So say no if there are warnings
17772 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17773 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17774 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17775 lt_cv_prog_compiler_c_o_GCJ=yes
17778 chmod u+w . 2>&5
17779 $RM conftest*
17780 # SGI C++ compiler will create directory out/ii_files/ for
17781 # template instantiation
17782 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17783 $RM out/* && rmdir out
17784 cd ..
17785 $RM -r conftest
17786 $RM conftest*
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17790 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17795 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17796 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17797 $as_echo_n "(cached) " >&6
17798 else
17799 lt_cv_prog_compiler_c_o_GCJ=no
17800 $RM -r conftest 2>/dev/null
17801 mkdir conftest
17802 cd conftest
17803 mkdir out
17804 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17806 lt_compiler_flag="-o out/conftest2.$ac_objext"
17807 # Insert the option either (1) after the last *FLAGS variable, or
17808 # (2) before a word containing "conftest.", or (3) at the end.
17809 # Note that $ac_compile itself does not contain backslashes and begins
17810 # with a dollar sign (not a hyphen), so the echo should work correctly.
17811 lt_compile=`echo "$ac_compile" | $SED \
17812 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17813 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17814 -e 's:$: $lt_compiler_flag:'`
17815 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17816 (eval "$lt_compile" 2>out/conftest.err)
17817 ac_status=$?
17818 cat out/conftest.err >&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17821 then
17822 # The compiler can only warn and ignore the option if not recognized
17823 # So say no if there are warnings
17824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17825 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17826 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17827 lt_cv_prog_compiler_c_o_GCJ=yes
17830 chmod u+w . 2>&5
17831 $RM conftest*
17832 # SGI C++ compiler will create directory out/ii_files/ for
17833 # template instantiation
17834 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17835 $RM out/* && rmdir out
17836 cd ..
17837 $RM -r conftest
17838 $RM conftest*
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17842 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17847 hard_links="nottested"
17848 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17849 # do not overwrite the value of need_locks provided by the user
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17851 $as_echo_n "checking if we can lock with hard links... " >&6; }
17852 hard_links=yes
17853 $RM conftest*
17854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17855 touch conftest.a
17856 ln conftest.a conftest.b 2>&5 || hard_links=no
17857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17859 $as_echo "$hard_links" >&6; }
17860 if test "$hard_links" = no; then
17861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17862 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17863 need_locks=warn
17865 else
17866 need_locks=no
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17872 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17874 runpath_var=
17875 allow_undefined_flag_GCJ=
17876 always_export_symbols_GCJ=no
17877 archive_cmds_GCJ=
17878 archive_expsym_cmds_GCJ=
17879 compiler_needs_object_GCJ=no
17880 enable_shared_with_static_runtimes_GCJ=no
17881 export_dynamic_flag_spec_GCJ=
17882 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17883 hardcode_automatic_GCJ=no
17884 hardcode_direct_GCJ=no
17885 hardcode_direct_absolute_GCJ=no
17886 hardcode_libdir_flag_spec_GCJ=
17887 hardcode_libdir_flag_spec_ld_GCJ=
17888 hardcode_libdir_separator_GCJ=
17889 hardcode_minus_L_GCJ=no
17890 hardcode_shlibpath_var_GCJ=unsupported
17891 inherit_rpath_GCJ=no
17892 link_all_deplibs_GCJ=unknown
17893 module_cmds_GCJ=
17894 module_expsym_cmds_GCJ=
17895 old_archive_from_new_cmds_GCJ=
17896 old_archive_from_expsyms_cmds_GCJ=
17897 thread_safe_flag_spec_GCJ=
17898 whole_archive_flag_spec_GCJ=
17899 # include_expsyms should be a list of space-separated symbols to be *always*
17900 # included in the symbol list
17901 include_expsyms_GCJ=
17902 # exclude_expsyms can be an extended regexp of symbols to exclude
17903 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17904 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17905 # as well as any symbol that contains `d'.
17906 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17907 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17908 # platforms (ab)use it in PIC code, but their linkers get confused if
17909 # the symbol is explicitly referenced. Since portable code cannot
17910 # rely on this symbol name, it's probably fine to never include it in
17911 # preloaded symbol tables.
17912 # Exclude shared library initialization/finalization symbols.
17913 extract_expsyms_cmds=
17915 case $host_os in
17916 cygwin* | mingw* | pw32* | cegcc*)
17917 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17918 # When not using gcc, we currently assume that we are using
17919 # Microsoft Visual C++.
17920 if test "$GCC" != yes; then
17921 with_gnu_ld=no
17924 interix*)
17925 # we just hope/assume this is gcc and not c89 (= MSVC++)
17926 with_gnu_ld=yes
17928 openbsd*)
17929 with_gnu_ld=no
17931 esac
17933 ld_shlibs_GCJ=yes
17935 # On some targets, GNU ld is compatible enough with the native linker
17936 # that we're better off using the native interface for both.
17937 lt_use_gnu_ld_interface=no
17938 if test "$with_gnu_ld" = yes; then
17939 case $host_os in
17940 aix*)
17941 # The AIX port of GNU ld has always aspired to compatibility
17942 # with the native linker. However, as the warning in the GNU ld
17943 # block says, versions before 2.19.5* couldn't really create working
17944 # shared libraries, regardless of the interface used.
17945 case `$LD -v 2>&1` in
17946 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17947 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17948 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17950 lt_use_gnu_ld_interface=yes
17952 esac
17955 lt_use_gnu_ld_interface=yes
17957 esac
17960 if test "$lt_use_gnu_ld_interface" = yes; then
17961 # If archive_cmds runs LD, not CC, wlarc should be empty
17962 wlarc='${wl}'
17964 # Set some defaults for GNU ld with shared library support. These
17965 # are reset later if shared libraries are not supported. Putting them
17966 # here allows them to be overridden if necessary.
17967 runpath_var=LD_RUN_PATH
17968 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17969 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17970 # ancient GNU ld didn't support --whole-archive et. al.
17971 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17972 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17973 else
17974 whole_archive_flag_spec_GCJ=
17976 supports_anon_versioning=no
17977 case `$LD -v 2>&1` in
17978 *GNU\ gold*) supports_anon_versioning=yes ;;
17979 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17980 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17981 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17982 *\ 2.11.*) ;; # other 2.11 versions
17983 *) supports_anon_versioning=yes ;;
17984 esac
17986 # See if GNU ld supports shared libraries.
17987 case $host_os in
17988 aix[3-9]*)
17989 # On AIX/PPC, the GNU linker is very broken
17990 if test "$host_cpu" != ia64; then
17991 ld_shlibs_GCJ=no
17992 cat <<_LT_EOF 1>&2
17994 *** Warning: the GNU linker, at least up to release 2.19, is reported
17995 *** to be unable to reliably create shared libraries on AIX.
17996 *** Therefore, libtool is disabling shared libraries support. If you
17997 *** really care for shared libraries, you may want to install binutils
17998 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17999 *** You will then need to restart the configuration process.
18001 _LT_EOF
18005 amigaos*)
18006 case $host_cpu in
18007 powerpc)
18008 # see comment about AmigaOS4 .so support
18009 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18010 archive_expsym_cmds_GCJ=''
18012 m68k)
18013 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)'
18014 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18015 hardcode_minus_L_GCJ=yes
18017 esac
18020 beos*)
18021 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18022 allow_undefined_flag_GCJ=unsupported
18023 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18024 # support --undefined. This deserves some investigation. FIXME
18025 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18026 else
18027 ld_shlibs_GCJ=no
18031 cygwin* | mingw* | pw32* | cegcc*)
18032 # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18033 # as there is no search path for DLLs.
18034 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18035 export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
18036 allow_undefined_flag_GCJ=unsupported
18037 always_export_symbols_GCJ=no
18038 enable_shared_with_static_runtimes_GCJ=yes
18039 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18041 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18042 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18043 # If the export-symbols file already is a .def file (1st line
18044 # is EXPORTS), use it as is; otherwise, prepend...
18045 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18046 cp $export_symbols $output_objdir/$soname.def;
18047 else
18048 echo EXPORTS > $output_objdir/$soname.def;
18049 cat $export_symbols >> $output_objdir/$soname.def;
18051 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18052 else
18053 ld_shlibs_GCJ=no
18057 haiku*)
18058 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18059 link_all_deplibs_GCJ=yes
18062 interix[3-9]*)
18063 hardcode_direct_GCJ=no
18064 hardcode_shlibpath_var_GCJ=no
18065 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18066 export_dynamic_flag_spec_GCJ='${wl}-E'
18067 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18068 # Instead, shared libraries are loaded at an image base (0x10000000 by
18069 # default) and relocated if they conflict, which is a slow very memory
18070 # consuming and fragmenting process. To avoid this, we pick a random,
18071 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18072 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18073 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'
18074 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'
18077 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18078 tmp_diet=no
18079 if test "$host_os" = linux-dietlibc; then
18080 case $cc_basename in
18081 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18082 esac
18084 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18085 && test "$tmp_diet" = no
18086 then
18087 tmp_addflag=
18088 tmp_sharedflag='-shared'
18089 case $cc_basename,$host_cpu in
18090 pgcc*) # Portland Group C compiler
18091 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'
18092 tmp_addflag=' $pic_flag'
18094 pgf77* | pgf90* | pgf95* | pgfortran*)
18095 # Portland Group f77 and f90 compilers
18096 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'
18097 tmp_addflag=' $pic_flag -Mnomain' ;;
18098 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18099 tmp_addflag=' -i_dynamic' ;;
18100 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18101 tmp_addflag=' -i_dynamic -nofor_main' ;;
18102 ifc* | ifort*) # Intel Fortran compiler
18103 tmp_addflag=' -nofor_main' ;;
18104 lf95*) # Lahey Fortran 8.1
18105 whole_archive_flag_spec_GCJ=
18106 tmp_sharedflag='--shared' ;;
18107 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18108 tmp_sharedflag='-qmkshrobj'
18109 tmp_addflag= ;;
18110 nvcc*) # Cuda Compiler Driver 2.2
18111 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'
18112 compiler_needs_object_GCJ=yes
18114 esac
18115 case `$CC -V 2>&1 | sed 5q` in
18116 *Sun\ C*) # Sun C 5.9
18117 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'
18118 compiler_needs_object_GCJ=yes
18119 tmp_sharedflag='-G' ;;
18120 *Sun\ F*) # Sun Fortran 8.3
18121 tmp_sharedflag='-G' ;;
18122 esac
18123 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18125 if test "x$supports_anon_versioning" = xyes; then
18126 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18127 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18128 echo "local: *; };" >> $output_objdir/$libname.ver~
18129 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18132 case $cc_basename in
18133 xlf* | bgf* | bgxlf* | mpixlf*)
18134 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18135 whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18136 hardcode_libdir_flag_spec_GCJ=
18137 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18138 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18139 if test "x$supports_anon_versioning" = xyes; then
18140 archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18141 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18142 echo "local: *; };" >> $output_objdir/$libname.ver~
18143 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18146 esac
18147 else
18148 ld_shlibs_GCJ=no
18152 netbsd*)
18153 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18154 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18155 wlarc=
18156 else
18157 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18158 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18162 solaris*)
18163 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18164 ld_shlibs_GCJ=no
18165 cat <<_LT_EOF 1>&2
18167 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18168 *** create shared libraries on Solaris systems. Therefore, libtool
18169 *** is disabling shared libraries support. We urge you to upgrade GNU
18170 *** binutils to release 2.9.1 or newer. Another option is to modify
18171 *** your PATH or compiler configuration so that the native linker is
18172 *** used, and then restart.
18174 _LT_EOF
18175 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18176 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18177 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18178 else
18179 ld_shlibs_GCJ=no
18183 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18184 case `$LD -v 2>&1` in
18185 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18186 ld_shlibs_GCJ=no
18187 cat <<_LT_EOF 1>&2
18189 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18190 *** reliably create shared libraries on SCO systems. Therefore, libtool
18191 *** is disabling shared libraries support. We urge you to upgrade GNU
18192 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18193 *** your PATH or compiler configuration so that the native linker is
18194 *** used, and then restart.
18196 _LT_EOF
18199 # For security reasons, it is highly recommended that you always
18200 # use absolute paths for naming shared libraries, and exclude the
18201 # DT_RUNPATH tag from executables and libraries. But doing so
18202 # requires that you compile everything twice, which is a pain.
18203 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18204 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18205 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18206 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18207 else
18208 ld_shlibs_GCJ=no
18211 esac
18214 sunos4*)
18215 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18216 wlarc=
18217 hardcode_direct_GCJ=yes
18218 hardcode_shlibpath_var_GCJ=no
18222 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18223 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18224 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18225 else
18226 ld_shlibs_GCJ=no
18229 esac
18231 if test "$ld_shlibs_GCJ" = no; then
18232 runpath_var=
18233 hardcode_libdir_flag_spec_GCJ=
18234 export_dynamic_flag_spec_GCJ=
18235 whole_archive_flag_spec_GCJ=
18237 else
18238 # PORTME fill in a description of your system's linker (not GNU ld)
18239 case $host_os in
18240 aix3*)
18241 allow_undefined_flag_GCJ=unsupported
18242 always_export_symbols_GCJ=yes
18243 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'
18244 # Note: this linker hardcodes the directories in LIBPATH if there
18245 # are no directories specified by -L.
18246 hardcode_minus_L_GCJ=yes
18247 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18248 # Neither direct hardcoding nor static linking is supported with a
18249 # broken collect2.
18250 hardcode_direct_GCJ=unsupported
18254 aix[4-9]*)
18255 if test "$host_cpu" = ia64; then
18256 # On IA64, the linker does run time linking by default, so we don't
18257 # have to do anything special.
18258 aix_use_runtimelinking=no
18259 exp_sym_flag='-Bexport'
18260 no_entry_flag=""
18261 else
18262 # If we're using GNU nm, then we don't want the "-C" option.
18263 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18264 # Also, AIX nm treats weak defined symbols like other global
18265 # defined symbols, whereas GNU nm marks them as "W".
18266 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18267 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'
18268 else
18269 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'
18271 aix_use_runtimelinking=no
18273 # Test if we are trying to use run time linking or normal
18274 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18275 # need to do runtime linking.
18276 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18277 for ld_flag in $LDFLAGS; do
18278 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18279 aix_use_runtimelinking=yes
18280 break
18282 done
18284 esac
18286 exp_sym_flag='-bexport'
18287 no_entry_flag='-bnoentry'
18290 # When large executables or shared objects are built, AIX ld can
18291 # have problems creating the table of contents. If linking a library
18292 # or program results in "error TOC overflow" add -mminimal-toc to
18293 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18294 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18296 archive_cmds_GCJ=''
18297 hardcode_direct_GCJ=yes
18298 hardcode_direct_absolute_GCJ=yes
18299 hardcode_libdir_separator_GCJ=':'
18300 link_all_deplibs_GCJ=yes
18301 file_list_spec_GCJ='${wl}-f,'
18303 if test "$GCC" = yes; then
18304 case $host_os in aix4.[012]|aix4.[012].*)
18305 # We only want to do this on AIX 4.2 and lower, the check
18306 # below for broken collect2 doesn't work under 4.3+
18307 collect2name=`${CC} -print-prog-name=collect2`
18308 if test -f "$collect2name" &&
18309 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18310 then
18311 # We have reworked collect2
18313 else
18314 # We have old collect2
18315 hardcode_direct_GCJ=unsupported
18316 # It fails to find uninstalled libraries when the uninstalled
18317 # path is not listed in the libpath. Setting hardcode_minus_L
18318 # to unsupported forces relinking
18319 hardcode_minus_L_GCJ=yes
18320 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18321 hardcode_libdir_separator_GCJ=
18324 esac
18325 shared_flag='-shared'
18326 if test "$aix_use_runtimelinking" = yes; then
18327 shared_flag="$shared_flag "'${wl}-G'
18329 else
18330 # not using gcc
18331 if test "$host_cpu" = ia64; then
18332 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18333 # chokes on -Wl,-G. The following line is correct:
18334 shared_flag='-G'
18335 else
18336 if test "$aix_use_runtimelinking" = yes; then
18337 shared_flag='${wl}-G'
18338 else
18339 shared_flag='${wl}-bM:SRE'
18344 export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18345 # It seems that -bexpall does not export symbols beginning with
18346 # underscore (_), so it is better to generate a list of symbols to export.
18347 always_export_symbols_GCJ=yes
18348 if test "$aix_use_runtimelinking" = yes; then
18349 # Warning - without using the other runtime loading flags (-brtl),
18350 # -berok will link without error, but may produce a broken library.
18351 allow_undefined_flag_GCJ='-berok'
18352 # Determine the default libpath from the value encoded in an
18353 # empty executable.
18354 if test x$gcc_no_link = xyes; then
18355 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h. */
18361 main ()
18365 return 0;
18367 _ACEOF
18368 if ac_fn_c_try_link "$LINENO"; then :
18370 lt_aix_libpath_sed='
18371 /Import File Strings/,/^$/ {
18372 /^0/ {
18373 s/^0 *\(.*\)$/\1/
18377 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18378 # Check for a 64-bit object if we didn't find anything.
18379 if test -z "$aix_libpath"; then
18380 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18383 rm -f core conftest.err conftest.$ac_objext \
18384 conftest$ac_exeext conftest.$ac_ext
18385 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18387 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18388 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"
18389 else
18390 if test "$host_cpu" = ia64; then
18391 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18392 allow_undefined_flag_GCJ="-z nodefs"
18393 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"
18394 else
18395 # Determine the default libpath from the value encoded in an
18396 # empty executable.
18397 if test x$gcc_no_link = xyes; then
18398 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18401 /* end confdefs.h. */
18404 main ()
18408 return 0;
18410 _ACEOF
18411 if ac_fn_c_try_link "$LINENO"; then :
18413 lt_aix_libpath_sed='
18414 /Import File Strings/,/^$/ {
18415 /^0/ {
18416 s/^0 *\(.*\)$/\1/
18420 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18421 # Check for a 64-bit object if we didn't find anything.
18422 if test -z "$aix_libpath"; then
18423 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18426 rm -f core conftest.err conftest.$ac_objext \
18427 conftest$ac_exeext conftest.$ac_ext
18428 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18430 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18431 # Warning - without using the other run time loading flags,
18432 # -berok will link without error, but may produce a broken library.
18433 no_undefined_flag_GCJ=' ${wl}-bernotok'
18434 allow_undefined_flag_GCJ=' ${wl}-berok'
18435 if test "$with_gnu_ld" = yes; then
18436 # We only use this code for GNU lds that support --whole-archive.
18437 whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18438 else
18439 # Exported symbols can be pulled into shared objects from archives
18440 whole_archive_flag_spec_GCJ='$convenience'
18442 archive_cmds_need_lc_GCJ=yes
18443 # This is similar to how AIX traditionally builds its shared libraries.
18444 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'
18449 amigaos*)
18450 case $host_cpu in
18451 powerpc)
18452 # see comment about AmigaOS4 .so support
18453 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18454 archive_expsym_cmds_GCJ=''
18456 m68k)
18457 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)'
18458 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18459 hardcode_minus_L_GCJ=yes
18461 esac
18464 bsdi[45]*)
18465 export_dynamic_flag_spec_GCJ=-rdynamic
18468 cygwin* | mingw* | pw32* | cegcc*)
18469 # When not using gcc, we currently assume that we are using
18470 # Microsoft Visual C++.
18471 # hardcode_libdir_flag_spec is actually meaningless, as there is
18472 # no search path for DLLs.
18473 hardcode_libdir_flag_spec_GCJ=' '
18474 allow_undefined_flag_GCJ=unsupported
18475 # Tell ltmain to make .lib files, not .a files.
18476 libext=lib
18477 # Tell ltmain to make .dll files, not .so files.
18478 shrext_cmds=".dll"
18479 # FIXME: Setting linknames here is a bad hack.
18480 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18481 # The linker will automatically build a .lib file if we build a DLL.
18482 old_archive_from_new_cmds_GCJ='true'
18483 # FIXME: Should let the user specify the lib program.
18484 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18485 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18486 enable_shared_with_static_runtimes_GCJ=yes
18489 darwin* | rhapsody*)
18492 archive_cmds_need_lc_GCJ=no
18493 hardcode_direct_GCJ=no
18494 hardcode_automatic_GCJ=yes
18495 hardcode_shlibpath_var_GCJ=unsupported
18496 if test "$lt_cv_ld_force_load" = "yes"; then
18497 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\"`'
18498 else
18499 whole_archive_flag_spec_GCJ=''
18501 link_all_deplibs_GCJ=yes
18502 allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18503 case $cc_basename in
18504 ifort*) _lt_dar_can_shared=yes ;;
18505 *) _lt_dar_can_shared=$GCC ;;
18506 esac
18507 if test "$_lt_dar_can_shared" = "yes"; then
18508 output_verbose_link_cmd=func_echo_all
18509 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}"
18510 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18511 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}"
18512 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}"
18514 else
18515 ld_shlibs_GCJ=no
18520 dgux*)
18521 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18522 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18523 hardcode_shlibpath_var_GCJ=no
18526 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18527 # support. Future versions do this automatically, but an explicit c++rt0.o
18528 # does not break anything, and helps significantly (at the cost of a little
18529 # extra space).
18530 freebsd2.2*)
18531 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18532 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18533 hardcode_direct_GCJ=yes
18534 hardcode_shlibpath_var_GCJ=no
18537 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18538 freebsd2*)
18539 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18540 hardcode_direct_GCJ=yes
18541 hardcode_minus_L_GCJ=yes
18542 hardcode_shlibpath_var_GCJ=no
18545 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18546 freebsd* | dragonfly*)
18547 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18548 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18549 hardcode_direct_GCJ=yes
18550 hardcode_shlibpath_var_GCJ=no
18553 hpux9*)
18554 if test "$GCC" = yes; then
18555 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'
18556 else
18557 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'
18559 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18560 hardcode_libdir_separator_GCJ=:
18561 hardcode_direct_GCJ=yes
18563 # hardcode_minus_L: Not really in the search PATH,
18564 # but as the default location of the library.
18565 hardcode_minus_L_GCJ=yes
18566 export_dynamic_flag_spec_GCJ='${wl}-E'
18569 hpux10*)
18570 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18571 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18572 else
18573 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18575 if test "$with_gnu_ld" = no; then
18576 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18577 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18578 hardcode_libdir_separator_GCJ=:
18579 hardcode_direct_GCJ=yes
18580 hardcode_direct_absolute_GCJ=yes
18581 export_dynamic_flag_spec_GCJ='${wl}-E'
18582 # hardcode_minus_L: Not really in the search PATH,
18583 # but as the default location of the library.
18584 hardcode_minus_L_GCJ=yes
18588 hpux11*)
18589 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18590 case $host_cpu in
18591 hppa*64*)
18592 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18594 ia64*)
18595 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18598 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18600 esac
18601 else
18602 case $host_cpu in
18603 hppa*64*)
18604 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18606 ia64*)
18607 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18610 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18612 esac
18614 if test "$with_gnu_ld" = no; then
18615 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18616 hardcode_libdir_separator_GCJ=:
18618 case $host_cpu in
18619 hppa*64*|ia64*)
18620 hardcode_direct_GCJ=no
18621 hardcode_shlibpath_var_GCJ=no
18624 hardcode_direct_GCJ=yes
18625 hardcode_direct_absolute_GCJ=yes
18626 export_dynamic_flag_spec_GCJ='${wl}-E'
18628 # hardcode_minus_L: Not really in the search PATH,
18629 # but as the default location of the library.
18630 hardcode_minus_L_GCJ=yes
18632 esac
18636 irix5* | irix6* | nonstopux*)
18637 if test "$GCC" = yes; then
18638 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'
18639 # Try to use the -exported_symbol ld option, if it does not
18640 # work, assume that -exports_file does not work either and
18641 # implicitly export all symbols.
18642 save_LDFLAGS="$LDFLAGS"
18643 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18644 if test x$gcc_no_link = xyes; then
18645 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18648 /* end confdefs.h. */
18649 int foo(void) {}
18650 _ACEOF
18651 if ac_fn_c_try_link "$LINENO"; then :
18652 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'
18655 rm -f core conftest.err conftest.$ac_objext \
18656 conftest$ac_exeext conftest.$ac_ext
18657 LDFLAGS="$save_LDFLAGS"
18658 else
18659 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'
18660 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'
18662 archive_cmds_need_lc_GCJ='no'
18663 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18664 hardcode_libdir_separator_GCJ=:
18665 inherit_rpath_GCJ=yes
18666 link_all_deplibs_GCJ=yes
18669 netbsd*)
18670 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18671 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18672 else
18673 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18675 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18676 hardcode_direct_GCJ=yes
18677 hardcode_shlibpath_var_GCJ=no
18680 newsos6)
18681 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18682 hardcode_direct_GCJ=yes
18683 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18684 hardcode_libdir_separator_GCJ=:
18685 hardcode_shlibpath_var_GCJ=no
18688 *nto* | *qnx*)
18691 openbsd*)
18692 if test -f /usr/libexec/ld.so; then
18693 hardcode_direct_GCJ=yes
18694 hardcode_shlibpath_var_GCJ=no
18695 hardcode_direct_absolute_GCJ=yes
18696 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18697 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18698 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18699 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18700 export_dynamic_flag_spec_GCJ='${wl}-E'
18701 else
18702 case $host_os in
18703 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18704 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18705 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18708 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18709 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18711 esac
18713 else
18714 ld_shlibs_GCJ=no
18718 os2*)
18719 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18720 hardcode_minus_L_GCJ=yes
18721 allow_undefined_flag_GCJ=unsupported
18722 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'
18723 old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18726 osf3*)
18727 if test "$GCC" = yes; then
18728 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18729 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'
18730 else
18731 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18732 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'
18734 archive_cmds_need_lc_GCJ='no'
18735 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18736 hardcode_libdir_separator_GCJ=:
18739 osf4* | osf5*) # as osf3* with the addition of -msym flag
18740 if test "$GCC" = yes; then
18741 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18742 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'
18743 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18744 else
18745 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18746 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'
18747 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~
18748 $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'
18750 # Both c and cxx compiler support -rpath directly
18751 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18753 archive_cmds_need_lc_GCJ='no'
18754 hardcode_libdir_separator_GCJ=:
18757 solaris*)
18758 no_undefined_flag_GCJ=' -z defs'
18759 if test "$GCC" = yes; then
18760 wlarc='${wl}'
18761 archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18762 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18763 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18764 else
18765 case `$CC -V 2>&1` in
18766 *"Compilers 5.0"*)
18767 wlarc=''
18768 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18769 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18770 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18773 wlarc='${wl}'
18774 archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18775 archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18776 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18778 esac
18780 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18781 hardcode_shlibpath_var_GCJ=no
18782 case $host_os in
18783 solaris2.[0-5] | solaris2.[0-5].*) ;;
18785 # The compiler driver will combine and reorder linker options,
18786 # but understands `-z linker_flag'. GCC discards it without `$wl',
18787 # but is careful enough not to reorder.
18788 # Supported since Solaris 2.6 (maybe 2.5.1?)
18789 if test "$GCC" = yes; then
18790 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18791 else
18792 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18795 esac
18796 link_all_deplibs_GCJ=yes
18799 sunos4*)
18800 if test "x$host_vendor" = xsequent; then
18801 # Use $CC to link under sequent, because it throws in some extra .o
18802 # files that make .init and .fini sections work.
18803 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18804 else
18805 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18807 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18808 hardcode_direct_GCJ=yes
18809 hardcode_minus_L_GCJ=yes
18810 hardcode_shlibpath_var_GCJ=no
18813 sysv4)
18814 case $host_vendor in
18815 sni)
18816 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18817 hardcode_direct_GCJ=yes # is this really true???
18819 siemens)
18820 ## LD is ld it makes a PLAMLIB
18821 ## CC just makes a GrossModule.
18822 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18823 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18824 hardcode_direct_GCJ=no
18826 motorola)
18827 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18828 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18830 esac
18831 runpath_var='LD_RUN_PATH'
18832 hardcode_shlibpath_var_GCJ=no
18835 sysv4.3*)
18836 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18837 hardcode_shlibpath_var_GCJ=no
18838 export_dynamic_flag_spec_GCJ='-Bexport'
18841 sysv4*MP*)
18842 if test -d /usr/nec; then
18843 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18844 hardcode_shlibpath_var_GCJ=no
18845 runpath_var=LD_RUN_PATH
18846 hardcode_runpath_var=yes
18847 ld_shlibs_GCJ=yes
18851 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18852 no_undefined_flag_GCJ='${wl}-z,text'
18853 archive_cmds_need_lc_GCJ=no
18854 hardcode_shlibpath_var_GCJ=no
18855 runpath_var='LD_RUN_PATH'
18857 if test "$GCC" = yes; then
18858 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18859 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18860 else
18861 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18862 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18866 sysv5* | sco3.2v5* | sco5v6*)
18867 # Note: We can NOT use -z defs as we might desire, because we do not
18868 # link with -lc, and that would cause any symbols used from libc to
18869 # always be unresolved, which means just about no library would
18870 # ever link correctly. If we're not using GNU ld we use -z text
18871 # though, which does catch some bad symbols but isn't as heavy-handed
18872 # as -z defs.
18873 no_undefined_flag_GCJ='${wl}-z,text'
18874 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18875 archive_cmds_need_lc_GCJ=no
18876 hardcode_shlibpath_var_GCJ=no
18877 hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18878 hardcode_libdir_separator_GCJ=':'
18879 link_all_deplibs_GCJ=yes
18880 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18881 runpath_var='LD_RUN_PATH'
18883 if test "$GCC" = yes; then
18884 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18885 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18886 else
18887 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18888 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18892 uts4*)
18893 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18894 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18895 hardcode_shlibpath_var_GCJ=no
18899 ld_shlibs_GCJ=no
18901 esac
18903 if test x$host_vendor = xsni; then
18904 case $host in
18905 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18906 export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18908 esac
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18913 $as_echo "$ld_shlibs_GCJ" >&6; }
18914 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18916 with_gnu_ld_GCJ=$with_gnu_ld
18924 # Do we need to explicitly link libc?
18926 case "x$archive_cmds_need_lc_GCJ" in
18927 x|xyes)
18928 # Assume -lc should be added
18929 archive_cmds_need_lc_GCJ=yes
18931 if test "$enable_shared" = yes && test "$GCC" = yes; then
18932 case $archive_cmds_GCJ in
18933 *'~'*)
18934 # FIXME: we may have to deal with multi-command sequences.
18936 '$CC '*)
18937 # Test whether the compiler implicitly links with -lc since on some
18938 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18939 # to ld, don't add -lc before -lgcc.
18940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18941 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18942 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18943 $as_echo_n "(cached) " >&6
18944 else
18945 $RM conftest*
18946 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18948 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18949 (eval $ac_compile) 2>&5
18950 ac_status=$?
18951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18952 test $ac_status = 0; } 2>conftest.err; then
18953 soname=conftest
18954 lib=conftest
18955 libobjs=conftest.$ac_objext
18956 deplibs=
18957 wl=$lt_prog_compiler_wl_GCJ
18958 pic_flag=$lt_prog_compiler_pic_GCJ
18959 compiler_flags=-v
18960 linker_flags=-v
18961 verstring=
18962 output_objdir=.
18963 libname=conftest
18964 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18965 allow_undefined_flag_GCJ=
18966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18967 (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18968 ac_status=$?
18969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18970 test $ac_status = 0; }
18971 then
18972 lt_cv_archive_cmds_need_lc_GCJ=no
18973 else
18974 lt_cv_archive_cmds_need_lc_GCJ=yes
18976 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18977 else
18978 cat conftest.err 1>&5
18980 $RM conftest*
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18984 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18985 archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18987 esac
18990 esac
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19056 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19057 hardcode_action_GCJ=
19058 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19059 test -n "$runpath_var_GCJ" ||
19060 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19062 # We can hardcode non-existent directories.
19063 if test "$hardcode_direct_GCJ" != no &&
19064 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19065 # have to relink, otherwise we might link with an installed library
19066 # when we should be linking with a yet-to-be-installed one
19067 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19068 test "$hardcode_minus_L_GCJ" != no; then
19069 # Linking always hardcodes the temporary library directory.
19070 hardcode_action_GCJ=relink
19071 else
19072 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19073 hardcode_action_GCJ=immediate
19075 else
19076 # We cannot hardcode anything, or else we can only hardcode existing
19077 # directories.
19078 hardcode_action_GCJ=unsupported
19080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19081 $as_echo "$hardcode_action_GCJ" >&6; }
19083 if test "$hardcode_action_GCJ" = relink ||
19084 test "$inherit_rpath_GCJ" = yes; then
19085 # Fast installation is not supported
19086 enable_fast_install=no
19087 elif test "$shlibpath_overrides_runpath" = yes ||
19088 test "$enable_shared" = no; then
19089 # Fast installation is not necessary
19090 enable_fast_install=needless
19101 compiler_GCJ=${GCJ-gcj}
19102 ac_ext=c
19103 ac_cpp='$CPP $CPPFLAGS'
19104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19109 if test "x$CC" != xcc; then
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19111 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19112 else
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19114 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19116 set dummy $CC; ac_cc=`$as_echo "$2" |
19117 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19118 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19119 $as_echo_n "(cached) " >&6
19120 else
19121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19122 /* end confdefs.h. */
19125 main ()
19129 return 0;
19131 _ACEOF
19132 # Make sure it works both with $CC and with simple cc.
19133 # We do the test twice because some compilers refuse to overwrite an
19134 # existing .o file with -o, though they will create one.
19135 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19136 rm -f conftest2.*
19137 if { { case "(($ac_try" in
19138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19139 *) ac_try_echo=$ac_try;;
19140 esac
19141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19142 $as_echo "$ac_try_echo"; } >&5
19143 (eval "$ac_try") 2>&5
19144 ac_status=$?
19145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19146 test $ac_status = 0; } &&
19147 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149 *) ac_try_echo=$ac_try;;
19150 esac
19151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19152 $as_echo "$ac_try_echo"; } >&5
19153 (eval "$ac_try") 2>&5
19154 ac_status=$?
19155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19156 test $ac_status = 0; };
19157 then
19158 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19159 if test "x$CC" != xcc; then
19160 # Test first that cc exists at all.
19161 if { ac_try='cc -c conftest.$ac_ext >&5'
19162 { { case "(($ac_try" in
19163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164 *) ac_try_echo=$ac_try;;
19165 esac
19166 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19167 $as_echo "$ac_try_echo"; } >&5
19168 (eval "$ac_try") 2>&5
19169 ac_status=$?
19170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19171 test $ac_status = 0; }; }; then
19172 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19173 rm -f conftest2.*
19174 if { { case "(($ac_try" in
19175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19176 *) ac_try_echo=$ac_try;;
19177 esac
19178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19179 $as_echo "$ac_try_echo"; } >&5
19180 (eval "$ac_try") 2>&5
19181 ac_status=$?
19182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19183 test $ac_status = 0; } &&
19184 test -f conftest2.$ac_objext && { { case "(($ac_try" in
19185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19186 *) ac_try_echo=$ac_try;;
19187 esac
19188 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19189 $as_echo "$ac_try_echo"; } >&5
19190 (eval "$ac_try") 2>&5
19191 ac_status=$?
19192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19193 test $ac_status = 0; };
19194 then
19195 # cc works too.
19197 else
19198 # cc exists but doesn't like -o.
19199 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19203 else
19204 eval ac_cv_prog_cc_${ac_cc}_c_o=no
19206 rm -f core conftest*
19209 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19211 $as_echo "yes" >&6; }
19212 else
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19214 $as_echo "no" >&6; }
19216 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19220 # FIXME: we rely on the cache variable name because
19221 # there is no other way.
19222 set dummy $CC
19223 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19224 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19225 if test "$am_t" != yes; then
19226 # Losing compiler, so override with the script.
19227 # FIXME: It is wrong to rewrite CC.
19228 # But if we don't then we get into trouble of one sort or another.
19229 # A longer-term fix would be to have automake use am__CC in this case,
19230 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19231 CC="$am_aux_dir/compile $CC"
19238 subdirs="$subdirs classpath libltdl"
19241 # The -no-testsuite modules omit the test subdir.
19242 if test -d $srcdir/testsuite; then
19243 TESTSUBDIR_TRUE=
19244 TESTSUBDIR_FALSE='#'
19245 else
19246 TESTSUBDIR_TRUE='#'
19247 TESTSUBDIR_FALSE=
19251 # Should the runtime set system properties by examining the
19252 # environment variable GCJ_PROPERTIES?
19253 # Check whether --enable-getenv-properties was given.
19254 if test "${enable_getenv_properties+set}" = set; then :
19255 enableval=$enable_getenv_properties;
19259 # Whether GCJ_PROPERTIES is used depends on the target.
19260 if test -z "$enable_getenv_properties"; then
19261 enable_getenv_properties=${enable_getenv_properties_default-yes}
19263 if test "$enable_getenv_properties" = no; then
19265 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19269 # Whether we should use arguments to main()
19270 if test -z "$enable_main_args"; then
19271 enable_main_args=${enable_main_args_default-yes}
19273 if test "$enable_main_args" = no; then
19275 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19280 # Should we use hashtable-based synchronization?
19281 # Currently works only for Linux X86/ia64
19282 # Typically faster and more space-efficient
19283 # Check whether --enable-hash-synchronization was given.
19284 if test "${enable_hash_synchronization+set}" = set; then :
19285 enableval=$enable_hash_synchronization;
19289 if test -z "$enable_hash_synchronization"; then
19290 enable_hash_synchronization=$enable_hash_synchronization_default
19294 install_ecj_jar=no
19295 ECJ_BUILD_JAR=
19296 ECJ_JAR=
19298 # Check whether --with-ecj-jar was given.
19299 if test "${with_ecj_jar+set}" = set; then :
19300 withval=$with_ecj_jar; ECJ_JAR=$withval
19301 else
19302 if test -f $multi_basedir/ecj.jar; then
19303 ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19304 ECJ_JAR='$(jardir)/ecj.jar'
19305 install_ecj_jar=yes
19311 if test "$ECJ_JAR" != ""; then
19312 BUILD_ECJ1_TRUE=
19313 BUILD_ECJ1_FALSE='#'
19314 else
19315 BUILD_ECJ1_TRUE='#'
19316 BUILD_ECJ1_FALSE=
19319 if test $install_ecj_jar = yes; then
19320 INSTALL_ECJ_JAR_TRUE=
19321 INSTALL_ECJ_JAR_FALSE='#'
19322 else
19323 INSTALL_ECJ_JAR_TRUE='#'
19324 INSTALL_ECJ_JAR_FALSE=
19329 # Check whether --with-java-home was given.
19330 if test "${with_java_home+set}" = set; then :
19331 withval=$with_java_home; JAVA_HOME="${withval}"
19332 else
19333 JAVA_HOME=""
19336 if test ! -z "$JAVA_HOME"; then
19337 JAVA_HOME_SET_TRUE=
19338 JAVA_HOME_SET_FALSE='#'
19339 else
19340 JAVA_HOME_SET_TRUE='#'
19341 JAVA_HOME_SET_FALSE=
19346 suppress_libgcj_bc=no
19347 # Check whether --enable-libgcj-bc was given.
19348 if test "${enable_libgcj_bc+set}" = set; then :
19349 enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19350 suppress_libgcj_bc=yes
19354 if test "$suppress_libgcj_bc" = "yes"; then
19355 SUPPRESS_LIBGCJ_BC_TRUE=
19356 SUPPRESS_LIBGCJ_BC_FALSE='#'
19357 else
19358 SUPPRESS_LIBGCJ_BC_TRUE='#'
19359 SUPPRESS_LIBGCJ_BC_FALSE=
19363 build_libgcj_reduced_reflection=no
19364 # Check whether --enable-reduced-reflection was given.
19365 if test "${enable_reduced_reflection+set}" = set; then :
19366 enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19367 build_libgcj_reduced_reflection=yes
19371 if test "$build_libgcj_reduced_reflection" = "yes"; then
19372 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19373 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19374 else
19375 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19376 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19380 # What is the native OS API for MinGW?
19382 # Check whether --with-win32-nlsapi was given.
19383 if test "${with_win32_nlsapi+set}" = set; then :
19384 withval=$with_win32_nlsapi; case "${withval}" in
19385 ansi) with_win32_nlsapi=ansi ;;
19386 unicows) with_win32_nlsapi=unicows ;;
19387 unicode) with_win32_nlsapi=unicode ;;
19388 *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19389 esac
19390 else
19391 with_win32_nlsapi=ansi
19395 case "${with_win32_nlsapi}" in
19396 unicows | unicode)
19398 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19401 esac
19403 # configure.host sets slow_pthread_self if the synchronization code should
19404 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19405 if test "${slow_pthread_self}" = "yes"; then
19407 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19411 # Check for gc debugging. This option is handled both here and in the GC.
19412 # Check whether --enable-gc-debug was given.
19413 if test "${enable_gc_debug+set}" = set; then :
19414 enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then
19416 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19422 # See if the user has the interpreter included.
19423 # Check whether --enable-interpreter was given.
19424 if test "${enable_interpreter+set}" = set; then :
19425 enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19426 # This can also be set in configure.host.
19427 libgcj_interpreter=yes
19428 elif test "$enable_interpreter" = no; then
19429 libgcj_interpreter=no
19434 if test "$libgcj_interpreter" = yes; then
19436 $as_echo "#define INTERPRETER 1" >>confdefs.h
19439 INTERPRETER="$libgcj_interpreter"
19441 if test "$libgcj_interpreter" = yes; then
19442 INTERPRETER_TRUE=
19443 INTERPRETER_FALSE='#'
19444 else
19445 INTERPRETER_TRUE='#'
19446 INTERPRETER_FALSE=
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19451 $as_echo_n "checking for exception model to use... " >&6; }
19452 ac_ext=cpp
19453 ac_cpp='$CXXCPP $CPPFLAGS'
19454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19458 # Check whether --enable-sjlj-exceptions was given.
19459 if test "${enable_sjlj_exceptions+set}" = set; then :
19460 enableval=$enable_sjlj_exceptions; :
19461 else
19462 cat > conftest.$ac_ext << EOF
19463 #line 19463 "configure"
19464 struct S { ~S(); };
19465 void bar();
19466 void foo()
19468 S s;
19469 bar();
19472 old_CXXFLAGS="$CXXFLAGS"
19473 CXXFLAGS=-S
19474 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19475 (eval $ac_compile) 2>&5
19476 ac_status=$?
19477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19478 test $ac_status = 0; }; then
19479 if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19480 enable_sjlj_exceptions=yes
19481 elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19482 enable_sjlj_exceptions=no
19483 elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19484 # ARM EH ABI.
19485 enable_sjlj_exceptions=no
19488 CXXFLAGS="$old_CXXFLAGS"
19489 rm -f conftest*
19492 if test x$enable_sjlj_exceptions = xyes; then
19494 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19496 ac_exception_model_name=sjlj
19497 elif test x$enable_sjlj_exceptions = xno; then
19498 ac_exception_model_name="call frame"
19499 else
19500 as_fn_error "unable to detect exception model" "$LINENO" 5
19502 ac_ext=c
19503 ac_cpp='$CPP $CPPFLAGS'
19504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19509 $as_echo "$ac_exception_model_name" >&6; }
19511 # If we are non using SJLJ exceptions, and this host does not have support
19512 # for unwinding from a signal handler, enable checked dereferences and divides.
19513 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19514 CHECKREFSPEC=-fcheck-references
19515 DIVIDESPEC=-fuse-divide-subroutine
19516 EXCEPTIONSPEC=
19519 # See if the user wants to disable java.net. This is the mildly
19520 # ugly way that we admit that target-side configuration sucks.
19521 # Check whether --enable-java-net was given.
19522 if test "${enable_java_net+set}" = set; then :
19523 enableval=$enable_java_net;
19527 # Whether java.net is built by default can depend on the target.
19528 if test -z "$enable_java_net"; then
19529 enable_java_net=${enable_java_net_default-yes}
19531 if test "$enable_java_net" = no; then
19533 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19537 # See if the user wants to configure without libffi. Some
19538 # architectures don't support it, and default values are set in
19539 # configure.host.
19541 # Check whether --with-libffi was given.
19542 if test "${with_libffi+set}" = set; then :
19543 withval=$with_libffi; :
19544 else
19545 with_libffi=${with_libffi_default-yes}
19549 LIBFFI=
19550 LIBFFIINCS=
19551 if test "$with_libffi" != no; then
19553 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19555 LIBFFI=../libffi/libffi_convenience.la
19556 LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19561 # See if the user wants to disable JVMPI support.
19562 # Check whether --enable-jvmpi was given.
19563 if test "${enable_jvmpi+set}" = set; then :
19564 enableval=$enable_jvmpi;
19568 if test "$enable_jvmpi" != no; then
19570 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19574 # If the target is an eCos system, use the appropriate eCos
19575 # I/O routines.
19576 # FIXME: this should not be a local option but a global target
19577 # system; at present there is no eCos target.
19578 TARGET_ECOS=${PROCESS-"no"}
19580 # Check whether --with-ecos was given.
19581 if test "${with_ecos+set}" = set; then :
19582 withval=$with_ecos; TARGET_ECOS="$with_ecos"
19587 case "$TARGET_ECOS" in
19588 no) case "$host" in
19589 *mingw*)
19590 PLATFORM=Win32
19591 PLATFORMNET=Win32
19592 PLATFORMH=win32.h
19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19595 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19596 LD_PROG=`$CC --print-prog-name=ld`
19597 LD_VERSION=`$LD_PROG --version`
19598 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19599 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19600 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19601 LD_OK="ok"
19602 else
19603 if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19604 LD_OK="ok"
19607 if test "x$LD_OK" != x; then
19608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19609 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19610 else
19611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19612 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19614 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19616 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19621 PLATFORM=Posix
19622 PLATFORMNET=Posix
19623 PLATFORMH=posix.h
19625 esac
19628 PLATFORM=Ecos
19629 PLATFORMNET=NoNet
19631 $as_echo "#define ECOS 1" >>confdefs.h
19633 PLATFORMH=posix.h
19635 esac
19637 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19641 /* end confdefs.h. */
19642 #include <stdint.h>
19644 _ACEOF
19645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19646 $EGREP "uint32_t" >/dev/null 2>&1; then :
19648 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19651 rm -f conftest*
19653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19654 /* end confdefs.h. */
19655 #include <inttypes.h>
19657 _ACEOF
19658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19659 $EGREP "uint32_t" >/dev/null 2>&1; then :
19661 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19664 rm -f conftest*
19666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19667 /* end confdefs.h. */
19668 #include <sys/types.h>
19670 _ACEOF
19671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19672 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19674 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19677 rm -f conftest*
19679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19680 /* end confdefs.h. */
19681 #include <sys/config.h>
19683 _ACEOF
19684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19685 $EGREP "u_int32_t" >/dev/null 2>&1; then :
19687 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19690 rm -f conftest*
19693 if test "$PLATFORM" = Win32; then
19694 USING_WIN32_PLATFORM_TRUE=
19695 USING_WIN32_PLATFORM_FALSE='#'
19696 else
19697 USING_WIN32_PLATFORM_TRUE='#'
19698 USING_WIN32_PLATFORM_FALSE=
19701 if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19702 USING_POSIX_PLATFORM_TRUE=
19703 USING_POSIX_PLATFORM_FALSE='#'
19704 else
19705 USING_POSIX_PLATFORM_TRUE='#'
19706 USING_POSIX_PLATFORM_FALSE=
19710 case "$host" in
19711 *-darwin*) DARWIN_CRT=true ;;
19712 *) DARWIN_CRT=false ;;
19713 esac
19714 if $DARWIN_CRT; then
19715 USING_DARWIN_CRT_TRUE=
19716 USING_DARWIN_CRT_FALSE='#'
19717 else
19718 USING_DARWIN_CRT_TRUE='#'
19719 USING_DARWIN_CRT_FALSE=
19723 # This may not be defined in a non-ANS conformant embedded system.
19724 # FIXME: Should these case a runtime exception in that case?
19725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19726 /* end confdefs.h. */
19727 #include <time.h>
19729 _ACEOF
19730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19731 $EGREP "localtime" >/dev/null 2>&1; then :
19733 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19736 rm -f conftest*
19739 # Create the subdirectory for natFile.cc, or the attempt
19740 # to create the link will fail.
19741 test -d java || mkdir java
19742 test -d java/io || mkdir java/io
19743 test -d gnu || mkdir gnu
19744 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19747 # Likewise for natConcreteProcess.cc.
19748 test -d java/lang || mkdir java/lang
19749 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19752 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19753 test -d java/net || mkdir java/net
19754 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19756 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19759 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19760 test -d gnu/java || mkdir gnu/java
19761 test -d gnu/java/net || mkdir gnu/java/net
19762 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19764 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19767 # Likewise for natVMPipe.cc and natVMSelector.cc.
19768 test -d gnu/java/nio || mkdir gnu/java/nio
19769 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19771 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19774 # Likewise for natFileChannelImpl.cc
19775 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19776 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19779 # Likewise for natVMSecureRandom.cc
19780 test -d gnu/java/security || mkdir gnu/java/security
19781 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19782 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19783 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19786 case "${host}" in
19787 *mingw*)
19788 SYSTEMSPEC="-lgdi32 -lws2_32"
19789 if test "${with_win32_nlsapi}" = "unicows"; then
19790 SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19793 *-*-darwin[912]*)
19794 SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
19797 SYSTEMSPEC=
19799 esac
19803 # Check whether --with-system-zlib was given.
19804 if test "${with_system_zlib+set}" = set; then :
19805 withval=$with_system_zlib;
19808 ZLIBSPEC=
19810 ZLIBTESTSPEC=
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19814 $as_echo_n "checking for X... " >&6; }
19817 # Check whether --with-x was given.
19818 if test "${with_x+set}" = set; then :
19819 withval=$with_x;
19822 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19823 if test "x$with_x" = xno; then
19824 # The user explicitly disabled X.
19825 have_x=disabled
19826 else
19827 case $x_includes,$x_libraries in #(
19828 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19829 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19830 $as_echo_n "(cached) " >&6
19831 else
19832 # One or both of the vars are not set, and there is no cached value.
19833 ac_x_includes=no ac_x_libraries=no
19834 rm -f -r conftest.dir
19835 if mkdir conftest.dir; then
19836 cd conftest.dir
19837 cat >Imakefile <<'_ACEOF'
19838 incroot:
19839 @echo incroot='${INCROOT}'
19840 usrlibdir:
19841 @echo usrlibdir='${USRLIBDIR}'
19842 libdir:
19843 @echo libdir='${LIBDIR}'
19844 _ACEOF
19845 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19846 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19847 for ac_var in incroot usrlibdir libdir; do
19848 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19849 done
19850 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19851 for ac_extension in a so sl dylib la dll; do
19852 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19853 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19854 ac_im_usrlibdir=$ac_im_libdir; break
19856 done
19857 # Screen out bogus values from the imake configuration. They are
19858 # bogus both because they are the default anyway, and because
19859 # using them would break gcc on systems where it needs fixed includes.
19860 case $ac_im_incroot in
19861 /usr/include) ac_x_includes= ;;
19862 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19863 esac
19864 case $ac_im_usrlibdir in
19865 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19866 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19867 esac
19869 cd ..
19870 rm -f -r conftest.dir
19873 # Standard set of common directories for X headers.
19874 # Check X11 before X11Rn because it is often a symlink to the current release.
19875 ac_x_header_dirs='
19876 /usr/X11/include
19877 /usr/X11R7/include
19878 /usr/X11R6/include
19879 /usr/X11R5/include
19880 /usr/X11R4/include
19882 /usr/include/X11
19883 /usr/include/X11R7
19884 /usr/include/X11R6
19885 /usr/include/X11R5
19886 /usr/include/X11R4
19888 /usr/local/X11/include
19889 /usr/local/X11R7/include
19890 /usr/local/X11R6/include
19891 /usr/local/X11R5/include
19892 /usr/local/X11R4/include
19894 /usr/local/include/X11
19895 /usr/local/include/X11R7
19896 /usr/local/include/X11R6
19897 /usr/local/include/X11R5
19898 /usr/local/include/X11R4
19900 /usr/X386/include
19901 /usr/x386/include
19902 /usr/XFree86/include/X11
19904 /usr/include
19905 /usr/local/include
19906 /usr/unsupported/include
19907 /usr/athena/include
19908 /usr/local/x11r5/include
19909 /usr/lpp/Xamples/include
19911 /usr/openwin/include
19912 /usr/openwin/share/include'
19914 if test "$ac_x_includes" = no; then
19915 # Guess where to find include files, by looking for Xlib.h.
19916 # First, try using that file with no special directory specified.
19917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19918 /* end confdefs.h. */
19919 #include <X11/Xlib.h>
19920 _ACEOF
19921 if ac_fn_c_try_cpp "$LINENO"; then :
19922 # We can compile using X headers with no special include directory.
19923 ac_x_includes=
19924 else
19925 for ac_dir in $ac_x_header_dirs; do
19926 if test -r "$ac_dir/X11/Xlib.h"; then
19927 ac_x_includes=$ac_dir
19928 break
19930 done
19932 rm -f conftest.err conftest.$ac_ext
19933 fi # $ac_x_includes = no
19935 if test "$ac_x_libraries" = no; then
19936 # Check for the libraries.
19937 # See if we find them without any special options.
19938 # Don't add to $LIBS permanently.
19939 ac_save_LIBS=$LIBS
19940 LIBS="-lX11 $LIBS"
19941 if test x$gcc_no_link = xyes; then
19942 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19945 /* end confdefs.h. */
19946 #include <X11/Xlib.h>
19948 main ()
19950 XrmInitialize ()
19952 return 0;
19954 _ACEOF
19955 if ac_fn_c_try_link "$LINENO"; then :
19956 LIBS=$ac_save_LIBS
19957 # We can link X programs with no special library path.
19958 ac_x_libraries=
19959 else
19960 LIBS=$ac_save_LIBS
19961 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19963 # Don't even attempt the hair of trying to link an X program!
19964 for ac_extension in a so sl dylib la dll; do
19965 if test -r "$ac_dir/libX11.$ac_extension"; then
19966 ac_x_libraries=$ac_dir
19967 break 2
19969 done
19970 done
19972 rm -f core conftest.err conftest.$ac_objext \
19973 conftest$ac_exeext conftest.$ac_ext
19974 fi # $ac_x_libraries = no
19976 case $ac_x_includes,$ac_x_libraries in #(
19977 no,* | *,no | *\'*)
19978 # Didn't find X, or a directory has "'" in its name.
19979 ac_cv_have_x="have_x=no";; #(
19981 # Record where we found X for the cache.
19982 ac_cv_have_x="have_x=yes\
19983 ac_x_includes='$ac_x_includes'\
19984 ac_x_libraries='$ac_x_libraries'"
19985 esac
19987 ;; #(
19988 *) have_x=yes;;
19989 esac
19990 eval "$ac_cv_have_x"
19991 fi # $with_x != no
19993 if test "$have_x" != yes; then
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19995 $as_echo "$have_x" >&6; }
19996 no_x=yes
19997 else
19998 # If each of the values was on the command line, it overrides each guess.
19999 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
20000 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
20001 # Update the cache value to reflect the command line values.
20002 ac_cv_have_x="have_x=yes\
20003 ac_x_includes='$x_includes'\
20004 ac_x_libraries='$x_libraries'"
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
20006 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
20009 if test "$no_x" = yes; then
20010 # Not all programs may use this symbol, but it does not hurt to define it.
20012 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
20014 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20015 else
20016 if test -n "$x_includes"; then
20017 X_CFLAGS="$X_CFLAGS -I$x_includes"
20020 # It would also be nice to do this for all -L options, not just this one.
20021 if test -n "$x_libraries"; then
20022 X_LIBS="$X_LIBS -L$x_libraries"
20023 # For Solaris; some versions of Sun CC require a space after -R and
20024 # others require no space. Words are not sufficient . . . .
20025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20026 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20027 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20028 ac_xsave_c_werror_flag=$ac_c_werror_flag
20029 ac_c_werror_flag=yes
20030 if test x$gcc_no_link = xyes; then
20031 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20034 /* end confdefs.h. */
20037 main ()
20041 return 0;
20043 _ACEOF
20044 if ac_fn_c_try_link "$LINENO"; then :
20045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20046 $as_echo "no" >&6; }
20047 X_LIBS="$X_LIBS -R$x_libraries"
20048 else
20049 LIBS="$ac_xsave_LIBS -R $x_libraries"
20050 if test x$gcc_no_link = xyes; then
20051 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20054 /* end confdefs.h. */
20057 main ()
20061 return 0;
20063 _ACEOF
20064 if ac_fn_c_try_link "$LINENO"; then :
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20066 $as_echo "yes" >&6; }
20067 X_LIBS="$X_LIBS -R $x_libraries"
20068 else
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20070 $as_echo "neither works" >&6; }
20072 rm -f core conftest.err conftest.$ac_objext \
20073 conftest$ac_exeext conftest.$ac_ext
20075 rm -f core conftest.err conftest.$ac_objext \
20076 conftest$ac_exeext conftest.$ac_ext
20077 ac_c_werror_flag=$ac_xsave_c_werror_flag
20078 LIBS=$ac_xsave_LIBS
20081 # Check for system-dependent libraries X programs must link with.
20082 # Do this before checking for the system-independent R6 libraries
20083 # (-lICE), since we may need -lsocket or whatever for X linking.
20085 if test "$ISC" = yes; then
20086 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20087 else
20088 # Martyn Johnson says this is needed for Ultrix, if the X
20089 # libraries were built with DECnet support. And Karl Berry says
20090 # the Alpha needs dnet_stub (dnet does not exist).
20091 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20092 if test x$gcc_no_link = xyes; then
20093 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20096 /* end confdefs.h. */
20098 /* Override any GCC internal prototype to avoid an error.
20099 Use char because int might match the return type of a GCC
20100 builtin and then its argument prototype would still apply. */
20101 #ifdef __cplusplus
20102 extern "C"
20103 #endif
20104 char XOpenDisplay ();
20106 main ()
20108 return XOpenDisplay ();
20110 return 0;
20112 _ACEOF
20113 if ac_fn_c_try_link "$LINENO"; then :
20115 else
20116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20117 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20118 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20119 $as_echo_n "(cached) " >&6
20120 else
20121 ac_check_lib_save_LIBS=$LIBS
20122 LIBS="-ldnet $LIBS"
20123 if test x$gcc_no_link = xyes; then
20124 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20127 /* end confdefs.h. */
20129 /* Override any GCC internal prototype to avoid an error.
20130 Use char because int might match the return type of a GCC
20131 builtin and then its argument prototype would still apply. */
20132 #ifdef __cplusplus
20133 extern "C"
20134 #endif
20135 char dnet_ntoa ();
20137 main ()
20139 return dnet_ntoa ();
20141 return 0;
20143 _ACEOF
20144 if ac_fn_c_try_link "$LINENO"; then :
20145 ac_cv_lib_dnet_dnet_ntoa=yes
20146 else
20147 ac_cv_lib_dnet_dnet_ntoa=no
20149 rm -f core conftest.err conftest.$ac_objext \
20150 conftest$ac_exeext conftest.$ac_ext
20151 LIBS=$ac_check_lib_save_LIBS
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20154 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20155 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20156 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20159 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20161 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20162 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20163 $as_echo_n "(cached) " >&6
20164 else
20165 ac_check_lib_save_LIBS=$LIBS
20166 LIBS="-ldnet_stub $LIBS"
20167 if test x$gcc_no_link = xyes; then
20168 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20171 /* end confdefs.h. */
20173 /* Override any GCC internal prototype to avoid an error.
20174 Use char because int might match the return type of a GCC
20175 builtin and then its argument prototype would still apply. */
20176 #ifdef __cplusplus
20177 extern "C"
20178 #endif
20179 char dnet_ntoa ();
20181 main ()
20183 return dnet_ntoa ();
20185 return 0;
20187 _ACEOF
20188 if ac_fn_c_try_link "$LINENO"; then :
20189 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20190 else
20191 ac_cv_lib_dnet_stub_dnet_ntoa=no
20193 rm -f core conftest.err conftest.$ac_objext \
20194 conftest$ac_exeext conftest.$ac_ext
20195 LIBS=$ac_check_lib_save_LIBS
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20198 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20199 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20200 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20205 rm -f core conftest.err conftest.$ac_objext \
20206 conftest$ac_exeext conftest.$ac_ext
20207 LIBS="$ac_xsave_LIBS"
20209 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20210 # to get the SysV transport functions.
20211 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20212 # needs -lnsl.
20213 # The nsl library prevents programs from opening the X display
20214 # on Irix 5.2, according to T.E. Dickey.
20215 # The functions gethostbyname, getservbyname, and inet_addr are
20216 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20217 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20218 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20222 if test $ac_cv_func_gethostbyname = no; then
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20224 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20225 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20226 $as_echo_n "(cached) " >&6
20227 else
20228 ac_check_lib_save_LIBS=$LIBS
20229 LIBS="-lnsl $LIBS"
20230 if test x$gcc_no_link = xyes; then
20231 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20234 /* end confdefs.h. */
20236 /* Override any GCC internal prototype to avoid an error.
20237 Use char because int might match the return type of a GCC
20238 builtin and then its argument prototype would still apply. */
20239 #ifdef __cplusplus
20240 extern "C"
20241 #endif
20242 char gethostbyname ();
20244 main ()
20246 return gethostbyname ();
20248 return 0;
20250 _ACEOF
20251 if ac_fn_c_try_link "$LINENO"; then :
20252 ac_cv_lib_nsl_gethostbyname=yes
20253 else
20254 ac_cv_lib_nsl_gethostbyname=no
20256 rm -f core conftest.err conftest.$ac_objext \
20257 conftest$ac_exeext conftest.$ac_ext
20258 LIBS=$ac_check_lib_save_LIBS
20260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20261 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20262 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20263 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20266 if test $ac_cv_lib_nsl_gethostbyname = no; then
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20268 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20269 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20270 $as_echo_n "(cached) " >&6
20271 else
20272 ac_check_lib_save_LIBS=$LIBS
20273 LIBS="-lbsd $LIBS"
20274 if test x$gcc_no_link = xyes; then
20275 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278 /* end confdefs.h. */
20280 /* Override any GCC internal prototype to avoid an error.
20281 Use char because int might match the return type of a GCC
20282 builtin and then its argument prototype would still apply. */
20283 #ifdef __cplusplus
20284 extern "C"
20285 #endif
20286 char gethostbyname ();
20288 main ()
20290 return gethostbyname ();
20292 return 0;
20294 _ACEOF
20295 if ac_fn_c_try_link "$LINENO"; then :
20296 ac_cv_lib_bsd_gethostbyname=yes
20297 else
20298 ac_cv_lib_bsd_gethostbyname=no
20300 rm -f core conftest.err conftest.$ac_objext \
20301 conftest$ac_exeext conftest.$ac_ext
20302 LIBS=$ac_check_lib_save_LIBS
20304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20305 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20306 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20307 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20313 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20314 # socket/setsockopt and other routines are undefined under SCO ODT
20315 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20316 # on later versions), says Simon Leinen: it contains gethostby*
20317 # variants that don't use the name server (or something). -lsocket
20318 # must be given before -lnsl if both are needed. We assume that
20319 # if connect needs -lnsl, so does gethostbyname.
20320 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20321 if test "x$ac_cv_func_connect" = x""yes; then :
20325 if test $ac_cv_func_connect = no; then
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20327 $as_echo_n "checking for connect in -lsocket... " >&6; }
20328 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20329 $as_echo_n "(cached) " >&6
20330 else
20331 ac_check_lib_save_LIBS=$LIBS
20332 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20333 if test x$gcc_no_link = xyes; then
20334 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20337 /* end confdefs.h. */
20339 /* Override any GCC internal prototype to avoid an error.
20340 Use char because int might match the return type of a GCC
20341 builtin and then its argument prototype would still apply. */
20342 #ifdef __cplusplus
20343 extern "C"
20344 #endif
20345 char connect ();
20347 main ()
20349 return connect ();
20351 return 0;
20353 _ACEOF
20354 if ac_fn_c_try_link "$LINENO"; then :
20355 ac_cv_lib_socket_connect=yes
20356 else
20357 ac_cv_lib_socket_connect=no
20359 rm -f core conftest.err conftest.$ac_objext \
20360 conftest$ac_exeext conftest.$ac_ext
20361 LIBS=$ac_check_lib_save_LIBS
20363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20364 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20365 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20366 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20371 # Guillermo Gomez says -lposix is necessary on A/UX.
20372 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20373 if test "x$ac_cv_func_remove" = x""yes; then :
20377 if test $ac_cv_func_remove = no; then
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20379 $as_echo_n "checking for remove in -lposix... " >&6; }
20380 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20381 $as_echo_n "(cached) " >&6
20382 else
20383 ac_check_lib_save_LIBS=$LIBS
20384 LIBS="-lposix $LIBS"
20385 if test x$gcc_no_link = xyes; then
20386 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20389 /* end confdefs.h. */
20391 /* Override any GCC internal prototype to avoid an error.
20392 Use char because int might match the return type of a GCC
20393 builtin and then its argument prototype would still apply. */
20394 #ifdef __cplusplus
20395 extern "C"
20396 #endif
20397 char remove ();
20399 main ()
20401 return remove ();
20403 return 0;
20405 _ACEOF
20406 if ac_fn_c_try_link "$LINENO"; then :
20407 ac_cv_lib_posix_remove=yes
20408 else
20409 ac_cv_lib_posix_remove=no
20411 rm -f core conftest.err conftest.$ac_objext \
20412 conftest$ac_exeext conftest.$ac_ext
20413 LIBS=$ac_check_lib_save_LIBS
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20416 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20417 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20418 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20423 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20424 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20425 if test "x$ac_cv_func_shmat" = x""yes; then :
20429 if test $ac_cv_func_shmat = no; then
20430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20431 $as_echo_n "checking for shmat in -lipc... " >&6; }
20432 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20433 $as_echo_n "(cached) " >&6
20434 else
20435 ac_check_lib_save_LIBS=$LIBS
20436 LIBS="-lipc $LIBS"
20437 if test x$gcc_no_link = xyes; then
20438 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20441 /* end confdefs.h. */
20443 /* Override any GCC internal prototype to avoid an error.
20444 Use char because int might match the return type of a GCC
20445 builtin and then its argument prototype would still apply. */
20446 #ifdef __cplusplus
20447 extern "C"
20448 #endif
20449 char shmat ();
20451 main ()
20453 return shmat ();
20455 return 0;
20457 _ACEOF
20458 if ac_fn_c_try_link "$LINENO"; then :
20459 ac_cv_lib_ipc_shmat=yes
20460 else
20461 ac_cv_lib_ipc_shmat=no
20463 rm -f core conftest.err conftest.$ac_objext \
20464 conftest$ac_exeext conftest.$ac_ext
20465 LIBS=$ac_check_lib_save_LIBS
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20468 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20469 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20470 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20476 # Check for libraries that X11R6 Xt/Xaw programs need.
20477 ac_save_LDFLAGS=$LDFLAGS
20478 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20479 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20480 # check for ICE first), but we must link in the order -lSM -lICE or
20481 # we get undefined symbols. So assume we have SM if we have ICE.
20482 # These have to be linked with before -lX11, unlike the other
20483 # libraries we check for below, so use a different variable.
20484 # John Interrante, Karl Berry
20485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20486 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20487 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20488 $as_echo_n "(cached) " >&6
20489 else
20490 ac_check_lib_save_LIBS=$LIBS
20491 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20492 if test x$gcc_no_link = xyes; then
20493 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20496 /* end confdefs.h. */
20498 /* Override any GCC internal prototype to avoid an error.
20499 Use char because int might match the return type of a GCC
20500 builtin and then its argument prototype would still apply. */
20501 #ifdef __cplusplus
20502 extern "C"
20503 #endif
20504 char IceConnectionNumber ();
20506 main ()
20508 return IceConnectionNumber ();
20510 return 0;
20512 _ACEOF
20513 if ac_fn_c_try_link "$LINENO"; then :
20514 ac_cv_lib_ICE_IceConnectionNumber=yes
20515 else
20516 ac_cv_lib_ICE_IceConnectionNumber=no
20518 rm -f core conftest.err conftest.$ac_objext \
20519 conftest$ac_exeext conftest.$ac_ext
20520 LIBS=$ac_check_lib_save_LIBS
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20523 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20524 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20525 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20528 LDFLAGS=$ac_save_LDFLAGS
20533 # FIXME: this should be _libs on some hosts.
20534 libsubdir=.libs
20536 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20538 LIBSTDCXXSPEC=
20539 # extra LD Flags which are required for targets
20540 case "${host}" in
20541 *-*-darwin[0-7].*)
20542 # For now we have to disable it on darwin[8-9] because it slows down
20543 # the linking phase. A possible bug in ld?
20544 # on Darwin -single_module speeds up loading of the dynamic libraries.
20545 extra_ldflags_libjava=-Wl,-single_module
20547 arm*linux*eabi)
20548 # Some of the ARM unwinder code is actually in libstdc++. We
20549 # could in principle replicate it in libgcj, but it's better to
20550 # have a dependency on libstdc++.
20551 extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20552 LIBSTDCXXSPEC=-lstdc++
20553 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20555 *-*-cygwin)
20556 extra_ldflags_libjava=-liconv
20558 esac
20560 LIBMATHSPEC=
20561 # extra LD Flags which are required for targets
20562 case "${host}" in
20563 *-*-darwin*)
20566 LIBMATHSPEC=-lm
20568 esac
20570 # Check for --no-merge-exidx-entries, an ARM-specific linker option.
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20572 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20573 if test "${libgcj_cv_exidx+set}" = set; then :
20574 $as_echo_n "(cached) " >&6
20575 else
20576 saved_ldflags="$LDFLAGS"
20577 LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20578 # The IRIX 6 ld doesn't recognize --no-merge-exidx-entries, but only
20579 # warns about unknown options, which breaks the testsuite. So enable
20580 # AC_LANG_WERROR, but there's currently (autoconf 2.64) no way to turn
20581 # it off again. As a workaround, save and restore werror flag like
20582 # AC_PATH_XTRA.
20583 ac_xsave_c_werror_flag=$ac_c_werror_flag
20585 ac_c_werror_flag=yes
20586 if test x$gcc_no_link = xyes; then
20587 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20590 /* end confdefs.h. */
20591 int main(void){ return 0;}
20592 _ACEOF
20593 if ac_fn_c_try_link "$LINENO"; then :
20594 eval "libgcj_cv_exidx=yes"
20595 else
20596 eval "libgcj_cv_exidx=no"
20598 rm -f core conftest.err conftest.$ac_objext \
20599 conftest$ac_exeext conftest.$ac_ext
20600 ac_c_werror_flag=$ac_xsave_c_werror_flag
20601 LDFLAGS="${saved_ldflags}"
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20605 $as_echo "$libgcj_cv_exidx" >&6; }
20606 if test "${libgcj_cv_exidx}" = "yes"; then
20607 SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20608 extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20618 # Allow the GC to be disabled. Can be useful when debugging.
20619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20620 $as_echo_n "checking for garbage collector to use... " >&6; }
20621 # Check whether --enable-java-gc was given.
20622 if test "${enable_java_gc+set}" = set; then :
20623 enableval=$enable_java_gc; GC=$enableval
20624 else
20625 GC=boehm
20628 GCLIBS=
20629 GCINCS=
20630 GCDEPS=
20631 GCSPEC=
20632 JC1GCSPEC=
20633 GCTESTSPEC=
20634 case "$GC" in
20635 boehm)
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20637 $as_echo "boehm" >&6; }
20638 GCLIBS=../boehm-gc/libgcjgc_convenience.la
20639 JC1GCSPEC='-fuse-boehm-gc'
20640 GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20641 GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20642 GCOBJS=boehm.lo
20643 GCHDR=boehm-gc.h
20644 # The POSIX thread support needs to know this.
20646 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20651 $as_echo "none" >&6; }
20652 GCHDR=no-gc.h
20655 as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20657 esac
20664 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20666 if test "$GC" = boehm; then
20667 USING_BOEHMGC_TRUE=
20668 USING_BOEHMGC_FALSE='#'
20669 else
20670 USING_BOEHMGC_TRUE='#'
20671 USING_BOEHMGC_FALSE=
20674 if test "$GC" = no; then
20675 USING_NOGC_TRUE=
20676 USING_NOGC_FALSE='#'
20677 else
20678 USING_NOGC_TRUE='#'
20679 USING_NOGC_FALSE=
20684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20685 $as_echo_n "checking for thread model used by GCC... " >&6; }
20686 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20688 $as_echo "$THREADS" >&6; }
20690 case "$THREADS" in
20691 no | none | single)
20692 THREADS=none
20694 aix | posix | posix95 | pthreads)
20695 THREADS=posix
20696 case "$host" in
20697 *-*-linux*)
20699 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20702 esac
20704 win32)
20706 decosf1 | irix | mach | os2 | dce | vxworks)
20707 as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20710 as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20712 esac
20714 THREADCXXFLAGS=
20715 THREADLDFLAGS=
20716 THREADLIBS=
20717 THREADINCS=
20718 THREADDEPS=
20719 THREADH=
20720 THREADSPEC=
20721 THREADSTARTFILESPEC=
20722 case "$THREADS" in
20723 posix)
20724 case "$host" in
20725 *-*-cygwin*)
20726 # Don't set THREADLIBS here. Cygwin doesn't have -lpthread.
20728 *-*-freebsd[1234]*)
20729 # Before FreeBSD 5, it didn't have -lpthread (or any library which
20730 # merely adds pthread_* functions) but it does have a -pthread switch
20731 # which is required at link-time to select -lc_r *instead* of -lc.
20732 THREADLDFLAGS=-pthread
20733 # Don't set THREADSPEC here as might be expected since -pthread is
20734 # not processed when found within a spec file, it must come from
20735 # the command line. For now, the user must provide the -pthread
20736 # switch to link code compiled with gcj. In future, consider adding
20737 # support for weak references to pthread_* functions ala gthr.h API.
20738 THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20740 *-*-freebsd*)
20741 # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20742 # systems which support threads and -lpthread.
20743 THREADLDFLAGS=-pthread
20744 THREADSPEC=-lpthread
20746 alpha*-dec-osf* | hppa*-hp-hpux*)
20747 THREADCXXFLAGS=-pthread
20748 # boehm-gc needs some functions from librt, so link that too.
20749 THREADLIBS='-lpthread -lrt'
20750 THREADSPEC='-lpthread -lrt'
20752 *-*-solaris2.8)
20753 # Always use alternate thread library on Solaris 8. Need libthread
20754 # for TLS support.
20755 # Need -Wl,-R to get it through libtool ...
20756 THREADLIBS='-L/usr/lib/lwp$(MULTISUBDIR) -Wl,-R -Wl,/usr/lib/lwp$(MULTISUBDIR) -lpthread -lthread'
20757 # ... while ld only accepts -R.
20758 THREADSPEC='-L/usr/lib/lwp%{m64:/64} -R/usr/lib/lwp%{m64:/64} -lpthread -lthread'
20760 *-*-solaris2.9)
20761 # As on Solaris 8, need libthread for TLS support.
20762 THREADLIBS='-lpthread -lthread'
20763 THREADSPEC='-lpthread -lthread'
20765 *-*-darwin*)
20766 # Don't set THREADLIBS or THREADSPEC as Darwin already
20767 # provides pthread via libSystem.
20770 THREADLIBS=-lpthread
20771 THREADSPEC=-lpthread
20773 esac
20774 THREADH=posix-threads.h
20775 # MIT pthreads doesn't seem to have the mutexattr functions.
20776 # But for now we don't check for it. We just assume you aren't
20777 # using MIT pthreads.
20779 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20782 # If we're using the Boehm GC, then we happen to know that it
20783 # defines _REENTRANT, so we don't bother. Eww.
20784 if test "$GC" != boehm; then
20786 $as_echo "#define _REENTRANT 1" >>confdefs.h
20790 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20794 win32)
20795 THREADH=win32-threads.h
20796 THREADCXXFLAGS=-mthreads
20797 # We need thread-safe exception handling so _CRT_MT should be set to 1.
20798 # But we do not want the executables created to be dependent on
20799 # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20800 # exception handling contexts. The following kludge achieves this effect
20801 # and causes a dummy __mingwthr_key_dtor() to be linked in from
20802 # libmingw32.a. This causes a memory leak of about 24 bytes per thread.
20803 # A workaround is to explicitly use -mthreads while linking Java programs.
20804 # See PR libgcj/28263.
20806 # FIXME: In Java we are able to detect thread death at the end of
20807 # Thread.run() so we should be able to clean up the exception handling
20808 # contexts ourselves.
20809 THREADSTARTFILESPEC='crtmt%O%s'
20812 none)
20813 THREADH=no-threads.h
20815 esac
20816 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20825 if test "$THREADS" = posix; then
20826 USING_POSIX_THREADS_TRUE=
20827 USING_POSIX_THREADS_FALSE='#'
20828 else
20829 USING_POSIX_THREADS_TRUE='#'
20830 USING_POSIX_THREADS_FALSE=
20833 if test "$THREADS" = win32; then
20834 USING_WIN32_THREADS_TRUE=
20835 USING_WIN32_THREADS_FALSE='#'
20836 else
20837 USING_WIN32_THREADS_TRUE='#'
20838 USING_WIN32_THREADS_FALSE=
20841 if test "$THREADS" = none; then
20842 USING_NO_THREADS_TRUE=
20843 USING_NO_THREADS_FALSE='#'
20844 else
20845 USING_NO_THREADS_TRUE='#'
20846 USING_NO_THREADS_FALSE=
20849 if test "$enable_shared" != yes; then
20850 use_libgcj_bc=no
20852 if test "$use_libgcj_bc" = yes; then
20853 USE_LIBGCJ_BC_TRUE=
20854 USE_LIBGCJ_BC_FALSE='#'
20855 else
20856 USE_LIBGCJ_BC_TRUE='#'
20857 USE_LIBGCJ_BC_FALSE=
20861 if test -d sysdep; then true; else mkdir sysdep; fi
20862 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20864 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20866 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20869 LIBGCJ_SPEC_LGCJ=-lgcj
20870 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20871 if test x"$libgcj_spec_lgcj_override" != x ; then
20872 LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20874 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20875 LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20877 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20878 if test "$use_libgcj_bc" = yes; then
20879 LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20880 LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20885 HASH_SYNC_SPEC=
20886 # Hash synchronization is only useful with posix threads right now.
20887 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20888 HASH_SYNC_SPEC=-fhash-synchronization
20890 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20895 if test "$GCC" = yes; then
20896 USING_GCC_TRUE=
20897 USING_GCC_FALSE='#'
20898 else
20899 USING_GCC_TRUE='#'
20900 USING_GCC_FALSE=
20904 # We're in the tree with gcc, and need to include some of its headers.
20905 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20907 if test "x${with_newlib}" = "xyes"; then
20908 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
20909 # may not work correctly, because the compiler may not be able to
20910 # link executables.
20912 # We assume newlib. This lets us hard-code the functions we know
20913 # we'll have.
20915 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20918 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20921 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20924 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20927 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20930 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20932 # This is only for POSIX threads.
20934 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20937 # Assume we do not have getuid and friends.
20939 $as_echo "#define NO_GETUID 1" >>confdefs.h
20941 PLATFORMNET=NoNet
20942 else
20943 for ac_func in strerror_r select fstat open fsync sleep opendir \
20944 localtime_r getpwuid_r getcwd \
20945 access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20946 nl_langinfo setlocale \
20947 inet_pton uname inet_ntoa \
20948 getrlimit sigaction ftruncate mmap \
20949 getifaddrs
20950 do :
20951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20952 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20953 eval as_val=\$$as_ac_var
20954 if test "x$as_val" = x""yes; then :
20955 cat >>confdefs.h <<_ACEOF
20956 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20957 _ACEOF
20960 done
20962 for ac_func in inet_aton inet_addr
20963 do :
20964 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20965 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20966 eval as_val=\$$as_ac_var
20967 if test "x$as_val" = x""yes; then :
20968 cat >>confdefs.h <<_ACEOF
20969 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20970 _ACEOF
20971 break
20973 done
20975 for ac_header in unistd.h dlfcn.h sys/resource.h
20976 do :
20977 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20978 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20979 eval as_val=\$$as_ac_Header
20980 if test "x$as_val" = x""yes; then :
20981 cat >>confdefs.h <<_ACEOF
20982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20983 _ACEOF
20987 done
20989 # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20991 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20992 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20993 $as_echo_n "(cached) " >&6
20994 else
20995 ac_check_lib_save_LIBS=$LIBS
20996 LIBS="-ldl $LIBS"
20997 if test x$gcc_no_link = xyes; then
20998 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21001 /* end confdefs.h. */
21003 /* Override any GCC internal prototype to avoid an error.
21004 Use char because int might match the return type of a GCC
21005 builtin and then its argument prototype would still apply. */
21006 #ifdef __cplusplus
21007 extern "C"
21008 #endif
21009 char dladdr ();
21011 main ()
21013 return dladdr ();
21015 return 0;
21017 _ACEOF
21018 if ac_fn_c_try_link "$LINENO"; then :
21019 ac_cv_lib_dl_dladdr=yes
21020 else
21021 ac_cv_lib_dl_dladdr=no
21023 rm -f core conftest.err conftest.$ac_objext \
21024 conftest$ac_exeext conftest.$ac_ext
21025 LIBS=$ac_check_lib_save_LIBS
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
21028 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
21029 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
21032 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21034 else
21036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
21037 $as_echo_n "checking for dladdr in -ldld... " >&6; }
21038 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
21039 $as_echo_n "(cached) " >&6
21040 else
21041 ac_check_lib_save_LIBS=$LIBS
21042 LIBS="-ldld $LIBS"
21043 if test x$gcc_no_link = xyes; then
21044 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21047 /* end confdefs.h. */
21049 /* Override any GCC internal prototype to avoid an error.
21050 Use char because int might match the return type of a GCC
21051 builtin and then its argument prototype would still apply. */
21052 #ifdef __cplusplus
21053 extern "C"
21054 #endif
21055 char dladdr ();
21057 main ()
21059 return dladdr ();
21061 return 0;
21063 _ACEOF
21064 if ac_fn_c_try_link "$LINENO"; then :
21065 ac_cv_lib_dld_dladdr=yes
21066 else
21067 ac_cv_lib_dld_dladdr=no
21069 rm -f core conftest.err conftest.$ac_objext \
21070 conftest$ac_exeext conftest.$ac_ext
21071 LIBS=$ac_check_lib_save_LIBS
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21074 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21075 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
21078 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21085 if test x"$cross_compiling" = x"no"; then
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21087 $as_echo_n "checking for /proc/self/exe... " >&6; }
21088 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21089 $as_echo_n "(cached) " >&6
21090 else
21091 test "$cross_compiling" = yes &&
21092 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21093 if test -r "/proc/self/exe"; then
21094 ac_cv_file__proc_self_exe=yes
21095 else
21096 ac_cv_file__proc_self_exe=no
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21100 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
21101 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
21103 cat >>confdefs.h <<_ACEOF
21104 #define HAVE__PROC_SELF_EXE 1
21105 _ACEOF
21108 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21113 $as_echo_n "checking for /proc/self/maps... " >&6; }
21114 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21115 $as_echo_n "(cached) " >&6
21116 else
21117 test "$cross_compiling" = yes &&
21118 as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21119 if test -r "/proc/self/maps"; then
21120 ac_cv_file__proc_self_maps=yes
21121 else
21122 ac_cv_file__proc_self_maps=no
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21126 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21127 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21129 cat >>confdefs.h <<_ACEOF
21130 #define HAVE__PROC_SELF_MAPS 1
21131 _ACEOF
21134 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21138 else
21139 case $host in
21140 *-linux*)
21142 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21145 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21148 esac
21152 if test "X$prefix" = "XNONE"; then
21153 acl_final_prefix="$ac_default_prefix"
21154 else
21155 acl_final_prefix="$prefix"
21157 if test "X$exec_prefix" = "XNONE"; then
21158 acl_final_exec_prefix='${prefix}'
21159 else
21160 acl_final_exec_prefix="$exec_prefix"
21162 acl_save_prefix="$prefix"
21163 prefix="$acl_final_prefix"
21164 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21165 prefix="$acl_save_prefix"
21168 # Check whether --with-gnu-ld was given.
21169 if test "${with_gnu_ld+set}" = set; then :
21170 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21171 else
21172 with_gnu_ld=no
21175 # Prepare PATH_SEPARATOR.
21176 # The user is always right.
21177 if test "${PATH_SEPARATOR+set}" != set; then
21178 echo "#! /bin/sh" >conf$$.sh
21179 echo "exit 0" >>conf$$.sh
21180 chmod +x conf$$.sh
21181 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21182 PATH_SEPARATOR=';'
21183 else
21184 PATH_SEPARATOR=:
21186 rm -f conf$$.sh
21188 ac_prog=ld
21189 if test "$GCC" = yes; then
21190 # Check if gcc -print-prog-name=ld gives a path.
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21192 $as_echo_n "checking for ld used by GCC... " >&6; }
21193 case $host in
21194 *-*-mingw*)
21195 # gcc leaves a trailing carriage return which upsets mingw
21196 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21198 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21199 esac
21200 case $ac_prog in
21201 # Accept absolute paths.
21202 [\\/]* | [A-Za-z]:[\\/]*)
21203 re_direlt='/[^/][^/]*/\.\./'
21204 # Canonicalize the path of ld
21205 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21206 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21207 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21208 done
21209 test -z "$LD" && LD="$ac_prog"
21212 # If it fails, then pretend we aren't using GCC.
21213 ac_prog=ld
21216 # If it is relative, then search for the first ld in PATH.
21217 with_gnu_ld=unknown
21219 esac
21220 elif test "$with_gnu_ld" = yes; then
21221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21222 $as_echo_n "checking for GNU ld... " >&6; }
21223 else
21224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21225 $as_echo_n "checking for non-GNU ld... " >&6; }
21227 if test "${acl_cv_path_LD+set}" = set; then :
21228 $as_echo_n "(cached) " >&6
21229 else
21230 if test -z "$LD"; then
21231 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21232 for ac_dir in $PATH; do
21233 test -z "$ac_dir" && ac_dir=.
21234 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21235 acl_cv_path_LD="$ac_dir/$ac_prog"
21236 # Check to see if the program is GNU ld. I'd rather use --version,
21237 # but apparently some GNU ld's only accept -v.
21238 # Break only if it was the GNU/non-GNU ld that we prefer.
21239 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21240 test "$with_gnu_ld" != no && break
21241 else
21242 test "$with_gnu_ld" != yes && break
21245 done
21246 IFS="$ac_save_ifs"
21247 else
21248 acl_cv_path_LD="$LD" # Let the user override the test with a path.
21252 LD="$acl_cv_path_LD"
21253 if test -n "$LD"; then
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21255 $as_echo "$LD" >&6; }
21256 else
21257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21258 $as_echo "no" >&6; }
21260 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21262 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21263 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21264 $as_echo_n "(cached) " >&6
21265 else
21266 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21267 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21268 acl_cv_prog_gnu_ld=yes
21269 else
21270 acl_cv_prog_gnu_ld=no
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21274 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21275 with_gnu_ld=$acl_cv_prog_gnu_ld
21279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21280 $as_echo_n "checking for shared library run path origin... " >&6; }
21281 if test "${acl_cv_rpath+set}" = set; then :
21282 $as_echo_n "(cached) " >&6
21283 else
21285 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21286 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21287 . ./conftest.sh
21288 rm -f ./conftest.sh
21289 acl_cv_rpath=done
21292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21293 $as_echo "$acl_cv_rpath" >&6; }
21294 wl="$acl_cv_wl"
21295 libext="$acl_cv_libext"
21296 shlibext="$acl_cv_shlibext"
21297 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21298 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21299 hardcode_direct="$acl_cv_hardcode_direct"
21300 hardcode_minus_L="$acl_cv_hardcode_minus_L"
21301 # Check whether --enable-rpath was given.
21302 if test "${enable_rpath+set}" = set; then :
21303 enableval=$enable_rpath; :
21304 else
21305 enable_rpath=yes
21315 use_additional=yes
21317 acl_save_prefix="$prefix"
21318 prefix="$acl_final_prefix"
21319 acl_save_exec_prefix="$exec_prefix"
21320 exec_prefix="$acl_final_exec_prefix"
21322 eval additional_includedir=\"$includedir\"
21323 eval additional_libdir=\"$libdir\"
21325 exec_prefix="$acl_save_exec_prefix"
21326 prefix="$acl_save_prefix"
21329 # Check whether --with-libiconv-prefix was given.
21330 if test "${with_libiconv_prefix+set}" = set; then :
21331 withval=$with_libiconv_prefix;
21332 if test "X$withval" = "Xno"; then
21333 use_additional=no
21334 else
21335 if test "X$withval" = "X"; then
21337 acl_save_prefix="$prefix"
21338 prefix="$acl_final_prefix"
21339 acl_save_exec_prefix="$exec_prefix"
21340 exec_prefix="$acl_final_exec_prefix"
21342 eval additional_includedir=\"$includedir\"
21343 eval additional_libdir=\"$libdir\"
21345 exec_prefix="$acl_save_exec_prefix"
21346 prefix="$acl_save_prefix"
21348 else
21349 additional_includedir="$withval/include"
21350 additional_libdir="$withval/lib"
21356 LIBICONV=
21357 LTLIBICONV=
21358 INCICONV=
21359 rpathdirs=
21360 ltrpathdirs=
21361 names_already_handled=
21362 names_next_round='iconv '
21363 while test -n "$names_next_round"; do
21364 names_this_round="$names_next_round"
21365 names_next_round=
21366 for name in $names_this_round; do
21367 already_handled=
21368 for n in $names_already_handled; do
21369 if test "$n" = "$name"; then
21370 already_handled=yes
21371 break
21373 done
21374 if test -z "$already_handled"; then
21375 names_already_handled="$names_already_handled $name"
21376 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21377 eval value=\"\$HAVE_LIB$uppername\"
21378 if test -n "$value"; then
21379 if test "$value" = yes; then
21380 eval value=\"\$LIB$uppername\"
21381 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21382 eval value=\"\$LTLIB$uppername\"
21383 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21384 else
21387 else
21388 found_dir=
21389 found_la=
21390 found_so=
21391 found_a=
21392 if test $use_additional = yes; then
21393 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21394 found_dir="$additional_libdir"
21395 found_so="$additional_libdir/lib$name.$shlibext"
21396 if test -f "$additional_libdir/lib$name.la"; then
21397 found_la="$additional_libdir/lib$name.la"
21399 else
21400 if test -f "$additional_libdir/lib$name.$libext"; then
21401 found_dir="$additional_libdir"
21402 found_a="$additional_libdir/lib$name.$libext"
21403 if test -f "$additional_libdir/lib$name.la"; then
21404 found_la="$additional_libdir/lib$name.la"
21409 if test "X$found_dir" = "X"; then
21410 for x in $LDFLAGS $LTLIBICONV; do
21412 acl_save_prefix="$prefix"
21413 prefix="$acl_final_prefix"
21414 acl_save_exec_prefix="$exec_prefix"
21415 exec_prefix="$acl_final_exec_prefix"
21416 eval x=\"$x\"
21417 exec_prefix="$acl_save_exec_prefix"
21418 prefix="$acl_save_prefix"
21420 case "$x" in
21421 -L*)
21422 dir=`echo "X$x" | sed -e 's/^X-L//'`
21423 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21424 found_dir="$dir"
21425 found_so="$dir/lib$name.$shlibext"
21426 if test -f "$dir/lib$name.la"; then
21427 found_la="$dir/lib$name.la"
21429 else
21430 if test -f "$dir/lib$name.$libext"; then
21431 found_dir="$dir"
21432 found_a="$dir/lib$name.$libext"
21433 if test -f "$dir/lib$name.la"; then
21434 found_la="$dir/lib$name.la"
21439 esac
21440 if test "X$found_dir" != "X"; then
21441 break
21443 done
21445 if test "X$found_dir" != "X"; then
21446 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21447 if test "X$found_so" != "X"; then
21448 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21449 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21450 else
21451 haveit=
21452 for x in $ltrpathdirs; do
21453 if test "X$x" = "X$found_dir"; then
21454 haveit=yes
21455 break
21457 done
21458 if test -z "$haveit"; then
21459 ltrpathdirs="$ltrpathdirs $found_dir"
21461 if test "$hardcode_direct" = yes; then
21462 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21463 else
21464 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21465 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21466 haveit=
21467 for x in $rpathdirs; do
21468 if test "X$x" = "X$found_dir"; then
21469 haveit=yes
21470 break
21472 done
21473 if test -z "$haveit"; then
21474 rpathdirs="$rpathdirs $found_dir"
21476 else
21477 haveit=
21478 for x in $LDFLAGS $LIBICONV; do
21480 acl_save_prefix="$prefix"
21481 prefix="$acl_final_prefix"
21482 acl_save_exec_prefix="$exec_prefix"
21483 exec_prefix="$acl_final_exec_prefix"
21484 eval x=\"$x\"
21485 exec_prefix="$acl_save_exec_prefix"
21486 prefix="$acl_save_prefix"
21488 if test "X$x" = "X-L$found_dir"; then
21489 haveit=yes
21490 break
21492 done
21493 if test -z "$haveit"; then
21494 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21496 if test "$hardcode_minus_L" != no; then
21497 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21498 else
21499 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21504 else
21505 if test "X$found_a" != "X"; then
21506 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21507 else
21508 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21511 additional_includedir=
21512 case "$found_dir" in
21513 */lib | */lib/)
21514 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21515 additional_includedir="$basedir/include"
21517 esac
21518 if test "X$additional_includedir" != "X"; then
21519 if test "X$additional_includedir" != "X/usr/include"; then
21520 haveit=
21521 if test "X$additional_includedir" = "X/usr/local/include"; then
21522 if test -n "$GCC"; then
21523 case $host_os in
21524 linux*) haveit=yes;;
21525 esac
21528 if test -z "$haveit"; then
21529 for x in $CPPFLAGS $INCICONV; do
21531 acl_save_prefix="$prefix"
21532 prefix="$acl_final_prefix"
21533 acl_save_exec_prefix="$exec_prefix"
21534 exec_prefix="$acl_final_exec_prefix"
21535 eval x=\"$x\"
21536 exec_prefix="$acl_save_exec_prefix"
21537 prefix="$acl_save_prefix"
21539 if test "X$x" = "X-I$additional_includedir"; then
21540 haveit=yes
21541 break
21543 done
21544 if test -z "$haveit"; then
21545 if test -d "$additional_includedir"; then
21546 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21552 if test -n "$found_la"; then
21553 save_libdir="$libdir"
21554 case "$found_la" in
21555 */* | *\\*) . "$found_la" ;;
21556 *) . "./$found_la" ;;
21557 esac
21558 libdir="$save_libdir"
21559 for dep in $dependency_libs; do
21560 case "$dep" in
21561 -L*)
21562 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21563 if test "X$additional_libdir" != "X/usr/lib"; then
21564 haveit=
21565 if test "X$additional_libdir" = "X/usr/local/lib"; then
21566 if test -n "$GCC"; then
21567 case $host_os in
21568 linux*) haveit=yes;;
21569 esac
21572 if test -z "$haveit"; then
21573 haveit=
21574 for x in $LDFLAGS $LIBICONV; do
21576 acl_save_prefix="$prefix"
21577 prefix="$acl_final_prefix"
21578 acl_save_exec_prefix="$exec_prefix"
21579 exec_prefix="$acl_final_exec_prefix"
21580 eval x=\"$x\"
21581 exec_prefix="$acl_save_exec_prefix"
21582 prefix="$acl_save_prefix"
21584 if test "X$x" = "X-L$additional_libdir"; then
21585 haveit=yes
21586 break
21588 done
21589 if test -z "$haveit"; then
21590 if test -d "$additional_libdir"; then
21591 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21594 haveit=
21595 for x in $LDFLAGS $LTLIBICONV; do
21597 acl_save_prefix="$prefix"
21598 prefix="$acl_final_prefix"
21599 acl_save_exec_prefix="$exec_prefix"
21600 exec_prefix="$acl_final_exec_prefix"
21601 eval x=\"$x\"
21602 exec_prefix="$acl_save_exec_prefix"
21603 prefix="$acl_save_prefix"
21605 if test "X$x" = "X-L$additional_libdir"; then
21606 haveit=yes
21607 break
21609 done
21610 if test -z "$haveit"; then
21611 if test -d "$additional_libdir"; then
21612 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21618 -R*)
21619 dir=`echo "X$dep" | sed -e 's/^X-R//'`
21620 if test "$enable_rpath" != no; then
21621 haveit=
21622 for x in $rpathdirs; do
21623 if test "X$x" = "X$dir"; then
21624 haveit=yes
21625 break
21627 done
21628 if test -z "$haveit"; then
21629 rpathdirs="$rpathdirs $dir"
21631 haveit=
21632 for x in $ltrpathdirs; do
21633 if test "X$x" = "X$dir"; then
21634 haveit=yes
21635 break
21637 done
21638 if test -z "$haveit"; then
21639 ltrpathdirs="$ltrpathdirs $dir"
21643 -l*)
21644 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21646 *.la)
21647 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21650 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21651 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21653 esac
21654 done
21656 else
21657 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21658 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21662 done
21663 done
21664 if test "X$rpathdirs" != "X"; then
21665 if test -n "$hardcode_libdir_separator"; then
21666 alldirs=
21667 for found_dir in $rpathdirs; do
21668 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21669 done
21670 acl_save_libdir="$libdir"
21671 libdir="$alldirs"
21672 eval flag=\"$hardcode_libdir_flag_spec\"
21673 libdir="$acl_save_libdir"
21674 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21675 else
21676 for found_dir in $rpathdirs; do
21677 acl_save_libdir="$libdir"
21678 libdir="$found_dir"
21679 eval flag=\"$hardcode_libdir_flag_spec\"
21680 libdir="$acl_save_libdir"
21681 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21682 done
21685 if test "X$ltrpathdirs" != "X"; then
21686 for found_dir in $ltrpathdirs; do
21687 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21688 done
21697 am_save_CPPFLAGS="$CPPFLAGS"
21699 for element in $INCICONV; do
21700 haveit=
21701 for x in $CPPFLAGS; do
21703 acl_save_prefix="$prefix"
21704 prefix="$acl_final_prefix"
21705 acl_save_exec_prefix="$exec_prefix"
21706 exec_prefix="$acl_final_exec_prefix"
21707 eval x=\"$x\"
21708 exec_prefix="$acl_save_exec_prefix"
21709 prefix="$acl_save_prefix"
21711 if test "X$x" = "X$element"; then
21712 haveit=yes
21713 break
21715 done
21716 if test -z "$haveit"; then
21717 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21719 done
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21723 $as_echo_n "checking for iconv... " >&6; }
21724 if test "${am_cv_func_iconv+set}" = set; then :
21725 $as_echo_n "(cached) " >&6
21726 else
21728 am_cv_func_iconv="no, consider installing GNU libiconv"
21729 am_cv_lib_iconv=no
21730 if test x$gcc_no_link = xyes; then
21731 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21734 /* end confdefs.h. */
21735 #include <stdlib.h>
21736 #include <iconv.h>
21738 main ()
21740 iconv_t cd = iconv_open("","");
21741 iconv(cd,NULL,NULL,NULL,NULL);
21742 iconv_close(cd);
21744 return 0;
21746 _ACEOF
21747 if ac_fn_c_try_link "$LINENO"; then :
21748 am_cv_func_iconv=yes
21750 rm -f core conftest.err conftest.$ac_objext \
21751 conftest$ac_exeext conftest.$ac_ext
21752 if test "$am_cv_func_iconv" != yes; then
21753 am_save_LIBS="$LIBS"
21754 LIBS="$LIBS $LIBICONV"
21755 if test x$gcc_no_link = xyes; then
21756 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21759 /* end confdefs.h. */
21760 #include <stdlib.h>
21761 #include <iconv.h>
21763 main ()
21765 iconv_t cd = iconv_open("","");
21766 iconv(cd,NULL,NULL,NULL,NULL);
21767 iconv_close(cd);
21769 return 0;
21771 _ACEOF
21772 if ac_fn_c_try_link "$LINENO"; then :
21773 am_cv_lib_iconv=yes
21774 am_cv_func_iconv=yes
21776 rm -f core conftest.err conftest.$ac_objext \
21777 conftest$ac_exeext conftest.$ac_ext
21778 LIBS="$am_save_LIBS"
21782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21783 $as_echo "$am_cv_func_iconv" >&6; }
21784 if test "$am_cv_func_iconv" = yes; then
21786 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21789 if test "$am_cv_lib_iconv" = yes; then
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21791 $as_echo_n "checking how to link with libiconv... " >&6; }
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21793 $as_echo "$LIBICONV" >&6; }
21794 else
21795 CPPFLAGS="$am_save_CPPFLAGS"
21796 LIBICONV=
21797 LTLIBICONV=
21802 if test "$am_cv_func_iconv" = yes; then
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21804 $as_echo_n "checking for iconv declaration... " >&6; }
21805 if test "${am_cv_proto_iconv+set}" = set; then :
21806 $as_echo_n "(cached) " >&6
21807 else
21809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21810 /* end confdefs.h. */
21812 #include <stdlib.h>
21813 #include <iconv.h>
21814 extern
21815 #ifdef __cplusplus
21817 #endif
21818 #if defined(__STDC__) || defined(__cplusplus)
21819 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21820 #else
21821 size_t iconv();
21822 #endif
21825 main ()
21829 return 0;
21831 _ACEOF
21832 if ac_fn_c_try_compile "$LINENO"; then :
21833 am_cv_proto_iconv_arg1=""
21834 else
21835 am_cv_proto_iconv_arg1="const"
21837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21838 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);"
21841 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21843 }$am_cv_proto_iconv" >&5
21844 $as_echo "${ac_t:-
21845 }$am_cv_proto_iconv" >&6; }
21847 cat >>confdefs.h <<_ACEOF
21848 #define ICONV_CONST $am_cv_proto_iconv_arg1
21849 _ACEOF
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21855 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21856 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21857 $as_echo_n "(cached) " >&6
21858 else
21859 if test x$gcc_no_link = xyes; then
21860 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21863 /* end confdefs.h. */
21864 #include <locale.h>
21866 main ()
21868 return LC_MESSAGES
21870 return 0;
21872 _ACEOF
21873 if ac_fn_c_try_link "$LINENO"; then :
21874 am_cv_val_LC_MESSAGES=yes
21875 else
21876 am_cv_val_LC_MESSAGES=no
21878 rm -f core conftest.err conftest.$ac_objext \
21879 conftest$ac_exeext conftest.$ac_ext
21881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21882 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21883 if test $am_cv_val_LC_MESSAGES = yes; then
21885 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21890 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21891 if test "${ac_cv_struct_tm+set}" = set; then :
21892 $as_echo_n "(cached) " >&6
21893 else
21894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21895 /* end confdefs.h. */
21896 #include <sys/types.h>
21897 #include <time.h>
21900 main ()
21902 struct tm tm;
21903 int *p = &tm.tm_sec;
21904 return !p;
21906 return 0;
21908 _ACEOF
21909 if ac_fn_c_try_compile "$LINENO"; then :
21910 ac_cv_struct_tm=time.h
21911 else
21912 ac_cv_struct_tm=sys/time.h
21914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21917 $as_echo "$ac_cv_struct_tm" >&6; }
21918 if test $ac_cv_struct_tm = sys/time.h; then
21920 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21924 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21925 #include <$ac_cv_struct_tm>
21928 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21930 cat >>confdefs.h <<_ACEOF
21931 #define HAVE_STRUCT_TM_TM_ZONE 1
21932 _ACEOF
21937 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21939 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21941 else
21942 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21944 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21945 ac_have_decl=1
21946 else
21947 ac_have_decl=0
21950 cat >>confdefs.h <<_ACEOF
21951 #define HAVE_DECL_TZNAME $ac_have_decl
21952 _ACEOF
21954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21955 $as_echo_n "checking for tzname... " >&6; }
21956 if test "${ac_cv_var_tzname+set}" = set; then :
21957 $as_echo_n "(cached) " >&6
21958 else
21959 if test x$gcc_no_link = xyes; then
21960 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21963 /* end confdefs.h. */
21964 #include <time.h>
21965 #if !HAVE_DECL_TZNAME
21966 extern char *tzname[];
21967 #endif
21970 main ()
21972 return tzname[0][0];
21974 return 0;
21976 _ACEOF
21977 if ac_fn_c_try_link "$LINENO"; then :
21978 ac_cv_var_tzname=yes
21979 else
21980 ac_cv_var_tzname=no
21982 rm -f core conftest.err conftest.$ac_objext \
21983 conftest$ac_exeext conftest.$ac_ext
21985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21986 $as_echo "$ac_cv_var_tzname" >&6; }
21987 if test $ac_cv_var_tzname = yes; then
21989 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21994 LDLIBICONV=`echo " $LIBICONV " | sed "s/${acl_cv_wl--Wl,}/ /g; s/,/ /g"`
21997 for ac_func in gethostbyname_r
21998 do :
21999 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
22000 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
22001 cat >>confdefs.h <<_ACEOF
22002 #define HAVE_GETHOSTBYNAME_R 1
22003 _ACEOF
22006 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
22008 # There are two different kinds of gethostbyname_r.
22009 # We look for the one that returns `int'.
22010 # Hopefully this check is robust enough.
22011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22012 /* end confdefs.h. */
22013 #include <netdb.h>
22015 _ACEOF
22016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22017 $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
22020 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
22023 rm -f conftest*
22026 case " $GCINCS " in
22027 *" -D_REENTRANT "*) ;;
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
22030 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
22031 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
22032 $as_echo_n "(cached) " >&6
22033 else
22034 ac_ext=cpp
22035 ac_cpp='$CXXCPP $CPPFLAGS'
22036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22041 /* end confdefs.h. */
22042 #include <netdb.h>
22044 main ()
22046 gethostbyname_r("", 0, 0);
22048 return 0;
22050 _ACEOF
22051 if ac_fn_cxx_try_compile "$LINENO"; then :
22052 libjava_cv_gethostbyname_r_needs_reentrant=no
22053 else
22054 CPPFLAGS_SAVE="$CPPFLAGS"
22055 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22057 /* end confdefs.h. */
22058 #include <netdb.h>
22060 main ()
22062 gethostbyname_r("", 0, 0);
22064 return 0;
22066 _ACEOF
22067 if ac_fn_cxx_try_compile "$LINENO"; then :
22068 libjava_cv_gethostbyname_r_needs_reentrant=yes
22069 else
22070 libjava_cv_gethostbyname_r_needs_reentrant=fail
22072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22073 CPPFLAGS="$CPPFLAGS_SAVE"
22076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22077 ac_ext=c
22078 ac_cpp='$CPP $CPPFLAGS'
22079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22086 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
22087 if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22089 $as_echo "#define _REENTRANT 1" >>confdefs.h
22093 esac
22095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22096 $as_echo_n "checking for struct hostent_data... " >&6; }
22097 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22098 $as_echo_n "(cached) " >&6
22099 else
22100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22101 /* end confdefs.h. */
22103 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22104 # define _REENTRANT 1
22105 #endif
22106 #include <netdb.h>
22108 main ()
22110 struct hostent_data data;
22112 return 0;
22114 _ACEOF
22115 if ac_fn_c_try_compile "$LINENO"; then :
22116 libjava_cv_struct_hostent_data=yes
22117 else
22118 libjava_cv_struct_hostent_data=no
22120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22123 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22124 if test "x$libjava_cv_struct_hostent_data" = xyes; then
22126 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22131 done
22134 # FIXME: libjava source code expects to find a prototype for
22135 # gethostbyaddr_r in netdb.h. The outer check ensures that
22136 # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22137 # to exist where expected. (The root issue: AC_CHECK_FUNCS assumes C
22138 # linkage check is enough, yet C++ code requires proper prototypes.)
22139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22140 /* end confdefs.h. */
22141 #include <netdb.h>
22143 _ACEOF
22144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22145 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22147 for ac_func in gethostbyaddr_r
22148 do :
22149 ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22150 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22151 cat >>confdefs.h <<_ACEOF
22152 #define HAVE_GETHOSTBYADDR_R 1
22153 _ACEOF
22156 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22158 # There are two different kinds of gethostbyaddr_r.
22159 # We look for the one that returns `int'.
22160 # Hopefully this check is robust enough.
22161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22162 /* end confdefs.h. */
22163 #include <netdb.h>
22165 _ACEOF
22166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22167 $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22170 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22173 rm -f conftest*
22176 done
22179 rm -f conftest*
22182 for ac_func in gethostname
22183 do :
22184 ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22185 if test "x$ac_cv_func_gethostname" = x""yes; then :
22186 cat >>confdefs.h <<_ACEOF
22187 #define HAVE_GETHOSTNAME 1
22188 _ACEOF
22191 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22194 /* end confdefs.h. */
22195 #include <unistd.h>
22197 _ACEOF
22198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22199 $EGREP "gethostname" >/dev/null 2>&1; then :
22202 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22205 rm -f conftest*
22208 done
22211 for ac_func in usleep
22212 do :
22213 ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22214 if test "x$ac_cv_func_usleep" = x""yes; then :
22215 cat >>confdefs.h <<_ACEOF
22216 #define HAVE_USLEEP 1
22217 _ACEOF
22219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22220 /* end confdefs.h. */
22221 #include <unistd.h>
22223 _ACEOF
22224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22225 $EGREP "usleep" >/dev/null 2>&1; then :
22228 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22231 rm -f conftest*
22234 done
22237 # Look for these functions in the thread library, but only bother
22238 # if using POSIX threads.
22239 if test "$THREADS" = posix; then
22240 save_LIBS="$LIBS"
22241 LIBS="$LIBS $THREADLIBS"
22243 # Look for sched_yield. Up to Solaris 2.6, it is in libposix4, since
22244 # Solaris 7 the name librt is preferred.
22245 for ac_func in sched_yield
22246 do :
22247 ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22248 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22249 cat >>confdefs.h <<_ACEOF
22250 #define HAVE_SCHED_YIELD 1
22251 _ACEOF
22253 else
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22256 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22257 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22258 $as_echo_n "(cached) " >&6
22259 else
22260 ac_check_lib_save_LIBS=$LIBS
22261 LIBS="-lrt $LIBS"
22262 if test x$gcc_no_link = xyes; then
22263 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22266 /* end confdefs.h. */
22268 /* Override any GCC internal prototype to avoid an error.
22269 Use char because int might match the return type of a GCC
22270 builtin and then its argument prototype would still apply. */
22271 #ifdef __cplusplus
22272 extern "C"
22273 #endif
22274 char sched_yield ();
22276 main ()
22278 return sched_yield ();
22280 return 0;
22282 _ACEOF
22283 if ac_fn_c_try_link "$LINENO"; then :
22284 ac_cv_lib_rt_sched_yield=yes
22285 else
22286 ac_cv_lib_rt_sched_yield=no
22288 rm -f core conftest.err conftest.$ac_objext \
22289 conftest$ac_exeext conftest.$ac_ext
22290 LIBS=$ac_check_lib_save_LIBS
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22293 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22294 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22296 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22298 THREADLIBS="$THREADLIBS -lrt"
22299 THREADSPEC="$THREADSPEC -lrt"
22300 else
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22303 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22304 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22305 $as_echo_n "(cached) " >&6
22306 else
22307 ac_check_lib_save_LIBS=$LIBS
22308 LIBS="-lposix4 $LIBS"
22309 if test x$gcc_no_link = xyes; then
22310 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22313 /* end confdefs.h. */
22315 /* Override any GCC internal prototype to avoid an error.
22316 Use char because int might match the return type of a GCC
22317 builtin and then its argument prototype would still apply. */
22318 #ifdef __cplusplus
22319 extern "C"
22320 #endif
22321 char sched_yield ();
22323 main ()
22325 return sched_yield ();
22327 return 0;
22329 _ACEOF
22330 if ac_fn_c_try_link "$LINENO"; then :
22331 ac_cv_lib_posix4_sched_yield=yes
22332 else
22333 ac_cv_lib_posix4_sched_yield=no
22335 rm -f core conftest.err conftest.$ac_objext \
22336 conftest$ac_exeext conftest.$ac_ext
22337 LIBS=$ac_check_lib_save_LIBS
22339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22340 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22341 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22343 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22345 THREADLIBS="$THREADLIBS -lposix4"
22346 THREADSPEC="$THREADSPEC -lposix4"
22352 done
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22356 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22357 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22358 $as_echo_n "(cached) " >&6
22359 else
22360 ac_check_lib_save_LIBS=$LIBS
22361 LIBS="-lrt $LIBS"
22362 if test x$gcc_no_link = xyes; then
22363 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22366 /* end confdefs.h. */
22368 /* Override any GCC internal prototype to avoid an error.
22369 Use char because int might match the return type of a GCC
22370 builtin and then its argument prototype would still apply. */
22371 #ifdef __cplusplus
22372 extern "C"
22373 #endif
22374 char clock_gettime ();
22376 main ()
22378 return clock_gettime ();
22380 return 0;
22382 _ACEOF
22383 if ac_fn_c_try_link "$LINENO"; then :
22384 ac_cv_lib_rt_clock_gettime=yes
22385 else
22386 ac_cv_lib_rt_clock_gettime=no
22388 rm -f core conftest.err conftest.$ac_objext \
22389 conftest$ac_exeext conftest.$ac_ext
22390 LIBS=$ac_check_lib_save_LIBS
22392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22393 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22394 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22397 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22399 case "$THREADSPEC" in
22400 *-lrt*) ;;
22402 THREADSPEC="$THREADSPEC -lrt"
22403 THREADLIBS="$THREADLIBS -lrt"
22405 esac
22409 LIBS="$save_LIBS"
22411 # We can save a little space at runtime if the mutex has m_count
22412 # or __m_count. This is a nice hack for Linux.
22413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22414 /* end confdefs.h. */
22415 #include <pthread.h>
22417 main ()
22420 extern pthread_mutex_t *mutex; int q = mutex->m_count;
22423 return 0;
22425 _ACEOF
22426 if ac_fn_c_try_compile "$LINENO"; then :
22428 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22430 else
22432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22433 /* end confdefs.h. */
22434 #include <pthread.h>
22436 main ()
22439 extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22442 return 0;
22444 _ACEOF
22445 if ac_fn_c_try_compile "$LINENO"; then :
22447 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22455 # We require a way to get the time.
22456 time_found=no
22457 for ac_func in gettimeofday time ftime
22458 do :
22459 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22460 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22461 eval as_val=\$$as_ac_var
22462 if test "x$as_val" = x""yes; then :
22463 cat >>confdefs.h <<_ACEOF
22464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22465 _ACEOF
22466 time_found=yes
22468 done
22470 if test "$time_found" = no; then
22471 as_fn_error "no function found to get the time" "$LINENO" 5
22474 for ac_func in memmove
22475 do :
22476 ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22477 if test "x$ac_cv_func_memmove" = x""yes; then :
22478 cat >>confdefs.h <<_ACEOF
22479 #define HAVE_MEMMOVE 1
22480 _ACEOF
22483 done
22486 # We require memcpy.
22487 memcpy_found=no
22488 for ac_func in memcpy
22489 do :
22490 ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22491 if test "x$ac_cv_func_memcpy" = x""yes; then :
22492 cat >>confdefs.h <<_ACEOF
22493 #define HAVE_MEMCPY 1
22494 _ACEOF
22495 memcpy_found=yes
22497 done
22499 if test "$memcpy_found" = no; then
22500 as_fn_error "memcpy is required" "$LINENO" 5
22502 # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22504 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22505 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22506 $as_echo_n "(cached) " >&6
22507 else
22508 ac_check_lib_save_LIBS=$LIBS
22509 LIBS="-ldl $LIBS"
22510 if test x$gcc_no_link = xyes; then
22511 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22514 /* end confdefs.h. */
22516 /* Override any GCC internal prototype to avoid an error.
22517 Use char because int might match the return type of a GCC
22518 builtin and then its argument prototype would still apply. */
22519 #ifdef __cplusplus
22520 extern "C"
22521 #endif
22522 char dlopen ();
22524 main ()
22526 return dlopen ();
22528 return 0;
22530 _ACEOF
22531 if ac_fn_c_try_link "$LINENO"; then :
22532 ac_cv_lib_dl_dlopen=yes
22533 else
22534 ac_cv_lib_dl_dlopen=no
22536 rm -f core conftest.err conftest.$ac_objext \
22537 conftest$ac_exeext conftest.$ac_ext
22538 LIBS=$ac_check_lib_save_LIBS
22540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22541 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22542 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22545 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22547 else
22549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22550 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22551 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22552 $as_echo_n "(cached) " >&6
22553 else
22554 ac_check_lib_save_LIBS=$LIBS
22555 LIBS="-ldld $LIBS"
22556 if test x$gcc_no_link = xyes; then
22557 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22560 /* end confdefs.h. */
22562 /* Override any GCC internal prototype to avoid an error.
22563 Use char because int might match the return type of a GCC
22564 builtin and then its argument prototype would still apply. */
22565 #ifdef __cplusplus
22566 extern "C"
22567 #endif
22568 char dlopen ();
22570 main ()
22572 return dlopen ();
22574 return 0;
22576 _ACEOF
22577 if ac_fn_c_try_link "$LINENO"; then :
22578 ac_cv_lib_dld_dlopen=yes
22579 else
22580 ac_cv_lib_dld_dlopen=no
22582 rm -f core conftest.err conftest.$ac_objext \
22583 conftest$ac_exeext conftest.$ac_ext
22584 LIBS=$ac_check_lib_save_LIBS
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22587 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22588 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22591 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22598 # Some library-finding code we stole from Tcl.
22599 #--------------------------------------------------------------------
22600 # Check for the existence of the -lsocket and -lnsl libraries.
22601 # The order here is important, so that they end up in the right
22602 # order in the command line generated by make. Here are some
22603 # special considerations:
22604 # 1. Use "connect" and "accept" to check for -lsocket, and
22605 # "gethostbyname" to check for -lnsl.
22606 # 2. Use each function name only once: can't redo a check because
22607 # autoconf caches the results of the last check and won't redo it.
22608 # 3. Use -lnsl and -lsocket only if they supply procedures that
22609 # aren't already present in the normal libraries. This is because
22610 # IRIX 5.2 has libraries, but they aren't needed and they're
22611 # bogus: they goof up name resolution if used.
22612 # 4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22613 # To get around this problem, check for both libraries together
22614 # if -lsocket doesn't work by itself.
22615 #--------------------------------------------------------------------
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22618 $as_echo_n "checking for socket libraries... " >&6; }
22619 if test "${gcj_cv_lib_sockets+set}" = set; then :
22620 $as_echo_n "(cached) " >&6
22621 else
22622 gcj_cv_lib_sockets=
22623 gcj_checkBoth=0
22624 unset ac_cv_func_connect
22625 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22626 if test "x$ac_cv_func_connect" = x""yes; then :
22627 gcj_checkSocket=0
22628 else
22629 gcj_checkSocket=1
22632 if test "$gcj_checkSocket" = 1; then
22633 unset ac_cv_func_connect
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22635 $as_echo_n "checking for main in -lsocket... " >&6; }
22636 if test "${ac_cv_lib_socket_main+set}" = set; then :
22637 $as_echo_n "(cached) " >&6
22638 else
22639 ac_check_lib_save_LIBS=$LIBS
22640 LIBS="-lsocket $LIBS"
22641 if test x$gcc_no_link = xyes; then
22642 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22645 /* end confdefs.h. */
22649 main ()
22651 return main ();
22653 return 0;
22655 _ACEOF
22656 if ac_fn_c_try_link "$LINENO"; then :
22657 ac_cv_lib_socket_main=yes
22658 else
22659 ac_cv_lib_socket_main=no
22661 rm -f core conftest.err conftest.$ac_objext \
22662 conftest$ac_exeext conftest.$ac_ext
22663 LIBS=$ac_check_lib_save_LIBS
22665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22666 $as_echo "$ac_cv_lib_socket_main" >&6; }
22667 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22668 gcj_cv_lib_sockets="-lsocket"
22669 else
22670 gcj_checkBoth=1
22674 if test "$gcj_checkBoth" = 1; then
22675 gcj_oldLibs=$LIBS
22676 LIBS="$LIBS -lsocket -lnsl"
22677 unset ac_cv_func_accept
22678 ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22679 if test "x$ac_cv_func_accept" = x""yes; then :
22680 gcj_checkNsl=0
22681 gcj_cv_lib_sockets="-lsocket -lnsl"
22684 unset ac_cv_func_accept
22685 LIBS=$gcj_oldLibs
22687 unset ac_cv_func_gethostbyname
22688 gcj_oldLibs=$LIBS
22689 LIBS="$LIBS $gcj_cv_lib_sockets"
22690 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22691 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22693 else
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22695 $as_echo_n "checking for main in -lnsl... " >&6; }
22696 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22697 $as_echo_n "(cached) " >&6
22698 else
22699 ac_check_lib_save_LIBS=$LIBS
22700 LIBS="-lnsl $LIBS"
22701 if test x$gcc_no_link = xyes; then
22702 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22705 /* end confdefs.h. */
22709 main ()
22711 return main ();
22713 return 0;
22715 _ACEOF
22716 if ac_fn_c_try_link "$LINENO"; then :
22717 ac_cv_lib_nsl_main=yes
22718 else
22719 ac_cv_lib_nsl_main=no
22721 rm -f core conftest.err conftest.$ac_objext \
22722 conftest$ac_exeext conftest.$ac_ext
22723 LIBS=$ac_check_lib_save_LIBS
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22726 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22727 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22728 gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22733 unset ac_cv_func_gethostbyname
22734 LIBS=$gcj_oldLIBS
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22738 $as_echo "$gcj_cv_lib_sockets" >&6; }
22739 SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22741 if test "$with_system_zlib" = yes; then
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22743 $as_echo_n "checking for deflate in -lz... " >&6; }
22744 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22745 $as_echo_n "(cached) " >&6
22746 else
22747 ac_check_lib_save_LIBS=$LIBS
22748 LIBS="-lz $LIBS"
22749 if test x$gcc_no_link = xyes; then
22750 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22753 /* end confdefs.h. */
22755 /* Override any GCC internal prototype to avoid an error.
22756 Use char because int might match the return type of a GCC
22757 builtin and then its argument prototype would still apply. */
22758 #ifdef __cplusplus
22759 extern "C"
22760 #endif
22761 char deflate ();
22763 main ()
22765 return deflate ();
22767 return 0;
22769 _ACEOF
22770 if ac_fn_c_try_link "$LINENO"; then :
22771 ac_cv_lib_z_deflate=yes
22772 else
22773 ac_cv_lib_z_deflate=no
22775 rm -f core conftest.err conftest.$ac_objext \
22776 conftest$ac_exeext conftest.$ac_ext
22777 LIBS=$ac_check_lib_save_LIBS
22779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22780 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22781 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22782 ZLIBSPEC=-lz
22783 else
22784 ZLIBSPEC=
22789 # Test for Gtk stuff, if asked for.
22790 if test "$use_gtk_awt" = yes; then
22792 succeeded=no
22794 if test -z "$PKG_CONFIG"; then
22795 # Extract the first word of "pkg-config", so it can be a program name with args.
22796 set dummy pkg-config; ac_word=$2
22797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22798 $as_echo_n "checking for $ac_word... " >&6; }
22799 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22800 $as_echo_n "(cached) " >&6
22801 else
22802 case $PKG_CONFIG in
22803 [\\/]* | ?:[\\/]*)
22804 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22808 for as_dir in $PATH
22810 IFS=$as_save_IFS
22811 test -z "$as_dir" && as_dir=.
22812 for ac_exec_ext in '' $ac_executable_extensions; do
22813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22814 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22816 break 2
22818 done
22819 done
22820 IFS=$as_save_IFS
22822 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22824 esac
22826 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22827 if test -n "$PKG_CONFIG"; then
22828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22829 $as_echo "$PKG_CONFIG" >&6; }
22830 else
22831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22832 $as_echo "no" >&6; }
22838 if test "$PKG_CONFIG" = "no" ; then
22839 echo "*** The pkg-config script could not be found. Make sure it is"
22840 echo "*** in your path, or set the PKG_CONFIG environment variable"
22841 echo "*** to the full path to pkg-config."
22842 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22843 else
22844 PKG_CONFIG_MIN_VERSION=0.9.0
22845 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22847 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22849 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22851 $as_echo "yes" >&6; }
22852 succeeded=yes
22854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22855 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22856 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22858 $as_echo "$GTK_CFLAGS" >&6; }
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22861 $as_echo_n "checking GTK_LIBS... " >&6; }
22862 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22864 $as_echo "$GTK_LIBS" >&6; }
22865 else
22866 GTK_CFLAGS=""
22867 GTK_LIBS=""
22868 ## If we have a custom action on failure, don't print errors, but
22869 ## do set a variable so people can do so.
22870 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22871 echo $GTK_PKG_ERRORS
22876 else
22877 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22878 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22882 if test $succeeded = yes; then
22884 else
22885 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
22892 succeeded=no
22894 if test -z "$PKG_CONFIG"; then
22895 # Extract the first word of "pkg-config", so it can be a program name with args.
22896 set dummy pkg-config; ac_word=$2
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22898 $as_echo_n "checking for $ac_word... " >&6; }
22899 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22900 $as_echo_n "(cached) " >&6
22901 else
22902 case $PKG_CONFIG in
22903 [\\/]* | ?:[\\/]*)
22904 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22908 for as_dir in $PATH
22910 IFS=$as_save_IFS
22911 test -z "$as_dir" && as_dir=.
22912 for ac_exec_ext in '' $ac_executable_extensions; do
22913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22914 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22916 break 2
22918 done
22919 done
22920 IFS=$as_save_IFS
22922 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22924 esac
22926 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22927 if test -n "$PKG_CONFIG"; then
22928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22929 $as_echo "$PKG_CONFIG" >&6; }
22930 else
22931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22932 $as_echo "no" >&6; }
22938 if test "$PKG_CONFIG" = "no" ; then
22939 echo "*** The pkg-config script could not be found. Make sure it is"
22940 echo "*** in your path, or set the PKG_CONFIG environment variable"
22941 echo "*** to the full path to pkg-config."
22942 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22943 else
22944 PKG_CONFIG_MIN_VERSION=0.9.0
22945 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22947 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22949 if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22951 $as_echo "yes" >&6; }
22952 succeeded=yes
22954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22955 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22956 GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22958 $as_echo "$GLIB_CFLAGS" >&6; }
22960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22961 $as_echo_n "checking GLIB_LIBS... " >&6; }
22962 GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22964 $as_echo "$GLIB_LIBS" >&6; }
22965 else
22966 GLIB_CFLAGS=""
22967 GLIB_LIBS=""
22968 ## If we have a custom action on failure, don't print errors, but
22969 ## do set a variable so people can do so.
22970 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22971 echo $GLIB_PKG_ERRORS
22976 else
22977 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22978 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22982 if test $succeeded = yes; then
22984 else
22985 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
22992 succeeded=no
22994 if test -z "$PKG_CONFIG"; then
22995 # Extract the first word of "pkg-config", so it can be a program name with args.
22996 set dummy pkg-config; ac_word=$2
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22998 $as_echo_n "checking for $ac_word... " >&6; }
22999 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
23000 $as_echo_n "(cached) " >&6
23001 else
23002 case $PKG_CONFIG in
23003 [\\/]* | ?:[\\/]*)
23004 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23008 for as_dir in $PATH
23010 IFS=$as_save_IFS
23011 test -z "$as_dir" && as_dir=.
23012 for ac_exec_ext in '' $ac_executable_extensions; do
23013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23014 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23016 break 2
23018 done
23019 done
23020 IFS=$as_save_IFS
23022 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23024 esac
23026 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23027 if test -n "$PKG_CONFIG"; then
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
23029 $as_echo "$PKG_CONFIG" >&6; }
23030 else
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23032 $as_echo "no" >&6; }
23038 if test "$PKG_CONFIG" = "no" ; then
23039 echo "*** The pkg-config script could not be found. Make sure it is"
23040 echo "*** in your path, or set the PKG_CONFIG environment variable"
23041 echo "*** to the full path to pkg-config."
23042 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23043 else
23044 PKG_CONFIG_MIN_VERSION=0.9.0
23045 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
23047 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
23049 if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
23050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23051 $as_echo "yes" >&6; }
23052 succeeded=yes
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
23055 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
23056 LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23058 $as_echo "$LIBART_CFLAGS" >&6; }
23060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23061 $as_echo_n "checking LIBART_LIBS... " >&6; }
23062 LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23064 $as_echo "$LIBART_LIBS" >&6; }
23065 else
23066 LIBART_CFLAGS=""
23067 LIBART_LIBS=""
23068 ## If we have a custom action on failure, don't print errors, but
23069 ## do set a variable so people can do so.
23070 LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23071 echo $LIBART_PKG_ERRORS
23076 else
23077 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23078 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23082 if test $succeeded = yes; then
23084 else
23085 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
23091 # We require the XTest Extension to support java.awt.Robot.
23092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23093 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23094 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23095 $as_echo_n "(cached) " >&6
23096 else
23097 ac_check_lib_save_LIBS=$LIBS
23098 LIBS="-lXtst ${X_LIBS} $LIBS"
23099 if test x$gcc_no_link = xyes; then
23100 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23103 /* end confdefs.h. */
23105 /* Override any GCC internal prototype to avoid an error.
23106 Use char because int might match the return type of a GCC
23107 builtin and then its argument prototype would still apply. */
23108 #ifdef __cplusplus
23109 extern "C"
23110 #endif
23111 char XTestQueryExtension ();
23113 main ()
23115 return XTestQueryExtension ();
23117 return 0;
23119 _ACEOF
23120 if ac_fn_c_try_link "$LINENO"; then :
23121 ac_cv_lib_Xtst_XTestQueryExtension=yes
23122 else
23123 ac_cv_lib_Xtst_XTestQueryExtension=no
23125 rm -f core conftest.err conftest.$ac_objext \
23126 conftest$ac_exeext conftest.$ac_ext
23127 LIBS=$ac_check_lib_save_LIBS
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23130 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23131 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23132 true
23133 else
23134 as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23139 # On Solaris, and maybe other architectures, the Boehm collector
23140 # requires -ldl.
23141 if test "$GC" = boehm; then
23142 case "${host}" in
23143 mips-sgi-irix6*)
23144 # While IRIX 6 has libdl for the O32 and N32 ABIs, the N64 one is
23145 # missing. It's unnecessary anyway since dlopen lives in libc.
23147 *-*-darwin*)
23150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23151 $as_echo_n "checking for main in -ldl... " >&6; }
23152 if test "${ac_cv_lib_dl_main+set}" = set; then :
23153 $as_echo_n "(cached) " >&6
23154 else
23155 ac_check_lib_save_LIBS=$LIBS
23156 LIBS="-ldl $LIBS"
23157 if test x$gcc_no_link = xyes; then
23158 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23161 /* end confdefs.h. */
23165 main ()
23167 return main ();
23169 return 0;
23171 _ACEOF
23172 if ac_fn_c_try_link "$LINENO"; then :
23173 ac_cv_lib_dl_main=yes
23174 else
23175 ac_cv_lib_dl_main=no
23177 rm -f core conftest.err conftest.$ac_objext \
23178 conftest$ac_exeext conftest.$ac_ext
23179 LIBS=$ac_check_lib_save_LIBS
23181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23182 $as_echo "$ac_cv_lib_dl_main" >&6; }
23183 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23184 SYSTEMSPEC="$SYSTEMSPEC -ldl"
23188 esac
23192 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23193 case $build in
23194 *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23195 *) CLASSPATH_SEPARATOR=':' ;;
23196 esac
23199 # We must search the source tree for java.lang, since we still don't
23200 # have libgcj.jar nor java/lang/*.class
23201 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23202 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23204 # Since some classes depend on this one, we need its source available
23205 # before we can do any GCJ compilation test :-(
23206 if test ! -f gnu/classpath/Configuration.java; then
23207 test -d gnu || mkdir gnu
23208 test -d gnu/classpath || mkdir gnu/classpath
23209 # Note that it is not crucial that all the values here be correct.
23210 sed -e "s,@prefix@,$expanded_prefix," \
23211 -e "s,@VERSION@,$VERSION," \
23212 -e "s,@LIBDEBUG@,false," \
23213 -e "s,@INIT_LOAD_LIBRARY@,false," \
23214 -e "s,@@,$LIBGCJDEBUG," \
23215 -e "s,@default_toolkit@,$TOOLKIT," \
23216 -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23217 -e "s,@GTK_CAIRO_ENABLED@,false," \
23218 -e "s,@ECJ_JAR@,," \
23219 -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23220 < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23221 > gnu/classpath/Configuration.java
23222 # We do not want to redirect the output of the grep below to /dev/null,
23223 # but we add /dev/null to the input list so that grep will print the
23224 # filename of Configuration.java in case it finds any matches.
23225 if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23226 as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23231 if test -n "$ac_tool_prefix"; then
23232 for ac_prog in gcj
23234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23235 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23237 $as_echo_n "checking for $ac_word... " >&6; }
23238 if test "${ac_cv_prog_GCJ+set}" = set; then :
23239 $as_echo_n "(cached) " >&6
23240 else
23241 if test -n "$GCJ"; then
23242 ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23243 else
23244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23245 for as_dir in $PATH
23247 IFS=$as_save_IFS
23248 test -z "$as_dir" && as_dir=.
23249 for ac_exec_ext in '' $ac_executable_extensions; do
23250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23251 ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23253 break 2
23255 done
23256 done
23257 IFS=$as_save_IFS
23261 GCJ=$ac_cv_prog_GCJ
23262 if test -n "$GCJ"; then
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23264 $as_echo "$GCJ" >&6; }
23265 else
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23267 $as_echo "no" >&6; }
23271 test -n "$GCJ" && break
23272 done
23274 if test -z "$GCJ"; then
23275 ac_ct_GCJ=$GCJ
23276 for ac_prog in gcj
23278 # Extract the first word of "$ac_prog", so it can be a program name with args.
23279 set dummy $ac_prog; ac_word=$2
23280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23281 $as_echo_n "checking for $ac_word... " >&6; }
23282 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23283 $as_echo_n "(cached) " >&6
23284 else
23285 if test -n "$ac_ct_GCJ"; then
23286 ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23287 else
23288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23289 for as_dir in $PATH
23291 IFS=$as_save_IFS
23292 test -z "$as_dir" && as_dir=.
23293 for ac_exec_ext in '' $ac_executable_extensions; do
23294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23295 ac_cv_prog_ac_ct_GCJ="$ac_prog"
23296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23297 break 2
23299 done
23300 done
23301 IFS=$as_save_IFS
23305 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23306 if test -n "$ac_ct_GCJ"; then
23307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23308 $as_echo "$ac_ct_GCJ" >&6; }
23309 else
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23311 $as_echo "no" >&6; }
23315 test -n "$ac_ct_GCJ" && break
23316 done
23318 if test "x$ac_ct_GCJ" = x; then
23319 GCJ="gcj"
23320 else
23321 case $cross_compiling:$ac_tool_warned in
23322 yes:)
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23325 ac_tool_warned=yes ;;
23326 esac
23327 GCJ=$ac_ct_GCJ
23331 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23332 if test "x${GCJFLAGS-unset}" = xunset; then
23333 GCJFLAGS="-g -O2"
23337 depcc="$GCJ" am_compiler_list='gcc3 gcc'
23339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23340 $as_echo_n "checking dependency style of $depcc... " >&6; }
23341 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23342 $as_echo_n "(cached) " >&6
23343 else
23344 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23345 # We make a subdir and do the tests there. Otherwise we can end up
23346 # making bogus files that we don't know about and never remove. For
23347 # instance it was reported that on HP-UX the gcc test will end up
23348 # making a dummy file named `D' -- because `-MD' means `put the output
23349 # in D'.
23350 mkdir conftest.dir
23351 # Copy depcomp to subdir because otherwise we won't find it if we're
23352 # using a relative directory.
23353 cp "$am_depcomp" conftest.dir
23354 cd conftest.dir
23355 # We will build objects and dependencies in a subdirectory because
23356 # it helps to detect inapplicable dependency modes. For instance
23357 # both Tru64's cc and ICC support -MD to output dependencies as a
23358 # side effect of compilation, but ICC will put the dependencies in
23359 # the current directory while Tru64 will put them in the object
23360 # directory.
23361 mkdir sub
23363 am_cv_GCJ_dependencies_compiler_type=none
23364 if test "$am_compiler_list" = ""; then
23365 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23367 am__universal=false
23370 for depmode in $am_compiler_list; do
23371 # Setup a source with many dependencies, because some compilers
23372 # like to wrap large dependency lists on column 80 (with \), and
23373 # we should not choose a depcomp mode which is confused by this.
23375 # We need to recreate these files for each test, as the compiler may
23376 # overwrite some of them when testing with obscure command lines.
23377 # This happens at least with the AIX C compiler.
23378 : > sub/conftest.c
23379 for i in 1 2 3 4 5 6; do
23380 echo '#include "conftst'$i'.h"' >> sub/conftest.c
23381 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23382 # Solaris 8's {/usr,}/bin/sh.
23383 touch sub/conftst$i.h
23384 done
23385 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23387 # We check with `-c' and `-o' for the sake of the "dashmstdout"
23388 # mode. It turns out that the SunPro C++ compiler does not properly
23389 # handle `-M -o', and we need to detect this. Also, some Intel
23390 # versions had trouble with output in subdirs
23391 am__obj=sub/conftest.${OBJEXT-o}
23392 am__minus_obj="-o $am__obj"
23393 case $depmode in
23394 gcc)
23395 # This depmode causes a compiler race in universal mode.
23396 test "$am__universal" = false || continue
23398 nosideeffect)
23399 # after this tag, mechanisms are not by side-effect, so they'll
23400 # only be used when explicitly requested
23401 if test "x$enable_dependency_tracking" = xyes; then
23402 continue
23403 else
23404 break
23407 msvisualcpp | msvcmsys)
23408 # This compiler won't grok `-c -o', but also, the minuso test has
23409 # not run yet. These depmodes are late enough in the game, and
23410 # so weak that their functioning should not be impacted.
23411 am__obj=conftest.${OBJEXT-o}
23412 am__minus_obj=
23414 none) break ;;
23415 esac
23416 if depmode=$depmode \
23417 source=sub/conftest.c object=$am__obj \
23418 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23419 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23420 >/dev/null 2>conftest.err &&
23421 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23422 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23423 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23424 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23425 # icc doesn't choke on unknown options, it will just issue warnings
23426 # or remarks (even with -Werror). So we grep stderr for any message
23427 # that says an option was ignored or not supported.
23428 # When given -MP, icc 7.0 and 7.1 complain thusly:
23429 # icc: Command line warning: ignoring option '-M'; no argument required
23430 # The diagnosis changed in icc 8.0:
23431 # icc: Command line remark: option '-MP' not supported
23432 if (grep 'ignoring option' conftest.err ||
23433 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23434 am_cv_GCJ_dependencies_compiler_type=$depmode
23435 break
23438 done
23440 cd ..
23441 rm -rf conftest.dir
23442 else
23443 am_cv_GCJ_dependencies_compiler_type=none
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23448 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23449 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23452 test "x$enable_dependency_tracking" != xno \
23453 && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23454 am__fastdepGCJ_TRUE=
23455 am__fastdepGCJ_FALSE='#'
23456 else
23457 am__fastdepGCJ_TRUE='#'
23458 am__fastdepGCJ_FALSE=
23464 # Now remove it.
23465 rm -f gnu/classpath/Configuration.java
23467 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23469 # The cast to long int works around a bug in the HP C Compiler
23470 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23471 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23472 # This bug is HP SR number 8606223364.
23473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23474 $as_echo_n "checking size of void *... " >&6; }
23475 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23476 $as_echo_n "(cached) " >&6
23477 else
23478 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
23480 else
23481 if test "$ac_cv_type_void_p" = yes; then
23482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23484 { as_fn_set_status 77
23485 as_fn_error "cannot compute sizeof (void *)
23486 See \`config.log' for more details." "$LINENO" 5; }; }
23487 else
23488 ac_cv_sizeof_void_p=0
23493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23494 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23498 cat >>confdefs.h <<_ACEOF
23499 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23500 _ACEOF
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23505 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23506 if test "${ac_cv_c_bigendian+set}" = set; then :
23507 $as_echo_n "(cached) " >&6
23508 else
23509 ac_cv_c_bigendian=unknown
23510 # See if we're dealing with a universal compiler.
23511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23512 /* end confdefs.h. */
23513 #ifndef __APPLE_CC__
23514 not a universal capable compiler
23515 #endif
23516 typedef int dummy;
23518 _ACEOF
23519 if ac_fn_c_try_compile "$LINENO"; then :
23521 # Check for potential -arch flags. It is not universal unless
23522 # there are at least two -arch flags with different values.
23523 ac_arch=
23524 ac_prev=
23525 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23526 if test -n "$ac_prev"; then
23527 case $ac_word in
23528 i?86 | x86_64 | ppc | ppc64)
23529 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23530 ac_arch=$ac_word
23531 else
23532 ac_cv_c_bigendian=universal
23533 break
23536 esac
23537 ac_prev=
23538 elif test "x$ac_word" = "x-arch"; then
23539 ac_prev=arch
23541 done
23543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23544 if test $ac_cv_c_bigendian = unknown; then
23545 # See if sys/param.h defines the BYTE_ORDER macro.
23546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23547 /* end confdefs.h. */
23548 #include <sys/types.h>
23549 #include <sys/param.h>
23552 main ()
23554 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23555 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23556 && LITTLE_ENDIAN)
23557 bogus endian macros
23558 #endif
23561 return 0;
23563 _ACEOF
23564 if ac_fn_c_try_compile "$LINENO"; then :
23565 # It does; now see whether it defined to BIG_ENDIAN or not.
23566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23567 /* end confdefs.h. */
23568 #include <sys/types.h>
23569 #include <sys/param.h>
23572 main ()
23574 #if BYTE_ORDER != BIG_ENDIAN
23575 not big endian
23576 #endif
23579 return 0;
23581 _ACEOF
23582 if ac_fn_c_try_compile "$LINENO"; then :
23583 ac_cv_c_bigendian=yes
23584 else
23585 ac_cv_c_bigendian=no
23587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23591 if test $ac_cv_c_bigendian = unknown; then
23592 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23594 /* end confdefs.h. */
23595 #include <limits.h>
23598 main ()
23600 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23601 bogus endian macros
23602 #endif
23605 return 0;
23607 _ACEOF
23608 if ac_fn_c_try_compile "$LINENO"; then :
23609 # It does; now see whether it defined to _BIG_ENDIAN or not.
23610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23611 /* end confdefs.h. */
23612 #include <limits.h>
23615 main ()
23617 #ifndef _BIG_ENDIAN
23618 not big endian
23619 #endif
23622 return 0;
23624 _ACEOF
23625 if ac_fn_c_try_compile "$LINENO"; then :
23626 ac_cv_c_bigendian=yes
23627 else
23628 ac_cv_c_bigendian=no
23630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23634 if test $ac_cv_c_bigendian = unknown; then
23635 # Compile a test program.
23636 if test "$cross_compiling" = yes; then :
23637 # Try to guess by grepping values from an object file.
23638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23639 /* end confdefs.h. */
23640 short int ascii_mm[] =
23641 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23642 short int ascii_ii[] =
23643 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23644 int use_ascii (int i) {
23645 return ascii_mm[i] + ascii_ii[i];
23647 short int ebcdic_ii[] =
23648 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23649 short int ebcdic_mm[] =
23650 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23651 int use_ebcdic (int i) {
23652 return ebcdic_mm[i] + ebcdic_ii[i];
23654 extern int foo;
23657 main ()
23659 return use_ascii (foo) == use_ebcdic (foo);
23661 return 0;
23663 _ACEOF
23664 if ac_fn_c_try_compile "$LINENO"; then :
23665 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23666 ac_cv_c_bigendian=yes
23668 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23669 if test "$ac_cv_c_bigendian" = unknown; then
23670 ac_cv_c_bigendian=no
23671 else
23672 # finding both strings is unlikely to happen, but who knows?
23673 ac_cv_c_bigendian=unknown
23677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23678 else
23679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23680 /* end confdefs.h. */
23681 $ac_includes_default
23683 main ()
23686 /* Are we little or big endian? From Harbison&Steele. */
23687 union
23689 long int l;
23690 char c[sizeof (long int)];
23691 } u;
23692 u.l = 1;
23693 return u.c[sizeof (long int) - 1] == 1;
23696 return 0;
23698 _ACEOF
23699 if ac_fn_c_try_run "$LINENO"; then :
23700 ac_cv_c_bigendian=no
23701 else
23702 ac_cv_c_bigendian=yes
23704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23705 conftest.$ac_objext conftest.beam conftest.$ac_ext
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23711 $as_echo "$ac_cv_c_bigendian" >&6; }
23712 case $ac_cv_c_bigendian in #(
23713 yes)
23714 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23715 ;; #(
23717 ;; #(
23718 universal)
23720 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23722 ;; #(
23724 as_fn_error "unknown endianness
23725 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23726 esac
23729 ZLIBS=
23730 SYS_ZLIBS=
23731 ZINCS=
23733 if test -z "$ZLIBSPEC"; then
23734 # Use zlib from the GCC tree.
23735 ZINCS='-I$(top_srcdir)/../zlib'
23736 ZLIBS=../zlib/libzgcj_convenience.la
23737 else
23738 # System's zlib.
23739 SYS_ZLIBS="$ZLIBSPEC"
23751 if test "$NATIVE" = yes; then
23752 NATIVE_TRUE=
23753 NATIVE_FALSE='#'
23754 else
23755 NATIVE_TRUE='#'
23756 NATIVE_FALSE=
23759 if test "$enable_shared" = yes; then
23760 ENABLE_SHARED_TRUE=
23761 ENABLE_SHARED_FALSE='#'
23762 else
23763 ENABLE_SHARED_TRUE='#'
23764 ENABLE_SHARED_FALSE=
23767 if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23768 NEEDS_DATA_START_TRUE=
23769 NEEDS_DATA_START_FALSE='#'
23770 else
23771 NEEDS_DATA_START_TRUE='#'
23772 NEEDS_DATA_START_FALSE=
23775 if test -z "${with_multisubdir}"; then
23776 INSTALL_BINARIES_TRUE=
23777 INSTALL_BINARIES_FALSE='#'
23778 else
23779 INSTALL_BINARIES_TRUE='#'
23780 INSTALL_BINARIES_FALSE=
23785 # Process the option "--enable-version-specific-runtime-libs"
23786 # Calculate toolexeclibdir
23787 case ${version_specific_libs} in
23788 yes)
23789 # Need the gcc compiler version to know where to install libraries
23790 # and header files if --enable-version-specific-runtime-libs option
23791 # is selected.
23792 includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23793 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23794 toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23795 toolexeclibdir=$toolexecmainlibdir
23798 if test -n "$with_cross_host" &&
23799 test x"$with_cross_host" != x"no"; then
23800 # Install a library built with a cross compiler in tooldir, not libdir.
23801 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23802 toolexecmainlibdir='$(toolexecdir)/lib'
23803 else
23804 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23805 toolexecmainlibdir='$(libdir)'
23807 multi_os_directory=`$CC -print-multi-os-directory`
23808 case $multi_os_directory in
23809 .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23810 *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23811 esac
23813 esac
23818 # Determine gcj and libgcj version number.
23819 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23820 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23821 GCJVERSION=$gcjversion
23824 cat >>confdefs.h <<_ACEOF
23825 #define GCJVERSION "$GCJVERSION"
23826 _ACEOF
23829 # Determine where the standard .db file and GNU Classpath JNI
23830 # libraries are found.
23831 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23832 multi_os_directory=`$CC -print-multi-os-directory`
23833 case $multi_os_directory in
23835 dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23838 dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23840 esac
23845 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23848 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23852 case "${with_gxx_include_dir}" in
23853 yes)
23854 as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23856 no | "")
23857 case "${enable_version_specific_runtime_libs}" in
23858 yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23860 libstdcxx_incdir='c++/$(gcc_version)'
23861 gxx_include_dir='include/$(libstdcxx_incdir)'
23862 if test -n "$with_cross_host" &&
23863 test x"$with_cross_host" != x"no"; then
23864 gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23865 else
23866 gxx_include_dir='${prefix}/'"$gxx_include_dir"
23867 fi;;
23868 esac ;;
23869 *) gxx_include_dir=${with_gxx_include_dir} ;;
23870 esac
23875 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23876 # On that system, sys/ioctl.h will not include sys/filio.h unless
23877 # BSD_COMP is defined; just including sys/filio.h is simpler.
23878 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23879 # for now. If you change this, you also must update natFile.cc.
23880 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23881 sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23882 sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23883 pwd.h sys/config.h stdint.h langinfo.h locale.h \
23884 dirent.h sys/rw_lock.h magic.h ifaddrs.h
23885 do :
23886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23887 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23888 eval as_val=\$$as_ac_Header
23889 if test "x$as_val" = x""yes; then :
23890 cat >>confdefs.h <<_ACEOF
23891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23892 _ACEOF
23896 done
23899 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23900 for ac_header in net/if.h
23901 do :
23902 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23903 #ifdef HAVE_SYS_SOCKET_H
23904 #include <sys/socket.h>
23905 #endif
23908 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23909 cat >>confdefs.h <<_ACEOF
23910 #define HAVE_NET_IF_H 1
23911 _ACEOF
23915 done
23918 for ac_header in inttypes.h
23919 do :
23920 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23921 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23922 cat >>confdefs.h <<_ACEOF
23923 #define HAVE_INTTYPES_H 1
23924 _ACEOF
23927 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23930 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23935 done
23938 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23939 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23941 else
23943 cat >>confdefs.h <<_ACEOF
23944 #define ssize_t int
23945 _ACEOF
23949 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23950 #ifdef HAVE_MAGIC_H
23951 #include <magic.h>
23952 #endif
23954 if test "x$ac_cv_type_magic_t" = x""yes; then :
23957 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23963 $as_echo_n "checking for in_addr_t... " >&6; }
23964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23965 /* end confdefs.h. */
23966 #include <sys/types.h>
23967 #if STDC_HEADERS
23968 #include <stdlib.h>
23969 #include <stddef.h>
23970 #endif
23971 #if HAVE_NETINET_IN_H
23972 #include <netinet/in.h>
23973 #endif
23975 main ()
23977 in_addr_t foo;
23979 return 0;
23981 _ACEOF
23982 if ac_fn_c_try_compile "$LINENO"; then :
23984 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23987 $as_echo "yes" >&6; }
23988 else
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23990 $as_echo "no" >&6; }
23992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23995 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23997 /* end confdefs.h. */
23998 #include <netinet/in.h>
24000 main ()
24002 struct ip_mreq mreq;
24004 return 0;
24006 _ACEOF
24007 if ac_fn_c_try_compile "$LINENO"; then :
24009 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24012 $as_echo "yes" >&6; }
24013 else
24014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24015 $as_echo "no" >&6; }
24017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
24020 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
24021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24022 /* end confdefs.h. */
24023 #include <netinet/in.h>
24025 main ()
24027 struct ipv6_mreq mreq6;
24029 return 0;
24031 _ACEOF
24032 if ac_fn_c_try_compile "$LINENO"; then :
24034 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24037 $as_echo "yes" >&6; }
24038 else
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24040 $as_echo "no" >&6; }
24042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
24045 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
24046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24047 /* end confdefs.h. */
24048 #include <netinet/in.h>
24050 main ()
24052 struct sockaddr_in6 addr6;
24054 return 0;
24056 _ACEOF
24057 if ac_fn_c_try_compile "$LINENO"; then :
24059 $as_echo "#define HAVE_INET6 1" >>confdefs.h
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24062 $as_echo "yes" >&6; }
24063 else
24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24065 $as_echo "no" >&6; }
24067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24070 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24072 /* end confdefs.h. */
24073 #define _POSIX_PII_SOCKET
24074 #include <sys/types.h>
24075 #include <sys/socket.h>
24077 main ()
24079 socklen_t x = 5;
24081 return 0;
24083 _ACEOF
24084 if ac_fn_c_try_compile "$LINENO"; then :
24086 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24089 $as_echo "yes" >&6; }
24090 else
24091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24092 $as_echo "no" >&6; }
24094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24097 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24099 /* end confdefs.h. */
24100 #include <time.h>
24102 main ()
24104 struct tm tim; tim.tm_gmtoff = 0;
24106 return 0;
24108 _ACEOF
24109 if ac_fn_c_try_compile "$LINENO"; then :
24111 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24114 $as_echo "yes" >&6; }
24115 else
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24117 $as_echo "no" >&6; }
24118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24119 $as_echo_n "checking for global timezone variable... " >&6; }
24120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24121 /* end confdefs.h. */
24122 #include <time.h>
24124 main ()
24126 void i(){long z2 = 2*timezone;}
24128 return 0;
24130 _ACEOF
24131 if ac_fn_c_try_compile "$LINENO"; then :
24133 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24136 $as_echo "yes" >&6; }
24137 else
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24139 $as_echo "no" >&6; }
24140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24141 $as_echo_n "checking for global _timezone variable... " >&6; }
24142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24143 /* end confdefs.h. */
24144 #include <time.h>
24146 main ()
24148 long z2 = _timezone;
24150 return 0;
24152 _ACEOF
24153 if ac_fn_c_try_compile "$LINENO"; then :
24155 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24158 $as_echo "yes" >&6; }
24159 else
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24161 $as_echo "no" >&6; }
24163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24169 for ac_prog in perl
24171 # Extract the first word of "$ac_prog", so it can be a program name with args.
24172 set dummy $ac_prog; ac_word=$2
24173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24174 $as_echo_n "checking for $ac_word... " >&6; }
24175 if test "${ac_cv_prog_PERL+set}" = set; then :
24176 $as_echo_n "(cached) " >&6
24177 else
24178 if test -n "$PERL"; then
24179 ac_cv_prog_PERL="$PERL" # Let the user override the test.
24180 else
24181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24182 for as_dir in $PATH
24184 IFS=$as_save_IFS
24185 test -z "$as_dir" && as_dir=.
24186 for ac_exec_ext in '' $ac_executable_extensions; do
24187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24188 ac_cv_prog_PERL="$ac_prog"
24189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24190 break 2
24192 done
24193 done
24194 IFS=$as_save_IFS
24198 PERL=$ac_cv_prog_PERL
24199 if test -n "$PERL"; then
24200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24201 $as_echo "$PERL" >&6; }
24202 else
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24204 $as_echo "no" >&6; }
24208 test -n "$PERL" && break
24209 done
24210 test -n "$PERL" || PERL="false"
24213 SYSDEP_SOURCES=
24214 SIGNAL_HANDLER_AUX=
24216 case "${host}" in
24217 i?86-*-linux*)
24218 SIGNAL_HANDLER=include/i386-signal.h
24220 *-*-solaris2*)
24221 SIGNAL_HANDLER=include/solaris-signal.h
24223 # ia64-*)
24224 # SYSDEP_SOURCES=sysdep/ia64.c
24225 # test -d sysdep || mkdir sysdep
24226 # ;;
24227 hppa*-*-linux*)
24228 SIGNAL_HANDLER=include/pa-signal.h
24230 hppa*-hp-hpux*)
24231 SIGNAL_HANDLER=include/hppa-signal.h
24233 ia64-*-linux*)
24234 SIGNAL_HANDLER=include/dwarf2-signal.h
24236 powerpc*-*-linux*)
24237 SIGNAL_HANDLER=include/powerpc-signal.h
24239 alpha*-*-linux*)
24240 SIGNAL_HANDLER=include/dwarf2-signal.h
24242 s390*-*-linux*)
24243 SIGNAL_HANDLER=include/s390-signal.h
24245 x86_64*-*-linux*)
24246 SIGNAL_HANDLER=include/x86_64-signal.h
24247 SIGNAL_HANDLER_AUX=include/i386-signal.h
24249 sparc*-*-linux*)
24250 SIGNAL_HANDLER=include/dwarf2-signal.h
24252 sh*-*-linux*)
24253 SIGNAL_HANDLER=include/sh-signal.h
24255 *mingw*)
24256 SIGNAL_HANDLER=include/win32-signal.h
24258 mips*-*-linux*)
24259 SIGNAL_HANDLER=include/mips-signal.h
24261 m68*-*-linux*)
24262 SIGNAL_HANDLER=include/dwarf2-signal.h
24264 powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24265 SIGNAL_HANDLER=include/darwin-signal.h
24267 powerpc*-*-aix*)
24268 SIGNAL_HANDLER=include/aix-signal.h
24271 SIGNAL_HANDLER=include/default-signal.h
24273 esac
24275 # If we're using sjlj exceptions, forget what we just learned.
24276 if test "$enable_sjlj_exceptions" = yes; then
24277 SIGNAL_HANDLER=include/default-signal.h
24278 SIGNAL_HANDLER_AUX=
24283 if test -z "$SIGNAL_HANDLER_AUX"; then
24284 SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24287 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24290 if test "${multilib}" = "yes"; then
24291 multilib_arg="--enable-multilib"
24292 else
24293 multilib_arg=
24296 # See if we support thread-local storage.
24299 # Check whether --enable-tls was given.
24300 if test "${enable_tls+set}" = set; then :
24301 enableval=$enable_tls;
24302 case "$enableval" in
24303 yes|no) ;;
24304 *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24305 esac
24307 else
24308 enable_tls=yes
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24313 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24314 if test "${gcc_cv_have_tls+set}" = set; then :
24315 $as_echo_n "(cached) " >&6
24316 else
24318 if test "$cross_compiling" = yes; then :
24319 if test x$gcc_no_link = xyes; then
24320 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24323 /* end confdefs.h. */
24324 __thread int a; int b; int main() { return a = b; }
24325 _ACEOF
24326 if ac_fn_c_try_link "$LINENO"; then :
24327 chktls_save_LDFLAGS="$LDFLAGS"
24328 case $host in
24329 *-*-linux*)
24330 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24332 esac
24333 chktls_save_CFLAGS="$CFLAGS"
24334 CFLAGS="-fPIC $CFLAGS"
24335 if test x$gcc_no_link = xyes; then
24336 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24339 /* end confdefs.h. */
24340 int f() { return 0; }
24341 _ACEOF
24342 if ac_fn_c_try_link "$LINENO"; then :
24343 if test x$gcc_no_link = xyes; then
24344 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24347 /* end confdefs.h. */
24348 __thread int a; int b; int f() { return a = b; }
24349 _ACEOF
24350 if ac_fn_c_try_link "$LINENO"; then :
24351 gcc_cv_have_tls=yes
24352 else
24353 gcc_cv_have_tls=no
24355 rm -f core conftest.err conftest.$ac_objext \
24356 conftest$ac_exeext conftest.$ac_ext
24357 else
24358 gcc_cv_have_tls=yes
24360 rm -f core conftest.err conftest.$ac_objext \
24361 conftest$ac_exeext conftest.$ac_ext
24362 CFLAGS="$chktls_save_CFLAGS"
24363 LDFLAGS="$chktls_save_LDFLAGS"
24364 else
24365 gcc_cv_have_tls=no
24367 rm -f core conftest.err conftest.$ac_objext \
24368 conftest$ac_exeext conftest.$ac_ext
24371 else
24372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24373 /* end confdefs.h. */
24374 __thread int a; int b; int main() { return a = b; }
24375 _ACEOF
24376 if ac_fn_c_try_run "$LINENO"; then :
24377 chktls_save_LDFLAGS="$LDFLAGS"
24378 LDFLAGS="-static $LDFLAGS"
24379 if test x$gcc_no_link = xyes; then
24380 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24383 /* end confdefs.h. */
24384 int main() { return 0; }
24385 _ACEOF
24386 if ac_fn_c_try_link "$LINENO"; then :
24387 if test "$cross_compiling" = yes; then :
24388 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24390 as_fn_error "cannot run test program while cross compiling
24391 See \`config.log' for more details." "$LINENO" 5; }
24392 else
24393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24394 /* end confdefs.h. */
24395 __thread int a; int b; int main() { return a = b; }
24396 _ACEOF
24397 if ac_fn_c_try_run "$LINENO"; then :
24398 gcc_cv_have_tls=yes
24399 else
24400 gcc_cv_have_tls=no
24402 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24403 conftest.$ac_objext conftest.beam conftest.$ac_ext
24406 else
24407 gcc_cv_have_tls=yes
24409 rm -f core conftest.err conftest.$ac_objext \
24410 conftest$ac_exeext conftest.$ac_ext
24411 LDFLAGS="$chktls_save_LDFLAGS"
24412 if test $gcc_cv_have_tls = yes; then
24413 chktls_save_CFLAGS="$CFLAGS"
24414 thread_CFLAGS=failed
24415 for flag in '' '-pthread' '-lpthread'; do
24416 CFLAGS="$flag $chktls_save_CFLAGS"
24417 if test x$gcc_no_link = xyes; then
24418 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24421 /* end confdefs.h. */
24422 #include <pthread.h>
24423 void *g(void *d) { return NULL; }
24425 main ()
24427 pthread_t t; pthread_create(&t,NULL,g,NULL);
24429 return 0;
24431 _ACEOF
24432 if ac_fn_c_try_link "$LINENO"; then :
24433 thread_CFLAGS="$flag"
24435 rm -f core conftest.err conftest.$ac_objext \
24436 conftest$ac_exeext conftest.$ac_ext
24437 if test "X$thread_CFLAGS" != Xfailed; then
24438 break
24440 done
24441 CFLAGS="$chktls_save_CFLAGS"
24442 if test "X$thread_CFLAGS" != Xfailed; then
24443 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
24444 if test "$cross_compiling" = yes; then :
24445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24447 as_fn_error "cannot run test program while cross compiling
24448 See \`config.log' for more details." "$LINENO" 5; }
24449 else
24450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24451 /* end confdefs.h. */
24452 #include <pthread.h>
24453 __thread int a;
24454 static int *volatile a_in_other_thread;
24455 static void *
24456 thread_func (void *arg)
24458 a_in_other_thread = &a;
24459 return (void *)0;
24462 main ()
24464 pthread_t thread;
24465 void *thread_retval;
24466 int *volatile a_in_main_thread;
24467 a_in_main_thread = &a;
24468 if (pthread_create (&thread, (pthread_attr_t *)0,
24469 thread_func, (void *)0))
24470 return 0;
24471 if (pthread_join (thread, &thread_retval))
24472 return 0;
24473 return (a_in_other_thread == a_in_main_thread);
24475 return 0;
24477 _ACEOF
24478 if ac_fn_c_try_run "$LINENO"; then :
24479 gcc_cv_have_tls=yes
24480 else
24481 gcc_cv_have_tls=no
24483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24484 conftest.$ac_objext conftest.beam conftest.$ac_ext
24487 CFLAGS="$chktls_save_CFLAGS"
24490 else
24491 gcc_cv_have_tls=no
24493 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24494 conftest.$ac_objext conftest.beam conftest.$ac_ext
24498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24499 $as_echo "$gcc_cv_have_tls" >&6; }
24500 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24502 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24506 # For _Unwind_GetIPInfo.
24509 # Check whether --with-system-libunwind was given.
24510 if test "${with_system_libunwind+set}" = set; then :
24511 withval=$with_system_libunwind;
24514 # If system-libunwind was not specifically set, pick a default setting.
24515 if test x$with_system_libunwind = x; then
24516 case ${target} in
24517 ia64-*-hpux*) with_system_libunwind=yes ;;
24518 *) with_system_libunwind=no ;;
24519 esac
24521 # Based on system-libunwind and target, do we have ipinfo?
24522 if test x$with_system_libunwind = xyes; then
24523 case ${target} in
24524 ia64-*-*) have_unwind_getipinfo=no ;;
24525 *) have_unwind_getipinfo=yes ;;
24526 esac
24527 else
24528 # Darwin before version 9 does not have _Unwind_GetIPInfo.
24530 case ${target} in
24531 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24532 *) have_unwind_getipinfo=yes ;;
24533 esac
24537 if test x$have_unwind_getipinfo = xyes; then
24539 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24544 # See if linker supports anonymous version scripts.
24545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24546 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24547 if test "${libjava_cv_anon_version_script+set}" = set; then :
24548 $as_echo_n "(cached) " >&6
24549 else
24550 # Check whether --enable-symvers was given.
24551 if test "${enable_symvers+set}" = set; then :
24552 enableval=$enable_symvers; case "$enableval" in
24553 yes) libjava_cv_anon_version_script=yes ;;
24554 no) libjava_cv_anon_version_script=no ;;
24555 *) as_fn_error "Unknown argument to enable/disable symvers" "$LINENO" 5;;
24556 esac
24557 else
24558 libjava_cv_anon_version_script=yes
24562 if test x$libjava_cv_anon_version_script = xyes; then
24563 save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24564 CFLAGS="$CFLAGS -fPIC";
24565 LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24566 echo '{ global: globalsymb*; local: *; };' > conftest.map
24567 if test x$gcc_no_link = xyes; then
24568 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24571 /* end confdefs.h. */
24572 void globalsymbol (void) {} void localsymbol (void) {}
24574 main ()
24578 return 0;
24580 _ACEOF
24581 if ac_fn_c_try_link "$LINENO"; then :
24582 libjava_cv_anon_version_script=gnu
24583 else
24584 libjava_cv_anon_version_script=no
24586 rm -f core conftest.err conftest.$ac_objext \
24587 conftest$ac_exeext conftest.$ac_ext
24588 if test x$libjava_cv_anon_version_script = xno; then
24589 case "$target_os" in
24590 solaris2*)
24591 LDFLAGS="$save_LDFLAGS"
24592 LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24593 # Sun ld doesn't understand wildcards here.
24594 echo '{ global: globalsymbol; local: *; };' > conftest.map
24595 if test x$gcc_no_link = xyes; then
24596 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24599 /* end confdefs.h. */
24600 void globalsymbol (void) {} void localsymbol (void) {}
24602 main ()
24606 return 0;
24608 _ACEOF
24609 if ac_fn_c_try_link "$LINENO"; then :
24610 libjava_cv_anon_version_script=sun
24612 rm -f core conftest.err conftest.$ac_objext \
24613 conftest$ac_exeext conftest.$ac_ext
24615 esac
24617 CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24622 $as_echo "$libjava_cv_anon_version_script" >&6; }
24623 if test "$libjava_cv_anon_version_script" != no; then
24624 ANONVERSCRIPT_TRUE=
24625 ANONVERSCRIPT_FALSE='#'
24626 else
24627 ANONVERSCRIPT_TRUE='#'
24628 ANONVERSCRIPT_FALSE=
24631 if test "$libjava_cv_anon_version_script" = gnu; then
24632 ANONVERSCRIPT_GNU_TRUE=
24633 ANONVERSCRIPT_GNU_FALSE='#'
24634 else
24635 ANONVERSCRIPT_GNU_TRUE='#'
24636 ANONVERSCRIPT_GNU_FALSE=
24639 if test "$libjava_cv_anon_version_script" = sun; then
24640 ANONVERSCRIPT_SUN_TRUE=
24641 ANONVERSCRIPT_SUN_FALSE='#'
24642 else
24643 ANONVERSCRIPT_SUN_TRUE='#'
24644 ANONVERSCRIPT_SUN_FALSE=
24648 # Check if linker supports static linking on a per library basis
24649 LD_START_STATIC_SPEC=
24650 LD_FINISH_STATIC_SPEC=
24651 if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24652 if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
24653 LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24654 LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24660 here=`${PWDCMD-pwd}`
24663 # We get this from the environment.
24666 default_python_dir="/share/gcc-`cat ${srcdir}/../gcc/BASE-VER`/python/libjava"
24668 # Check whether --with-python-dir was given.
24669 if test "${with_python_dir+set}" = set; then :
24670 withval=$with_python_dir; with_python_dir=$withval
24671 else
24672 with_python_dir="${default_python_dir}"
24676 # Needed for installing Python modules during make install.
24677 python_mod_dir="\${prefix}${with_python_dir}"
24679 # Needed for substituting into aot-compile*
24680 python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24683 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24687 # needed for aot-compile-rpm
24688 MAKE=`which make`
24691 # Check whether --enable-aot-compile-rpm was given.
24692 if test "${enable_aot_compile_rpm+set}" = set; then :
24693 enableval=$enable_aot_compile_rpm; case "${enableval}" in
24694 yes) AOT_RPM_ENABLED=yes ;;
24695 no) AOT_RPM_ENABLED=no ;;
24696 *) as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24697 esac
24698 else
24699 AOT_RPM_ENABLED=no
24703 if test "x${AOT_RPM_ENABLED}" = xyes; then
24704 INSTALL_AOT_RPM_TRUE=
24705 INSTALL_AOT_RPM_FALSE='#'
24706 else
24707 INSTALL_AOT_RPM_TRUE='#'
24708 INSTALL_AOT_RPM_FALSE=
24712 # Check whether --enable-java-home was given.
24713 if test "${enable_java_home+set}" = set; then :
24714 enableval=$enable_java_home; case "${enableval}" in
24715 yes) JAVA_HOME_ENABLED=yes ;;
24716 no) JAVA_HOME_ENABLED=no ;;
24717 *) as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24718 esac
24719 else
24720 JAVA_HOME_ENABLED=no
24724 if test "x${JAVA_HOME_ENABLED}" = xyes; then
24725 CREATE_JAVA_HOME_TRUE=
24726 CREATE_JAVA_HOME_FALSE='#'
24727 else
24728 CREATE_JAVA_HOME_TRUE='#'
24729 CREATE_JAVA_HOME_FALSE=
24733 # Only do these checks if java-home above is enabled.
24734 if test "x${JAVA_HOME_ENABLED}" = xyes
24735 then
24738 # Check whether --with-gcc-suffix was given.
24739 if test "${with_gcc_suffix+set}" = set; then :
24740 withval=$with_gcc_suffix; gcc_suffix=$withval
24741 else
24742 gcc_suffix=""
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24746 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24750 # Check whether --with-arch-directory was given.
24751 if test "${with_arch_directory+set}" = set; then :
24752 withval=$with_arch_directory; host_cpu=$withval
24753 else
24754 host_cpu=""
24759 # Check whether --with-os-directory was given.
24760 if test "${with_os_directory+set}" = set; then :
24761 withval=$with_os_directory; host_os=$withval
24762 else
24763 host_os=""
24768 # Check whether --with-origin-name was given.
24769 if test "${with_origin_name+set}" = set; then :
24770 withval=$with_origin_name; origin_name=$withval
24771 else
24772 origin_name=gcj${gcc_suffix}
24775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24776 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24779 # Check whether --with-arch-suffix was given.
24780 if test "${with_arch_suffix+set}" = set; then :
24781 withval=$with_arch_suffix; arch_suffix=$withval
24782 else
24783 arch_suffix=""
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24787 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24790 # Check whether --with-jvm-root-dir was given.
24791 if test "${with_jvm_root_dir+set}" = set; then :
24792 withval=$with_jvm_root_dir; jvm_root_dir=$withval
24793 else
24794 jvm_root_dir="\${prefix}/lib/jvm"
24797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24798 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24801 # Check whether --with-jvm-jar-dir was given.
24802 if test "${with_jvm_jar_dir+set}" = set; then :
24803 withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24804 else
24805 jvm_jar_dir=\${prefix}/lib/jvm-exports
24808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24809 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24811 JAVA_VERSION=1.5.0
24812 BUILD_VERSION=0
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24816 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24818 jre_dir=jre
24819 jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24820 sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24822 JVM_ROOT_DIR=${jvm_root_dir}
24824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24825 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24827 JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24830 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24832 JVM_JAR_DIR=${jvm_jar_dir}
24834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24835 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24837 JRE_DIR=${jre_dir}
24840 JRE_LNK=${jre_lnk}
24843 SDK_LNK=${sdk_lnk}
24846 SDK_BIN_DIR=${jvm_root_dir}/bin
24848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24849 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24851 SDK_LIB_DIR=${jvm_root_dir}/lib
24853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24854 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24856 SDK_INCLUDE_DIR=${jvm_root_dir}/include
24858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24859 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24861 JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24864 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24866 JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24869 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24871 # Find gcj prefix using gcj found in PATH.
24872 gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24874 # Where do the gcj binaries live?
24875 # For jhbuild based builds, they all live in a sibling of bin called
24876 # gcj-bin. Check for gcj-bin first, and use bin otherwise.
24877 GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24880 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24883 $as_echo "host is ${host}" >&6; }
24884 if test "x${host_cpu}" = "x"
24885 then
24886 case ${host} in
24887 *-mingw* | *-cygwin*)
24888 host_cpu=x86;;
24889 i486-* | i586-* | i686-*)
24890 host_cpu=i386;;
24891 x86_64-*)
24892 host_cpu=amd64;;
24894 host_cpu=${host_cpu};;
24895 esac
24897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24898 $as_echo "arch directory: ${host_cpu}" >&6; }
24899 CPU=${host_cpu}
24902 if test "x${host_os}" = "x"
24903 then
24904 case ${host} in
24905 *-mingw* | *-cygwin*)
24906 host_os=win32;;
24907 *-linux*)
24908 host_os=linux;;
24910 host_os=${host_os};;
24911 esac
24913 echo os directory: ${host_os}
24914 OS=${host_os}
24917 # make an expanded $libdir, for substituting into
24918 # scripts (and other non-Makefile things).
24919 LIBDIR=$libdir
24920 if test "x${exec_prefix}" = "xNONE"
24921 then
24922 lib_exec_prefix=$expanded_prefix
24923 else
24924 lib_exec_prefix=$exec_prefix
24926 LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24930 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"
24933 if test ${multilib} = yes; then
24934 multilib_arg="--enable-multilib"
24935 else
24936 multilib_arg=
24939 ac_config_files="$ac_config_files scripts/jar"
24941 cat >confcache <<\_ACEOF
24942 # This file is a shell script that caches the results of configure
24943 # tests run on this system so they can be shared between configure
24944 # scripts and configure runs, see configure's option --config-cache.
24945 # It is not useful on other systems. If it contains results you don't
24946 # want to keep, you may remove or edit it.
24948 # config.status only pays attention to the cache file if you give it
24949 # the --recheck option to rerun configure.
24951 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24952 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24953 # following values.
24955 _ACEOF
24957 # The following way of writing the cache mishandles newlines in values,
24958 # but we know of no workaround that is simple, portable, and efficient.
24959 # So, we kill variables containing newlines.
24960 # Ultrix sh set writes to stderr and can't be redirected directly,
24961 # and sets the high bit in the cache file unless we assign to the vars.
24963 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24964 eval ac_val=\$$ac_var
24965 case $ac_val in #(
24966 *${as_nl}*)
24967 case $ac_var in #(
24968 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24969 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24970 esac
24971 case $ac_var in #(
24972 _ | IFS | as_nl) ;; #(
24973 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24974 *) { eval $ac_var=; unset $ac_var;} ;;
24975 esac ;;
24976 esac
24977 done
24979 (set) 2>&1 |
24980 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24981 *${as_nl}ac_space=\ *)
24982 # `set' does not quote correctly, so add quotes: double-quote
24983 # substitution turns \\\\ into \\, and sed turns \\ into \.
24984 sed -n \
24985 "s/'/'\\\\''/g;
24986 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24987 ;; #(
24989 # `set' quotes correctly as required by POSIX, so do not add quotes.
24990 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24992 esac |
24993 sort
24995 sed '
24996 /^ac_cv_env_/b end
24997 t clear
24998 :clear
24999 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25000 t end
25001 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25002 :end' >>confcache
25003 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25004 if test -w "$cache_file"; then
25005 test "x$cache_file" != "x/dev/null" &&
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25007 $as_echo "$as_me: updating cache $cache_file" >&6;}
25008 cat confcache >$cache_file
25009 else
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25011 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25014 rm -f confcache
25016 test "x$prefix" = xNONE && prefix=$ac_default_prefix
25017 # Let make expand exec_prefix.
25018 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25020 DEFS=-DHAVE_CONFIG_H
25022 ac_libobjs=
25023 ac_ltlibobjs=
25024 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25025 # 1. Remove the extension, and $U if already installed.
25026 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25027 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25028 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25029 # will be set to the directory where LIBOBJS objects are built.
25030 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25031 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25032 done
25033 LIBOBJS=$ac_libobjs
25035 LTLIBOBJS=$ac_ltlibobjs
25038 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
25039 as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
25040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25042 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
25043 as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
25044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25046 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25047 as_fn_error "conditional \"AMDEP\" was never defined.
25048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25050 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25051 as_fn_error "conditional \"am__fastdepCC\" was never defined.
25052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25054 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25055 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
25056 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25058 if test -n "$EXEEXT"; then
25059 am__EXEEXT_TRUE=
25060 am__EXEEXT_FALSE='#'
25061 else
25062 am__EXEEXT_TRUE='#'
25063 am__EXEEXT_FALSE=
25066 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
25067 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
25068 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25070 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25071 as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25072 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25074 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
25075 as_fn_error "conditional \"XLIB_AWT\" was never defined.
25076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25078 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
25079 as_fn_error "conditional \"X_AWT\" was never defined.
25080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25082 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25083 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25086 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25087 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25090 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
25091 as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25094 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
25095 as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25098 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
25099 as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25102 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
25103 as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25106 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
25107 as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25110 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
25111 as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25114 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
25115 as_fn_error "conditional \"INTERPRETER\" was never defined.
25116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25118 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
25119 as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25122 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
25123 as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25126 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
25127 as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25130 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
25131 as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25134 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
25135 as_fn_error "conditional \"USING_NOGC\" was never defined.
25136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25138 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
25139 as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25142 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
25143 as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25144 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25146 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
25147 as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25150 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
25151 as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25152 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25154 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
25155 as_fn_error "conditional \"USING_GCC\" was never defined.
25156 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25158 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25159 as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25163 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
25164 as_fn_error "conditional \"NATIVE\" was never defined.
25165 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25167 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25168 as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25169 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25171 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25172 as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25173 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25175 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25176 as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25177 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25179 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25180 as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25181 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25183 if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25184 as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25185 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25187 if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25188 as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25189 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25191 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25192 as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25193 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25195 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25196 as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25197 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25200 : ${CONFIG_STATUS=./config.status}
25201 ac_write_fail=0
25202 ac_clean_files_save=$ac_clean_files
25203 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25205 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25206 as_write_fail=0
25207 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25208 #! $SHELL
25209 # Generated by $as_me.
25210 # Run this file to recreate the current configuration.
25211 # Compiler output produced by configure, useful for debugging
25212 # configure, is in config.log if it exists.
25214 debug=false
25215 ac_cs_recheck=false
25216 ac_cs_silent=false
25218 SHELL=\${CONFIG_SHELL-$SHELL}
25219 export SHELL
25220 _ASEOF
25221 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25222 ## -------------------- ##
25223 ## M4sh Initialization. ##
25224 ## -------------------- ##
25226 # Be more Bourne compatible
25227 DUALCASE=1; export DUALCASE # for MKS sh
25228 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25229 emulate sh
25230 NULLCMD=:
25231 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25232 # is contrary to our usage. Disable this feature.
25233 alias -g '${1+"$@"}'='"$@"'
25234 setopt NO_GLOB_SUBST
25235 else
25236 case `(set -o) 2>/dev/null` in #(
25237 *posix*) :
25238 set -o posix ;; #(
25239 *) :
25241 esac
25245 as_nl='
25247 export as_nl
25248 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25249 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25250 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25251 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25252 # Prefer a ksh shell builtin over an external printf program on Solaris,
25253 # but without wasting forks for bash or zsh.
25254 if test -z "$BASH_VERSION$ZSH_VERSION" \
25255 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25256 as_echo='print -r --'
25257 as_echo_n='print -rn --'
25258 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25259 as_echo='printf %s\n'
25260 as_echo_n='printf %s'
25261 else
25262 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25263 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25264 as_echo_n='/usr/ucb/echo -n'
25265 else
25266 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25267 as_echo_n_body='eval
25268 arg=$1;
25269 case $arg in #(
25270 *"$as_nl"*)
25271 expr "X$arg" : "X\\(.*\\)$as_nl";
25272 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25273 esac;
25274 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25276 export as_echo_n_body
25277 as_echo_n='sh -c $as_echo_n_body as_echo'
25279 export as_echo_body
25280 as_echo='sh -c $as_echo_body as_echo'
25283 # The user is always right.
25284 if test "${PATH_SEPARATOR+set}" != set; then
25285 PATH_SEPARATOR=:
25286 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25287 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25288 PATH_SEPARATOR=';'
25293 # IFS
25294 # We need space, tab and new line, in precisely that order. Quoting is
25295 # there to prevent editors from complaining about space-tab.
25296 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25297 # splitting by setting IFS to empty value.)
25298 IFS=" "" $as_nl"
25300 # Find who we are. Look in the path if we contain no directory separator.
25301 case $0 in #((
25302 *[\\/]* ) as_myself=$0 ;;
25303 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25304 for as_dir in $PATH
25306 IFS=$as_save_IFS
25307 test -z "$as_dir" && as_dir=.
25308 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25309 done
25310 IFS=$as_save_IFS
25313 esac
25314 # We did not find ourselves, most probably we were run as `sh COMMAND'
25315 # in which case we are not to be found in the path.
25316 if test "x$as_myself" = x; then
25317 as_myself=$0
25319 if test ! -f "$as_myself"; then
25320 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25321 exit 1
25324 # Unset variables that we do not need and which cause bugs (e.g. in
25325 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25326 # suppresses any "Segmentation fault" message there. '((' could
25327 # trigger a bug in pdksh 5.2.14.
25328 for as_var in BASH_ENV ENV MAIL MAILPATH
25329 do eval test x\${$as_var+set} = xset \
25330 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25331 done
25332 PS1='$ '
25333 PS2='> '
25334 PS4='+ '
25336 # NLS nuisances.
25337 LC_ALL=C
25338 export LC_ALL
25339 LANGUAGE=C
25340 export LANGUAGE
25342 # CDPATH.
25343 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25346 # as_fn_error ERROR [LINENO LOG_FD]
25347 # ---------------------------------
25348 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25349 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25350 # script with status $?, using 1 if that was 0.
25351 as_fn_error ()
25353 as_status=$?; test $as_status -eq 0 && as_status=1
25354 if test "$3"; then
25355 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25356 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25358 $as_echo "$as_me: error: $1" >&2
25359 as_fn_exit $as_status
25360 } # as_fn_error
25363 # as_fn_set_status STATUS
25364 # -----------------------
25365 # Set $? to STATUS, without forking.
25366 as_fn_set_status ()
25368 return $1
25369 } # as_fn_set_status
25371 # as_fn_exit STATUS
25372 # -----------------
25373 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25374 as_fn_exit ()
25376 set +e
25377 as_fn_set_status $1
25378 exit $1
25379 } # as_fn_exit
25381 # as_fn_unset VAR
25382 # ---------------
25383 # Portably unset VAR.
25384 as_fn_unset ()
25386 { eval $1=; unset $1;}
25388 as_unset=as_fn_unset
25389 # as_fn_append VAR VALUE
25390 # ----------------------
25391 # Append the text in VALUE to the end of the definition contained in VAR. Take
25392 # advantage of any shell optimizations that allow amortized linear growth over
25393 # repeated appends, instead of the typical quadratic growth present in naive
25394 # implementations.
25395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25396 eval 'as_fn_append ()
25398 eval $1+=\$2
25400 else
25401 as_fn_append ()
25403 eval $1=\$$1\$2
25405 fi # as_fn_append
25407 # as_fn_arith ARG...
25408 # ------------------
25409 # Perform arithmetic evaluation on the ARGs, and store the result in the
25410 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25411 # must be portable across $(()) and expr.
25412 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25413 eval 'as_fn_arith ()
25415 as_val=$(( $* ))
25417 else
25418 as_fn_arith ()
25420 as_val=`expr "$@" || test $? -eq 1`
25422 fi # as_fn_arith
25425 if expr a : '\(a\)' >/dev/null 2>&1 &&
25426 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25427 as_expr=expr
25428 else
25429 as_expr=false
25432 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25433 as_basename=basename
25434 else
25435 as_basename=false
25438 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25439 as_dirname=dirname
25440 else
25441 as_dirname=false
25444 as_me=`$as_basename -- "$0" ||
25445 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25446 X"$0" : 'X\(//\)$' \| \
25447 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25448 $as_echo X/"$0" |
25449 sed '/^.*\/\([^/][^/]*\)\/*$/{
25450 s//\1/
25453 /^X\/\(\/\/\)$/{
25454 s//\1/
25457 /^X\/\(\/\).*/{
25458 s//\1/
25461 s/.*/./; q'`
25463 # Avoid depending upon Character Ranges.
25464 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25465 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25466 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25467 as_cr_digits='0123456789'
25468 as_cr_alnum=$as_cr_Letters$as_cr_digits
25470 ECHO_C= ECHO_N= ECHO_T=
25471 case `echo -n x` in #(((((
25472 -n*)
25473 case `echo 'xy\c'` in
25474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25475 xy) ECHO_C='\c';;
25476 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25477 ECHO_T=' ';;
25478 esac;;
25480 ECHO_N='-n';;
25481 esac
25483 rm -f conf$$ conf$$.exe conf$$.file
25484 if test -d conf$$.dir; then
25485 rm -f conf$$.dir/conf$$.file
25486 else
25487 rm -f conf$$.dir
25488 mkdir conf$$.dir 2>/dev/null
25490 if (echo >conf$$.file) 2>/dev/null; then
25491 if ln -s conf$$.file conf$$ 2>/dev/null; then
25492 as_ln_s='ln -s'
25493 # ... but there are two gotchas:
25494 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25495 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25496 # In both cases, we have to default to `cp -p'.
25497 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25498 as_ln_s='cp -p'
25499 elif ln conf$$.file conf$$ 2>/dev/null; then
25500 as_ln_s=ln
25501 else
25502 as_ln_s='cp -p'
25504 else
25505 as_ln_s='cp -p'
25507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25508 rmdir conf$$.dir 2>/dev/null
25511 # as_fn_mkdir_p
25512 # -------------
25513 # Create "$as_dir" as a directory, including parents if necessary.
25514 as_fn_mkdir_p ()
25517 case $as_dir in #(
25518 -*) as_dir=./$as_dir;;
25519 esac
25520 test -d "$as_dir" || eval $as_mkdir_p || {
25521 as_dirs=
25522 while :; do
25523 case $as_dir in #(
25524 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25525 *) as_qdir=$as_dir;;
25526 esac
25527 as_dirs="'$as_qdir' $as_dirs"
25528 as_dir=`$as_dirname -- "$as_dir" ||
25529 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25530 X"$as_dir" : 'X\(//\)[^/]' \| \
25531 X"$as_dir" : 'X\(//\)$' \| \
25532 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25533 $as_echo X"$as_dir" |
25534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25535 s//\1/
25538 /^X\(\/\/\)[^/].*/{
25539 s//\1/
25542 /^X\(\/\/\)$/{
25543 s//\1/
25546 /^X\(\/\).*/{
25547 s//\1/
25550 s/.*/./; q'`
25551 test -d "$as_dir" && break
25552 done
25553 test -z "$as_dirs" || eval "mkdir $as_dirs"
25554 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25557 } # as_fn_mkdir_p
25558 if mkdir -p . 2>/dev/null; then
25559 as_mkdir_p='mkdir -p "$as_dir"'
25560 else
25561 test -d ./-p && rmdir ./-p
25562 as_mkdir_p=false
25565 if test -x / >/dev/null 2>&1; then
25566 as_test_x='test -x'
25567 else
25568 if ls -dL / >/dev/null 2>&1; then
25569 as_ls_L_option=L
25570 else
25571 as_ls_L_option=
25573 as_test_x='
25574 eval sh -c '\''
25575 if test -d "$1"; then
25576 test -d "$1/.";
25577 else
25578 case $1 in #(
25579 -*)set "./$1";;
25580 esac;
25581 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25582 ???[sx]*):;;*)false;;esac;fi
25583 '\'' sh
25586 as_executable_p=$as_test_x
25588 # Sed expression to map a string onto a valid CPP name.
25589 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25591 # Sed expression to map a string onto a valid variable name.
25592 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25595 exec 6>&1
25596 ## ----------------------------------- ##
25597 ## Main body of $CONFIG_STATUS script. ##
25598 ## ----------------------------------- ##
25599 _ASEOF
25600 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25603 # Save the log message, to keep $0 and so on meaningful, and to
25604 # report actual input values of CONFIG_FILES etc. instead of their
25605 # values after options handling.
25606 ac_log="
25607 This file was extended by libjava $as_me version-unused, which was
25608 generated by GNU Autoconf 2.64. Invocation command line was
25610 CONFIG_FILES = $CONFIG_FILES
25611 CONFIG_HEADERS = $CONFIG_HEADERS
25612 CONFIG_LINKS = $CONFIG_LINKS
25613 CONFIG_COMMANDS = $CONFIG_COMMANDS
25614 $ $0 $@
25616 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25619 _ACEOF
25621 case $ac_config_files in *"
25622 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25623 esac
25625 case $ac_config_headers in *"
25626 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25627 esac
25630 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25631 # Files that config.status was made for.
25632 config_files="$ac_config_files"
25633 config_headers="$ac_config_headers"
25634 config_links="$ac_config_links"
25635 config_commands="$ac_config_commands"
25637 _ACEOF
25639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25640 ac_cs_usage="\
25641 \`$as_me' instantiates files and other configuration actions
25642 from templates according to the current configuration. Unless the files
25643 and actions are specified as TAGs, all are instantiated by default.
25645 Usage: $0 [OPTION]... [TAG]...
25647 -h, --help print this help, then exit
25648 -V, --version print version number and configuration settings, then exit
25649 -q, --quiet, --silent
25650 do not print progress messages
25651 -d, --debug don't remove temporary files
25652 --recheck update $as_me by reconfiguring in the same conditions
25653 --file=FILE[:TEMPLATE]
25654 instantiate the configuration file FILE
25655 --header=FILE[:TEMPLATE]
25656 instantiate the configuration header FILE
25658 Configuration files:
25659 $config_files
25661 Configuration headers:
25662 $config_headers
25664 Configuration links:
25665 $config_links
25667 Configuration commands:
25668 $config_commands
25670 Report bugs to the package provider."
25672 _ACEOF
25673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25674 ac_cs_version="\\
25675 libjava config.status version-unused
25676 configured by $0, generated by GNU Autoconf 2.64,
25677 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25679 Copyright (C) 2009 Free Software Foundation, Inc.
25680 This config.status script is free software; the Free Software Foundation
25681 gives unlimited permission to copy, distribute and modify it."
25683 ac_pwd='$ac_pwd'
25684 srcdir='$srcdir'
25685 INSTALL='$INSTALL'
25686 MKDIR_P='$MKDIR_P'
25687 AWK='$AWK'
25688 test -n "\$AWK" || AWK=awk
25689 _ACEOF
25691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25692 # The default lists apply if the user does not specify any file.
25693 ac_need_defaults=:
25694 while test $# != 0
25696 case $1 in
25697 --*=*)
25698 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25699 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25700 ac_shift=:
25703 ac_option=$1
25704 ac_optarg=$2
25705 ac_shift=shift
25707 esac
25709 case $ac_option in
25710 # Handling of the options.
25711 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25712 ac_cs_recheck=: ;;
25713 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25714 $as_echo "$ac_cs_version"; exit ;;
25715 --debug | --debu | --deb | --de | --d | -d )
25716 debug=: ;;
25717 --file | --fil | --fi | --f )
25718 $ac_shift
25719 case $ac_optarg in
25720 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25721 esac
25722 as_fn_append CONFIG_FILES " '$ac_optarg'"
25723 ac_need_defaults=false;;
25724 --header | --heade | --head | --hea )
25725 $ac_shift
25726 case $ac_optarg in
25727 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25728 esac
25729 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25730 ac_need_defaults=false;;
25731 --he | --h)
25732 # Conflict between --help and --header
25733 as_fn_error "ambiguous option: \`$1'
25734 Try \`$0 --help' for more information.";;
25735 --help | --hel | -h )
25736 $as_echo "$ac_cs_usage"; exit ;;
25737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25738 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25739 ac_cs_silent=: ;;
25741 # This is an error.
25742 -*) as_fn_error "unrecognized option: \`$1'
25743 Try \`$0 --help' for more information." ;;
25745 *) as_fn_append ac_config_targets " $1"
25746 ac_need_defaults=false ;;
25748 esac
25749 shift
25750 done
25752 ac_configure_extra_args=
25754 if $ac_cs_silent; then
25755 exec 6>/dev/null
25756 ac_configure_extra_args="$ac_configure_extra_args --silent"
25759 _ACEOF
25760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25761 if \$ac_cs_recheck; then
25762 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25763 shift
25764 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25765 CONFIG_SHELL='$SHELL'
25766 export CONFIG_SHELL
25767 exec "\$@"
25770 _ACEOF
25771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25772 exec 5>>config.log
25774 echo
25775 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25776 ## Running $as_me. ##
25777 _ASBOX
25778 $as_echo "$ac_log"
25779 } >&5
25781 _ACEOF
25782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25784 # INIT-COMMANDS
25787 srcdir="$srcdir"
25788 host="$host"
25789 target="$target"
25790 with_multisubdir="$with_multisubdir"
25791 with_multisrctop="$with_multisrctop"
25792 with_target_subdir="$with_target_subdir"
25793 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25794 multi_basedir="$multi_basedir"
25795 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25796 CC="$CC"
25797 CXX="$CXX"
25798 GFORTRAN="$GFORTRAN"
25799 GCJ="$GCJ"
25800 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25803 # The HP-UX ksh and POSIX shell print the target directory to stdout
25804 # if CDPATH is set.
25805 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25807 sed_quote_subst='$sed_quote_subst'
25808 double_quote_subst='$double_quote_subst'
25809 delay_variable_subst='$delay_variable_subst'
25810 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25811 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25812 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25813 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25814 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25815 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25816 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25817 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25818 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25819 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25820 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25821 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25822 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25823 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25824 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25825 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25826 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25827 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25828 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25829 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25830 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25831 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25832 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25833 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25834 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25835 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25836 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25837 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25838 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25839 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25840 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25841 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25842 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25843 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25844 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25845 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25846 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25847 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25848 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25849 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25850 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25851 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25852 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25853 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25854 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25855 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25856 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25857 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25858 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"`'
25859 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25860 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25861 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25862 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25863 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25864 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25865 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25866 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25867 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25868 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25869 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25870 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25871 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25872 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25873 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25874 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25875 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25876 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25877 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25878 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25879 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25880 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25881 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25882 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25883 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25884 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25885 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25886 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25887 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25888 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25889 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25890 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25891 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25892 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25893 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25894 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25895 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25896 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25897 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25898 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25899 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25900 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25901 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25902 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25903 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25904 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25905 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25906 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25907 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25908 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25909 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25910 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25911 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25912 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25913 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25914 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25915 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25916 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25917 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25918 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25919 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25920 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25921 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25922 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25923 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25924 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25925 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25926 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25927 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25928 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25929 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25930 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25931 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25932 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25933 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25934 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25935 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25936 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25937 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25938 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25939 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25940 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25941 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25942 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25943 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25944 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25945 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25946 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25947 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25948 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25949 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25950 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25951 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25952 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25953 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25954 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25955 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25956 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25957 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25958 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25959 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25960 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25961 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25962 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25963 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25964 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25965 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25966 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25967 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25968 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25969 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25970 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25971 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25972 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25973 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25974 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25975 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25976 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25977 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25978 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25979 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25980 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25981 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25982 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25983 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25984 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25985 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25986 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25987 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25988 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25989 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25990 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25991 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25992 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25993 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25994 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25995 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25996 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25997 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25998 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25999 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
26000 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
26001 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
26002 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
26003 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
26004 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
26005 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
26006 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
26007 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
26008 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
26009 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
26010 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26011 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26012 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26013 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26014 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
26015 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
26016 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
26017 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
26018 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
26019 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
26020 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
26021 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
26022 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
26023 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
26024 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26025 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26026 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
26027 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
26028 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
26029 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
26030 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
26031 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
26032 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
26033 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
26035 LTCC='$LTCC'
26036 LTCFLAGS='$LTCFLAGS'
26037 compiler='$compiler_DEFAULT'
26039 # A function that is used when there is no print builtin or printf.
26040 func_fallback_echo ()
26042 eval 'cat <<_LTECHO_EOF
26044 _LTECHO_EOF'
26047 # Quote evaled strings.
26048 for var in SHELL \
26049 ECHO \
26050 SED \
26051 GREP \
26052 EGREP \
26053 FGREP \
26054 LD \
26055 NM \
26056 LN_S \
26057 lt_SP2NL \
26058 lt_NL2SP \
26059 reload_flag \
26060 OBJDUMP \
26061 deplibs_check_method \
26062 file_magic_cmd \
26063 AR \
26064 AR_FLAGS \
26065 STRIP \
26066 RANLIB \
26067 CC \
26068 CFLAGS \
26069 compiler \
26070 lt_cv_sys_global_symbol_pipe \
26071 lt_cv_sys_global_symbol_to_cdecl \
26072 lt_cv_sys_global_symbol_to_c_name_address \
26073 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26074 lt_prog_compiler_no_builtin_flag \
26075 lt_prog_compiler_wl \
26076 lt_prog_compiler_pic \
26077 lt_prog_compiler_static \
26078 lt_cv_prog_compiler_c_o \
26079 need_locks \
26080 DSYMUTIL \
26081 NMEDIT \
26082 LIPO \
26083 OTOOL \
26084 OTOOL64 \
26085 shrext_cmds \
26086 export_dynamic_flag_spec \
26087 whole_archive_flag_spec \
26088 compiler_needs_object \
26089 with_gnu_ld \
26090 allow_undefined_flag \
26091 no_undefined_flag \
26092 hardcode_libdir_flag_spec \
26093 hardcode_libdir_flag_spec_ld \
26094 hardcode_libdir_separator \
26095 fix_srcfile_path \
26096 exclude_expsyms \
26097 include_expsyms \
26098 file_list_spec \
26099 variables_saved_for_relink \
26100 libname_spec \
26101 library_names_spec \
26102 soname_spec \
26103 install_override_mode \
26104 finish_eval \
26105 old_striplib \
26106 striplib \
26107 compiler_lib_search_dirs \
26108 predep_objects \
26109 postdep_objects \
26110 predeps \
26111 postdeps \
26112 compiler_lib_search_path \
26113 LD_CXX \
26114 LD_GCJ \
26115 reload_flag_CXX \
26116 reload_flag_GCJ \
26117 compiler_CXX \
26118 compiler_GCJ \
26119 lt_prog_compiler_no_builtin_flag_CXX \
26120 lt_prog_compiler_no_builtin_flag_GCJ \
26121 lt_prog_compiler_wl_CXX \
26122 lt_prog_compiler_wl_GCJ \
26123 lt_prog_compiler_pic_CXX \
26124 lt_prog_compiler_pic_GCJ \
26125 lt_prog_compiler_static_CXX \
26126 lt_prog_compiler_static_GCJ \
26127 lt_cv_prog_compiler_c_o_CXX \
26128 lt_cv_prog_compiler_c_o_GCJ \
26129 export_dynamic_flag_spec_CXX \
26130 export_dynamic_flag_spec_GCJ \
26131 whole_archive_flag_spec_CXX \
26132 whole_archive_flag_spec_GCJ \
26133 compiler_needs_object_CXX \
26134 compiler_needs_object_GCJ \
26135 with_gnu_ld_CXX \
26136 with_gnu_ld_GCJ \
26137 allow_undefined_flag_CXX \
26138 allow_undefined_flag_GCJ \
26139 no_undefined_flag_CXX \
26140 no_undefined_flag_GCJ \
26141 hardcode_libdir_flag_spec_CXX \
26142 hardcode_libdir_flag_spec_GCJ \
26143 hardcode_libdir_flag_spec_ld_CXX \
26144 hardcode_libdir_flag_spec_ld_GCJ \
26145 hardcode_libdir_separator_CXX \
26146 hardcode_libdir_separator_GCJ \
26147 fix_srcfile_path_CXX \
26148 fix_srcfile_path_GCJ \
26149 exclude_expsyms_CXX \
26150 exclude_expsyms_GCJ \
26151 include_expsyms_CXX \
26152 include_expsyms_GCJ \
26153 file_list_spec_CXX \
26154 file_list_spec_GCJ \
26155 compiler_lib_search_dirs_CXX \
26156 compiler_lib_search_dirs_GCJ \
26157 predep_objects_CXX \
26158 predep_objects_GCJ \
26159 postdep_objects_CXX \
26160 postdep_objects_GCJ \
26161 predeps_CXX \
26162 predeps_GCJ \
26163 postdeps_CXX \
26164 postdeps_GCJ \
26165 compiler_lib_search_path_CXX \
26166 compiler_lib_search_path_GCJ; do
26167 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26168 *[\\\\\\\`\\"\\\$]*)
26169 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26172 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26174 esac
26175 done
26177 # Double-quote double-evaled strings.
26178 for var in reload_cmds \
26179 old_postinstall_cmds \
26180 old_postuninstall_cmds \
26181 old_archive_cmds \
26182 extract_expsyms_cmds \
26183 old_archive_from_new_cmds \
26184 old_archive_from_expsyms_cmds \
26185 archive_cmds \
26186 archive_expsym_cmds \
26187 module_cmds \
26188 module_expsym_cmds \
26189 export_symbols_cmds \
26190 prelink_cmds \
26191 postinstall_cmds \
26192 postuninstall_cmds \
26193 finish_cmds \
26194 sys_lib_search_path_spec \
26195 sys_lib_dlsearch_path_spec \
26196 reload_cmds_CXX \
26197 reload_cmds_GCJ \
26198 old_archive_cmds_CXX \
26199 old_archive_cmds_GCJ \
26200 old_archive_from_new_cmds_CXX \
26201 old_archive_from_new_cmds_GCJ \
26202 old_archive_from_expsyms_cmds_CXX \
26203 old_archive_from_expsyms_cmds_GCJ \
26204 archive_cmds_CXX \
26205 archive_cmds_GCJ \
26206 archive_expsym_cmds_CXX \
26207 archive_expsym_cmds_GCJ \
26208 module_cmds_CXX \
26209 module_cmds_GCJ \
26210 module_expsym_cmds_CXX \
26211 module_expsym_cmds_GCJ \
26212 export_symbols_cmds_CXX \
26213 export_symbols_cmds_GCJ \
26214 prelink_cmds_CXX \
26215 prelink_cmds_GCJ; do
26216 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26217 *[\\\\\\\`\\"\\\$]*)
26218 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26221 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26223 esac
26224 done
26226 ac_aux_dir='$ac_aux_dir'
26227 xsi_shell='$xsi_shell'
26228 lt_shell_append='$lt_shell_append'
26230 # See if we are running on zsh, and set the options which allow our
26231 # commands through without removal of \ escapes INIT.
26232 if test -n "\${ZSH_VERSION+set}" ; then
26233 setopt NO_GLOB_SUBST
26237 PACKAGE='$PACKAGE'
26238 VERSION='$VERSION'
26239 TIMESTAMP='$TIMESTAMP'
26240 RM='$RM'
26241 ofile='$ofile'
26250 _ACEOF
26252 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26254 # Handling of arguments.
26255 for ac_config_target in $ac_config_targets
26257 case $ac_config_target in
26258 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26259 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26260 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26261 "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26262 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26263 "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26264 "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26265 "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26266 "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26267 "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26268 "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26269 "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26270 "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26271 "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26272 "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26273 "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" ;;
26274 "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26275 "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26276 "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26277 "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26278 "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26279 "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26280 "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26281 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26282 "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26283 "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26284 "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26285 "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26286 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26287 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26288 "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26289 "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26290 "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26291 "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26292 "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26293 "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26295 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26296 esac
26297 done
26300 # If the user did not use the arguments to specify the items to instantiate,
26301 # then the envvar interface is used. Set only those that are not.
26302 # We use the long form for the default assignment because of an extremely
26303 # bizarre bug on SunOS 4.1.3.
26304 if $ac_need_defaults; then
26305 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26306 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26307 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26308 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26311 # Have a temporary directory for convenience. Make it in the build tree
26312 # simply because there is no reason against having it here, and in addition,
26313 # creating and moving files from /tmp can sometimes cause problems.
26314 # Hook for its removal unless debugging.
26315 # Note that there is a small window in which the directory will not be cleaned:
26316 # after its creation but before its name has been assigned to `$tmp'.
26317 $debug ||
26319 tmp=
26320 trap 'exit_status=$?
26321 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26323 trap 'as_fn_exit 1' 1 2 13 15
26325 # Create a (secure) tmp directory for tmp files.
26328 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26329 test -n "$tmp" && test -d "$tmp"
26330 } ||
26332 tmp=./conf$$-$RANDOM
26333 (umask 077 && mkdir "$tmp")
26334 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26336 # Set up the scripts for CONFIG_FILES section.
26337 # No need to generate them if there are no CONFIG_FILES.
26338 # This happens for instance with `./config.status config.h'.
26339 if test -n "$CONFIG_FILES"; then
26342 ac_cr=`echo X | tr X '\015'`
26343 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26344 # But we know of no other shell where ac_cr would be empty at this
26345 # point, so we can use a bashism as a fallback.
26346 if test "x$ac_cr" = x; then
26347 eval ac_cr=\$\'\\r\'
26349 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26350 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26351 ac_cs_awk_cr='\r'
26352 else
26353 ac_cs_awk_cr=$ac_cr
26356 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26357 _ACEOF
26361 echo "cat >conf$$subs.awk <<_ACEOF" &&
26362 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26363 echo "_ACEOF"
26364 } >conf$$subs.sh ||
26365 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26366 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26367 ac_delim='%!_!# '
26368 for ac_last_try in false false false false false :; do
26369 . ./conf$$subs.sh ||
26370 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26372 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26373 if test $ac_delim_n = $ac_delim_num; then
26374 break
26375 elif $ac_last_try; then
26376 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26377 else
26378 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26380 done
26381 rm -f conf$$subs.sh
26383 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26384 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26385 _ACEOF
26386 sed -n '
26388 s/^/S["/; s/!.*/"]=/
26391 s/^[^!]*!//
26392 :repl
26393 t repl
26394 s/'"$ac_delim"'$//
26395 t delim
26398 s/\(.\{148\}\).*/\1/
26399 t more1
26400 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26403 b repl
26404 :more1
26405 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26408 s/.\{148\}//
26409 t nl
26410 :delim
26412 s/\(.\{148\}\).*/\1/
26413 t more2
26414 s/["\\]/\\&/g; s/^/"/; s/$/"/
26417 :more2
26418 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26421 s/.\{148\}//
26422 t delim
26423 ' <conf$$subs.awk | sed '
26424 /^[^""]/{
26426 s/\n//
26428 ' >>$CONFIG_STATUS || ac_write_fail=1
26429 rm -f conf$$subs.awk
26430 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26431 _ACAWK
26432 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26433 for (key in S) S_is_set[key] = 1
26434 FS = "\a"
26438 line = $ 0
26439 nfields = split(line, field, "@")
26440 substed = 0
26441 len = length(field[1])
26442 for (i = 2; i < nfields; i++) {
26443 key = field[i]
26444 keylen = length(key)
26445 if (S_is_set[key]) {
26446 value = S[key]
26447 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26448 len += length(value) + length(field[++i])
26449 substed = 1
26450 } else
26451 len += 1 + keylen
26454 print line
26457 _ACAWK
26458 _ACEOF
26459 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26460 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26461 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26462 else
26464 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26465 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26466 _ACEOF
26468 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26469 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26470 # trailing colons and then remove the whole line if VPATH becomes empty
26471 # (actually we leave an empty line to preserve line numbers).
26472 if test "x$srcdir" = x.; then
26473 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26474 s/:*\$(srcdir):*/:/
26475 s/:*\${srcdir}:*/:/
26476 s/:*@srcdir@:*/:/
26477 s/^\([^=]*=[ ]*\):*/\1/
26478 s/:*$//
26479 s/^[^=]*=[ ]*$//
26483 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26484 fi # test -n "$CONFIG_FILES"
26486 # Set up the scripts for CONFIG_HEADERS section.
26487 # No need to generate them if there are no CONFIG_HEADERS.
26488 # This happens for instance with `./config.status Makefile'.
26489 if test -n "$CONFIG_HEADERS"; then
26490 cat >"$tmp/defines.awk" <<\_ACAWK ||
26491 BEGIN {
26492 _ACEOF
26494 # Transform confdefs.h into an awk script `defines.awk', embedded as
26495 # here-document in config.status, that substitutes the proper values into
26496 # config.h.in to produce config.h.
26498 # Create a delimiter string that does not exist in confdefs.h, to ease
26499 # handling of long lines.
26500 ac_delim='%!_!# '
26501 for ac_last_try in false false :; do
26502 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26503 if test -z "$ac_t"; then
26504 break
26505 elif $ac_last_try; then
26506 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26507 else
26508 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26510 done
26512 # For the awk script, D is an array of macro values keyed by name,
26513 # likewise P contains macro parameters if any. Preserve backslash
26514 # newline sequences.
26516 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26517 sed -n '
26518 s/.\{148\}/&'"$ac_delim"'/g
26519 t rset
26520 :rset
26521 s/^[ ]*#[ ]*define[ ][ ]*/ /
26522 t def
26524 :def
26525 s/\\$//
26526 t bsnl
26527 s/["\\]/\\&/g
26528 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26529 D["\1"]=" \3"/p
26530 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
26532 :bsnl
26533 s/["\\]/\\&/g
26534 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
26535 D["\1"]=" \3\\\\\\n"\\/p
26536 t cont
26537 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26538 t cont
26540 :cont
26542 s/.\{148\}/&'"$ac_delim"'/g
26543 t clear
26544 :clear
26545 s/\\$//
26546 t bsnlc
26547 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26549 :bsnlc
26550 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26551 b cont
26552 ' <confdefs.h | sed '
26553 s/'"$ac_delim"'/"\\\
26554 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26556 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26557 for (key in D) D_is_set[key] = 1
26558 FS = "\a"
26560 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26561 line = \$ 0
26562 split(line, arg, " ")
26563 if (arg[1] == "#") {
26564 defundef = arg[2]
26565 mac1 = arg[3]
26566 } else {
26567 defundef = substr(arg[1], 2)
26568 mac1 = arg[2]
26570 split(mac1, mac2, "(") #)
26571 macro = mac2[1]
26572 prefix = substr(line, 1, index(line, defundef) - 1)
26573 if (D_is_set[macro]) {
26574 # Preserve the white space surrounding the "#".
26575 print prefix "define", macro P[macro] D[macro]
26576 next
26577 } else {
26578 # Replace #undef with comments. This is necessary, for example,
26579 # in the case of _POSIX_SOURCE, which is predefined and required
26580 # on some systems where configure will not decide to define it.
26581 if (defundef == "undef") {
26582 print "/*", prefix defundef, macro, "*/"
26583 next
26587 { print }
26588 _ACAWK
26589 _ACEOF
26590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26591 as_fn_error "could not setup config headers machinery" "$LINENO" 5
26592 fi # test -n "$CONFIG_HEADERS"
26595 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
26596 shift
26597 for ac_tag
26599 case $ac_tag in
26600 :[FHLC]) ac_mode=$ac_tag; continue;;
26601 esac
26602 case $ac_mode$ac_tag in
26603 :[FHL]*:*);;
26604 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26605 :[FH]-) ac_tag=-:-;;
26606 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26607 esac
26608 ac_save_IFS=$IFS
26609 IFS=:
26610 set x $ac_tag
26611 IFS=$ac_save_IFS
26612 shift
26613 ac_file=$1
26614 shift
26616 case $ac_mode in
26617 :L) ac_source=$1;;
26618 :[FH])
26619 ac_file_inputs=
26620 for ac_f
26622 case $ac_f in
26623 -) ac_f="$tmp/stdin";;
26624 *) # Look for the file first in the build tree, then in the source tree
26625 # (if the path is not absolute). The absolute path cannot be DOS-style,
26626 # because $ac_f cannot contain `:'.
26627 test -f "$ac_f" ||
26628 case $ac_f in
26629 [\\/$]*) false;;
26630 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26631 esac ||
26632 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26633 esac
26634 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26635 as_fn_append ac_file_inputs " '$ac_f'"
26636 done
26638 # Let's still pretend it is `configure' which instantiates (i.e., don't
26639 # use $as_me), people would be surprised to read:
26640 # /* config.h. Generated by config.status. */
26641 configure_input='Generated from '`
26642 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26643 `' by configure.'
26644 if test x"$ac_file" != x-; then
26645 configure_input="$ac_file. $configure_input"
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26647 $as_echo "$as_me: creating $ac_file" >&6;}
26649 # Neutralize special characters interpreted by sed in replacement strings.
26650 case $configure_input in #(
26651 *\&* | *\|* | *\\* )
26652 ac_sed_conf_input=`$as_echo "$configure_input" |
26653 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26654 *) ac_sed_conf_input=$configure_input;;
26655 esac
26657 case $ac_tag in
26658 *:-:* | *:-) cat >"$tmp/stdin" \
26659 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26660 esac
26662 esac
26664 ac_dir=`$as_dirname -- "$ac_file" ||
26665 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26666 X"$ac_file" : 'X\(//\)[^/]' \| \
26667 X"$ac_file" : 'X\(//\)$' \| \
26668 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26669 $as_echo X"$ac_file" |
26670 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26671 s//\1/
26674 /^X\(\/\/\)[^/].*/{
26675 s//\1/
26678 /^X\(\/\/\)$/{
26679 s//\1/
26682 /^X\(\/\).*/{
26683 s//\1/
26686 s/.*/./; q'`
26687 as_dir="$ac_dir"; as_fn_mkdir_p
26688 ac_builddir=.
26690 case "$ac_dir" in
26691 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26693 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26694 # A ".." for each directory in $ac_dir_suffix.
26695 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26696 case $ac_top_builddir_sub in
26697 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26698 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26699 esac ;;
26700 esac
26701 ac_abs_top_builddir=$ac_pwd
26702 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26703 # for backward compatibility:
26704 ac_top_builddir=$ac_top_build_prefix
26706 case $srcdir in
26707 .) # We are building in place.
26708 ac_srcdir=.
26709 ac_top_srcdir=$ac_top_builddir_sub
26710 ac_abs_top_srcdir=$ac_pwd ;;
26711 [\\/]* | ?:[\\/]* ) # Absolute name.
26712 ac_srcdir=$srcdir$ac_dir_suffix;
26713 ac_top_srcdir=$srcdir
26714 ac_abs_top_srcdir=$srcdir ;;
26715 *) # Relative name.
26716 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26717 ac_top_srcdir=$ac_top_build_prefix$srcdir
26718 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26719 esac
26720 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26723 case $ac_mode in
26726 # CONFIG_FILE
26729 case $INSTALL in
26730 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26731 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26732 esac
26733 ac_MKDIR_P=$MKDIR_P
26734 case $MKDIR_P in
26735 [\\/$]* | ?:[\\/]* ) ;;
26736 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26737 esac
26738 _ACEOF
26740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26741 # If the template does not know about datarootdir, expand it.
26742 # FIXME: This hack should be removed a few years after 2.60.
26743 ac_datarootdir_hack=; ac_datarootdir_seen=
26744 ac_sed_dataroot='
26745 /datarootdir/ {
26749 /@datadir@/p
26750 /@docdir@/p
26751 /@infodir@/p
26752 /@localedir@/p
26753 /@mandir@/p'
26754 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26755 *datarootdir*) ac_datarootdir_seen=yes;;
26756 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26758 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26759 _ACEOF
26760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26761 ac_datarootdir_hack='
26762 s&@datadir@&$datadir&g
26763 s&@docdir@&$docdir&g
26764 s&@infodir@&$infodir&g
26765 s&@localedir@&$localedir&g
26766 s&@mandir@&$mandir&g
26767 s&\\\${datarootdir}&$datarootdir&g' ;;
26768 esac
26769 _ACEOF
26771 # Neutralize VPATH when `$srcdir' = `.'.
26772 # Shell code in configure.ac might set extrasub.
26773 # FIXME: do we really want to maintain this feature?
26774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26775 ac_sed_extra="$ac_vpsub
26776 $extrasub
26777 _ACEOF
26778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26780 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26781 s|@configure_input@|$ac_sed_conf_input|;t t
26782 s&@top_builddir@&$ac_top_builddir_sub&;t t
26783 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26784 s&@srcdir@&$ac_srcdir&;t t
26785 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26786 s&@top_srcdir@&$ac_top_srcdir&;t t
26787 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26788 s&@builddir@&$ac_builddir&;t t
26789 s&@abs_builddir@&$ac_abs_builddir&;t t
26790 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26791 s&@INSTALL@&$ac_INSTALL&;t t
26792 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26793 $ac_datarootdir_hack
26795 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26796 || as_fn_error "could not create $ac_file" "$LINENO" 5
26798 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26799 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26800 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26802 which seems to be undefined. Please make sure it is defined." >&5
26803 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26804 which seems to be undefined. Please make sure it is defined." >&2;}
26806 rm -f "$tmp/stdin"
26807 case $ac_file in
26808 -) cat "$tmp/out" && rm -f "$tmp/out";;
26809 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26810 esac \
26811 || as_fn_error "could not create $ac_file" "$LINENO" 5
26815 # CONFIG_HEADER
26817 if test x"$ac_file" != x-; then
26819 $as_echo "/* $configure_input */" \
26820 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26821 } >"$tmp/config.h" \
26822 || as_fn_error "could not create $ac_file" "$LINENO" 5
26823 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26825 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26826 else
26827 rm -f "$ac_file"
26828 mv "$tmp/config.h" "$ac_file" \
26829 || as_fn_error "could not create $ac_file" "$LINENO" 5
26831 else
26832 $as_echo "/* $configure_input */" \
26833 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26834 || as_fn_error "could not create -" "$LINENO" 5
26836 # Compute "$ac_file"'s index in $config_headers.
26837 _am_arg="$ac_file"
26838 _am_stamp_count=1
26839 for _am_header in $config_headers :; do
26840 case $_am_header in
26841 $_am_arg | $_am_arg:* )
26842 break ;;
26844 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26845 esac
26846 done
26847 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26848 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26849 X"$_am_arg" : 'X\(//\)[^/]' \| \
26850 X"$_am_arg" : 'X\(//\)$' \| \
26851 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26852 $as_echo X"$_am_arg" |
26853 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26854 s//\1/
26857 /^X\(\/\/\)[^/].*/{
26858 s//\1/
26861 /^X\(\/\/\)$/{
26862 s//\1/
26865 /^X\(\/\).*/{
26866 s//\1/
26869 s/.*/./; q'`/stamp-h$_am_stamp_count
26873 # CONFIG_LINK
26876 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26878 else
26879 # Prefer the file from the source tree if names are identical.
26880 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26881 ac_source=$srcdir/$ac_source
26884 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26885 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26887 if test ! -r "$ac_source"; then
26888 as_fn_error "$ac_source: file not found" "$LINENO" 5
26890 rm -f "$ac_file"
26892 # Try a relative symlink, then a hard link, then a copy.
26893 case $srcdir in
26894 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26895 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26896 esac
26897 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26898 ln "$ac_source" "$ac_file" 2>/dev/null ||
26899 cp -p "$ac_source" "$ac_file" ||
26900 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26903 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26904 $as_echo "$as_me: executing $ac_file commands" >&6;}
26906 esac
26909 case $ac_file$ac_mode in
26910 "default-1":C)
26911 # Only add multilib support code if we just rebuilt the top-level
26912 # Makefile.
26913 case " $CONFIG_FILES " in
26914 *" Makefile "*)
26915 ac_file=Makefile . ${multi_basedir}/config-ml.in
26917 esac ;;
26918 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26919 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26920 # are listed without --file. Let's play safe and only enable the eval
26921 # if we detect the quoting.
26922 case $CONFIG_FILES in
26923 *\'*) eval set x "$CONFIG_FILES" ;;
26924 *) set x $CONFIG_FILES ;;
26925 esac
26926 shift
26927 for mf
26929 # Strip MF so we end up with the name of the file.
26930 mf=`echo "$mf" | sed -e 's/:.*$//'`
26931 # Check whether this is an Automake generated Makefile or not.
26932 # We used to match only the files named `Makefile.in', but
26933 # some people rename them; so instead we look at the file content.
26934 # Grep'ing the first line is not enough: some people post-process
26935 # each Makefile.in and add a new line on top of each file to say so.
26936 # Grep'ing the whole file is not good either: AIX grep has a line
26937 # limit of 2048, but all sed's we know have understand at least 4000.
26938 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26939 dirpart=`$as_dirname -- "$mf" ||
26940 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26941 X"$mf" : 'X\(//\)[^/]' \| \
26942 X"$mf" : 'X\(//\)$' \| \
26943 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26944 $as_echo X"$mf" |
26945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26946 s//\1/
26949 /^X\(\/\/\)[^/].*/{
26950 s//\1/
26953 /^X\(\/\/\)$/{
26954 s//\1/
26957 /^X\(\/\).*/{
26958 s//\1/
26961 s/.*/./; q'`
26962 else
26963 continue
26965 # Extract the definition of DEPDIR, am__include, and am__quote
26966 # from the Makefile without running `make'.
26967 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26968 test -z "$DEPDIR" && continue
26969 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26970 test -z "am__include" && continue
26971 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26972 # When using ansi2knr, U may be empty or an underscore; expand it
26973 U=`sed -n 's/^U = //p' < "$mf"`
26974 # Find all dependency output files, they are included files with
26975 # $(DEPDIR) in their names. We invoke sed twice because it is the
26976 # simplest approach to changing $(DEPDIR) to its actual value in the
26977 # expansion.
26978 for file in `sed -n "
26979 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26980 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26981 # Make sure the directory exists.
26982 test -f "$dirpart/$file" && continue
26983 fdir=`$as_dirname -- "$file" ||
26984 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26985 X"$file" : 'X\(//\)[^/]' \| \
26986 X"$file" : 'X\(//\)$' \| \
26987 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26988 $as_echo X"$file" |
26989 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26990 s//\1/
26993 /^X\(\/\/\)[^/].*/{
26994 s//\1/
26997 /^X\(\/\/\)$/{
26998 s//\1/
27001 /^X\(\/\).*/{
27002 s//\1/
27005 s/.*/./; q'`
27006 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27007 # echo "creating $dirpart/$file"
27008 echo '# dummy' > "$dirpart/$file"
27009 done
27010 done
27013 "libtool":C)
27015 # See if we are running on zsh, and set the options which allow our
27016 # commands through without removal of \ escapes.
27017 if test -n "${ZSH_VERSION+set}" ; then
27018 setopt NO_GLOB_SUBST
27021 cfgfile="${ofile}T"
27022 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27023 $RM "$cfgfile"
27025 cat <<_LT_EOF >> "$cfgfile"
27026 #! $SHELL
27028 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27029 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27030 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27031 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27033 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27034 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
27035 # Written by Gordon Matzigkeit, 1996
27037 # This file is part of GNU Libtool.
27039 # GNU Libtool is free software; you can redistribute it and/or
27040 # modify it under the terms of the GNU General Public License as
27041 # published by the Free Software Foundation; either version 2 of
27042 # the License, or (at your option) any later version.
27044 # As a special exception to the GNU General Public License,
27045 # if you distribute this file as part of a program or library that
27046 # is built using GNU Libtool, you may include this file under the
27047 # same distribution terms that you use for the rest of that program.
27049 # GNU Libtool is distributed in the hope that it will be useful,
27050 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27051 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27052 # GNU General Public License for more details.
27054 # You should have received a copy of the GNU General Public License
27055 # along with GNU Libtool; see the file COPYING. If not, a copy
27056 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27057 # obtained by writing to the Free Software Foundation, Inc.,
27058 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27061 # The names of the tagged configurations supported by this script.
27062 available_tags="CXX GCJ "
27064 # ### BEGIN LIBTOOL CONFIG
27066 # Which release of libtool.m4 was used?
27067 macro_version=$macro_version
27068 macro_revision=$macro_revision
27070 # Whether or not to build shared libraries.
27071 build_libtool_libs=$enable_shared
27073 # Whether or not to build static libraries.
27074 build_old_libs=$enable_static
27076 # What type of objects to build.
27077 pic_mode=$pic_mode
27079 # Whether or not to optimize for fast installation.
27080 fast_install=$enable_fast_install
27082 # Shell to use when invoking shell scripts.
27083 SHELL=$lt_SHELL
27085 # An echo program that protects backslashes.
27086 ECHO=$lt_ECHO
27088 # The host system.
27089 host_alias=$host_alias
27090 host=$host
27091 host_os=$host_os
27093 # The build system.
27094 build_alias=$build_alias
27095 build=$build
27096 build_os=$build_os
27098 # A sed program that does not truncate output.
27099 SED=$lt_SED
27101 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27102 Xsed="\$SED -e 1s/^X//"
27104 # A grep program that handles long lines.
27105 GREP=$lt_GREP
27107 # An ERE matcher.
27108 EGREP=$lt_EGREP
27110 # A literal string matcher.
27111 FGREP=$lt_FGREP
27113 # A BSD- or MS-compatible name lister.
27114 NM=$lt_NM
27116 # Whether we need soft or hard links.
27117 LN_S=$lt_LN_S
27119 # What is the maximum length of a command?
27120 max_cmd_len=$max_cmd_len
27122 # Object file suffix (normally "o").
27123 objext=$ac_objext
27125 # Executable file suffix (normally "").
27126 exeext=$exeext
27128 # whether the shell understands "unset".
27129 lt_unset=$lt_unset
27131 # turn spaces into newlines.
27132 SP2NL=$lt_lt_SP2NL
27134 # turn newlines into spaces.
27135 NL2SP=$lt_lt_NL2SP
27137 # An object symbol dumper.
27138 OBJDUMP=$lt_OBJDUMP
27140 # Method to check whether dependent libraries are shared objects.
27141 deplibs_check_method=$lt_deplibs_check_method
27143 # Command to use when deplibs_check_method == "file_magic".
27144 file_magic_cmd=$lt_file_magic_cmd
27146 # The archiver.
27147 AR=$lt_AR
27148 AR_FLAGS=$lt_AR_FLAGS
27150 # A symbol stripping program.
27151 STRIP=$lt_STRIP
27153 # Commands used to install an old-style archive.
27154 RANLIB=$lt_RANLIB
27155 old_postinstall_cmds=$lt_old_postinstall_cmds
27156 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27158 # Whether to use a lock for old archive extraction.
27159 lock_old_archive_extraction=$lock_old_archive_extraction
27161 # A C compiler.
27162 LTCC=$lt_CC
27164 # LTCC compiler flags.
27165 LTCFLAGS=$lt_CFLAGS
27167 # Take the output of nm and produce a listing of raw symbols and C names.
27168 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27170 # Transform the output of nm in a proper C declaration.
27171 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27173 # Transform the output of nm in a C name address pair.
27174 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27176 # Transform the output of nm in a C name address pair when lib prefix is needed.
27177 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27179 # The name of the directory that contains temporary libtool files.
27180 objdir=$objdir
27182 # Used to examine libraries when file_magic_cmd begins with "file".
27183 MAGIC_CMD=$MAGIC_CMD
27185 # Must we lock files when doing compilation?
27186 need_locks=$lt_need_locks
27188 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27189 DSYMUTIL=$lt_DSYMUTIL
27191 # Tool to change global to local symbols on Mac OS X.
27192 NMEDIT=$lt_NMEDIT
27194 # Tool to manipulate fat objects and archives on Mac OS X.
27195 LIPO=$lt_LIPO
27197 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27198 OTOOL=$lt_OTOOL
27200 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27201 OTOOL64=$lt_OTOOL64
27203 # Old archive suffix (normally "a").
27204 libext=$libext
27206 # Shared library suffix (normally ".so").
27207 shrext_cmds=$lt_shrext_cmds
27209 # The commands to extract the exported symbol list from a shared archive.
27210 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27212 # Variables whose values should be saved in libtool wrapper scripts and
27213 # restored at link time.
27214 variables_saved_for_relink=$lt_variables_saved_for_relink
27216 # Do we need the "lib" prefix for modules?
27217 need_lib_prefix=$need_lib_prefix
27219 # Do we need a version for libraries?
27220 need_version=$need_version
27222 # Library versioning type.
27223 version_type=$version_type
27225 # Shared library runtime path variable.
27226 runpath_var=$runpath_var
27228 # Shared library path variable.
27229 shlibpath_var=$shlibpath_var
27231 # Is shlibpath searched before the hard-coded library search path?
27232 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27234 # Format of library name prefix.
27235 libname_spec=$lt_libname_spec
27237 # List of archive names. First name is the real one, the rest are links.
27238 # The last name is the one that the linker finds with -lNAME
27239 library_names_spec=$lt_library_names_spec
27241 # The coded name of the library, if different from the real name.
27242 soname_spec=$lt_soname_spec
27244 # Permission mode override for installation of shared libraries.
27245 install_override_mode=$lt_install_override_mode
27247 # Command to use after installation of a shared archive.
27248 postinstall_cmds=$lt_postinstall_cmds
27250 # Command to use after uninstallation of a shared archive.
27251 postuninstall_cmds=$lt_postuninstall_cmds
27253 # Commands used to finish a libtool library installation in a directory.
27254 finish_cmds=$lt_finish_cmds
27256 # As "finish_cmds", except a single script fragment to be evaled but
27257 # not shown.
27258 finish_eval=$lt_finish_eval
27260 # Whether we should hardcode library paths into libraries.
27261 hardcode_into_libs=$hardcode_into_libs
27263 # Compile-time system search path for libraries.
27264 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27266 # Run-time system search path for libraries.
27267 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27269 # Whether dlopen is supported.
27270 dlopen_support=$enable_dlopen
27272 # Whether dlopen of programs is supported.
27273 dlopen_self=$enable_dlopen_self
27275 # Whether dlopen of statically linked programs is supported.
27276 dlopen_self_static=$enable_dlopen_self_static
27278 # Commands to strip libraries.
27279 old_striplib=$lt_old_striplib
27280 striplib=$lt_striplib
27283 # The linker used to build libraries.
27284 LD=$lt_LD
27286 # How to create reloadable object files.
27287 reload_flag=$lt_reload_flag
27288 reload_cmds=$lt_reload_cmds
27290 # Commands used to build an old-style archive.
27291 old_archive_cmds=$lt_old_archive_cmds
27293 # A language specific compiler.
27294 CC=$lt_compiler
27296 # Is the compiler the GNU compiler?
27297 with_gcc=$GCC
27299 # Compiler flag to turn off builtin functions.
27300 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27302 # How to pass a linker flag through the compiler.
27303 wl=$lt_lt_prog_compiler_wl
27305 # Additional compiler flags for building library objects.
27306 pic_flag=$lt_lt_prog_compiler_pic
27308 # Compiler flag to prevent dynamic linking.
27309 link_static_flag=$lt_lt_prog_compiler_static
27311 # Does compiler simultaneously support -c and -o options?
27312 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27314 # Whether or not to add -lc for building shared libraries.
27315 build_libtool_need_lc=$archive_cmds_need_lc
27317 # Whether or not to disallow shared libs when runtime libs are static.
27318 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27320 # Compiler flag to allow reflexive dlopens.
27321 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27323 # Compiler flag to generate shared objects directly from archives.
27324 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27326 # Whether the compiler copes with passing no objects directly.
27327 compiler_needs_object=$lt_compiler_needs_object
27329 # Create an old-style archive from a shared archive.
27330 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27332 # Create a temporary old-style archive to link instead of a shared archive.
27333 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27335 # Commands used to build a shared archive.
27336 archive_cmds=$lt_archive_cmds
27337 archive_expsym_cmds=$lt_archive_expsym_cmds
27339 # Commands used to build a loadable module if different from building
27340 # a shared archive.
27341 module_cmds=$lt_module_cmds
27342 module_expsym_cmds=$lt_module_expsym_cmds
27344 # Whether we are building with GNU ld or not.
27345 with_gnu_ld=$lt_with_gnu_ld
27347 # Flag that allows shared libraries with undefined symbols to be built.
27348 allow_undefined_flag=$lt_allow_undefined_flag
27350 # Flag that enforces no undefined symbols.
27351 no_undefined_flag=$lt_no_undefined_flag
27353 # Flag to hardcode \$libdir into a binary during linking.
27354 # This must work even if \$libdir does not exist
27355 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27357 # If ld is used when linking, flag to hardcode \$libdir into a binary
27358 # during linking. This must work even if \$libdir does not exist.
27359 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27361 # Whether we need a single "-rpath" flag with a separated argument.
27362 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27364 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27365 # DIR into the resulting binary.
27366 hardcode_direct=$hardcode_direct
27368 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27369 # DIR into the resulting binary and the resulting library dependency is
27370 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27371 # library is relocated.
27372 hardcode_direct_absolute=$hardcode_direct_absolute
27374 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27375 # into the resulting binary.
27376 hardcode_minus_L=$hardcode_minus_L
27378 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27379 # into the resulting binary.
27380 hardcode_shlibpath_var=$hardcode_shlibpath_var
27382 # Set to "yes" if building a shared library automatically hardcodes DIR
27383 # into the library and all subsequent libraries and executables linked
27384 # against it.
27385 hardcode_automatic=$hardcode_automatic
27387 # Set to yes if linker adds runtime paths of dependent libraries
27388 # to runtime path list.
27389 inherit_rpath=$inherit_rpath
27391 # Whether libtool must link a program against all its dependency libraries.
27392 link_all_deplibs=$link_all_deplibs
27394 # Fix the shell variable \$srcfile for the compiler.
27395 fix_srcfile_path=$lt_fix_srcfile_path
27397 # Set to "yes" if exported symbols are required.
27398 always_export_symbols=$always_export_symbols
27400 # The commands to list exported symbols.
27401 export_symbols_cmds=$lt_export_symbols_cmds
27403 # Symbols that should not be listed in the preloaded symbols.
27404 exclude_expsyms=$lt_exclude_expsyms
27406 # Symbols that must always be exported.
27407 include_expsyms=$lt_include_expsyms
27409 # Commands necessary for linking programs (against libraries) with templates.
27410 prelink_cmds=$lt_prelink_cmds
27412 # Specify filename containing input files.
27413 file_list_spec=$lt_file_list_spec
27415 # How to hardcode a shared library path into an executable.
27416 hardcode_action=$hardcode_action
27418 # The directories searched by this compiler when creating a shared library.
27419 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27421 # Dependencies to place before and after the objects being linked to
27422 # create a shared library.
27423 predep_objects=$lt_predep_objects
27424 postdep_objects=$lt_postdep_objects
27425 predeps=$lt_predeps
27426 postdeps=$lt_postdeps
27428 # The library search path used internally by the compiler when linking
27429 # a shared library.
27430 compiler_lib_search_path=$lt_compiler_lib_search_path
27432 # ### END LIBTOOL CONFIG
27434 _LT_EOF
27436 case $host_os in
27437 aix3*)
27438 cat <<\_LT_EOF >> "$cfgfile"
27439 # AIX sometimes has problems with the GCC collect2 program. For some
27440 # reason, if we set the COLLECT_NAMES environment variable, the problems
27441 # vanish in a puff of smoke.
27442 if test "X${COLLECT_NAMES+set}" != Xset; then
27443 COLLECT_NAMES=
27444 export COLLECT_NAMES
27446 _LT_EOF
27448 esac
27451 ltmain="$ac_aux_dir/ltmain.sh"
27454 # We use sed instead of cat because bash on DJGPP gets confused if
27455 # if finds mixed CR/LF and LF-only lines. Since sed operates in
27456 # text mode, it properly converts lines to CR/LF. This bash problem
27457 # is reportedly fixed, but why not run on old versions too?
27458 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27459 || (rm -f "$cfgfile"; exit 1)
27461 case $xsi_shell in
27462 yes)
27463 cat << \_LT_EOF >> "$cfgfile"
27465 # func_dirname file append nondir_replacement
27466 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27467 # otherwise set result to NONDIR_REPLACEMENT.
27468 func_dirname ()
27470 case ${1} in
27471 */*) func_dirname_result="${1%/*}${2}" ;;
27472 * ) func_dirname_result="${3}" ;;
27473 esac
27476 # func_basename file
27477 func_basename ()
27479 func_basename_result="${1##*/}"
27482 # func_dirname_and_basename file append nondir_replacement
27483 # perform func_basename and func_dirname in a single function
27484 # call:
27485 # dirname: Compute the dirname of FILE. If nonempty,
27486 # add APPEND to the result, otherwise set result
27487 # to NONDIR_REPLACEMENT.
27488 # value returned in "$func_dirname_result"
27489 # basename: Compute filename of FILE.
27490 # value retuned in "$func_basename_result"
27491 # Implementation must be kept synchronized with func_dirname
27492 # and func_basename. For efficiency, we do not delegate to
27493 # those functions but instead duplicate the functionality here.
27494 func_dirname_and_basename ()
27496 case ${1} in
27497 */*) func_dirname_result="${1%/*}${2}" ;;
27498 * ) func_dirname_result="${3}" ;;
27499 esac
27500 func_basename_result="${1##*/}"
27503 # func_stripname prefix suffix name
27504 # strip PREFIX and SUFFIX off of NAME.
27505 # PREFIX and SUFFIX must not contain globbing or regex special
27506 # characters, hashes, percent signs, but SUFFIX may contain a leading
27507 # dot (in which case that matches only a dot).
27508 func_stripname ()
27510 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27511 # positional parameters, so assign one to ordinary parameter first.
27512 func_stripname_result=${3}
27513 func_stripname_result=${func_stripname_result#"${1}"}
27514 func_stripname_result=${func_stripname_result%"${2}"}
27517 # func_opt_split
27518 func_opt_split ()
27520 func_opt_split_opt=${1%%=*}
27521 func_opt_split_arg=${1#*=}
27524 # func_lo2o object
27525 func_lo2o ()
27527 case ${1} in
27528 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27529 *) func_lo2o_result=${1} ;;
27530 esac
27533 # func_xform libobj-or-source
27534 func_xform ()
27536 func_xform_result=${1%.*}.lo
27539 # func_arith arithmetic-term...
27540 func_arith ()
27542 func_arith_result=$(( $* ))
27545 # func_len string
27546 # STRING may not start with a hyphen.
27547 func_len ()
27549 func_len_result=${#1}
27552 _LT_EOF
27554 *) # Bourne compatible functions.
27555 cat << \_LT_EOF >> "$cfgfile"
27557 # func_dirname file append nondir_replacement
27558 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
27559 # otherwise set result to NONDIR_REPLACEMENT.
27560 func_dirname ()
27562 # Extract subdirectory from the argument.
27563 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27564 if test "X$func_dirname_result" = "X${1}"; then
27565 func_dirname_result="${3}"
27566 else
27567 func_dirname_result="$func_dirname_result${2}"
27571 # func_basename file
27572 func_basename ()
27574 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27578 # func_stripname prefix suffix name
27579 # strip PREFIX and SUFFIX off of NAME.
27580 # PREFIX and SUFFIX must not contain globbing or regex special
27581 # characters, hashes, percent signs, but SUFFIX may contain a leading
27582 # dot (in which case that matches only a dot).
27583 # func_strip_suffix prefix name
27584 func_stripname ()
27586 case ${2} in
27587 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27588 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27589 esac
27592 # sed scripts:
27593 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27594 my_sed_long_arg='1s/^-[^=]*=//'
27596 # func_opt_split
27597 func_opt_split ()
27599 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27600 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27603 # func_lo2o object
27604 func_lo2o ()
27606 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27609 # func_xform libobj-or-source
27610 func_xform ()
27612 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27615 # func_arith arithmetic-term...
27616 func_arith ()
27618 func_arith_result=`expr "$@"`
27621 # func_len string
27622 # STRING may not start with a hyphen.
27623 func_len ()
27625 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27628 _LT_EOF
27629 esac
27631 case $lt_shell_append in
27632 yes)
27633 cat << \_LT_EOF >> "$cfgfile"
27635 # func_append var value
27636 # Append VALUE to the end of shell variable VAR.
27637 func_append ()
27639 eval "$1+=\$2"
27641 _LT_EOF
27644 cat << \_LT_EOF >> "$cfgfile"
27646 # func_append var value
27647 # Append VALUE to the end of shell variable VAR.
27648 func_append ()
27650 eval "$1=\$$1\$2"
27653 _LT_EOF
27655 esac
27658 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27659 || (rm -f "$cfgfile"; exit 1)
27661 mv -f "$cfgfile" "$ofile" ||
27662 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27663 chmod +x "$ofile"
27666 cat <<_LT_EOF >> "$ofile"
27668 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27670 # The linker used to build libraries.
27671 LD=$lt_LD_CXX
27673 # How to create reloadable object files.
27674 reload_flag=$lt_reload_flag_CXX
27675 reload_cmds=$lt_reload_cmds_CXX
27677 # Commands used to build an old-style archive.
27678 old_archive_cmds=$lt_old_archive_cmds_CXX
27680 # A language specific compiler.
27681 CC=$lt_compiler_CXX
27683 # Is the compiler the GNU compiler?
27684 with_gcc=$GCC_CXX
27686 # Compiler flag to turn off builtin functions.
27687 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27689 # How to pass a linker flag through the compiler.
27690 wl=$lt_lt_prog_compiler_wl_CXX
27692 # Additional compiler flags for building library objects.
27693 pic_flag=$lt_lt_prog_compiler_pic_CXX
27695 # Compiler flag to prevent dynamic linking.
27696 link_static_flag=$lt_lt_prog_compiler_static_CXX
27698 # Does compiler simultaneously support -c and -o options?
27699 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27701 # Whether or not to add -lc for building shared libraries.
27702 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27704 # Whether or not to disallow shared libs when runtime libs are static.
27705 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27707 # Compiler flag to allow reflexive dlopens.
27708 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27710 # Compiler flag to generate shared objects directly from archives.
27711 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27713 # Whether the compiler copes with passing no objects directly.
27714 compiler_needs_object=$lt_compiler_needs_object_CXX
27716 # Create an old-style archive from a shared archive.
27717 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27719 # Create a temporary old-style archive to link instead of a shared archive.
27720 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27722 # Commands used to build a shared archive.
27723 archive_cmds=$lt_archive_cmds_CXX
27724 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27726 # Commands used to build a loadable module if different from building
27727 # a shared archive.
27728 module_cmds=$lt_module_cmds_CXX
27729 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27731 # Whether we are building with GNU ld or not.
27732 with_gnu_ld=$lt_with_gnu_ld_CXX
27734 # Flag that allows shared libraries with undefined symbols to be built.
27735 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27737 # Flag that enforces no undefined symbols.
27738 no_undefined_flag=$lt_no_undefined_flag_CXX
27740 # Flag to hardcode \$libdir into a binary during linking.
27741 # This must work even if \$libdir does not exist
27742 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27744 # If ld is used when linking, flag to hardcode \$libdir into a binary
27745 # during linking. This must work even if \$libdir does not exist.
27746 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27748 # Whether we need a single "-rpath" flag with a separated argument.
27749 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27751 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27752 # DIR into the resulting binary.
27753 hardcode_direct=$hardcode_direct_CXX
27755 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27756 # DIR into the resulting binary and the resulting library dependency is
27757 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27758 # library is relocated.
27759 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27761 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27762 # into the resulting binary.
27763 hardcode_minus_L=$hardcode_minus_L_CXX
27765 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27766 # into the resulting binary.
27767 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27769 # Set to "yes" if building a shared library automatically hardcodes DIR
27770 # into the library and all subsequent libraries and executables linked
27771 # against it.
27772 hardcode_automatic=$hardcode_automatic_CXX
27774 # Set to yes if linker adds runtime paths of dependent libraries
27775 # to runtime path list.
27776 inherit_rpath=$inherit_rpath_CXX
27778 # Whether libtool must link a program against all its dependency libraries.
27779 link_all_deplibs=$link_all_deplibs_CXX
27781 # Fix the shell variable \$srcfile for the compiler.
27782 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27784 # Set to "yes" if exported symbols are required.
27785 always_export_symbols=$always_export_symbols_CXX
27787 # The commands to list exported symbols.
27788 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27790 # Symbols that should not be listed in the preloaded symbols.
27791 exclude_expsyms=$lt_exclude_expsyms_CXX
27793 # Symbols that must always be exported.
27794 include_expsyms=$lt_include_expsyms_CXX
27796 # Commands necessary for linking programs (against libraries) with templates.
27797 prelink_cmds=$lt_prelink_cmds_CXX
27799 # Specify filename containing input files.
27800 file_list_spec=$lt_file_list_spec_CXX
27802 # How to hardcode a shared library path into an executable.
27803 hardcode_action=$hardcode_action_CXX
27805 # The directories searched by this compiler when creating a shared library.
27806 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27808 # Dependencies to place before and after the objects being linked to
27809 # create a shared library.
27810 predep_objects=$lt_predep_objects_CXX
27811 postdep_objects=$lt_postdep_objects_CXX
27812 predeps=$lt_predeps_CXX
27813 postdeps=$lt_postdeps_CXX
27815 # The library search path used internally by the compiler when linking
27816 # a shared library.
27817 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27819 # ### END LIBTOOL TAG CONFIG: CXX
27820 _LT_EOF
27823 cat <<_LT_EOF >> "$ofile"
27825 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27827 # The linker used to build libraries.
27828 LD=$lt_LD_GCJ
27830 # How to create reloadable object files.
27831 reload_flag=$lt_reload_flag_GCJ
27832 reload_cmds=$lt_reload_cmds_GCJ
27834 # Commands used to build an old-style archive.
27835 old_archive_cmds=$lt_old_archive_cmds_GCJ
27837 # A language specific compiler.
27838 CC=$lt_compiler_GCJ
27840 # Is the compiler the GNU compiler?
27841 with_gcc=$GCC_GCJ
27843 # Compiler flag to turn off builtin functions.
27844 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27846 # How to pass a linker flag through the compiler.
27847 wl=$lt_lt_prog_compiler_wl_GCJ
27849 # Additional compiler flags for building library objects.
27850 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27852 # Compiler flag to prevent dynamic linking.
27853 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27855 # Does compiler simultaneously support -c and -o options?
27856 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27858 # Whether or not to add -lc for building shared libraries.
27859 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27861 # Whether or not to disallow shared libs when runtime libs are static.
27862 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27864 # Compiler flag to allow reflexive dlopens.
27865 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27867 # Compiler flag to generate shared objects directly from archives.
27868 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27870 # Whether the compiler copes with passing no objects directly.
27871 compiler_needs_object=$lt_compiler_needs_object_GCJ
27873 # Create an old-style archive from a shared archive.
27874 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27876 # Create a temporary old-style archive to link instead of a shared archive.
27877 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27879 # Commands used to build a shared archive.
27880 archive_cmds=$lt_archive_cmds_GCJ
27881 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27883 # Commands used to build a loadable module if different from building
27884 # a shared archive.
27885 module_cmds=$lt_module_cmds_GCJ
27886 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27888 # Whether we are building with GNU ld or not.
27889 with_gnu_ld=$lt_with_gnu_ld_GCJ
27891 # Flag that allows shared libraries with undefined symbols to be built.
27892 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27894 # Flag that enforces no undefined symbols.
27895 no_undefined_flag=$lt_no_undefined_flag_GCJ
27897 # Flag to hardcode \$libdir into a binary during linking.
27898 # This must work even if \$libdir does not exist
27899 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27901 # If ld is used when linking, flag to hardcode \$libdir into a binary
27902 # during linking. This must work even if \$libdir does not exist.
27903 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27905 # Whether we need a single "-rpath" flag with a separated argument.
27906 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27908 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27909 # DIR into the resulting binary.
27910 hardcode_direct=$hardcode_direct_GCJ
27912 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27913 # DIR into the resulting binary and the resulting library dependency is
27914 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27915 # library is relocated.
27916 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27918 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27919 # into the resulting binary.
27920 hardcode_minus_L=$hardcode_minus_L_GCJ
27922 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27923 # into the resulting binary.
27924 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27926 # Set to "yes" if building a shared library automatically hardcodes DIR
27927 # into the library and all subsequent libraries and executables linked
27928 # against it.
27929 hardcode_automatic=$hardcode_automatic_GCJ
27931 # Set to yes if linker adds runtime paths of dependent libraries
27932 # to runtime path list.
27933 inherit_rpath=$inherit_rpath_GCJ
27935 # Whether libtool must link a program against all its dependency libraries.
27936 link_all_deplibs=$link_all_deplibs_GCJ
27938 # Fix the shell variable \$srcfile for the compiler.
27939 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27941 # Set to "yes" if exported symbols are required.
27942 always_export_symbols=$always_export_symbols_GCJ
27944 # The commands to list exported symbols.
27945 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27947 # Symbols that should not be listed in the preloaded symbols.
27948 exclude_expsyms=$lt_exclude_expsyms_GCJ
27950 # Symbols that must always be exported.
27951 include_expsyms=$lt_include_expsyms_GCJ
27953 # Commands necessary for linking programs (against libraries) with templates.
27954 prelink_cmds=$lt_prelink_cmds_GCJ
27956 # Specify filename containing input files.
27957 file_list_spec=$lt_file_list_spec_GCJ
27959 # How to hardcode a shared library path into an executable.
27960 hardcode_action=$hardcode_action_GCJ
27962 # The directories searched by this compiler when creating a shared library.
27963 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27965 # Dependencies to place before and after the objects being linked to
27966 # create a shared library.
27967 predep_objects=$lt_predep_objects_GCJ
27968 postdep_objects=$lt_postdep_objects_GCJ
27969 predeps=$lt_predeps_GCJ
27970 postdeps=$lt_postdeps_GCJ
27972 # The library search path used internally by the compiler when linking
27973 # a shared library.
27974 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27976 # ### END LIBTOOL TAG CONFIG: GCJ
27977 _LT_EOF
27980 "scripts/jar":F) chmod +x scripts/jar ;;
27982 esac
27983 done # for ac_tag
27986 as_fn_exit 0
27987 _ACEOF
27988 ac_clean_files=$ac_clean_files_save
27990 test $ac_write_fail = 0 ||
27991 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27994 # configure is writing to config.log, and then calls config.status.
27995 # config.status does its own redirection, appending to config.log.
27996 # Unfortunately, on DOS this fails, as config.log is still kept open
27997 # by configure, so config.status won't be able to write to it; its
27998 # output is simply discarded. So we exec the FD to /dev/null,
27999 # effectively closing config.log, so it can be properly (re)opened and
28000 # appended to by config.status. When coming back to configure, we
28001 # need to make the FD available again.
28002 if test "$no_create" != yes; then
28003 ac_cs_success=:
28004 ac_config_status_args=
28005 test "$silent" = yes &&
28006 ac_config_status_args="$ac_config_status_args --quiet"
28007 exec 5>/dev/null
28008 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28009 exec 5>>config.log
28010 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28011 # would make configure fail if this is the last instruction.
28012 $ac_cs_success || as_fn_exit $?
28016 # CONFIG_SUBDIRS section.
28018 if test "$no_recursion" != yes; then
28020 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
28021 # so they do not pile up.
28022 ac_sub_configure_args=
28023 ac_prev=
28024 eval "set x $ac_configure_args"
28025 shift
28026 for ac_arg
28028 if test -n "$ac_prev"; then
28029 ac_prev=
28030 continue
28032 case $ac_arg in
28033 -cache-file | --cache-file | --cache-fil | --cache-fi \
28034 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
28035 ac_prev=cache_file ;;
28036 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
28037 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
28038 | --c=*)
28040 --config-cache | -C)
28042 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
28043 ac_prev=srcdir ;;
28044 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
28046 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
28047 ac_prev=prefix ;;
28048 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
28050 --disable-option-checking)
28053 case $ac_arg in
28054 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28055 esac
28056 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
28057 esac
28058 done
28060 # Always prepend --prefix to ensure using the same prefix
28061 # in subdir configurations.
28062 ac_arg="--prefix=$prefix"
28063 case $ac_arg in
28064 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
28065 esac
28066 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
28068 # Pass --silent
28069 if test "$silent" = yes; then
28070 ac_sub_configure_args="--silent $ac_sub_configure_args"
28073 # Always prepend --disable-option-checking to silence warnings, since
28074 # different subdirs can have different --enable and --with options.
28075 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28077 ac_popdir=`pwd`
28078 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28080 # Do not complain, so a configure script can configure whichever
28081 # parts of a large source tree are present.
28082 test -d "$srcdir/$ac_dir" || continue
28084 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28085 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28086 $as_echo "$ac_msg" >&6
28087 as_dir="$ac_dir"; as_fn_mkdir_p
28088 ac_builddir=.
28090 case "$ac_dir" in
28091 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28093 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28094 # A ".." for each directory in $ac_dir_suffix.
28095 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28096 case $ac_top_builddir_sub in
28097 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28098 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28099 esac ;;
28100 esac
28101 ac_abs_top_builddir=$ac_pwd
28102 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28103 # for backward compatibility:
28104 ac_top_builddir=$ac_top_build_prefix
28106 case $srcdir in
28107 .) # We are building in place.
28108 ac_srcdir=.
28109 ac_top_srcdir=$ac_top_builddir_sub
28110 ac_abs_top_srcdir=$ac_pwd ;;
28111 [\\/]* | ?:[\\/]* ) # Absolute name.
28112 ac_srcdir=$srcdir$ac_dir_suffix;
28113 ac_top_srcdir=$srcdir
28114 ac_abs_top_srcdir=$srcdir ;;
28115 *) # Relative name.
28116 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28117 ac_top_srcdir=$ac_top_build_prefix$srcdir
28118 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28119 esac
28120 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28123 cd "$ac_dir"
28125 # Check for guested configure; otherwise get Cygnus style configure.
28126 if test -f "$ac_srcdir/configure.gnu"; then
28127 ac_sub_configure=$ac_srcdir/configure.gnu
28128 elif test -f "$ac_srcdir/configure"; then
28129 ac_sub_configure=$ac_srcdir/configure
28130 elif test -f "$ac_srcdir/configure.in"; then
28131 # This should be Cygnus configure.
28132 ac_sub_configure=$ac_aux_dir/configure
28133 else
28134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28135 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28136 ac_sub_configure=
28139 # The recursion is here.
28140 if test -n "$ac_sub_configure"; then
28141 # Make the cache file name correct relative to the subdirectory.
28142 case $cache_file in
28143 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28144 *) # Relative name.
28145 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28146 esac
28148 { $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
28149 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28150 # The eval makes quoting arguments work.
28151 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28152 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28153 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28156 cd "$ac_popdir"
28157 done
28159 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28161 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}