OSDN Git Service

c83dfca3ad256ccfa1f5992f33148f0b96156251
[pf3gnuchains/gcc-fork.git] / libjava / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for libjava version-unused.
4 #
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.
8 #
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 ## -------------------- ##
14
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   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
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"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
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=';'
78   }
79 fi
80
81
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"
88
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
94 do
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
100
101      ;;
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
107 fi
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
111 fi
112
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='+ '
124
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
130
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
133
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   *) :
147      ;;
148 esac
149 fi
150 "
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; }
156
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 :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1"
168   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172
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
185 fi
186   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
187
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
192 do
193   IFS=$as_save_IFS
194   test -z "$as_dir" && as_dir=.
195   as_found=:
196   case $as_dir in #(
197          /*)
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
206 fi
207 fi
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
217
218
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+"$@"}
228 fi
229
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."
241   fi
242   exit 1
243 fi
244 fi
245 fi
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
251
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
259 {
260   { eval $1=; unset $1;}
261 }
262 as_unset=as_fn_unset
263
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
268 {
269   return $1
270 } # as_fn_set_status
271
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 ()
276 {
277   set +e
278   as_fn_set_status $1
279   exit $1
280 } # as_fn_exit
281
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
286 {
287
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/
307             q
308           }
309           /^X\(\/\/\)[^/].*/{
310             s//\1/
311             q
312           }
313           /^X\(\/\/\)$/{
314             s//\1/
315             q
316           }
317           /^X\(\/\).*/{
318             s//\1/
319             q
320           }
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"
326
327
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 ()
337   {
338     eval $1+=\$2
339   }'
340 else
341   as_fn_append ()
342   {
343     eval $1=\$$1\$2
344   }
345 fi # as_fn_append
346
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 ()
354   {
355     as_val=$(( $* ))
356   }'
357 else
358   as_fn_arith ()
359   {
360     as_val=`expr "$@" || test $? -eq 1`
361   }
362 fi # as_fn_arith
363
364
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 ()
371 {
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
376   fi
377   $as_echo "$as_me: error: $1" >&2
378   as_fn_exit $as_status
379 } # as_fn_error
380
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
386 fi
387
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389   as_basename=basename
390 else
391   as_basename=false
392 fi
393
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
398 fi
399
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/
407             q
408           }
409           /^X\/\(\/\/\)$/{
410             s//\1/
411             q
412           }
413           /^X\/\(\/\).*/{
414             s//\1/
415             q
416           }
417           s/.*/./; q'`
418
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
425
426
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 '
433     p
434     /[$]LINENO/=
435   ' <$as_myself |
436     sed '
437       s/[$]LINENO.*/&-/
438       t lineno
439       b
440       :lineno
441       N
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; }
449
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
456 }
457
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;;
467 *)
468   ECHO_N='-n';;
469 esac
470
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
477 fi
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'
491   fi
492 else
493   as_ln_s='cp -p'
494 fi
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
497
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
503 fi
504
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=
512   fi
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
524   '
525 fi
526 as_executable_p=$as_test_x
527
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'"
530
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'"
533
534 SHELL=${CONFIG_SHELL-/bin/sh}
535
536
537 exec 7<&0 </dev/null 6>&1
538
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`
543
544 #
545 # Initializations.
546 #
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=
555
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=''
563
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"
600
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
608 OS
609 CPU
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 LTLIBICONV
678 LIBICONV
679 USING_GCC_FALSE
680 USING_GCC_TRUE
681 HASH_SYNC_SPEC
682 LIBGCJ_BC_SPEC
683 LIBGCJ_SPEC
684 USE_LIBGCJ_BC_FALSE
685 USE_LIBGCJ_BC_TRUE
686 USING_NO_THREADS_FALSE
687 USING_NO_THREADS_TRUE
688 USING_WIN32_THREADS_FALSE
689 USING_WIN32_THREADS_TRUE
690 USING_POSIX_THREADS_FALSE
691 USING_POSIX_THREADS_TRUE
692 THREADCXXFLAGS
693 THREADLDFLAGS
694 THREADSTARTFILESPEC
695 THREADSPEC
696 THREADDEPS
697 THREADINCS
698 THREADLIBS
699 USING_NOGC_FALSE
700 USING_NOGC_TRUE
701 USING_BOEHMGC_FALSE
702 USING_BOEHMGC_TRUE
703 GCTESTSPEC
704 JC1GCSPEC
705 GCSPEC
706 GCDEPS
707 GCINCS
708 GCLIBS
709 LIBGCJTESTSPEC
710 LIBSTDCXXSPEC
711 extra_ldflags
712 extra_ldflags_libjava
713 X_EXTRA_LIBS
714 X_LIBS
715 X_PRE_LIBS
716 X_CFLAGS
717 XMKMF
718 ZLIBTESTSPEC
719 ZLIBSPEC
720 SYSTEMSPEC
721 USING_DARWIN_CRT_FALSE
722 USING_DARWIN_CRT_TRUE
723 USING_POSIX_PLATFORM_FALSE
724 USING_POSIX_PLATFORM_TRUE
725 USING_WIN32_PLATFORM_FALSE
726 USING_WIN32_PLATFORM_TRUE
727 PLATFORM
728 LIBFFIINCS
729 LIBFFI
730 INTERPRETER_FALSE
731 INTERPRETER_TRUE
732 INTERPRETER
733 BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE
734 BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE
735 SUPPRESS_LIBGCJ_BC_FALSE
736 SUPPRESS_LIBGCJ_BC_TRUE
737 JAVA_HOME
738 JAVA_HOME_SET_FALSE
739 JAVA_HOME_SET_TRUE
740 INSTALL_ECJ_JAR_FALSE
741 INSTALL_ECJ_JAR_TRUE
742 BUILD_ECJ1_FALSE
743 BUILD_ECJ1_TRUE
744 ECJ_JAR
745 ECJ_BUILD_JAR
746 TESTSUBDIR_FALSE
747 TESTSUBDIR_TRUE
748 subdirs
749 am__fastdepGCJ_FALSE
750 am__fastdepGCJ_TRUE
751 GCJDEPMODE
752 GCJFLAGS
753 ac_ct_GCJ
754 GCJ
755 CXXCPP
756 CPP
757 OTOOL64
758 OTOOL
759 LIPO
760 NMEDIT
761 DSYMUTIL
762 OBJDUMP
763 NM
764 ac_ct_DUMPBIN
765 DUMPBIN
766 FGREP
767 EGREP
768 GREP
769 SED
770 LIBTOOL
771 DIRLTDL
772 LIBLTDL
773 INCLTDL
774 host_exeext
775 GCJH
776 GCJ_FOR_ECJX
777 X_AWT_FALSE
778 X_AWT_TRUE
779 XLIB_AWT_FALSE
780 XLIB_AWT_TRUE
781 TOOLKIT
782 LIBGCJDEBUG
783 BUILD_SUBLIBS_FALSE
784 BUILD_SUBLIBS_TRUE
785 LIBGCJ_LD_SYMBOLIC_FUNCTIONS
786 LIBGCJ_LD_SYMBOLIC
787 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS
788 LIBGCJ_SUBLIB_LTFLAGS
789 LIBGCJ_JAVAFLAGS
790 LIBGCJ_CXXFLAGS
791 LIBGCJ_CFLAGS
792 MAINT
793 MAINTAINER_MODE_FALSE
794 MAINTAINER_MODE_TRUE
795 UNZIP
796 ZIP
797 JAR
798 DLLTOOL
799 RANLIB
800 AR
801 LD
802 AS
803 am__fastdepCXX_FALSE
804 am__fastdepCXX_TRUE
805 CXXDEPMODE
806 am__fastdepCC_FALSE
807 am__fastdepCC_TRUE
808 CCDEPMODE
809 AMDEPBACKSLASH
810 AMDEP_FALSE
811 AMDEP_TRUE
812 am__quote
813 am__include
814 DEPDIR
815 am__untar
816 am__tar
817 AMTAR
818 am__leading_dot
819 SET_MAKE
820 AWK
821 mkdir_p
822 MKDIR_P
823 INSTALL_STRIP_PROGRAM
824 STRIP
825 install_sh
826 MAKEINFO
827 AUTOHEADER
828 AUTOMAKE
829 AUTOCONF
830 ACLOCAL
831 VERSION
832 PACKAGE
833 CYGPATH_W
834 am__isrc
835 INSTALL_DATA
836 INSTALL_SCRIPT
837 INSTALL_PROGRAM
838 ac_ct_CXX
839 CXXFLAGS
840 CXX
841 OBJEXT
842 EXEEXT
843 ac_ct_CC
844 CPPFLAGS
845 LDFLAGS
846 CFLAGS
847 CC
848 JAVA_MAINTAINER_MODE_FALSE
849 JAVA_MAINTAINER_MODE_TRUE
850 CREATE_GJDOC_FALSE
851 CREATE_GJDOC_TRUE
852 ANTLR_JAR
853 mkinstalldirs
854 LN_S
855 target_noncanonical
856 target_os
857 target_vendor
858 target_cpu
859 target
860 host_os
861 host_vendor
862 host_cpu
863 host
864 multi_basedir
865 target_subdir
866 host_subdir
867 build_subdir
868 build_libsubdir
869 build_os
870 build_vendor
871 build_cpu
872 build
873 target_alias
874 host_alias
875 build_alias
876 LIBS
877 ECHO_T
878 ECHO_N
879 ECHO_C
880 DEFS
881 mandir
882 localedir
883 libdir
884 psdir
885 pdfdir
886 dvidir
887 htmldir
888 infodir
889 docdir
890 oldincludedir
891 includedir
892 localstatedir
893 sharedstatedir
894 sysconfdir
895 datadir
896 datarootdir
897 libexecdir
898 sbindir
899 bindir
900 program_transform_name
901 prefix
902 exec_prefix
903 PACKAGE_URL
904 PACKAGE_BUGREPORT
905 PACKAGE_STRING
906 PACKAGE_VERSION
907 PACKAGE_TARNAME
908 PACKAGE_NAME
909 PATH_SEPARATOR
910 SHELL'
911 ac_subst_files=''
912 ac_user_opts='
913 enable_option_checking
914 with_build_libsubdir
915 with_target_subdir
916 enable_multilib
917 with_cross_host
918 with_newlib
919 enable_version_specific_runtime_libs
920 enable_browser_plugin
921 enable_gconf_peer
922 with_antlr_jar
923 enable_gjdoc
924 enable_java_maintainer_mode
925 enable_dependency_tracking
926 enable_maintainer_mode
927 enable_libgcj_sublibs
928 enable_libgcj_debug
929 with_escher
930 enable_java_awt
931 enable_shared
932 enable_static
933 with_pic
934 enable_fast_install
935 with_gnu_ld
936 enable_libtool_lock
937 enable_getenv_properties
938 enable_hash_synchronization
939 with_ecj_jar
940 with_java_home
941 enable_libgcj_bc
942 enable_reduced_reflection
943 with_win32_nlsapi
944 enable_gc_debug
945 enable_interpreter
946 enable_sjlj_exceptions
947 enable_java_net
948 with_libffi
949 enable_jvmpi
950 with_ecos
951 with_system_zlib
952 with_x
953 enable_java_gc
954 enable_rpath
955 with_libiconv_prefix
956 enable_tls
957 with_system_libunwind
958 with_python_dir
959 enable_aot_compile_rpm
960 enable_java_home
961 with_gcc_suffix
962 with_arch_directory
963 with_os_directory
964 with_origin_name
965 with_arch_suffix
966 with_jvm_root_dir
967 with_jvm_jar_dir
968 '
969       ac_precious_vars='build_alias
970 host_alias
971 target_alias
972 CC
973 CFLAGS
974 LDFLAGS
975 LIBS
976 CPPFLAGS
977 CXX
978 CXXFLAGS
979 CCC
980 CPP
981 CXXCPP
982 XMKMF'
983 ac_subdirs_all='classpath libltdl'
984
985 # Initialize some variables set by options.
986 ac_init_help=
987 ac_init_version=false
988 ac_unrecognized_opts=
989 ac_unrecognized_sep=
990 # The variables have the same names as the options, with
991 # dashes changed to underlines.
992 cache_file=/dev/null
993 exec_prefix=NONE
994 no_create=
995 no_recursion=
996 prefix=NONE
997 program_prefix=NONE
998 program_suffix=NONE
999 program_transform_name=s,x,x,
1000 silent=
1001 site=
1002 srcdir=
1003 verbose=
1004 x_includes=NONE
1005 x_libraries=NONE
1006
1007 # Installation directory options.
1008 # These are left unexpanded so users can "make install exec_prefix=/foo"
1009 # and all the variables that are supposed to be based on exec_prefix
1010 # by default will actually change.
1011 # Use braces instead of parens because sh, perl, etc. also accept them.
1012 # (The list follows the same order as the GNU Coding Standards.)
1013 bindir='${exec_prefix}/bin'
1014 sbindir='${exec_prefix}/sbin'
1015 libexecdir='${exec_prefix}/libexec'
1016 datarootdir='${prefix}/share'
1017 datadir='${datarootdir}'
1018 sysconfdir='${prefix}/etc'
1019 sharedstatedir='${prefix}/com'
1020 localstatedir='${prefix}/var'
1021 includedir='${prefix}/include'
1022 oldincludedir='/usr/include'
1023 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1024 infodir='${datarootdir}/info'
1025 htmldir='${docdir}'
1026 dvidir='${docdir}'
1027 pdfdir='${docdir}'
1028 psdir='${docdir}'
1029 libdir='${exec_prefix}/lib'
1030 localedir='${datarootdir}/locale'
1031 mandir='${datarootdir}/man'
1032
1033 ac_prev=
1034 ac_dashdash=
1035 for ac_option
1036 do
1037   # If the previous option needs an argument, assign it.
1038   if test -n "$ac_prev"; then
1039     eval $ac_prev=\$ac_option
1040     ac_prev=
1041     continue
1042   fi
1043
1044   case $ac_option in
1045   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1046   *)    ac_optarg=yes ;;
1047   esac
1048
1049   # Accept the important Cygnus configure options, so we can diagnose typos.
1050
1051   case $ac_dashdash$ac_option in
1052   --)
1053     ac_dashdash=yes ;;
1054
1055   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1056     ac_prev=bindir ;;
1057   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1058     bindir=$ac_optarg ;;
1059
1060   -build | --build | --buil | --bui | --bu)
1061     ac_prev=build_alias ;;
1062   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1063     build_alias=$ac_optarg ;;
1064
1065   -cache-file | --cache-file | --cache-fil | --cache-fi \
1066   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1067     ac_prev=cache_file ;;
1068   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1069   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1070     cache_file=$ac_optarg ;;
1071
1072   --config-cache | -C)
1073     cache_file=config.cache ;;
1074
1075   -datadir | --datadir | --datadi | --datad)
1076     ac_prev=datadir ;;
1077   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1078     datadir=$ac_optarg ;;
1079
1080   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1081   | --dataroo | --dataro | --datar)
1082     ac_prev=datarootdir ;;
1083   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1084   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1085     datarootdir=$ac_optarg ;;
1086
1087   -disable-* | --disable-*)
1088     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1089     # Reject names that are not valid shell variable names.
1090     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091       as_fn_error "invalid feature name: $ac_useropt"
1092     ac_useropt_orig=$ac_useropt
1093     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094     case $ac_user_opts in
1095       *"
1096 "enable_$ac_useropt"
1097 "*) ;;
1098       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1099          ac_unrecognized_sep=', ';;
1100     esac
1101     eval enable_$ac_useropt=no ;;
1102
1103   -docdir | --docdir | --docdi | --doc | --do)
1104     ac_prev=docdir ;;
1105   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1106     docdir=$ac_optarg ;;
1107
1108   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1109     ac_prev=dvidir ;;
1110   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1111     dvidir=$ac_optarg ;;
1112
1113   -enable-* | --enable-*)
1114     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1115     # Reject names that are not valid shell variable names.
1116     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117       as_fn_error "invalid feature name: $ac_useropt"
1118     ac_useropt_orig=$ac_useropt
1119     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120     case $ac_user_opts in
1121       *"
1122 "enable_$ac_useropt"
1123 "*) ;;
1124       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1125          ac_unrecognized_sep=', ';;
1126     esac
1127     eval enable_$ac_useropt=\$ac_optarg ;;
1128
1129   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1130   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1131   | --exec | --exe | --ex)
1132     ac_prev=exec_prefix ;;
1133   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1134   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1135   | --exec=* | --exe=* | --ex=*)
1136     exec_prefix=$ac_optarg ;;
1137
1138   -gas | --gas | --ga | --g)
1139     # Obsolete; use --with-gas.
1140     with_gas=yes ;;
1141
1142   -help | --help | --hel | --he | -h)
1143     ac_init_help=long ;;
1144   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1145     ac_init_help=recursive ;;
1146   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1147     ac_init_help=short ;;
1148
1149   -host | --host | --hos | --ho)
1150     ac_prev=host_alias ;;
1151   -host=* | --host=* | --hos=* | --ho=*)
1152     host_alias=$ac_optarg ;;
1153
1154   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1155     ac_prev=htmldir ;;
1156   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1157   | --ht=*)
1158     htmldir=$ac_optarg ;;
1159
1160   -includedir | --includedir | --includedi | --included | --include \
1161   | --includ | --inclu | --incl | --inc)
1162     ac_prev=includedir ;;
1163   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1164   | --includ=* | --inclu=* | --incl=* | --inc=*)
1165     includedir=$ac_optarg ;;
1166
1167   -infodir | --infodir | --infodi | --infod | --info | --inf)
1168     ac_prev=infodir ;;
1169   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1170     infodir=$ac_optarg ;;
1171
1172   -libdir | --libdir | --libdi | --libd)
1173     ac_prev=libdir ;;
1174   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1175     libdir=$ac_optarg ;;
1176
1177   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1178   | --libexe | --libex | --libe)
1179     ac_prev=libexecdir ;;
1180   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1181   | --libexe=* | --libex=* | --libe=*)
1182     libexecdir=$ac_optarg ;;
1183
1184   -localedir | --localedir | --localedi | --localed | --locale)
1185     ac_prev=localedir ;;
1186   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1187     localedir=$ac_optarg ;;
1188
1189   -localstatedir | --localstatedir | --localstatedi | --localstated \
1190   | --localstate | --localstat | --localsta | --localst | --locals)
1191     ac_prev=localstatedir ;;
1192   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1193   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1194     localstatedir=$ac_optarg ;;
1195
1196   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1197     ac_prev=mandir ;;
1198   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1199     mandir=$ac_optarg ;;
1200
1201   -nfp | --nfp | --nf)
1202     # Obsolete; use --without-fp.
1203     with_fp=no ;;
1204
1205   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1206   | --no-cr | --no-c | -n)
1207     no_create=yes ;;
1208
1209   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1210   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1211     no_recursion=yes ;;
1212
1213   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1214   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1215   | --oldin | --oldi | --old | --ol | --o)
1216     ac_prev=oldincludedir ;;
1217   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1218   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1219   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1220     oldincludedir=$ac_optarg ;;
1221
1222   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1223     ac_prev=prefix ;;
1224   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1225     prefix=$ac_optarg ;;
1226
1227   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1228   | --program-pre | --program-pr | --program-p)
1229     ac_prev=program_prefix ;;
1230   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1231   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1232     program_prefix=$ac_optarg ;;
1233
1234   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1235   | --program-suf | --program-su | --program-s)
1236     ac_prev=program_suffix ;;
1237   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1238   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1239     program_suffix=$ac_optarg ;;
1240
1241   -program-transform-name | --program-transform-name \
1242   | --program-transform-nam | --program-transform-na \
1243   | --program-transform-n | --program-transform- \
1244   | --program-transform | --program-transfor \
1245   | --program-transfo | --program-transf \
1246   | --program-trans | --program-tran \
1247   | --progr-tra | --program-tr | --program-t)
1248     ac_prev=program_transform_name ;;
1249   -program-transform-name=* | --program-transform-name=* \
1250   | --program-transform-nam=* | --program-transform-na=* \
1251   | --program-transform-n=* | --program-transform-=* \
1252   | --program-transform=* | --program-transfor=* \
1253   | --program-transfo=* | --program-transf=* \
1254   | --program-trans=* | --program-tran=* \
1255   | --progr-tra=* | --program-tr=* | --program-t=*)
1256     program_transform_name=$ac_optarg ;;
1257
1258   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1259     ac_prev=pdfdir ;;
1260   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1261     pdfdir=$ac_optarg ;;
1262
1263   -psdir | --psdir | --psdi | --psd | --ps)
1264     ac_prev=psdir ;;
1265   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1266     psdir=$ac_optarg ;;
1267
1268   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269   | -silent | --silent | --silen | --sile | --sil)
1270     silent=yes ;;
1271
1272   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1273     ac_prev=sbindir ;;
1274   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1275   | --sbi=* | --sb=*)
1276     sbindir=$ac_optarg ;;
1277
1278   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1279   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1280   | --sharedst | --shareds | --shared | --share | --shar \
1281   | --sha | --sh)
1282     ac_prev=sharedstatedir ;;
1283   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1284   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1285   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1286   | --sha=* | --sh=*)
1287     sharedstatedir=$ac_optarg ;;
1288
1289   -site | --site | --sit)
1290     ac_prev=site ;;
1291   -site=* | --site=* | --sit=*)
1292     site=$ac_optarg ;;
1293
1294   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1295     ac_prev=srcdir ;;
1296   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1297     srcdir=$ac_optarg ;;
1298
1299   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1300   | --syscon | --sysco | --sysc | --sys | --sy)
1301     ac_prev=sysconfdir ;;
1302   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1303   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1304     sysconfdir=$ac_optarg ;;
1305
1306   -target | --target | --targe | --targ | --tar | --ta | --t)
1307     ac_prev=target_alias ;;
1308   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1309     target_alias=$ac_optarg ;;
1310
1311   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1312     verbose=yes ;;
1313
1314   -version | --version | --versio | --versi | --vers | -V)
1315     ac_init_version=: ;;
1316
1317   -with-* | --with-*)
1318     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1319     # Reject names that are not valid shell variable names.
1320     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1321       as_fn_error "invalid package name: $ac_useropt"
1322     ac_useropt_orig=$ac_useropt
1323     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1324     case $ac_user_opts in
1325       *"
1326 "with_$ac_useropt"
1327 "*) ;;
1328       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1329          ac_unrecognized_sep=', ';;
1330     esac
1331     eval with_$ac_useropt=\$ac_optarg ;;
1332
1333   -without-* | --without-*)
1334     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1335     # Reject names that are not valid shell variable names.
1336     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1337       as_fn_error "invalid package name: $ac_useropt"
1338     ac_useropt_orig=$ac_useropt
1339     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1340     case $ac_user_opts in
1341       *"
1342 "with_$ac_useropt"
1343 "*) ;;
1344       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1345          ac_unrecognized_sep=', ';;
1346     esac
1347     eval with_$ac_useropt=no ;;
1348
1349   --x)
1350     # Obsolete; use --with-x.
1351     with_x=yes ;;
1352
1353   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1354   | --x-incl | --x-inc | --x-in | --x-i)
1355     ac_prev=x_includes ;;
1356   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1357   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1358     x_includes=$ac_optarg ;;
1359
1360   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1361   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1362     ac_prev=x_libraries ;;
1363   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1364   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1365     x_libraries=$ac_optarg ;;
1366
1367   -*) as_fn_error "unrecognized option: \`$ac_option'
1368 Try \`$0 --help' for more information."
1369     ;;
1370
1371   *=*)
1372     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1373     # Reject names that are not valid shell variable names.
1374     case $ac_envvar in #(
1375       '' | [0-9]* | *[!_$as_cr_alnum]* )
1376       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1377     esac
1378     eval $ac_envvar=\$ac_optarg
1379     export $ac_envvar ;;
1380
1381   *)
1382     # FIXME: should be removed in autoconf 3.0.
1383     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1384     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1385       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1386     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1387     ;;
1388
1389   esac
1390 done
1391
1392 if test -n "$ac_prev"; then
1393   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1394   as_fn_error "missing argument to $ac_option"
1395 fi
1396
1397 if test -n "$ac_unrecognized_opts"; then
1398   case $enable_option_checking in
1399     no) ;;
1400     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1401     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1402   esac
1403 fi
1404
1405 # Check all directory arguments for consistency.
1406 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1407                 datadir sysconfdir sharedstatedir localstatedir includedir \
1408                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1409                 libdir localedir mandir
1410 do
1411   eval ac_val=\$$ac_var
1412   # Remove trailing slashes.
1413   case $ac_val in
1414     */ )
1415       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1416       eval $ac_var=\$ac_val;;
1417   esac
1418   # Be sure to have absolute directory names.
1419   case $ac_val in
1420     [\\/$]* | ?:[\\/]* )  continue;;
1421     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1422   esac
1423   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1424 done
1425
1426 # There might be people who depend on the old broken behavior: `$host'
1427 # used to hold the argument of --host etc.
1428 # FIXME: To remove some day.
1429 build=$build_alias
1430 host=$host_alias
1431 target=$target_alias
1432
1433 # FIXME: To remove some day.
1434 if test "x$host_alias" != x; then
1435   if test "x$build_alias" = x; then
1436     cross_compiling=maybe
1437     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1438     If a cross compiler is detected then cross compile mode will be used." >&2
1439   elif test "x$build_alias" != "x$host_alias"; then
1440     cross_compiling=yes
1441   fi
1442 fi
1443
1444 ac_tool_prefix=
1445 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1446
1447 test "$silent" = yes && exec 6>/dev/null
1448
1449
1450 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1451 ac_ls_di=`ls -di .` &&
1452 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1453   as_fn_error "working directory cannot be determined"
1454 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1455   as_fn_error "pwd does not report name of working directory"
1456
1457
1458 # Find the source files, if location was not specified.
1459 if test -z "$srcdir"; then
1460   ac_srcdir_defaulted=yes
1461   # Try the directory containing this script, then the parent directory.
1462   ac_confdir=`$as_dirname -- "$as_myself" ||
1463 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1464          X"$as_myself" : 'X\(//\)[^/]' \| \
1465          X"$as_myself" : 'X\(//\)$' \| \
1466          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1467 $as_echo X"$as_myself" |
1468     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1469             s//\1/
1470             q
1471           }
1472           /^X\(\/\/\)[^/].*/{
1473             s//\1/
1474             q
1475           }
1476           /^X\(\/\/\)$/{
1477             s//\1/
1478             q
1479           }
1480           /^X\(\/\).*/{
1481             s//\1/
1482             q
1483           }
1484           s/.*/./; q'`
1485   srcdir=$ac_confdir
1486   if test ! -r "$srcdir/$ac_unique_file"; then
1487     srcdir=..
1488   fi
1489 else
1490   ac_srcdir_defaulted=no
1491 fi
1492 if test ! -r "$srcdir/$ac_unique_file"; then
1493   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1494   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1495 fi
1496 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1497 ac_abs_confdir=`(
1498         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1499         pwd)`
1500 # When building in place, set srcdir=.
1501 if test "$ac_abs_confdir" = "$ac_pwd"; then
1502   srcdir=.
1503 fi
1504 # Remove unnecessary trailing slashes from srcdir.
1505 # Double slashes in file names in object file debugging info
1506 # mess up M-x gdb in Emacs.
1507 case $srcdir in
1508 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1509 esac
1510 for ac_var in $ac_precious_vars; do
1511   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1512   eval ac_env_${ac_var}_value=\$${ac_var}
1513   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1514   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1515 done
1516
1517 #
1518 # Report the --help message.
1519 #
1520 if test "$ac_init_help" = "long"; then
1521   # Omit some internal or obsolete options to make the list less imposing.
1522   # This message is too long to be a string in the A/UX 3.1 sh.
1523   cat <<_ACEOF
1524 \`configure' configures libjava version-unused to adapt to many kinds of systems.
1525
1526 Usage: $0 [OPTION]... [VAR=VALUE]...
1527
1528 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1529 VAR=VALUE.  See below for descriptions of some of the useful variables.
1530
1531 Defaults for the options are specified in brackets.
1532
1533 Configuration:
1534   -h, --help              display this help and exit
1535       --help=short        display options specific to this package
1536       --help=recursive    display the short help of all the included packages
1537   -V, --version           display version information and exit
1538   -q, --quiet, --silent   do not print \`checking...' messages
1539       --cache-file=FILE   cache test results in FILE [disabled]
1540   -C, --config-cache      alias for \`--cache-file=config.cache'
1541   -n, --no-create         do not create output files
1542       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1543
1544 Installation directories:
1545   --prefix=PREFIX         install architecture-independent files in PREFIX
1546                           [$ac_default_prefix]
1547   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1548                           [PREFIX]
1549
1550 By default, \`make install' will install all the files in
1551 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1552 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1553 for instance \`--prefix=\$HOME'.
1554
1555 For better control, use the options below.
1556
1557 Fine tuning of the installation directories:
1558   --bindir=DIR            user executables [EPREFIX/bin]
1559   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1560   --libexecdir=DIR        program executables [EPREFIX/libexec]
1561   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1562   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1563   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1564   --libdir=DIR            object code libraries [EPREFIX/lib]
1565   --includedir=DIR        C header files [PREFIX/include]
1566   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1567   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1568   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1569   --infodir=DIR           info documentation [DATAROOTDIR/info]
1570   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1571   --mandir=DIR            man documentation [DATAROOTDIR/man]
1572   --docdir=DIR            documentation root [DATAROOTDIR/doc/libjava]
1573   --htmldir=DIR           html documentation [DOCDIR]
1574   --dvidir=DIR            dvi documentation [DOCDIR]
1575   --pdfdir=DIR            pdf documentation [DOCDIR]
1576   --psdir=DIR             ps documentation [DOCDIR]
1577 _ACEOF
1578
1579   cat <<\_ACEOF
1580
1581 Program names:
1582   --program-prefix=PREFIX            prepend PREFIX to installed program names
1583   --program-suffix=SUFFIX            append SUFFIX to installed program names
1584   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1585
1586 X features:
1587   --x-includes=DIR    X include files are in DIR
1588   --x-libraries=DIR   X library files are in DIR
1589
1590 System types:
1591   --build=BUILD     configure for building on BUILD [guessed]
1592   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1593   --target=TARGET   configure for building compilers for TARGET [HOST]
1594 _ACEOF
1595 fi
1596
1597 if test -n "$ac_init_help"; then
1598   case $ac_init_help in
1599      short | recursive ) echo "Configuration of libjava version-unused:";;
1600    esac
1601   cat <<\_ACEOF
1602
1603 Optional Features:
1604   --disable-option-checking  ignore unrecognized --enable/--with options
1605   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1606   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1607   --enable-multilib       build many library versions (default)
1608   --enable-version-specific-runtime-libs
1609                           specify that runtime libraries should be installed
1610                           in a compiler-specific directory
1611   --enable-browser-plugin build gcjwebplugin web browser plugin
1612   --enable-gconf-peer     compile GConf native peers for util.preferences
1613   --disable-gjdoc         compile GJDoc (disabled by --disable-gjdoc)
1614                           default=yes
1615   --enable-java-maintainer-mode
1616                           allow rebuilding of .class and .h files
1617   --disable-dependency-tracking  speeds up one-time build
1618   --enable-dependency-tracking   do not reject slow dependency extractors
1619   --enable-maintainer-mode  enable make rules and dependencies not useful
1620                           (and sometimes confusing) to the casual installer
1621   --enable-libgcj-sublibs build libgcj as many sub-libraries
1622   --enable-libgcj-debug   enable runtime debugging code
1623   --enable-java-awt       list of AWT peer implementations to be built
1624   --enable-shared[=PKGS]  build shared libraries [default=yes]
1625   --enable-static[=PKGS]  build static libraries [default=yes]
1626   --enable-fast-install[=PKGS]
1627                           optimize for fast installation [default=yes]
1628   --disable-libtool-lock  avoid locking (might break parallel builds)
1629   --disable-getenv-properties
1630                           don't set system properties from GCJ_PROPERTIES
1631   --enable-hash-synchronization
1632                           use global hash table for monitor locks
1633   --enable-libgcj-bc      enable(default) or disable BC ABI for portions of
1634                           libgcj
1635   --enable-reduced-reflection
1636                           enable or disable(default) -freduced-reflection when
1637                           building portions of libgcj
1638   --enable-gc-debug       include full support for pointer backtracing etc.
1639   --enable-interpreter    enable interpreter
1640   --enable-sjlj-exceptions
1641                           force use of builtin_setjmp for exceptions
1642   --disable-java-net      disable java.net
1643   --disable-jvmpi         disable JVMPI support
1644   --enable-java-gc=TYPE   choose garbage collector (default is boehm)
1645   --disable-rpath         do not hardcode runtime library paths
1646   --enable-tls            Use thread-local storage [default=yes]
1647   --enable-aot-compile-rpm
1648                           enable installation of aot-compile-rpm [default=no]
1649   --enable-java-home      create a standard JDK-style directory layout in the
1650                           install tree [default=no]
1651
1652 Optional Packages:
1653   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1654   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1655   --with-build-libsubdir=DIR  Directory where to find libraries for build system
1656   --with-target-subdir=SUBDIR
1657                           configure in a subdirectory
1658   --with-cross-host=HOST  configure with a cross compiler from HOST
1659   --with-newlib           configure with newlib
1660   --with-antlr-jar=file   Use ANTLR from the specified jar file
1661   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1662   --with-pic              try to use only PIC/non-PIC objects [default=use
1663                           both]
1664   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1665   --with-ecj-jar=FILE     use preinstalled ecj jar
1666   --with-java-home=DIRECTORY
1667                           value of java.home system property
1668   --with-win32-nlsapi=ansi or unicows or unicode
1669                           native MinGW libgcj Win32 OS API (default is ansi)
1670   --without-libffi        don't use libffi
1671   --with-ecos             enable runtime eCos target support
1672   --with-system-zlib      use installed libz
1673   --with-x                use the X Window System
1674   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1675   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1676   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1677   --with-system-libunwind use installed libunwind
1678   --with-python-dir       the location to install Python modules. This path
1679                           should NOT include the prefix.
1680   --with-gcc-suffix       the GCC tool suffix (defaults to empty string)
1681   --with-arch-directory   the arch directory under jre/lib (defaults to
1682                           auto-detect)
1683   --with-os-directory     the os directory under include (defaults to
1684                           auto-detect)
1685   --with-origin-name      the JPackage origin name of this package (default is
1686                           gcj${gcc_suffix}
1687   --with-arch-suffix      the arch directory suffix (default is the empty
1688                           string
1689   --with-jvm-root-dir     where to install SDK (default is ${prefix}/lib/jvm)
1690   --with-jvm-jar-dir      where to install jars (default is
1691                           ${prefix}/lib/jvm-exports)
1692
1693 Some influential environment variables:
1694   CC          C compiler command
1695   CFLAGS      C compiler flags
1696   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1697               nonstandard directory <lib dir>
1698   LIBS        libraries to pass to the linker, e.g. -l<library>
1699   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1700               you have headers in a nonstandard directory <include dir>
1701   CXX         C++ compiler command
1702   CXXFLAGS    C++ compiler flags
1703   CPP         C preprocessor
1704   CXXCPP      C++ preprocessor
1705   XMKMF       Path to xmkmf, Makefile generator for X Window System
1706
1707 Use these variables to override the choices made by `configure' or to help
1708 it to find libraries and programs with nonstandard names/locations.
1709
1710 Report bugs to the package provider.
1711 _ACEOF
1712 ac_status=$?
1713 fi
1714
1715 if test "$ac_init_help" = "recursive"; then
1716   # If there are subdirs, report their specific --help.
1717   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1718     test -d "$ac_dir" ||
1719       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1720       continue
1721     ac_builddir=.
1722
1723 case "$ac_dir" in
1724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1725 *)
1726   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1727   # A ".." for each directory in $ac_dir_suffix.
1728   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1729   case $ac_top_builddir_sub in
1730   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1732   esac ;;
1733 esac
1734 ac_abs_top_builddir=$ac_pwd
1735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1736 # for backward compatibility:
1737 ac_top_builddir=$ac_top_build_prefix
1738
1739 case $srcdir in
1740   .)  # We are building in place.
1741     ac_srcdir=.
1742     ac_top_srcdir=$ac_top_builddir_sub
1743     ac_abs_top_srcdir=$ac_pwd ;;
1744   [\\/]* | ?:[\\/]* )  # Absolute name.
1745     ac_srcdir=$srcdir$ac_dir_suffix;
1746     ac_top_srcdir=$srcdir
1747     ac_abs_top_srcdir=$srcdir ;;
1748   *) # Relative name.
1749     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1750     ac_top_srcdir=$ac_top_build_prefix$srcdir
1751     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1752 esac
1753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1754
1755     cd "$ac_dir" || { ac_status=$?; continue; }
1756     # Check for guested configure.
1757     if test -f "$ac_srcdir/configure.gnu"; then
1758       echo &&
1759       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1760     elif test -f "$ac_srcdir/configure"; then
1761       echo &&
1762       $SHELL "$ac_srcdir/configure" --help=recursive
1763     else
1764       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1765     fi || ac_status=$?
1766     cd "$ac_pwd" || { ac_status=$?; break; }
1767   done
1768 fi
1769
1770 test -n "$ac_init_help" && exit $ac_status
1771 if $ac_init_version; then
1772   cat <<\_ACEOF
1773 libjava configure version-unused
1774 generated by GNU Autoconf 2.64
1775
1776 Copyright (C) 2009 Free Software Foundation, Inc.
1777 This configure script is free software; the Free Software Foundation
1778 gives unlimited permission to copy, distribute and modify it.
1779 _ACEOF
1780   exit
1781 fi
1782
1783 ## ------------------------ ##
1784 ## Autoconf initialization. ##
1785 ## ------------------------ ##
1786
1787 # ac_fn_c_try_compile LINENO
1788 # --------------------------
1789 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1790 ac_fn_c_try_compile ()
1791 {
1792   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793   rm -f conftest.$ac_objext
1794   if { { ac_try="$ac_compile"
1795 case "(($ac_try" in
1796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1797   *) ac_try_echo=$ac_try;;
1798 esac
1799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1800 $as_echo "$ac_try_echo"; } >&5
1801   (eval "$ac_compile") 2>conftest.err
1802   ac_status=$?
1803   if test -s conftest.err; then
1804     grep -v '^ *+' conftest.err >conftest.er1
1805     cat conftest.er1 >&5
1806     mv -f conftest.er1 conftest.err
1807   fi
1808   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1809   test $ac_status = 0; } && {
1810          test -z "$ac_c_werror_flag" ||
1811          test ! -s conftest.err
1812        } && test -s conftest.$ac_objext; then :
1813   ac_retval=0
1814 else
1815   $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818         ac_retval=1
1819 fi
1820   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1821   return $ac_retval
1822
1823 } # ac_fn_c_try_compile
1824
1825 # ac_fn_cxx_try_compile LINENO
1826 # ----------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_compile ()
1829 {
1830   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831   rm -f conftest.$ac_objext
1832   if { { ac_try="$ac_compile"
1833 case "(($ac_try" in
1834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835   *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839   (eval "$ac_compile") 2>conftest.err
1840   ac_status=$?
1841   if test -s conftest.err; then
1842     grep -v '^ *+' conftest.err >conftest.er1
1843     cat conftest.er1 >&5
1844     mv -f conftest.er1 conftest.err
1845   fi
1846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847   test $ac_status = 0; } && {
1848          test -z "$ac_cxx_werror_flag" ||
1849          test ! -s conftest.err
1850        } && test -s conftest.$ac_objext; then :
1851   ac_retval=0
1852 else
1853   $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1855
1856         ac_retval=1
1857 fi
1858   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859   return $ac_retval
1860
1861 } # ac_fn_cxx_try_compile
1862
1863 # ac_fn_c_try_link LINENO
1864 # -----------------------
1865 # Try to link conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_c_try_link ()
1867 {
1868   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869   rm -f conftest.$ac_objext conftest$ac_exeext
1870   if { { ac_try="$ac_link"
1871 case "(($ac_try" in
1872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1873   *) ac_try_echo=$ac_try;;
1874 esac
1875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1876 $as_echo "$ac_try_echo"; } >&5
1877   (eval "$ac_link") 2>conftest.err
1878   ac_status=$?
1879   if test -s conftest.err; then
1880     grep -v '^ *+' conftest.err >conftest.er1
1881     cat conftest.er1 >&5
1882     mv -f conftest.er1 conftest.err
1883   fi
1884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885   test $ac_status = 0; } && {
1886          test -z "$ac_c_werror_flag" ||
1887          test ! -s conftest.err
1888        } && test -s conftest$ac_exeext && {
1889          test "$cross_compiling" = yes ||
1890          $as_test_x conftest$ac_exeext
1891        }; then :
1892   ac_retval=0
1893 else
1894   $as_echo "$as_me: failed program was:" >&5
1895 sed 's/^/| /' conftest.$ac_ext >&5
1896
1897         ac_retval=1
1898 fi
1899   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1900   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1901   # interfere with the next link command; also delete a directory that is
1902   # left behind by Apple's compiler.  We do this before executing the actions.
1903   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1904   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1905   return $ac_retval
1906
1907 } # ac_fn_c_try_link
1908
1909 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1910 # -------------------------------------------------------
1911 # Tests whether HEADER exists and can be compiled using the include files in
1912 # INCLUDES, setting the cache variable VAR accordingly.
1913 ac_fn_c_check_header_compile ()
1914 {
1915   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1917 $as_echo_n "checking for $2... " >&6; }
1918 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1919   $as_echo_n "(cached) " >&6
1920 else
1921   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h.  */
1923 $4
1924 #include <$2>
1925 _ACEOF
1926 if ac_fn_c_try_compile "$LINENO"; then :
1927   eval "$3=yes"
1928 else
1929   eval "$3=no"
1930 fi
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 fi
1933 eval ac_res=\$$3
1934                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1935 $as_echo "$ac_res" >&6; }
1936   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1937
1938 } # ac_fn_c_check_header_compile
1939
1940 # ac_fn_c_try_cpp LINENO
1941 # ----------------------
1942 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1943 ac_fn_c_try_cpp ()
1944 {
1945   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946   if { { ac_try="$ac_cpp conftest.$ac_ext"
1947 case "(($ac_try" in
1948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1949   *) ac_try_echo=$ac_try;;
1950 esac
1951 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1952 $as_echo "$ac_try_echo"; } >&5
1953   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1954   ac_status=$?
1955   if test -s conftest.err; then
1956     grep -v '^ *+' conftest.err >conftest.er1
1957     cat conftest.er1 >&5
1958     mv -f conftest.er1 conftest.err
1959   fi
1960   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1961   test $ac_status = 0; } >/dev/null && {
1962          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1963          test ! -s conftest.err
1964        }; then :
1965   ac_retval=0
1966 else
1967   $as_echo "$as_me: failed program was:" >&5
1968 sed 's/^/| /' conftest.$ac_ext >&5
1969
1970     ac_retval=1
1971 fi
1972   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1973   return $ac_retval
1974
1975 } # ac_fn_c_try_cpp
1976
1977 # ac_fn_c_try_run LINENO
1978 # ----------------------
1979 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1980 # that executables *can* be run.
1981 ac_fn_c_try_run ()
1982 {
1983   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984   if { { ac_try="$ac_link"
1985 case "(($ac_try" in
1986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1987   *) ac_try_echo=$ac_try;;
1988 esac
1989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1990 $as_echo "$ac_try_echo"; } >&5
1991   (eval "$ac_link") 2>&5
1992   ac_status=$?
1993   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1994   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1995   { { case "(($ac_try" in
1996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997   *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001   (eval "$ac_try") 2>&5
2002   ac_status=$?
2003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004   test $ac_status = 0; }; }; then :
2005   ac_retval=0
2006 else
2007   $as_echo "$as_me: program exited with status $ac_status" >&5
2008        $as_echo "$as_me: failed program was:" >&5
2009 sed 's/^/| /' conftest.$ac_ext >&5
2010
2011        ac_retval=$ac_status
2012 fi
2013   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2014   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2015   return $ac_retval
2016
2017 } # ac_fn_c_try_run
2018
2019 # ac_fn_c_check_func LINENO FUNC VAR
2020 # ----------------------------------
2021 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2022 ac_fn_c_check_func ()
2023 {
2024   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2026 $as_echo_n "checking for $2... " >&6; }
2027 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2028   $as_echo_n "(cached) " >&6
2029 else
2030   if test x$gcc_no_link = xyes; then
2031   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2032 fi
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034 /* end confdefs.h.  */
2035 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2036    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2037 #define $2 innocuous_$2
2038
2039 /* System header to define __stub macros and hopefully few prototypes,
2040     which can conflict with char $2 (); below.
2041     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2042     <limits.h> exists even on freestanding compilers.  */
2043
2044 #ifdef __STDC__
2045 # include <limits.h>
2046 #else
2047 # include <assert.h>
2048 #endif
2049
2050 #undef $2
2051
2052 /* Override any GCC internal prototype to avoid an error.
2053    Use char because int might match the return type of a GCC
2054    builtin and then its argument prototype would still apply.  */
2055 #ifdef __cplusplus
2056 extern "C"
2057 #endif
2058 char $2 ();
2059 /* The GNU C library defines this for functions which it implements
2060     to always fail with ENOSYS.  Some functions are actually named
2061     something starting with __ and the normal name is an alias.  */
2062 #if defined __stub_$2 || defined __stub___$2
2063 choke me
2064 #endif
2065
2066 int
2067 main ()
2068 {
2069 return $2 ();
2070   ;
2071   return 0;
2072 }
2073 _ACEOF
2074 if ac_fn_c_try_link "$LINENO"; then :
2075   eval "$3=yes"
2076 else
2077   eval "$3=no"
2078 fi
2079 rm -f core conftest.err conftest.$ac_objext \
2080     conftest$ac_exeext conftest.$ac_ext
2081 fi
2082 eval ac_res=\$$3
2083                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2084 $as_echo "$ac_res" >&6; }
2085   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2086
2087 } # ac_fn_c_check_func
2088
2089 # ac_fn_cxx_try_cpp LINENO
2090 # ------------------------
2091 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2092 ac_fn_cxx_try_cpp ()
2093 {
2094   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2095   if { { ac_try="$ac_cpp conftest.$ac_ext"
2096 case "(($ac_try" in
2097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098   *) ac_try_echo=$ac_try;;
2099 esac
2100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2101 $as_echo "$ac_try_echo"; } >&5
2102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2103   ac_status=$?
2104   if test -s conftest.err; then
2105     grep -v '^ *+' conftest.err >conftest.er1
2106     cat conftest.er1 >&5
2107     mv -f conftest.er1 conftest.err
2108   fi
2109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2110   test $ac_status = 0; } >/dev/null && {
2111          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2112          test ! -s conftest.err
2113        }; then :
2114   ac_retval=0
2115 else
2116   $as_echo "$as_me: failed program was:" >&5
2117 sed 's/^/| /' conftest.$ac_ext >&5
2118
2119     ac_retval=1
2120 fi
2121   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2122   return $ac_retval
2123
2124 } # ac_fn_cxx_try_cpp
2125
2126 # ac_fn_cxx_try_link LINENO
2127 # -------------------------
2128 # Try to link conftest.$ac_ext, and return whether this succeeded.
2129 ac_fn_cxx_try_link ()
2130 {
2131   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132   rm -f conftest.$ac_objext conftest$ac_exeext
2133   if { { ac_try="$ac_link"
2134 case "(($ac_try" in
2135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2136   *) ac_try_echo=$ac_try;;
2137 esac
2138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2139 $as_echo "$ac_try_echo"; } >&5
2140   (eval "$ac_link") 2>conftest.err
2141   ac_status=$?
2142   if test -s conftest.err; then
2143     grep -v '^ *+' conftest.err >conftest.er1
2144     cat conftest.er1 >&5
2145     mv -f conftest.er1 conftest.err
2146   fi
2147   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2148   test $ac_status = 0; } && {
2149          test -z "$ac_cxx_werror_flag" ||
2150          test ! -s conftest.err
2151        } && test -s conftest$ac_exeext && {
2152          test "$cross_compiling" = yes ||
2153          $as_test_x conftest$ac_exeext
2154        }; then :
2155   ac_retval=0
2156 else
2157   $as_echo "$as_me: failed program was:" >&5
2158 sed 's/^/| /' conftest.$ac_ext >&5
2159
2160         ac_retval=1
2161 fi
2162   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2163   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2164   # interfere with the next link command; also delete a directory that is
2165   # left behind by Apple's compiler.  We do this before executing the actions.
2166   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2167   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2168   return $ac_retval
2169
2170 } # ac_fn_cxx_try_link
2171
2172 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2173 # -------------------------------------------------------
2174 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2175 # the include files in INCLUDES and setting the cache variable VAR
2176 # accordingly.
2177 ac_fn_c_check_header_mongrel ()
2178 {
2179   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2180   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2181   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2182 $as_echo_n "checking for $2... " >&6; }
2183 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2184   $as_echo_n "(cached) " >&6
2185 fi
2186 eval ac_res=\$$3
2187                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2188 $as_echo "$ac_res" >&6; }
2189 else
2190   # Is the header compilable?
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2192 $as_echo_n "checking $2 usability... " >&6; }
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h.  */
2195 $4
2196 #include <$2>
2197 _ACEOF
2198 if ac_fn_c_try_compile "$LINENO"; then :
2199   ac_header_compiler=yes
2200 else
2201   ac_header_compiler=no
2202 fi
2203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2205 $as_echo "$ac_header_compiler" >&6; }
2206
2207 # Is the header present?
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2209 $as_echo_n "checking $2 presence... " >&6; }
2210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2211 /* end confdefs.h.  */
2212 #include <$2>
2213 _ACEOF
2214 if ac_fn_c_try_cpp "$LINENO"; then :
2215   ac_header_preproc=yes
2216 else
2217   ac_header_preproc=no
2218 fi
2219 rm -f conftest.err conftest.$ac_ext
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2221 $as_echo "$ac_header_preproc" >&6; }
2222
2223 # So?  What about this header?
2224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2225   yes:no: )
2226     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2227 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2228     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2229 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2230     ;;
2231   no:yes:* )
2232     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2233 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2234     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2235 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2236     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2237 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2238     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2239 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2240     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2241 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2242     ;;
2243 esac
2244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2245 $as_echo_n "checking for $2... " >&6; }
2246 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2247   $as_echo_n "(cached) " >&6
2248 else
2249   eval "$3=\$ac_header_compiler"
2250 fi
2251 eval ac_res=\$$3
2252                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2253 $as_echo "$ac_res" >&6; }
2254 fi
2255   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2256
2257 } # ac_fn_c_check_header_mongrel
2258
2259 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2260 # ----------------------------------------------------
2261 # Tries to find if the field MEMBER exists in type AGGR, after including
2262 # INCLUDES, setting cache variable VAR accordingly.
2263 ac_fn_c_check_member ()
2264 {
2265   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2267 $as_echo_n "checking for $2.$3... " >&6; }
2268 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2269   $as_echo_n "(cached) " >&6
2270 else
2271   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2272 /* end confdefs.h.  */
2273 $5
2274 int
2275 main ()
2276 {
2277 static $2 ac_aggr;
2278 if (ac_aggr.$3)
2279 return 0;
2280   ;
2281   return 0;
2282 }
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"; then :
2285   eval "$4=yes"
2286 else
2287   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h.  */
2289 $5
2290 int
2291 main ()
2292 {
2293 static $2 ac_aggr;
2294 if (sizeof ac_aggr.$3)
2295 return 0;
2296   ;
2297   return 0;
2298 }
2299 _ACEOF
2300 if ac_fn_c_try_compile "$LINENO"; then :
2301   eval "$4=yes"
2302 else
2303   eval "$4=no"
2304 fi
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 fi
2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2308 fi
2309 eval ac_res=\$$4
2310                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2311 $as_echo "$ac_res" >&6; }
2312   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2313
2314 } # ac_fn_c_check_member
2315
2316 # ac_fn_c_check_decl LINENO SYMBOL VAR
2317 # ------------------------------------
2318 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2319 ac_fn_c_check_decl ()
2320 {
2321   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2322   as_decl_name=`echo $2|sed 's/ *(.*//'`
2323   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2324   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2325 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2326 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2327   $as_echo_n "(cached) " >&6
2328 else
2329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2330 /* end confdefs.h.  */
2331 $4
2332 int
2333 main ()
2334 {
2335 #ifndef $as_decl_name
2336 #ifdef __cplusplus
2337   (void) $as_decl_use;
2338 #else
2339   (void) $as_decl_name;
2340 #endif
2341 #endif
2342
2343   ;
2344   return 0;
2345 }
2346 _ACEOF
2347 if ac_fn_c_try_compile "$LINENO"; then :
2348   eval "$3=yes"
2349 else
2350   eval "$3=no"
2351 fi
2352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2353 fi
2354 eval ac_res=\$$3
2355                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2356 $as_echo "$ac_res" >&6; }
2357   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2358
2359 } # ac_fn_c_check_decl
2360
2361 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2362 # --------------------------------------------
2363 # Tries to find the compile-time value of EXPR in a program that includes
2364 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2365 # computed
2366 ac_fn_c_compute_int ()
2367 {
2368   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2369   if test "$cross_compiling" = yes; then
2370     # Depending upon the size, compute the lo and hi bounds.
2371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2372 /* end confdefs.h.  */
2373 $4
2374 int
2375 main ()
2376 {
2377 static int test_array [1 - 2 * !(($2) >= 0)];
2378 test_array [0] = 0
2379
2380   ;
2381   return 0;
2382 }
2383 _ACEOF
2384 if ac_fn_c_try_compile "$LINENO"; then :
2385   ac_lo=0 ac_mid=0
2386   while :; do
2387     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2388 /* end confdefs.h.  */
2389 $4
2390 int
2391 main ()
2392 {
2393 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2394 test_array [0] = 0
2395
2396   ;
2397   return 0;
2398 }
2399 _ACEOF
2400 if ac_fn_c_try_compile "$LINENO"; then :
2401   ac_hi=$ac_mid; break
2402 else
2403   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2404                         if test $ac_lo -le $ac_mid; then
2405                           ac_lo= ac_hi=
2406                           break
2407                         fi
2408                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2409 fi
2410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411   done
2412 else
2413   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414 /* end confdefs.h.  */
2415 $4
2416 int
2417 main ()
2418 {
2419 static int test_array [1 - 2 * !(($2) < 0)];
2420 test_array [0] = 0
2421
2422   ;
2423   return 0;
2424 }
2425 _ACEOF
2426 if ac_fn_c_try_compile "$LINENO"; then :
2427   ac_hi=-1 ac_mid=-1
2428   while :; do
2429     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h.  */
2431 $4
2432 int
2433 main ()
2434 {
2435 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2436 test_array [0] = 0
2437
2438   ;
2439   return 0;
2440 }
2441 _ACEOF
2442 if ac_fn_c_try_compile "$LINENO"; then :
2443   ac_lo=$ac_mid; break
2444 else
2445   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2446                         if test $ac_mid -le $ac_hi; then
2447                           ac_lo= ac_hi=
2448                           break
2449                         fi
2450                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2451 fi
2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453   done
2454 else
2455   ac_lo= ac_hi=
2456 fi
2457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2458 fi
2459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2460 # Binary search between lo and hi bounds.
2461 while test "x$ac_lo" != "x$ac_hi"; do
2462   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2464 /* end confdefs.h.  */
2465 $4
2466 int
2467 main ()
2468 {
2469 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2470 test_array [0] = 0
2471
2472   ;
2473   return 0;
2474 }
2475 _ACEOF
2476 if ac_fn_c_try_compile "$LINENO"; then :
2477   ac_hi=$ac_mid
2478 else
2479   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2480 fi
2481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2482 done
2483 case $ac_lo in #((
2484 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2485 '') ac_retval=1 ;;
2486 esac
2487   else
2488     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h.  */
2490 $4
2491 static long int longval () { return $2; }
2492 static unsigned long int ulongval () { return $2; }
2493 #include <stdio.h>
2494 #include <stdlib.h>
2495 int
2496 main ()
2497 {
2498
2499   FILE *f = fopen ("conftest.val", "w");
2500   if (! f)
2501     return 1;
2502   if (($2) < 0)
2503     {
2504       long int i = longval ();
2505       if (i != ($2))
2506         return 1;
2507       fprintf (f, "%ld", i);
2508     }
2509   else
2510     {
2511       unsigned long int i = ulongval ();
2512       if (i != ($2))
2513         return 1;
2514       fprintf (f, "%lu", i);
2515     }
2516   /* Do not output a trailing newline, as this causes \r\n confusion
2517      on some platforms.  */
2518   return ferror (f) || fclose (f) != 0;
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 if ac_fn_c_try_run "$LINENO"; then :
2525   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2526 else
2527   ac_retval=1
2528 fi
2529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2530   conftest.$ac_objext conftest.beam conftest.$ac_ext
2531 rm -f conftest.val
2532
2533   fi
2534   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2535   return $ac_retval
2536
2537 } # ac_fn_c_compute_int
2538
2539 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2540 # -------------------------------------------
2541 # Tests whether TYPE exists after having included INCLUDES, setting cache
2542 # variable VAR accordingly.
2543 ac_fn_c_check_type ()
2544 {
2545   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2546   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2547 $as_echo_n "checking for $2... " >&6; }
2548 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2549   $as_echo_n "(cached) " >&6
2550 else
2551   eval "$3=no"
2552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2553 /* end confdefs.h.  */
2554 $4
2555 int
2556 main ()
2557 {
2558 if (sizeof ($2))
2559          return 0;
2560   ;
2561   return 0;
2562 }
2563 _ACEOF
2564 if ac_fn_c_try_compile "$LINENO"; then :
2565   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2566 /* end confdefs.h.  */
2567 $4
2568 int
2569 main ()
2570 {
2571 if (sizeof (($2)))
2572             return 0;
2573   ;
2574   return 0;
2575 }
2576 _ACEOF
2577 if ac_fn_c_try_compile "$LINENO"; then :
2578
2579 else
2580   eval "$3=yes"
2581 fi
2582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2583 fi
2584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2585 fi
2586 eval ac_res=\$$3
2587                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2588 $as_echo "$ac_res" >&6; }
2589   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2590
2591 } # ac_fn_c_check_type
2592 cat >config.log <<_ACEOF
2593 This file contains any messages produced by compilers while
2594 running configure, to aid debugging if configure makes a mistake.
2595
2596 It was created by libjava $as_me version-unused, which was
2597 generated by GNU Autoconf 2.64.  Invocation command line was
2598
2599   $ $0 $@
2600
2601 _ACEOF
2602 exec 5>>config.log
2603 {
2604 cat <<_ASUNAME
2605 ## --------- ##
2606 ## Platform. ##
2607 ## --------- ##
2608
2609 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2610 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2611 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2612 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2613 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2614
2615 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2616 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2617
2618 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2619 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2620 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2621 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2622 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2623 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2624 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2625
2626 _ASUNAME
2627
2628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629 for as_dir in $PATH
2630 do
2631   IFS=$as_save_IFS
2632   test -z "$as_dir" && as_dir=.
2633     $as_echo "PATH: $as_dir"
2634   done
2635 IFS=$as_save_IFS
2636
2637 } >&5
2638
2639 cat >&5 <<_ACEOF
2640
2641
2642 ## ----------- ##
2643 ## Core tests. ##
2644 ## ----------- ##
2645
2646 _ACEOF
2647
2648
2649 # Keep a trace of the command line.
2650 # Strip out --no-create and --no-recursion so they do not pile up.
2651 # Strip out --silent because we don't want to record it for future runs.
2652 # Also quote any args containing shell meta-characters.
2653 # Make two passes to allow for proper duplicate-argument suppression.
2654 ac_configure_args=
2655 ac_configure_args0=
2656 ac_configure_args1=
2657 ac_must_keep_next=false
2658 for ac_pass in 1 2
2659 do
2660   for ac_arg
2661   do
2662     case $ac_arg in
2663     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2664     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2665     | -silent | --silent | --silen | --sile | --sil)
2666       continue ;;
2667     *\'*)
2668       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2669     esac
2670     case $ac_pass in
2671     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2672     2)
2673       as_fn_append ac_configure_args1 " '$ac_arg'"
2674       if test $ac_must_keep_next = true; then
2675         ac_must_keep_next=false # Got value, back to normal.
2676       else
2677         case $ac_arg in
2678           *=* | --config-cache | -C | -disable-* | --disable-* \
2679           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2680           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2681           | -with-* | --with-* | -without-* | --without-* | --x)
2682             case "$ac_configure_args0 " in
2683               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2684             esac
2685             ;;
2686           -* ) ac_must_keep_next=true ;;
2687         esac
2688       fi
2689       as_fn_append ac_configure_args " '$ac_arg'"
2690       ;;
2691     esac
2692   done
2693 done
2694 { ac_configure_args0=; unset ac_configure_args0;}
2695 { ac_configure_args1=; unset ac_configure_args1;}
2696
2697 # When interrupted or exit'd, cleanup temporary files, and complete
2698 # config.log.  We remove comments because anyway the quotes in there
2699 # would cause problems or look ugly.
2700 # WARNING: Use '\'' to represent an apostrophe within the trap.
2701 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2702 trap 'exit_status=$?
2703   # Save into config.log some information that might help in debugging.
2704   {
2705     echo
2706
2707     cat <<\_ASBOX
2708 ## ---------------- ##
2709 ## Cache variables. ##
2710 ## ---------------- ##
2711 _ASBOX
2712     echo
2713     # The following way of writing the cache mishandles newlines in values,
2714 (
2715   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2716     eval ac_val=\$$ac_var
2717     case $ac_val in #(
2718     *${as_nl}*)
2719       case $ac_var in #(
2720       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2721 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2722       esac
2723       case $ac_var in #(
2724       _ | IFS | as_nl) ;; #(
2725       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2726       *) { eval $ac_var=; unset $ac_var;} ;;
2727       esac ;;
2728     esac
2729   done
2730   (set) 2>&1 |
2731     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2732     *${as_nl}ac_space=\ *)
2733       sed -n \
2734         "s/'\''/'\''\\\\'\'''\''/g;
2735           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2736       ;; #(
2737     *)
2738       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2739       ;;
2740     esac |
2741     sort
2742 )
2743     echo
2744
2745     cat <<\_ASBOX
2746 ## ----------------- ##
2747 ## Output variables. ##
2748 ## ----------------- ##
2749 _ASBOX
2750     echo
2751     for ac_var in $ac_subst_vars
2752     do
2753       eval ac_val=\$$ac_var
2754       case $ac_val in
2755       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2756       esac
2757       $as_echo "$ac_var='\''$ac_val'\''"
2758     done | sort
2759     echo
2760
2761     if test -n "$ac_subst_files"; then
2762       cat <<\_ASBOX
2763 ## ------------------- ##
2764 ## File substitutions. ##
2765 ## ------------------- ##
2766 _ASBOX
2767       echo
2768       for ac_var in $ac_subst_files
2769       do
2770         eval ac_val=\$$ac_var
2771         case $ac_val in
2772         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2773         esac
2774         $as_echo "$ac_var='\''$ac_val'\''"
2775       done | sort
2776       echo
2777     fi
2778
2779     if test -s confdefs.h; then
2780       cat <<\_ASBOX
2781 ## ----------- ##
2782 ## confdefs.h. ##
2783 ## ----------- ##
2784 _ASBOX
2785       echo
2786       cat confdefs.h
2787       echo
2788     fi
2789     test "$ac_signal" != 0 &&
2790       $as_echo "$as_me: caught signal $ac_signal"
2791     $as_echo "$as_me: exit $exit_status"
2792   } >&5
2793   rm -f core *.core core.conftest.* &&
2794     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2795     exit $exit_status
2796 ' 0
2797 for ac_signal in 1 2 13 15; do
2798   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2799 done
2800 ac_signal=0
2801
2802 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2803 rm -f -r conftest* confdefs.h
2804
2805 $as_echo "/* confdefs.h */" > confdefs.h
2806
2807 # Predefined preprocessor variables.
2808
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE_NAME "$PACKAGE_NAME"
2811 _ACEOF
2812
2813 cat >>confdefs.h <<_ACEOF
2814 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2815 _ACEOF
2816
2817 cat >>confdefs.h <<_ACEOF
2818 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2819 _ACEOF
2820
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE_STRING "$PACKAGE_STRING"
2823 _ACEOF
2824
2825 cat >>confdefs.h <<_ACEOF
2826 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2827 _ACEOF
2828
2829 cat >>confdefs.h <<_ACEOF
2830 #define PACKAGE_URL "$PACKAGE_URL"
2831 _ACEOF
2832
2833
2834 # Let the site file select an alternate cache file if it wants to.
2835 # Prefer an explicitly selected file to automatically selected ones.
2836 ac_site_file1=NONE
2837 ac_site_file2=NONE
2838 if test -n "$CONFIG_SITE"; then
2839   ac_site_file1=$CONFIG_SITE
2840 elif test "x$prefix" != xNONE; then
2841   ac_site_file1=$prefix/share/config.site
2842   ac_site_file2=$prefix/etc/config.site
2843 else
2844   ac_site_file1=$ac_default_prefix/share/config.site
2845   ac_site_file2=$ac_default_prefix/etc/config.site
2846 fi
2847 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2848 do
2849   test "x$ac_site_file" = xNONE && continue
2850   if test -r "$ac_site_file"; then
2851     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2852 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2853     sed 's/^/| /' "$ac_site_file" >&5
2854     . "$ac_site_file"
2855   fi
2856 done
2857
2858 if test -r "$cache_file"; then
2859   # Some versions of bash will fail to source /dev/null (special
2860   # files actually), so we avoid doing that.
2861   if test -f "$cache_file"; then
2862     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2863 $as_echo "$as_me: loading cache $cache_file" >&6;}
2864     case $cache_file in
2865       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2866       *)                      . "./$cache_file";;
2867     esac
2868   fi
2869 else
2870   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2871 $as_echo "$as_me: creating cache $cache_file" >&6;}
2872   >$cache_file
2873 fi
2874
2875 # Check that the precious variables saved in the cache have kept the same
2876 # value.
2877 ac_cache_corrupted=false
2878 for ac_var in $ac_precious_vars; do
2879   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2880   eval ac_new_set=\$ac_env_${ac_var}_set
2881   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2882   eval ac_new_val=\$ac_env_${ac_var}_value
2883   case $ac_old_set,$ac_new_set in
2884     set,)
2885       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2886 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2887       ac_cache_corrupted=: ;;
2888     ,set)
2889       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2890 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2891       ac_cache_corrupted=: ;;
2892     ,);;
2893     *)
2894       if test "x$ac_old_val" != "x$ac_new_val"; then
2895         # differences in whitespace do not lead to failure.
2896         ac_old_val_w=`echo x $ac_old_val`
2897         ac_new_val_w=`echo x $ac_new_val`
2898         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2899           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2900 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2901           ac_cache_corrupted=:
2902         else
2903           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2904 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2905           eval $ac_var=\$ac_old_val
2906         fi
2907         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2908 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2909         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2910 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2911       fi;;
2912   esac
2913   # Pass precious variables to config.status.
2914   if test "$ac_new_set" = set; then
2915     case $ac_new_val in
2916     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2917     *) ac_arg=$ac_var=$ac_new_val ;;
2918     esac
2919     case " $ac_configure_args " in
2920       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2921       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2922     esac
2923   fi
2924 done
2925 if $ac_cache_corrupted; then
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2928   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2929 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2930   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2931 fi
2932 ## -------------------- ##
2933 ## Main body of script. ##
2934 ## -------------------- ##
2935
2936 ac_ext=c
2937 ac_cpp='$CPP $CPPFLAGS'
2938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941
2942
2943
2944
2945
2946
2947
2948
2949 ac_aux_dir=
2950 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2951   for ac_t in install-sh install.sh shtool; do
2952     if test -f "$ac_dir/$ac_t"; then
2953       ac_aux_dir=$ac_dir
2954       ac_install_sh="$ac_aux_dir/$ac_t -c"
2955       break 2
2956     fi
2957   done
2958 done
2959 if test -z "$ac_aux_dir"; then
2960   as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2961 fi
2962
2963 # These three variables are undocumented and unsupported,
2964 # and are intended to be withdrawn in a future Autoconf release.
2965 # They can cause serious problems if a builder's source tree is in a directory
2966 # whose full name contains unusual characters.
2967 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2968 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2969 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2970
2971
2972 # Make sure we can run config.sub.
2973 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2974   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2975
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2977 $as_echo_n "checking build system type... " >&6; }
2978 if test "${ac_cv_build+set}" = set; then :
2979   $as_echo_n "(cached) " >&6
2980 else
2981   ac_build_alias=$build_alias
2982 test "x$ac_build_alias" = x &&
2983   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2984 test "x$ac_build_alias" = x &&
2985   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2986 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2987   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2988
2989 fi
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2991 $as_echo "$ac_cv_build" >&6; }
2992 case $ac_cv_build in
2993 *-*-*) ;;
2994 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2995 esac
2996 build=$ac_cv_build
2997 ac_save_IFS=$IFS; IFS='-'
2998 set x $ac_cv_build
2999 shift
3000 build_cpu=$1
3001 build_vendor=$2
3002 shift; shift
3003 # Remember, the first character of IFS is used to create $*,
3004 # except with old shells:
3005 build_os=$*
3006 IFS=$ac_save_IFS
3007 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3008
3009
3010  case ${build_alias} in
3011   "") build_noncanonical=${build} ;;
3012   *) build_noncanonical=${build_alias} ;;
3013 esac
3014
3015  case ${host_alias} in
3016   "") host_noncanonical=${build_noncanonical} ;;
3017   *) host_noncanonical=${host_alias} ;;
3018 esac
3019
3020  case ${target_alias} in
3021   "") target_noncanonical=${host_noncanonical} ;;
3022   *) target_noncanonical=${target_alias} ;;
3023 esac
3024
3025
3026 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
3027 # have matching libraries, they should use host libraries: Makefile.tpl
3028 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
3029 # However, they still use the build modules, because the corresponding
3030 # host modules (e.g. bison) are only built for the host when bootstrap
3031 # finishes. So:
3032 # - build_subdir is where we find build modules, and never changes.
3033 # - build_libsubdir is where we find build libraries, and can be overridden.
3034
3035 # Prefix 'build-' so this never conflicts with target_subdir.
3036 build_subdir="build-${build_noncanonical}"
3037
3038 # Check whether --with-build-libsubdir was given.
3039 if test "${with_build_libsubdir+set}" = set; then :
3040   withval=$with_build_libsubdir; build_libsubdir="$withval"
3041 else
3042   build_libsubdir="$build_subdir"
3043 fi
3044
3045 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
3046 if ( test $srcdir = . && test -d gcc ) \
3047    || test -d $srcdir/../host-${host_noncanonical}; then
3048   host_subdir="host-${host_noncanonical}"
3049 else
3050   host_subdir=.
3051 fi
3052 # No prefix.
3053 target_subdir=${target_noncanonical}
3054
3055
3056 # We use these options to decide which functions to include.
3057
3058 # Check whether --with-target-subdir was given.
3059 if test "${with_target_subdir+set}" = set; then :
3060   withval=$with_target_subdir;
3061 fi
3062
3063
3064 # We may get other options which we don't document:
3065 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3066
3067 # Find the rest of the source tree framework.
3068 # Default to --enable-multilib
3069 # Check whether --enable-multilib was given.
3070 if test "${enable_multilib+set}" = set; then :
3071   enableval=$enable_multilib; case "$enableval" in
3072   yes) multilib=yes ;;
3073   no)  multilib=no ;;
3074   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3075  esac
3076 else
3077   multilib=yes
3078 fi
3079
3080
3081 # We may get other options which we leave undocumented:
3082 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3083 # See config-ml.in if you want the gory details.
3084
3085 if test "$srcdir" = "."; then
3086   if test "$with_target_subdir" != "."; then
3087     multi_basedir="$srcdir/$with_multisrctop../.."
3088   else
3089     multi_basedir="$srcdir/$with_multisrctop.."
3090   fi
3091 else
3092   multi_basedir="$srcdir/.."
3093 fi
3094
3095
3096 # Even if the default multilib is not a cross compilation,
3097 # it may be that some of the other multilibs are.
3098 if test $cross_compiling = no && test $multilib = yes \
3099    && test "x${with_multisubdir}" != x ; then
3100    cross_compiling=maybe
3101 fi
3102
3103 ac_config_commands="$ac_config_commands default-1"
3104
3105
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3107 $as_echo_n "checking host system type... " >&6; }
3108 if test "${ac_cv_host+set}" = set; then :
3109   $as_echo_n "(cached) " >&6
3110 else
3111   if test "x$host_alias" = x; then
3112   ac_cv_host=$ac_cv_build
3113 else
3114   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3115     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3116 fi
3117
3118 fi
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3120 $as_echo "$ac_cv_host" >&6; }
3121 case $ac_cv_host in
3122 *-*-*) ;;
3123 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3124 esac
3125 host=$ac_cv_host
3126 ac_save_IFS=$IFS; IFS='-'
3127 set x $ac_cv_host
3128 shift
3129 host_cpu=$1
3130 host_vendor=$2
3131 shift; shift
3132 # Remember, the first character of IFS is used to create $*,
3133 # except with old shells:
3134 host_os=$*
3135 IFS=$ac_save_IFS
3136 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3137
3138
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3140 $as_echo_n "checking target system type... " >&6; }
3141 if test "${ac_cv_target+set}" = set; then :
3142   $as_echo_n "(cached) " >&6
3143 else
3144   if test "x$target_alias" = x; then
3145   ac_cv_target=$ac_cv_host
3146 else
3147   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3148     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3149 fi
3150
3151 fi
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3153 $as_echo "$ac_cv_target" >&6; }
3154 case $ac_cv_target in
3155 *-*-*) ;;
3156 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3157 esac
3158 target=$ac_cv_target
3159 ac_save_IFS=$IFS; IFS='-'
3160 set x $ac_cv_target
3161 shift
3162 target_cpu=$1
3163 target_vendor=$2
3164 shift; shift
3165 # Remember, the first character of IFS is used to create $*,
3166 # except with old shells:
3167 target_os=$*
3168 IFS=$ac_save_IFS
3169 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3170
3171
3172 # The aliases save the names the user supplied, while $host etc.
3173 # will get canonicalized.
3174 test -n "$target_alias" &&
3175   test "$program_prefix$program_suffix$program_transform_name" = \
3176     NONENONEs,x,x, &&
3177   program_prefix=${target_alias}-
3178
3179  case ${build_alias} in
3180   "") build_noncanonical=${build} ;;
3181   *) build_noncanonical=${build_alias} ;;
3182 esac
3183
3184  case ${target_alias} in
3185   "") target_noncanonical=${host_noncanonical} ;;
3186   *) target_noncanonical=${target_alias} ;;
3187 esac
3188
3189
3190
3191
3192 # This works around the fact that libtool configuration may change LD
3193 # for this particular configuration, but some shells, instead of
3194 # keeping the changes in LD private, export them just because LD is
3195 # exported.
3196 ORIGINAL_LD_FOR_MULTILIBS=$LD
3197
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3199 $as_echo_n "checking whether ln -s works... " >&6; }
3200 LN_S=$as_ln_s
3201 if test "$LN_S" = "ln -s"; then
3202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 $as_echo "yes" >&6; }
3204 else
3205   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3206 $as_echo "no, using $LN_S" >&6; }
3207 fi
3208
3209
3210 # This works around an automake problem.
3211 mkinstalldirs="`cd $ac_aux_dir && ${PWDCMD-pwd}`/mkinstalldirs"
3212
3213
3214
3215 # Check whether --with-cross-host was given.
3216 if test "${with_cross_host+set}" = set; then :
3217   withval=$with_cross_host;
3218 fi
3219
3220
3221
3222 # Check whether --with-newlib was given.
3223 if test "${with_newlib+set}" = set; then :
3224   withval=$with_newlib;
3225 fi
3226
3227
3228 # Check whether --enable-version-specific-runtime-libs was given.
3229 if test "${enable_version_specific_runtime_libs+set}" = set; then :
3230   enableval=$enable_version_specific_runtime_libs; case "$enableval" in
3231       yes) version_specific_libs=yes ;;
3232       no)  version_specific_libs=no ;;
3233       *)   as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
3234      esac
3235 else
3236   version_specific_libs=no
3237
3238 fi
3239
3240
3241 # Check whether --enable-browser-plugin was given.
3242 if test "${enable_browser_plugin+set}" = set; then :
3243   enableval=$enable_browser_plugin; case "$enableval" in
3244       yes) browser_plugin_enabled=yes ;;
3245       no)  browser_plugin_enabled=no ;;
3246       *)   as_fn_error "Unknown argument to enable/disable browser plugin" "$LINENO" 5;;
3247      esac
3248 else
3249   browser_plugin_enabled=no
3250
3251 fi
3252
3253
3254 # Check whether --enable-gconf-peer was given.
3255 if test "${enable_gconf_peer+set}" = set; then :
3256   enableval=$enable_gconf_peer; case "$enableval" in
3257       yes) gconf_enabled=yes ;;
3258       no)  gconf_enabled=no ;;
3259       *)   as_fn_error "Unknown argument to enable/disable gconf-peer" "$LINENO" 5;;
3260      esac
3261 else
3262   gconf_enabled=no
3263
3264 fi
3265
3266
3267
3268 # Check whether --with-antlr-jar was given.
3269 if test "${with_antlr_jar+set}" = set; then :
3270   withval=$with_antlr_jar;
3271              ANTLR_JAR=$withval
3272
3273 else
3274
3275              ANTLR_JAR=
3276
3277 fi
3278
3279
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr.jar" >&5
3281 $as_echo_n "checking for antlr.jar... " >&6; }
3282 if test "x$ANTLR_JAR" = x; then
3283     for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
3284         /usr/share/antlr/lib /usr/share/java /usr/lib;
3285     do
3286         if test -f "$antlr_lib_home/antlr.jar"; then
3287             # FIXME: version check for antlr needed without using a VM
3288             ANTLR_JAR="$antlr_lib_home/antlr.jar"
3289             break
3290         fi
3291     done
3292     if test "x$ANTLR_JAR" = x; then
3293         { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
3294 $as_echo "not found" >&6; }
3295     else
3296         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3297 $as_echo "$ANTLR_JAR" >&6; }
3298     fi
3299 else
3300     if test -f "${ANTLR_JAR}"; then
3301         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
3302 $as_echo "$ANTLR_JAR" >&6; }
3303     else
3304         as_fn_error "antlr jar file not found: $ANTLR_JAR" "$LINENO" 5
3305     fi
3306 fi
3307
3308
3309 # Check whether --enable-gjdoc was given.
3310 if test "${enable_gjdoc+set}" = set; then :
3311   enableval=$enable_gjdoc; case "${enableval}" in
3312                 yes) BUILD_GJDOC=yes ;;
3313                 no) BUILD_GJDOC=no ;;
3314                 *) BUILD_GJDOC=yes ;;
3315               esac
3316 else
3317   BUILD_GJDOC=maybe
3318 fi
3319
3320
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gjdoc" >&5
3322 $as_echo_n "checking whether to build gjdoc... " >&6; }
3323 if test "x$BUILD_GJDOC" = xmaybe; then
3324     if test -f "${ANTLR_JAR}"; then
3325         BUILD_GJDOC=yes
3326         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3327 $as_echo "yes" >&6; }
3328     else
3329         BUILD_GJDOC=no
3330         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, antlr.jar not found" >&5
3331 $as_echo "no, antlr.jar not found" >&6; }
3332     fi
3333 else
3334     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_GJDOC" >&5
3335 $as_echo "$BUILD_GJDOC" >&6; }
3336 fi
3337  if test "x${BUILD_GJDOC}" = xyes; then
3338   CREATE_GJDOC_TRUE=
3339   CREATE_GJDOC_FALSE='#'
3340 else
3341   CREATE_GJDOC_TRUE='#'
3342   CREATE_GJDOC_FALSE=
3343 fi
3344
3345
3346 # Check whether --enable-java-maintainer-mode was given.
3347 if test "${enable_java_maintainer_mode+set}" = set; then :
3348   enableval=$enable_java_maintainer_mode;
3349 fi
3350
3351  if test "$enable_java_maintainer_mode" = yes; then
3352   JAVA_MAINTAINER_MODE_TRUE=
3353   JAVA_MAINTAINER_MODE_FALSE='#'
3354 else
3355   JAVA_MAINTAINER_MODE_TRUE='#'
3356   JAVA_MAINTAINER_MODE_FALSE=
3357 fi
3358
3359
3360 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
3361
3362
3363 # For libstdc++-v3, -fno-builtin must be present here so that a
3364 # non-conflicting form of std::exit can be guessed by AC_PROG_CXX, and
3365 # used in later tests.  This may not be necessary in libjava; I don't know.
3366 save_CXXFLAGS="$CXXFLAGS"
3367 CXXFLAGS="$CXXFLAGS -fno-builtin"
3368 ac_ext=c
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3373 if test -n "$ac_tool_prefix"; then
3374   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3375 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3377 $as_echo_n "checking for $ac_word... " >&6; }
3378 if test "${ac_cv_prog_CC+set}" = set; then :
3379   $as_echo_n "(cached) " >&6
3380 else
3381   if test -n "$CC"; then
3382   ac_cv_prog_CC="$CC" # Let the user override the test.
3383 else
3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 for as_dir in $PATH
3386 do
3387   IFS=$as_save_IFS
3388   test -z "$as_dir" && as_dir=.
3389     for ac_exec_ext in '' $ac_executable_extensions; do
3390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3391     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3393     break 2
3394   fi
3395 done
3396   done
3397 IFS=$as_save_IFS
3398
3399 fi
3400 fi
3401 CC=$ac_cv_prog_CC
3402 if test -n "$CC"; then
3403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3404 $as_echo "$CC" >&6; }
3405 else
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3407 $as_echo "no" >&6; }
3408 fi
3409
3410
3411 fi
3412 if test -z "$ac_cv_prog_CC"; then
3413   ac_ct_CC=$CC
3414   # Extract the first word of "gcc", so it can be a program name with args.
3415 set dummy gcc; ac_word=$2
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3417 $as_echo_n "checking for $ac_word... " >&6; }
3418 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3419   $as_echo_n "(cached) " >&6
3420 else
3421   if test -n "$ac_ct_CC"; then
3422   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3423 else
3424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3425 for as_dir in $PATH
3426 do
3427   IFS=$as_save_IFS
3428   test -z "$as_dir" && as_dir=.
3429     for ac_exec_ext in '' $ac_executable_extensions; do
3430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3431     ac_cv_prog_ac_ct_CC="gcc"
3432     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3433     break 2
3434   fi
3435 done
3436   done
3437 IFS=$as_save_IFS
3438
3439 fi
3440 fi
3441 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3442 if test -n "$ac_ct_CC"; then
3443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3444 $as_echo "$ac_ct_CC" >&6; }
3445 else
3446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3447 $as_echo "no" >&6; }
3448 fi
3449
3450   if test "x$ac_ct_CC" = x; then
3451     CC=""
3452   else
3453     case $cross_compiling:$ac_tool_warned in
3454 yes:)
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3457 ac_tool_warned=yes ;;
3458 esac
3459     CC=$ac_ct_CC
3460   fi
3461 else
3462   CC="$ac_cv_prog_CC"
3463 fi
3464
3465 if test -z "$CC"; then
3466           if test -n "$ac_tool_prefix"; then
3467     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3468 set dummy ${ac_tool_prefix}cc; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if test "${ac_cv_prog_CC+set}" = set; then :
3472   $as_echo_n "(cached) " >&6
3473 else
3474   if test -n "$CC"; then
3475   ac_cv_prog_CC="$CC" # Let the user override the test.
3476 else
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480   IFS=$as_save_IFS
3481   test -z "$as_dir" && as_dir=.
3482     for ac_exec_ext in '' $ac_executable_extensions; do
3483   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3484     ac_cv_prog_CC="${ac_tool_prefix}cc"
3485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3486     break 2
3487   fi
3488 done
3489   done
3490 IFS=$as_save_IFS
3491
3492 fi
3493 fi
3494 CC=$ac_cv_prog_CC
3495 if test -n "$CC"; then
3496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3497 $as_echo "$CC" >&6; }
3498 else
3499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3500 $as_echo "no" >&6; }
3501 fi
3502
3503
3504   fi
3505 fi
3506 if test -z "$CC"; then
3507   # Extract the first word of "cc", so it can be a program name with args.
3508 set dummy cc; ac_word=$2
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3510 $as_echo_n "checking for $ac_word... " >&6; }
3511 if test "${ac_cv_prog_CC+set}" = set; then :
3512   $as_echo_n "(cached) " >&6
3513 else
3514   if test -n "$CC"; then
3515   ac_cv_prog_CC="$CC" # Let the user override the test.
3516 else
3517   ac_prog_rejected=no
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 for as_dir in $PATH
3520 do
3521   IFS=$as_save_IFS
3522   test -z "$as_dir" && as_dir=.
3523     for ac_exec_ext in '' $ac_executable_extensions; do
3524   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3525     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3526        ac_prog_rejected=yes
3527        continue
3528      fi
3529     ac_cv_prog_CC="cc"
3530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531     break 2
3532   fi
3533 done
3534   done
3535 IFS=$as_save_IFS
3536
3537 if test $ac_prog_rejected = yes; then
3538   # We found a bogon in the path, so make sure we never use it.
3539   set dummy $ac_cv_prog_CC
3540   shift
3541   if test $# != 0; then
3542     # We chose a different compiler from the bogus one.
3543     # However, it has the same basename, so the bogon will be chosen
3544     # first if we set CC to just the basename; use the full file name.
3545     shift
3546     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3547   fi
3548 fi
3549 fi
3550 fi
3551 CC=$ac_cv_prog_CC
3552 if test -n "$CC"; then
3553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3554 $as_echo "$CC" >&6; }
3555 else
3556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3557 $as_echo "no" >&6; }
3558 fi
3559
3560
3561 fi
3562 if test -z "$CC"; then
3563   if test -n "$ac_tool_prefix"; then
3564   for ac_prog in cl.exe
3565   do
3566     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3567 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3569 $as_echo_n "checking for $ac_word... " >&6; }
3570 if test "${ac_cv_prog_CC+set}" = set; then :
3571   $as_echo_n "(cached) " >&6
3572 else
3573   if test -n "$CC"; then
3574   ac_cv_prog_CC="$CC" # Let the user override the test.
3575 else
3576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3577 for as_dir in $PATH
3578 do
3579   IFS=$as_save_IFS
3580   test -z "$as_dir" && as_dir=.
3581     for ac_exec_ext in '' $ac_executable_extensions; do
3582   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3583     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3584     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3585     break 2
3586   fi
3587 done
3588   done
3589 IFS=$as_save_IFS
3590
3591 fi
3592 fi
3593 CC=$ac_cv_prog_CC
3594 if test -n "$CC"; then
3595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3596 $as_echo "$CC" >&6; }
3597 else
3598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3599 $as_echo "no" >&6; }
3600 fi
3601
3602
3603     test -n "$CC" && break
3604   done
3605 fi
3606 if test -z "$CC"; then
3607   ac_ct_CC=$CC
3608   for ac_prog in cl.exe
3609 do
3610   # Extract the first word of "$ac_prog", so it can be a program name with args.
3611 set dummy $ac_prog; ac_word=$2
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3615   $as_echo_n "(cached) " >&6
3616 else
3617   if test -n "$ac_ct_CC"; then
3618   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3619 else
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 for as_dir in $PATH
3622 do
3623   IFS=$as_save_IFS
3624   test -z "$as_dir" && as_dir=.
3625     for ac_exec_ext in '' $ac_executable_extensions; do
3626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3627     ac_cv_prog_ac_ct_CC="$ac_prog"
3628     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3629     break 2
3630   fi
3631 done
3632   done
3633 IFS=$as_save_IFS
3634
3635 fi
3636 fi
3637 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3638 if test -n "$ac_ct_CC"; then
3639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3640 $as_echo "$ac_ct_CC" >&6; }
3641 else
3642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3644 fi
3645
3646
3647   test -n "$ac_ct_CC" && break
3648 done
3649
3650   if test "x$ac_ct_CC" = x; then
3651     CC=""
3652   else
3653     case $cross_compiling:$ac_tool_warned in
3654 yes:)
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned=yes ;;
3658 esac
3659     CC=$ac_ct_CC
3660   fi
3661 fi
3662
3663 fi
3664
3665
3666 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error "no acceptable C compiler found in \$PATH
3669 See \`config.log' for more details." "$LINENO" 5; }
3670
3671 # Provide some information about the compiler.
3672 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3673 set X $ac_compile
3674 ac_compiler=$2
3675 for ac_option in --version -v -V -qversion; do
3676   { { ac_try="$ac_compiler $ac_option >&5"
3677 case "(($ac_try" in
3678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3679   *) ac_try_echo=$ac_try;;
3680 esac
3681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3682 $as_echo "$ac_try_echo"; } >&5
3683   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3684   ac_status=$?
3685   if test -s conftest.err; then
3686     sed '10a\
3687 ... rest of stderr output deleted ...
3688          10q' conftest.err >conftest.er1
3689     cat conftest.er1 >&5
3690     rm -f conftest.er1 conftest.err
3691   fi
3692   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3693   test $ac_status = 0; }
3694 done
3695
3696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3697 /* end confdefs.h.  */
3698
3699 int
3700 main ()
3701 {
3702
3703   ;
3704   return 0;
3705 }
3706 _ACEOF
3707 # FIXME: Cleanup?
3708 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3709   (eval $ac_link) 2>&5
3710   ac_status=$?
3711   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712   test $ac_status = 0; }; then :
3713   gcc_no_link=no
3714 else
3715   gcc_no_link=yes
3716 fi
3717 if test x$gcc_no_link = xyes; then
3718   # Setting cross_compile will disable run tests; it will
3719   # also disable AC_CHECK_FILE but that's generally
3720   # correct if we can't link.
3721   cross_compiling=yes
3722   EXEEXT=
3723 else
3724   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h.  */
3726
3727 int
3728 main ()
3729 {
3730
3731   ;
3732   return 0;
3733 }
3734 _ACEOF
3735 ac_clean_files_save=$ac_clean_files
3736 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3737 # Try to create an executable without -o first, disregard a.out.
3738 # It will help us diagnose broken compilers, and finding out an intuition
3739 # of exeext.
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3741 $as_echo_n "checking for C compiler default output file name... " >&6; }
3742 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3743
3744 # The possible output files:
3745 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3746
3747 ac_rmfiles=
3748 for ac_file in $ac_files
3749 do
3750   case $ac_file in
3751     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3752     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3753   esac
3754 done
3755 rm -f $ac_rmfiles
3756
3757 if { { ac_try="$ac_link_default"
3758 case "(($ac_try" in
3759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760   *) ac_try_echo=$ac_try;;
3761 esac
3762 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3763 $as_echo "$ac_try_echo"; } >&5
3764   (eval "$ac_link_default") 2>&5
3765   ac_status=$?
3766   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3767   test $ac_status = 0; }; then :
3768   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3769 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3770 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3771 # so that the user can short-circuit this test for compilers unknown to
3772 # Autoconf.
3773 for ac_file in $ac_files ''
3774 do
3775   test -f "$ac_file" || continue
3776   case $ac_file in
3777     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3778         ;;
3779     [ab].out )
3780         # We found the default executable, but exeext='' is most
3781         # certainly right.
3782         break;;
3783     *.* )
3784         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3785         then :; else
3786            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3787         fi
3788         # We set ac_cv_exeext here because the later test for it is not
3789         # safe: cross compilers may not add the suffix if given an `-o'
3790         # argument, so we may need to know it at that point already.
3791         # Even if this section looks crufty: it has the advantage of
3792         # actually working.
3793         break;;
3794     * )
3795         break;;
3796   esac
3797 done
3798 test "$ac_cv_exeext" = no && ac_cv_exeext=
3799
3800 else
3801   ac_file=''
3802 fi
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3804 $as_echo "$ac_file" >&6; }
3805 if test -z "$ac_file"; then :
3806   $as_echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3811 { as_fn_set_status 77
3812 as_fn_error "C compiler cannot create executables
3813 See \`config.log' for more details." "$LINENO" 5; }; }
3814 fi
3815 ac_exeext=$ac_cv_exeext
3816
3817 # Check that the compiler produces executables we can run.  If not, either
3818 # the compiler is broken, or we cross compile.
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3820 $as_echo_n "checking whether the C compiler works... " >&6; }
3821 # If not cross compiling, check that we can run a simple program.
3822 if test "$cross_compiling" != yes; then
3823   if { ac_try='./$ac_file'
3824   { { case "(($ac_try" in
3825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826   *) ac_try_echo=$ac_try;;
3827 esac
3828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829 $as_echo "$ac_try_echo"; } >&5
3830   (eval "$ac_try") 2>&5
3831   ac_status=$?
3832   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833   test $ac_status = 0; }; }; then
3834     cross_compiling=no
3835   else
3836     if test "$cross_compiling" = maybe; then
3837         cross_compiling=yes
3838     else
3839         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841 as_fn_error "cannot run C compiled programs.
3842 If you meant to cross compile, use \`--host'.
3843 See \`config.log' for more details." "$LINENO" 5; }
3844     fi
3845   fi
3846 fi
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3848 $as_echo "yes" >&6; }
3849
3850 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3851 ac_clean_files=$ac_clean_files_save
3852 # Check that the compiler produces executables we can run.  If not, either
3853 # the compiler is broken, or we cross compile.
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3855 $as_echo_n "checking whether we are cross compiling... " >&6; }
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3857 $as_echo "$cross_compiling" >&6; }
3858
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3860 $as_echo_n "checking for suffix of executables... " >&6; }
3861 if { { ac_try="$ac_link"
3862 case "(($ac_try" in
3863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3864   *) ac_try_echo=$ac_try;;
3865 esac
3866 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3867 $as_echo "$ac_try_echo"; } >&5
3868   (eval "$ac_link") 2>&5
3869   ac_status=$?
3870   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3871   test $ac_status = 0; }; then :
3872   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3873 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3874 # work properly (i.e., refer to `conftest.exe'), while it won't with
3875 # `rm'.
3876 for ac_file in conftest.exe conftest conftest.*; do
3877   test -f "$ac_file" || continue
3878   case $ac_file in
3879     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3880     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3881           break;;
3882     * ) break;;
3883   esac
3884 done
3885 else
3886   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error "cannot compute suffix of executables: cannot compile and link
3889 See \`config.log' for more details." "$LINENO" 5; }
3890 fi
3891 rm -f conftest$ac_cv_exeext
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3893 $as_echo "$ac_cv_exeext" >&6; }
3894
3895 rm -f conftest.$ac_ext
3896 EXEEXT=$ac_cv_exeext
3897 ac_exeext=$EXEEXT
3898 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3900 $as_echo_n "checking for suffix of object files... " >&6; }
3901 if test "${ac_cv_objext+set}" = set; then :
3902   $as_echo_n "(cached) " >&6
3903 else
3904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h.  */
3906
3907 int
3908 main ()
3909 {
3910
3911   ;
3912   return 0;
3913 }
3914 _ACEOF
3915 rm -f conftest.o conftest.obj
3916 if { { ac_try="$ac_compile"
3917 case "(($ac_try" in
3918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919   *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923   (eval "$ac_compile") 2>&5
3924   ac_status=$?
3925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926   test $ac_status = 0; }; then :
3927   for ac_file in conftest.o conftest.obj conftest.*; do
3928   test -f "$ac_file" || continue;
3929   case $ac_file in
3930     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3931     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3932        break;;
3933   esac
3934 done
3935 else
3936   $as_echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3941 as_fn_error "cannot compute suffix of object files: cannot compile
3942 See \`config.log' for more details." "$LINENO" 5; }
3943 fi
3944 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3945 fi
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3947 $as_echo "$ac_cv_objext" >&6; }
3948 OBJEXT=$ac_cv_objext
3949 ac_objext=$OBJEXT
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3951 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3952 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3953   $as_echo_n "(cached) " >&6
3954 else
3955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h.  */
3957
3958 int
3959 main ()
3960 {
3961 #ifndef __GNUC__
3962        choke me
3963 #endif
3964
3965   ;
3966   return 0;
3967 }
3968 _ACEOF
3969 if ac_fn_c_try_compile "$LINENO"; then :
3970   ac_compiler_gnu=yes
3971 else
3972   ac_compiler_gnu=no
3973 fi
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3976
3977 fi
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3979 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3980 if test $ac_compiler_gnu = yes; then
3981   GCC=yes
3982 else
3983   GCC=
3984 fi
3985 ac_test_CFLAGS=${CFLAGS+set}
3986 ac_save_CFLAGS=$CFLAGS
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3988 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3989 if test "${ac_cv_prog_cc_g+set}" = set; then :
3990   $as_echo_n "(cached) " >&6
3991 else
3992   ac_save_c_werror_flag=$ac_c_werror_flag
3993    ac_c_werror_flag=yes
3994    ac_cv_prog_cc_g=no
3995    CFLAGS="-g"
3996    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h.  */
3998
3999 int
4000 main ()
4001 {
4002
4003   ;
4004   return 0;
4005 }
4006 _ACEOF
4007 if ac_fn_c_try_compile "$LINENO"; then :
4008   ac_cv_prog_cc_g=yes
4009 else
4010   CFLAGS=""
4011       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h.  */
4013
4014 int
4015 main ()
4016 {
4017
4018   ;
4019   return 0;
4020 }
4021 _ACEOF
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023
4024 else
4025   ac_c_werror_flag=$ac_save_c_werror_flag
4026          CFLAGS="-g"
4027          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h.  */
4029
4030 int
4031 main ()
4032 {
4033
4034   ;
4035   return 0;
4036 }
4037 _ACEOF
4038 if ac_fn_c_try_compile "$LINENO"; then :
4039   ac_cv_prog_cc_g=yes
4040 fi
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 fi
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 fi
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046    ac_c_werror_flag=$ac_save_c_werror_flag
4047 fi
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4049 $as_echo "$ac_cv_prog_cc_g" >&6; }
4050 if test "$ac_test_CFLAGS" = set; then
4051   CFLAGS=$ac_save_CFLAGS
4052 elif test $ac_cv_prog_cc_g = yes; then
4053   if test "$GCC" = yes; then
4054     CFLAGS="-g -O2"
4055   else
4056     CFLAGS="-g"
4057   fi
4058 else
4059   if test "$GCC" = yes; then
4060     CFLAGS="-O2"
4061   else
4062     CFLAGS=
4063   fi
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4066 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4067 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4068   $as_echo_n "(cached) " >&6
4069 else
4070   ac_cv_prog_cc_c89=no
4071 ac_save_CC=$CC
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h.  */
4074 #include <stdarg.h>
4075 #include <stdio.h>
4076 #include <sys/types.h>
4077 #include <sys/stat.h>
4078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4079 struct buf { int x; };
4080 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4081 static char *e (p, i)
4082      char **p;
4083      int i;
4084 {
4085   return p[i];
4086 }
4087 static char *f (char * (*g) (char **, int), char **p, ...)
4088 {
4089   char *s;
4090   va_list v;
4091   va_start (v,p);
4092   s = g (p, va_arg (v,int));
4093   va_end (v);
4094   return s;
4095 }
4096
4097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4098    function prototypes and stuff, but not '\xHH' hex character constants.
4099    These don't provoke an error unfortunately, instead are silently treated
4100    as 'x'.  The following induces an error, until -std is added to get
4101    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4102    array size at least.  It's necessary to write '\x00'==0 to get something
4103    that's true only with -std.  */
4104 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4105
4106 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4107    inside strings and character constants.  */
4108 #define FOO(x) 'x'
4109 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4110
4111 int test (int i, double x);
4112 struct s1 {int (*f) (int a);};
4113 struct s2 {int (*f) (double a);};
4114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4115 int argc;
4116 char **argv;
4117 int
4118 main ()
4119 {
4120 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4121   ;
4122   return 0;
4123 }
4124 _ACEOF
4125 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4126         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4127 do
4128   CC="$ac_save_CC $ac_arg"
4129   if ac_fn_c_try_compile "$LINENO"; then :
4130   ac_cv_prog_cc_c89=$ac_arg
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext
4133   test "x$ac_cv_prog_cc_c89" != "xno" && break
4134 done
4135 rm -f conftest.$ac_ext
4136 CC=$ac_save_CC
4137
4138 fi
4139 # AC_CACHE_VAL
4140 case "x$ac_cv_prog_cc_c89" in
4141   x)
4142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4143 $as_echo "none needed" >&6; } ;;
4144   xno)
4145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4146 $as_echo "unsupported" >&6; } ;;
4147   *)
4148     CC="$CC $ac_cv_prog_cc_c89"
4149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4150 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4151 esac
4152 if test "x$ac_cv_prog_cc_c89" != xno; then :
4153
4154 fi
4155
4156 ac_ext=c
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161
4162 ac_ext=cpp
4163 ac_cpp='$CXXCPP $CPPFLAGS'
4164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4167 if test -z "$CXX"; then
4168   if test -n "$CCC"; then
4169     CXX=$CCC
4170   else
4171     if test -n "$ac_tool_prefix"; then
4172   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4173   do
4174     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if test "${ac_cv_prog_CXX+set}" = set; then :
4179   $as_echo_n "(cached) " >&6
4180 else
4181   if test -n "$CXX"; then
4182   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4183 else
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4185 for as_dir in $PATH
4186 do
4187   IFS=$as_save_IFS
4188   test -z "$as_dir" && as_dir=.
4189     for ac_exec_ext in '' $ac_executable_extensions; do
4190   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4191     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4192     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4193     break 2
4194   fi
4195 done
4196   done
4197 IFS=$as_save_IFS
4198
4199 fi
4200 fi
4201 CXX=$ac_cv_prog_CXX
4202 if test -n "$CXX"; then
4203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4204 $as_echo "$CXX" >&6; }
4205 else
4206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4208 fi
4209
4210
4211     test -n "$CXX" && break
4212   done
4213 fi
4214 if test -z "$CXX"; then
4215   ac_ct_CXX=$CXX
4216   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4217 do
4218   # Extract the first word of "$ac_prog", so it can be a program name with args.
4219 set dummy $ac_prog; ac_word=$2
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4221 $as_echo_n "checking for $ac_word... " >&6; }
4222 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4223   $as_echo_n "(cached) " >&6
4224 else
4225   if test -n "$ac_ct_CXX"; then
4226   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4227 else
4228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 for as_dir in $PATH
4230 do
4231   IFS=$as_save_IFS
4232   test -z "$as_dir" && as_dir=.
4233     for ac_exec_ext in '' $ac_executable_extensions; do
4234   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4235     ac_cv_prog_ac_ct_CXX="$ac_prog"
4236     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237     break 2
4238   fi
4239 done
4240   done
4241 IFS=$as_save_IFS
4242
4243 fi
4244 fi
4245 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4246 if test -n "$ac_ct_CXX"; then
4247   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4248 $as_echo "$ac_ct_CXX" >&6; }
4249 else
4250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4251 $as_echo "no" >&6; }
4252 fi
4253
4254
4255   test -n "$ac_ct_CXX" && break
4256 done
4257
4258   if test "x$ac_ct_CXX" = x; then
4259     CXX="g++"
4260   else
4261     case $cross_compiling:$ac_tool_warned in
4262 yes:)
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4265 ac_tool_warned=yes ;;
4266 esac
4267     CXX=$ac_ct_CXX
4268   fi
4269 fi
4270
4271   fi
4272 fi
4273 # Provide some information about the compiler.
4274 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4275 set X $ac_compile
4276 ac_compiler=$2
4277 for ac_option in --version -v -V -qversion; do
4278   { { ac_try="$ac_compiler $ac_option >&5"
4279 case "(($ac_try" in
4280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4281   *) ac_try_echo=$ac_try;;
4282 esac
4283 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4284 $as_echo "$ac_try_echo"; } >&5
4285   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4286   ac_status=$?
4287   if test -s conftest.err; then
4288     sed '10a\
4289 ... rest of stderr output deleted ...
4290          10q' conftest.err >conftest.er1
4291     cat conftest.er1 >&5
4292     rm -f conftest.er1 conftest.err
4293   fi
4294   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4295   test $ac_status = 0; }
4296 done
4297
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4299 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4300 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4301   $as_echo_n "(cached) " >&6
4302 else
4303   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304 /* end confdefs.h.  */
4305
4306 int
4307 main ()
4308 {
4309 #ifndef __GNUC__
4310        choke me
4311 #endif
4312
4313   ;
4314   return 0;
4315 }
4316 _ACEOF
4317 if ac_fn_cxx_try_compile "$LINENO"; then :
4318   ac_compiler_gnu=yes
4319 else
4320   ac_compiler_gnu=no
4321 fi
4322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4323 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4324
4325 fi
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4327 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4328 if test $ac_compiler_gnu = yes; then
4329   GXX=yes
4330 else
4331   GXX=
4332 fi
4333 ac_test_CXXFLAGS=${CXXFLAGS+set}
4334 ac_save_CXXFLAGS=$CXXFLAGS
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4336 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4337 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4338   $as_echo_n "(cached) " >&6
4339 else
4340   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4341    ac_cxx_werror_flag=yes
4342    ac_cv_prog_cxx_g=no
4343    CXXFLAGS="-g"
4344    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345 /* end confdefs.h.  */
4346
4347 int
4348 main ()
4349 {
4350
4351   ;
4352   return 0;
4353 }
4354 _ACEOF
4355 if ac_fn_cxx_try_compile "$LINENO"; then :
4356   ac_cv_prog_cxx_g=yes
4357 else
4358   CXXFLAGS=""
4359       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h.  */
4361
4362 int
4363 main ()
4364 {
4365
4366   ;
4367   return 0;
4368 }
4369 _ACEOF
4370 if ac_fn_cxx_try_compile "$LINENO"; then :
4371
4372 else
4373   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4374          CXXFLAGS="-g"
4375          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376 /* end confdefs.h.  */
4377
4378 int
4379 main ()
4380 {
4381
4382   ;
4383   return 0;
4384 }
4385 _ACEOF
4386 if ac_fn_cxx_try_compile "$LINENO"; then :
4387   ac_cv_prog_cxx_g=yes
4388 fi
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4390 fi
4391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4392 fi
4393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4394    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4395 fi
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4397 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4398 if test "$ac_test_CXXFLAGS" = set; then
4399   CXXFLAGS=$ac_save_CXXFLAGS
4400 elif test $ac_cv_prog_cxx_g = yes; then
4401   if test "$GXX" = yes; then
4402     CXXFLAGS="-g -O2"
4403   else
4404     CXXFLAGS="-g"
4405   fi
4406 else
4407   if test "$GXX" = yes; then
4408     CXXFLAGS="-O2"
4409   else
4410     CXXFLAGS=
4411   fi
4412 fi
4413 ac_ext=c
4414 ac_cpp='$CPP $CPPFLAGS'
4415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4418
4419 CXXFLAGS="$save_CXXFLAGS"
4420
4421 am__api_version='1.11'
4422
4423 # Find a good install program.  We prefer a C program (faster),
4424 # so one script is as good as another.  But avoid the broken or
4425 # incompatible versions:
4426 # SysV /etc/install, /usr/sbin/install
4427 # SunOS /usr/etc/install
4428 # IRIX /sbin/install
4429 # AIX /bin/install
4430 # AmigaOS /C/install, which installs bootblocks on floppy discs
4431 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4432 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4433 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4434 # OS/2's system install, which has a completely different semantic
4435 # ./install, which can be erroneously created by make from ./install.sh.
4436 # Reject install programs that cannot install multiple files.
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4438 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4439 if test -z "$INSTALL"; then
4440 if test "${ac_cv_path_install+set}" = set; then :
4441   $as_echo_n "(cached) " >&6
4442 else
4443   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4445 do
4446   IFS=$as_save_IFS
4447   test -z "$as_dir" && as_dir=.
4448     # Account for people who put trailing slashes in PATH elements.
4449 case $as_dir/ in #((
4450   ./ | .// | /[cC]/* | \
4451   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4452   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4453   /usr/ucb/* ) ;;
4454   *)
4455     # OSF1 and SCO ODT 3.0 have their own names for install.
4456     # Don't use installbsd from OSF since it installs stuff as root
4457     # by default.
4458     for ac_prog in ginstall scoinst install; do
4459       for ac_exec_ext in '' $ac_executable_extensions; do
4460         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4461           if test $ac_prog = install &&
4462             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4463             # AIX install.  It has an incompatible calling convention.
4464             :
4465           elif test $ac_prog = install &&
4466             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4467             # program-specific install script used by HP pwplus--don't use.
4468             :
4469           else
4470             rm -rf conftest.one conftest.two conftest.dir
4471             echo one > conftest.one
4472             echo two > conftest.two
4473             mkdir conftest.dir
4474             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4475               test -s conftest.one && test -s conftest.two &&
4476               test -s conftest.dir/conftest.one &&
4477               test -s conftest.dir/conftest.two
4478             then
4479               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4480               break 3
4481             fi
4482           fi
4483         fi
4484       done
4485     done
4486     ;;
4487 esac
4488
4489   done
4490 IFS=$as_save_IFS
4491
4492 rm -rf conftest.one conftest.two conftest.dir
4493
4494 fi
4495   if test "${ac_cv_path_install+set}" = set; then
4496     INSTALL=$ac_cv_path_install
4497   else
4498     # As a last resort, use the slow shell script.  Don't cache a
4499     # value for INSTALL within a source directory, because that will
4500     # break other packages using the cache if that directory is
4501     # removed, or if the value is a relative name.
4502     INSTALL=$ac_install_sh
4503   fi
4504 fi
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4506 $as_echo "$INSTALL" >&6; }
4507
4508 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4509 # It thinks the first close brace ends the variable substitution.
4510 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4511
4512 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4513
4514 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4515
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4517 $as_echo_n "checking whether build environment is sane... " >&6; }
4518 # Just in case
4519 sleep 1
4520 echo timestamp > conftest.file
4521 # Reject unsafe characters in $srcdir or the absolute working directory
4522 # name.  Accept space and tab only in the latter.
4523 am_lf='
4524 '
4525 case `pwd` in
4526   *[\\\"\#\$\&\'\`$am_lf]*)
4527     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
4528 esac
4529 case $srcdir in
4530   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
4531     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
4532 esac
4533
4534 # Do `set' in a subshell so we don't clobber the current shell's
4535 # arguments.  Must try -L first in case configure is actually a
4536 # symlink; some systems play weird games with the mod time of symlinks
4537 # (eg FreeBSD returns the mod time of the symlink's containing
4538 # directory).
4539 if (
4540    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4541    if test "$*" = "X"; then
4542       # -L didn't work.
4543       set X `ls -t "$srcdir/configure" conftest.file`
4544    fi
4545    rm -f conftest.file
4546    if test "$*" != "X $srcdir/configure conftest.file" \
4547       && test "$*" != "X conftest.file $srcdir/configure"; then
4548
4549       # If neither matched, then we have a broken ls.  This can happen
4550       # if, for instance, CONFIG_SHELL is bash and it inherits a
4551       # broken ls alias from the environment.  This has actually
4552       # happened.  Such a system could not be considered "sane".
4553       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
4554 alias in your environment" "$LINENO" 5
4555    fi
4556
4557    test "$2" = conftest.file
4558    )
4559 then
4560    # Ok.
4561    :
4562 else
4563    as_fn_error "newly created file is older than distributed files!
4564 Check your system clock" "$LINENO" 5
4565 fi
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4567 $as_echo "yes" >&6; }
4568 test "$program_prefix" != NONE &&
4569   program_transform_name="s&^&$program_prefix&;$program_transform_name"
4570 # Use a double $ so make ignores it.
4571 test "$program_suffix" != NONE &&
4572   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4573 # Double any \ or $.
4574 # By default was `s,x,x', remove it if useless.
4575 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4576 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4577
4578 # expand $ac_aux_dir to an absolute path
4579 am_aux_dir=`cd $ac_aux_dir && pwd`
4580
4581 if test x"${MISSING+set}" != xset; then
4582   case $am_aux_dir in
4583   *\ * | *\     *)
4584     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4585   *)
4586     MISSING="\${SHELL} $am_aux_dir/missing" ;;
4587   esac
4588 fi
4589 # Use eval to expand $SHELL
4590 if eval "$MISSING --run true"; then
4591   am_missing_run="$MISSING --run "
4592 else
4593   am_missing_run=
4594   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4595 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4596 fi
4597
4598 if test x"${install_sh}" != xset; then
4599   case $am_aux_dir in
4600   *\ * | *\     *)
4601     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4602   *)
4603     install_sh="\${SHELL} $am_aux_dir/install-sh"
4604   esac
4605 fi
4606
4607 # Installed binaries are usually stripped using `strip' when the user
4608 # run `make install-strip'.  However `strip' might not be the right
4609 # tool to use in cross-compilation environments, therefore Automake
4610 # will honor the `STRIP' environment variable to overrule this program.
4611 if test "$cross_compiling" != no; then
4612   if test -n "$ac_tool_prefix"; then
4613   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4614 set dummy ${ac_tool_prefix}strip; ac_word=$2
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4616 $as_echo_n "checking for $ac_word... " >&6; }
4617 if test "${ac_cv_prog_STRIP+set}" = set; then :
4618   $as_echo_n "(cached) " >&6
4619 else
4620   if test -n "$STRIP"; then
4621   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4622 else
4623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4624 for as_dir in $PATH
4625 do
4626   IFS=$as_save_IFS
4627   test -z "$as_dir" && as_dir=.
4628     for ac_exec_ext in '' $ac_executable_extensions; do
4629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4630     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4632     break 2
4633   fi
4634 done
4635   done
4636 IFS=$as_save_IFS
4637
4638 fi
4639 fi
4640 STRIP=$ac_cv_prog_STRIP
4641 if test -n "$STRIP"; then
4642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4643 $as_echo "$STRIP" >&6; }
4644 else
4645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4647 fi
4648
4649
4650 fi
4651 if test -z "$ac_cv_prog_STRIP"; then
4652   ac_ct_STRIP=$STRIP
4653   # Extract the first word of "strip", so it can be a program name with args.
4654 set dummy strip; ac_word=$2
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4656 $as_echo_n "checking for $ac_word... " >&6; }
4657 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
4658   $as_echo_n "(cached) " >&6
4659 else
4660   if test -n "$ac_ct_STRIP"; then
4661   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4662 else
4663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH
4665 do
4666   IFS=$as_save_IFS
4667   test -z "$as_dir" && as_dir=.
4668     for ac_exec_ext in '' $ac_executable_extensions; do
4669   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4670     ac_cv_prog_ac_ct_STRIP="strip"
4671     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4672     break 2
4673   fi
4674 done
4675   done
4676 IFS=$as_save_IFS
4677
4678 fi
4679 fi
4680 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4681 if test -n "$ac_ct_STRIP"; then
4682   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4683 $as_echo "$ac_ct_STRIP" >&6; }
4684 else
4685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4686 $as_echo "no" >&6; }
4687 fi
4688
4689   if test "x$ac_ct_STRIP" = x; then
4690     STRIP=":"
4691   else
4692     case $cross_compiling:$ac_tool_warned in
4693 yes:)
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4695 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4696 ac_tool_warned=yes ;;
4697 esac
4698     STRIP=$ac_ct_STRIP
4699   fi
4700 else
4701   STRIP="$ac_cv_prog_STRIP"
4702 fi
4703
4704 fi
4705 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4706
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4708 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4709 if test -z "$MKDIR_P"; then
4710   if test "${ac_cv_path_mkdir+set}" = set; then :
4711   $as_echo_n "(cached) " >&6
4712 else
4713   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4714 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4715 do
4716   IFS=$as_save_IFS
4717   test -z "$as_dir" && as_dir=.
4718     for ac_prog in mkdir gmkdir; do
4719          for ac_exec_ext in '' $ac_executable_extensions; do
4720            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
4721            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4722              'mkdir (GNU coreutils) '* | \
4723              'mkdir (coreutils) '* | \
4724              'mkdir (fileutils) '4.1*)
4725                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4726                break 3;;
4727            esac
4728          done
4729        done
4730   done
4731 IFS=$as_save_IFS
4732
4733 fi
4734
4735   if test "${ac_cv_path_mkdir+set}" = set; then
4736     MKDIR_P="$ac_cv_path_mkdir -p"
4737   else
4738     # As a last resort, use the slow shell script.  Don't cache a
4739     # value for MKDIR_P within a source directory, because that will
4740     # break other packages using the cache if that directory is
4741     # removed, or if the value is a relative name.
4742     test -d ./--version && rmdir ./--version
4743     MKDIR_P="$ac_install_sh -d"
4744   fi
4745 fi
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4747 $as_echo "$MKDIR_P" >&6; }
4748
4749 mkdir_p="$MKDIR_P"
4750 case $mkdir_p in
4751   [\\/$]* | ?:[\\/]*) ;;
4752   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
4753 esac
4754
4755 for ac_prog in gawk mawk nawk awk
4756 do
4757   # Extract the first word of "$ac_prog", so it can be a program name with args.
4758 set dummy $ac_prog; ac_word=$2
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4760 $as_echo_n "checking for $ac_word... " >&6; }
4761 if test "${ac_cv_prog_AWK+set}" = set; then :
4762   $as_echo_n "(cached) " >&6
4763 else
4764   if test -n "$AWK"; then
4765   ac_cv_prog_AWK="$AWK" # Let the user override the test.
4766 else
4767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4768 for as_dir in $PATH
4769 do
4770   IFS=$as_save_IFS
4771   test -z "$as_dir" && as_dir=.
4772     for ac_exec_ext in '' $ac_executable_extensions; do
4773   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4774     ac_cv_prog_AWK="$ac_prog"
4775     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4776     break 2
4777   fi
4778 done
4779   done
4780 IFS=$as_save_IFS
4781
4782 fi
4783 fi
4784 AWK=$ac_cv_prog_AWK
4785 if test -n "$AWK"; then
4786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4787 $as_echo "$AWK" >&6; }
4788 else
4789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790 $as_echo "no" >&6; }
4791 fi
4792
4793
4794   test -n "$AWK" && break
4795 done
4796
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4798 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4799 set x ${MAKE-make}
4800 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4801 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
4802   $as_echo_n "(cached) " >&6
4803 else
4804   cat >conftest.make <<\_ACEOF
4805 SHELL = /bin/sh
4806 all:
4807         @echo '@@@%%%=$(MAKE)=@@@%%%'
4808 _ACEOF
4809 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
4810 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4811   *@@@%%%=?*=@@@%%%*)
4812     eval ac_cv_prog_make_${ac_make}_set=yes;;
4813   *)
4814     eval ac_cv_prog_make_${ac_make}_set=no;;
4815 esac
4816 rm -f conftest.make
4817 fi
4818 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4820 $as_echo "yes" >&6; }
4821   SET_MAKE=
4822 else
4823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4824 $as_echo "no" >&6; }
4825   SET_MAKE="MAKE=${MAKE-make}"
4826 fi
4827
4828 rm -rf .tst 2>/dev/null
4829 mkdir .tst 2>/dev/null
4830 if test -d .tst; then
4831   am__leading_dot=.
4832 else
4833   am__leading_dot=_
4834 fi
4835 rmdir .tst 2>/dev/null
4836
4837 DEPDIR="${am__leading_dot}deps"
4838
4839 ac_config_commands="$ac_config_commands depfiles"
4840
4841
4842 am_make=${MAKE-make}
4843 cat > confinc << 'END'
4844 am__doit:
4845         @echo this is the am__doit target
4846 .PHONY: am__doit
4847 END
4848 # If we don't find an include directive, just comment out the code.
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4850 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4851 am__include="#"
4852 am__quote=
4853 _am_result=none
4854 # First try GNU make style include.
4855 echo "include confinc" > confmf
4856 # Ignore all kinds of additional output from `make'.
4857 case `$am_make -s -f confmf 2> /dev/null` in #(
4858 *the\ am__doit\ target*)
4859   am__include=include
4860   am__quote=
4861   _am_result=GNU
4862   ;;
4863 esac
4864 # Now try BSD make style include.
4865 if test "$am__include" = "#"; then
4866    echo '.include "confinc"' > confmf
4867    case `$am_make -s -f confmf 2> /dev/null` in #(
4868    *the\ am__doit\ target*)
4869      am__include=.include
4870      am__quote="\""
4871      _am_result=BSD
4872      ;;
4873    esac
4874 fi
4875
4876
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4878 $as_echo "$_am_result" >&6; }
4879 rm -f confinc confmf
4880
4881 # Check whether --enable-dependency-tracking was given.
4882 if test "${enable_dependency_tracking+set}" = set; then :
4883   enableval=$enable_dependency_tracking;
4884 fi
4885
4886 if test "x$enable_dependency_tracking" != xno; then
4887   am_depcomp="$ac_aux_dir/depcomp"
4888   AMDEPBACKSLASH='\'
4889 fi
4890  if test "x$enable_dependency_tracking" != xno; then
4891   AMDEP_TRUE=
4892   AMDEP_FALSE='#'
4893 else
4894   AMDEP_TRUE='#'
4895   AMDEP_FALSE=
4896 fi
4897
4898
4899 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4900   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4901   # is not polluted with repeated "-I."
4902   am__isrc=' -I$(srcdir)'
4903   # test to see if srcdir already configured
4904   if test -f $srcdir/config.status; then
4905     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4906   fi
4907 fi
4908
4909 # test whether we have cygpath
4910 if test -z "$CYGPATH_W"; then
4911   if (cygpath --version) >/dev/null 2>/dev/null; then
4912     CYGPATH_W='cygpath -w'
4913   else
4914     CYGPATH_W=echo
4915   fi
4916 fi
4917
4918
4919 # Define the identity of the package.
4920  PACKAGE='libjava'
4921  VERSION='version-unused'
4922
4923
4924 cat >>confdefs.h <<_ACEOF
4925 #define PACKAGE "$PACKAGE"
4926 _ACEOF
4927
4928
4929 cat >>confdefs.h <<_ACEOF
4930 #define VERSION "$VERSION"
4931 _ACEOF
4932
4933 # Some tools Automake needs.
4934
4935 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4936
4937
4938 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4939
4940
4941 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4942
4943
4944 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4945
4946
4947 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4948
4949 # We need awk for the "check" target.  The system "awk" is bad on
4950 # some platforms.
4951 # Always define AMTAR for backward compatibility.
4952
4953 AMTAR=${AMTAR-"${am_missing_run}tar"}
4954
4955 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
4956
4957
4958
4959
4960 depcc="$CC"   am_compiler_list=
4961
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4963 $as_echo_n "checking dependency style of $depcc... " >&6; }
4964 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4965   $as_echo_n "(cached) " >&6
4966 else
4967   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4968   # We make a subdir and do the tests there.  Otherwise we can end up
4969   # making bogus files that we don't know about and never remove.  For
4970   # instance it was reported that on HP-UX the gcc test will end up
4971   # making a dummy file named `D' -- because `-MD' means `put the output
4972   # in D'.
4973   mkdir conftest.dir
4974   # Copy depcomp to subdir because otherwise we won't find it if we're
4975   # using a relative directory.
4976   cp "$am_depcomp" conftest.dir
4977   cd conftest.dir
4978   # We will build objects and dependencies in a subdirectory because
4979   # it helps to detect inapplicable dependency modes.  For instance
4980   # both Tru64's cc and ICC support -MD to output dependencies as a
4981   # side effect of compilation, but ICC will put the dependencies in
4982   # the current directory while Tru64 will put them in the object
4983   # directory.
4984   mkdir sub
4985
4986   am_cv_CC_dependencies_compiler_type=none
4987   if test "$am_compiler_list" = ""; then
4988      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4989   fi
4990   am__universal=false
4991   case " $depcc " in #(
4992      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4993      esac
4994
4995   for depmode in $am_compiler_list; do
4996     # Setup a source with many dependencies, because some compilers
4997     # like to wrap large dependency lists on column 80 (with \), and
4998     # we should not choose a depcomp mode which is confused by this.
4999     #
5000     # We need to recreate these files for each test, as the compiler may
5001     # overwrite some of them when testing with obscure command lines.
5002     # This happens at least with the AIX C compiler.
5003     : > sub/conftest.c
5004     for i in 1 2 3 4 5 6; do
5005       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5006       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5007       # Solaris 8's {/usr,}/bin/sh.
5008       touch sub/conftst$i.h
5009     done
5010     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5011
5012     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5013     # mode.  It turns out that the SunPro C++ compiler does not properly
5014     # handle `-M -o', and we need to detect this.  Also, some Intel
5015     # versions had trouble with output in subdirs
5016     am__obj=sub/conftest.${OBJEXT-o}
5017     am__minus_obj="-o $am__obj"
5018     case $depmode in
5019     gcc)
5020       # This depmode causes a compiler race in universal mode.
5021       test "$am__universal" = false || continue
5022       ;;
5023     nosideeffect)
5024       # after this tag, mechanisms are not by side-effect, so they'll
5025       # only be used when explicitly requested
5026       if test "x$enable_dependency_tracking" = xyes; then
5027         continue
5028       else
5029         break
5030       fi
5031       ;;
5032     msvisualcpp | msvcmsys)
5033       # This compiler won't grok `-c -o', but also, the minuso test has
5034       # not run yet.  These depmodes are late enough in the game, and
5035       # so weak that their functioning should not be impacted.
5036       am__obj=conftest.${OBJEXT-o}
5037       am__minus_obj=
5038       ;;
5039     none) break ;;
5040     esac
5041     if depmode=$depmode \
5042        source=sub/conftest.c object=$am__obj \
5043        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5044        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5045          >/dev/null 2>conftest.err &&
5046        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5047        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5048        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5049        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5050       # icc doesn't choke on unknown options, it will just issue warnings
5051       # or remarks (even with -Werror).  So we grep stderr for any message
5052       # that says an option was ignored or not supported.
5053       # When given -MP, icc 7.0 and 7.1 complain thusly:
5054       #   icc: Command line warning: ignoring option '-M'; no argument required
5055       # The diagnosis changed in icc 8.0:
5056       #   icc: Command line remark: option '-MP' not supported
5057       if (grep 'ignoring option' conftest.err ||
5058           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5059         am_cv_CC_dependencies_compiler_type=$depmode
5060         break
5061       fi
5062     fi
5063   done
5064
5065   cd ..
5066   rm -rf conftest.dir
5067 else
5068   am_cv_CC_dependencies_compiler_type=none
5069 fi
5070
5071 fi
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5073 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5074 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5075
5076  if
5077   test "x$enable_dependency_tracking" != xno \
5078   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5079   am__fastdepCC_TRUE=
5080   am__fastdepCC_FALSE='#'
5081 else
5082   am__fastdepCC_TRUE='#'
5083   am__fastdepCC_FALSE=
5084 fi
5085
5086
5087 depcc="$CXX"  am_compiler_list=
5088
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5090 $as_echo_n "checking dependency style of $depcc... " >&6; }
5091 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
5092   $as_echo_n "(cached) " >&6
5093 else
5094   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5095   # We make a subdir and do the tests there.  Otherwise we can end up
5096   # making bogus files that we don't know about and never remove.  For
5097   # instance it was reported that on HP-UX the gcc test will end up
5098   # making a dummy file named `D' -- because `-MD' means `put the output
5099   # in D'.
5100   mkdir conftest.dir
5101   # Copy depcomp to subdir because otherwise we won't find it if we're
5102   # using a relative directory.
5103   cp "$am_depcomp" conftest.dir
5104   cd conftest.dir
5105   # We will build objects and dependencies in a subdirectory because
5106   # it helps to detect inapplicable dependency modes.  For instance
5107   # both Tru64's cc and ICC support -MD to output dependencies as a
5108   # side effect of compilation, but ICC will put the dependencies in
5109   # the current directory while Tru64 will put them in the object
5110   # directory.
5111   mkdir sub
5112
5113   am_cv_CXX_dependencies_compiler_type=none
5114   if test "$am_compiler_list" = ""; then
5115      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5116   fi
5117   am__universal=false
5118   case " $depcc " in #(
5119      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5120      esac
5121
5122   for depmode in $am_compiler_list; do
5123     # Setup a source with many dependencies, because some compilers
5124     # like to wrap large dependency lists on column 80 (with \), and
5125     # we should not choose a depcomp mode which is confused by this.
5126     #
5127     # We need to recreate these files for each test, as the compiler may
5128     # overwrite some of them when testing with obscure command lines.
5129     # This happens at least with the AIX C compiler.
5130     : > sub/conftest.c
5131     for i in 1 2 3 4 5 6; do
5132       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5133       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5134       # Solaris 8's {/usr,}/bin/sh.
5135       touch sub/conftst$i.h
5136     done
5137     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5138
5139     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5140     # mode.  It turns out that the SunPro C++ compiler does not properly
5141     # handle `-M -o', and we need to detect this.  Also, some Intel
5142     # versions had trouble with output in subdirs
5143     am__obj=sub/conftest.${OBJEXT-o}
5144     am__minus_obj="-o $am__obj"
5145     case $depmode in
5146     gcc)
5147       # This depmode causes a compiler race in universal mode.
5148       test "$am__universal" = false || continue
5149       ;;
5150     nosideeffect)
5151       # after this tag, mechanisms are not by side-effect, so they'll
5152       # only be used when explicitly requested
5153       if test "x$enable_dependency_tracking" = xyes; then
5154         continue
5155       else
5156         break
5157       fi
5158       ;;
5159     msvisualcpp | msvcmsys)
5160       # This compiler won't grok `-c -o', but also, the minuso test has
5161       # not run yet.  These depmodes are late enough in the game, and
5162       # so weak that their functioning should not be impacted.
5163       am__obj=conftest.${OBJEXT-o}
5164       am__minus_obj=
5165       ;;
5166     none) break ;;
5167     esac
5168     if depmode=$depmode \
5169        source=sub/conftest.c object=$am__obj \
5170        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5171        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5172          >/dev/null 2>conftest.err &&
5173        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5174        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5175        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5176        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5177       # icc doesn't choke on unknown options, it will just issue warnings
5178       # or remarks (even with -Werror).  So we grep stderr for any message
5179       # that says an option was ignored or not supported.
5180       # When given -MP, icc 7.0 and 7.1 complain thusly:
5181       #   icc: Command line warning: ignoring option '-M'; no argument required
5182       # The diagnosis changed in icc 8.0:
5183       #   icc: Command line remark: option '-MP' not supported
5184       if (grep 'ignoring option' conftest.err ||
5185           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5186         am_cv_CXX_dependencies_compiler_type=$depmode
5187         break
5188       fi
5189     fi
5190   done
5191
5192   cd ..
5193   rm -rf conftest.dir
5194 else
5195   am_cv_CXX_dependencies_compiler_type=none
5196 fi
5197
5198 fi
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5200 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5201 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5202
5203  if
5204   test "x$enable_dependency_tracking" != xno \
5205   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5206   am__fastdepCXX_TRUE=
5207   am__fastdepCXX_FALSE='#'
5208 else
5209   am__fastdepCXX_TRUE='#'
5210   am__fastdepCXX_FALSE=
5211 fi
5212
5213
5214
5215
5216 if test -n "$ac_tool_prefix"; then
5217   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5218 set dummy ${ac_tool_prefix}as; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if test "${ac_cv_prog_AS+set}" = set; then :
5222   $as_echo_n "(cached) " >&6
5223 else
5224   if test -n "$AS"; then
5225   ac_cv_prog_AS="$AS" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230   IFS=$as_save_IFS
5231   test -z "$as_dir" && as_dir=.
5232     for ac_exec_ext in '' $ac_executable_extensions; do
5233   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234     ac_cv_prog_AS="${ac_tool_prefix}as"
5235     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236     break 2
5237   fi
5238 done
5239   done
5240 IFS=$as_save_IFS
5241
5242 fi
5243 fi
5244 AS=$ac_cv_prog_AS
5245 if test -n "$AS"; then
5246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5247 $as_echo "$AS" >&6; }
5248 else
5249   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5251 fi
5252
5253
5254 fi
5255 if test -z "$ac_cv_prog_AS"; then
5256   ac_ct_AS=$AS
5257   # Extract the first word of "as", so it can be a program name with args.
5258 set dummy as; ac_word=$2
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260 $as_echo_n "checking for $ac_word... " >&6; }
5261 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5262   $as_echo_n "(cached) " >&6
5263 else
5264   if test -n "$ac_ct_AS"; then
5265   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5266 else
5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5269 do
5270   IFS=$as_save_IFS
5271   test -z "$as_dir" && as_dir=.
5272     for ac_exec_ext in '' $ac_executable_extensions; do
5273   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274     ac_cv_prog_ac_ct_AS="as"
5275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276     break 2
5277   fi
5278 done
5279   done
5280 IFS=$as_save_IFS
5281
5282 fi
5283 fi
5284 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5285 if test -n "$ac_ct_AS"; then
5286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5287 $as_echo "$ac_ct_AS" >&6; }
5288 else
5289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5291 fi
5292
5293   if test "x$ac_ct_AS" = x; then
5294     AS=""
5295   else
5296     case $cross_compiling:$ac_tool_warned in
5297 yes:)
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5300 ac_tool_warned=yes ;;
5301 esac
5302     AS=$ac_ct_AS
5303   fi
5304 else
5305   AS="$ac_cv_prog_AS"
5306 fi
5307
5308 if test -n "$ac_tool_prefix"; then
5309   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
5310 set dummy ${ac_tool_prefix}ld; ac_word=$2
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5312 $as_echo_n "checking for $ac_word... " >&6; }
5313 if test "${ac_cv_prog_LD+set}" = set; then :
5314   $as_echo_n "(cached) " >&6
5315 else
5316   if test -n "$LD"; then
5317   ac_cv_prog_LD="$LD" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5321 do
5322   IFS=$as_save_IFS
5323   test -z "$as_dir" && as_dir=.
5324     for ac_exec_ext in '' $ac_executable_extensions; do
5325   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5326     ac_cv_prog_LD="${ac_tool_prefix}ld"
5327     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5328     break 2
5329   fi
5330 done
5331   done
5332 IFS=$as_save_IFS
5333
5334 fi
5335 fi
5336 LD=$ac_cv_prog_LD
5337 if test -n "$LD"; then
5338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5339 $as_echo "$LD" >&6; }
5340 else
5341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342 $as_echo "no" >&6; }
5343 fi
5344
5345
5346 fi
5347 if test -z "$ac_cv_prog_LD"; then
5348   ac_ct_LD=$LD
5349   # Extract the first word of "ld", so it can be a program name with args.
5350 set dummy ld; ac_word=$2
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 $as_echo_n "checking for $ac_word... " >&6; }
5353 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
5354   $as_echo_n "(cached) " >&6
5355 else
5356   if test -n "$ac_ct_LD"; then
5357   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5361 do
5362   IFS=$as_save_IFS
5363   test -z "$as_dir" && as_dir=.
5364     for ac_exec_ext in '' $ac_executable_extensions; do
5365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366     ac_cv_prog_ac_ct_LD="ld"
5367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5368     break 2
5369   fi
5370 done
5371   done
5372 IFS=$as_save_IFS
5373
5374 fi
5375 fi
5376 ac_ct_LD=$ac_cv_prog_ac_ct_LD
5377 if test -n "$ac_ct_LD"; then
5378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
5379 $as_echo "$ac_ct_LD" >&6; }
5380 else
5381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5382 $as_echo "no" >&6; }
5383 fi
5384
5385   if test "x$ac_ct_LD" = x; then
5386     LD=""
5387   else
5388     case $cross_compiling:$ac_tool_warned in
5389 yes:)
5390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5392 ac_tool_warned=yes ;;
5393 esac
5394     LD=$ac_ct_LD
5395   fi
5396 else
5397   LD="$ac_cv_prog_LD"
5398 fi
5399
5400 if test -n "$ac_tool_prefix"; then
5401   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5402 set dummy ${ac_tool_prefix}ar; ac_word=$2
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5404 $as_echo_n "checking for $ac_word... " >&6; }
5405 if test "${ac_cv_prog_AR+set}" = set; then :
5406   $as_echo_n "(cached) " >&6
5407 else
5408   if test -n "$AR"; then
5409   ac_cv_prog_AR="$AR" # Let the user override the test.
5410 else
5411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414   IFS=$as_save_IFS
5415   test -z "$as_dir" && as_dir=.
5416     for ac_exec_ext in '' $ac_executable_extensions; do
5417   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5418     ac_cv_prog_AR="${ac_tool_prefix}ar"
5419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420     break 2
5421   fi
5422 done
5423   done
5424 IFS=$as_save_IFS
5425
5426 fi
5427 fi
5428 AR=$ac_cv_prog_AR
5429 if test -n "$AR"; then
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5431 $as_echo "$AR" >&6; }
5432 else
5433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5435 fi
5436
5437
5438 fi
5439 if test -z "$ac_cv_prog_AR"; then
5440   ac_ct_AR=$AR
5441   # Extract the first word of "ar", so it can be a program name with args.
5442 set dummy ar; ac_word=$2
5443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5444 $as_echo_n "checking for $ac_word... " >&6; }
5445 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5446   $as_echo_n "(cached) " >&6
5447 else
5448   if test -n "$ac_ct_AR"; then
5449   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456     for ac_exec_ext in '' $ac_executable_extensions; do
5457   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5458     ac_cv_prog_ac_ct_AR="ar"
5459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460     break 2
5461   fi
5462 done
5463   done
5464 IFS=$as_save_IFS
5465
5466 fi
5467 fi
5468 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5469 if test -n "$ac_ct_AR"; then
5470   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5471 $as_echo "$ac_ct_AR" >&6; }
5472 else
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5474 $as_echo "no" >&6; }
5475 fi
5476
5477   if test "x$ac_ct_AR" = x; then
5478     AR=""
5479   else
5480     case $cross_compiling:$ac_tool_warned in
5481 yes:)
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5484 ac_tool_warned=yes ;;
5485 esac
5486     AR=$ac_ct_AR
5487   fi
5488 else
5489   AR="$ac_cv_prog_AR"
5490 fi
5491
5492 if test -n "$ac_tool_prefix"; then
5493   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5494 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5496 $as_echo_n "checking for $ac_word... " >&6; }
5497 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5498   $as_echo_n "(cached) " >&6
5499 else
5500   if test -n "$RANLIB"; then
5501   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5502 else
5503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 for as_dir in $PATH
5505 do
5506   IFS=$as_save_IFS
5507   test -z "$as_dir" && as_dir=.
5508     for ac_exec_ext in '' $ac_executable_extensions; do
5509   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5510     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512     break 2
5513   fi
5514 done
5515   done
5516 IFS=$as_save_IFS
5517
5518 fi
5519 fi
5520 RANLIB=$ac_cv_prog_RANLIB
5521 if test -n "$RANLIB"; then
5522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5523 $as_echo "$RANLIB" >&6; }
5524 else
5525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5526 $as_echo "no" >&6; }
5527 fi
5528
5529
5530 fi
5531 if test -z "$ac_cv_prog_RANLIB"; then
5532   ac_ct_RANLIB=$RANLIB
5533   # Extract the first word of "ranlib", so it can be a program name with args.
5534 set dummy ranlib; ac_word=$2
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5536 $as_echo_n "checking for $ac_word... " >&6; }
5537 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5538   $as_echo_n "(cached) " >&6
5539 else
5540   if test -n "$ac_ct_RANLIB"; then
5541   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5542 else
5543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5544 for as_dir in $PATH
5545 do
5546   IFS=$as_save_IFS
5547   test -z "$as_dir" && as_dir=.
5548     for ac_exec_ext in '' $ac_executable_extensions; do
5549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5550     ac_cv_prog_ac_ct_RANLIB="ranlib"
5551     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552     break 2
5553   fi
5554 done
5555   done
5556 IFS=$as_save_IFS
5557
5558 fi
5559 fi
5560 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5561 if test -n "$ac_ct_RANLIB"; then
5562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5563 $as_echo "$ac_ct_RANLIB" >&6; }
5564 else
5565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; }
5567 fi
5568
5569   if test "x$ac_ct_RANLIB" = x; then
5570     RANLIB=":"
5571   else
5572     case $cross_compiling:$ac_tool_warned in
5573 yes:)
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5575 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5576 ac_tool_warned=yes ;;
5577 esac
5578     RANLIB=$ac_ct_RANLIB
5579   fi
5580 else
5581   RANLIB="$ac_cv_prog_RANLIB"
5582 fi
5583
5584 if test -n "$ac_tool_prefix"; then
5585   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5586 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588 $as_echo_n "checking for $ac_word... " >&6; }
5589 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
5590   $as_echo_n "(cached) " >&6
5591 else
5592   if test -n "$DLLTOOL"; then
5593   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5594 else
5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 for as_dir in $PATH
5597 do
5598   IFS=$as_save_IFS
5599   test -z "$as_dir" && as_dir=.
5600     for ac_exec_ext in '' $ac_executable_extensions; do
5601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5602     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5603     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604     break 2
5605   fi
5606 done
5607   done
5608 IFS=$as_save_IFS
5609
5610 fi
5611 fi
5612 DLLTOOL=$ac_cv_prog_DLLTOOL
5613 if test -n "$DLLTOOL"; then
5614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5615 $as_echo "$DLLTOOL" >&6; }
5616 else
5617   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 $as_echo "no" >&6; }
5619 fi
5620
5621
5622 fi
5623 if test -z "$ac_cv_prog_DLLTOOL"; then
5624   ac_ct_DLLTOOL=$DLLTOOL
5625   # Extract the first word of "dlltool", so it can be a program name with args.
5626 set dummy dlltool; ac_word=$2
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628 $as_echo_n "checking for $ac_word... " >&6; }
5629 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
5630   $as_echo_n "(cached) " >&6
5631 else
5632   if test -n "$ac_ct_DLLTOOL"; then
5633   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5634 else
5635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636 for as_dir in $PATH
5637 do
5638   IFS=$as_save_IFS
5639   test -z "$as_dir" && as_dir=.
5640     for ac_exec_ext in '' $ac_executable_extensions; do
5641   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5643     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644     break 2
5645   fi
5646 done
5647   done
5648 IFS=$as_save_IFS
5649
5650 fi
5651 fi
5652 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5653 if test -n "$ac_ct_DLLTOOL"; then
5654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5655 $as_echo "$ac_ct_DLLTOOL" >&6; }
5656 else
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5659 fi
5660
5661   if test "x$ac_ct_DLLTOOL" = x; then
5662     DLLTOOL=":"
5663   else
5664     case $cross_compiling:$ac_tool_warned in
5665 yes:)
5666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5667 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5668 ac_tool_warned=yes ;;
5669 esac
5670     DLLTOOL=$ac_ct_DLLTOOL
5671   fi
5672 else
5673   DLLTOOL="$ac_cv_prog_DLLTOOL"
5674 fi
5675
5676 for ac_prog in gawk mawk nawk awk
5677 do
5678   # Extract the first word of "$ac_prog", so it can be a program name with args.
5679 set dummy $ac_prog; ac_word=$2
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681 $as_echo_n "checking for $ac_word... " >&6; }
5682 if test "${ac_cv_prog_AWK+set}" = set; then :
5683   $as_echo_n "(cached) " >&6
5684 else
5685   if test -n "$AWK"; then
5686   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5687 else
5688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 for as_dir in $PATH
5690 do
5691   IFS=$as_save_IFS
5692   test -z "$as_dir" && as_dir=.
5693     for ac_exec_ext in '' $ac_executable_extensions; do
5694   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5695     ac_cv_prog_AWK="$ac_prog"
5696     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5697     break 2
5698   fi
5699 done
5700   done
5701 IFS=$as_save_IFS
5702
5703 fi
5704 fi
5705 AWK=$ac_cv_prog_AWK
5706 if test -n "$AWK"; then
5707   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5708 $as_echo "$AWK" >&6; }
5709 else
5710   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711 $as_echo "no" >&6; }
5712 fi
5713
5714
5715   test -n "$AWK" && break
5716 done
5717
5718 for ac_prog in jar fastjar gjar
5719 do
5720   # Extract the first word of "$ac_prog", so it can be a program name with args.
5721 set dummy $ac_prog; ac_word=$2
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5723 $as_echo_n "checking for $ac_word... " >&6; }
5724 if test "${ac_cv_prog_JAR+set}" = set; then :
5725   $as_echo_n "(cached) " >&6
5726 else
5727   if test -n "$JAR"; then
5728   ac_cv_prog_JAR="$JAR" # Let the user override the test.
5729 else
5730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5731 for as_dir in $PATH
5732 do
5733   IFS=$as_save_IFS
5734   test -z "$as_dir" && as_dir=.
5735     for ac_exec_ext in '' $ac_executable_extensions; do
5736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5737     ac_cv_prog_JAR="$ac_prog"
5738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739     break 2
5740   fi
5741 done
5742   done
5743 IFS=$as_save_IFS
5744
5745 fi
5746 fi
5747 JAR=$ac_cv_prog_JAR
5748 if test -n "$JAR"; then
5749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
5750 $as_echo "$JAR" >&6; }
5751 else
5752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5753 $as_echo "no" >&6; }
5754 fi
5755
5756
5757   test -n "$JAR" && break
5758 done
5759 test -n "$JAR" || JAR="no"
5760
5761 # Extract the first word of "zip", so it can be a program name with args.
5762 set dummy zip; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if test "${ac_cv_path_ZIP+set}" = set; then :
5766   $as_echo_n "(cached) " >&6
5767 else
5768   case $ZIP in
5769   [\\/]* | ?:[\\/]*)
5770   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5771   ;;
5772   *)
5773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5775 do
5776   IFS=$as_save_IFS
5777   test -z "$as_dir" && as_dir=.
5778     for ac_exec_ext in '' $ac_executable_extensions; do
5779   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5780     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782     break 2
5783   fi
5784 done
5785   done
5786 IFS=$as_save_IFS
5787
5788   test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="no"
5789   ;;
5790 esac
5791 fi
5792 ZIP=$ac_cv_path_ZIP
5793 if test -n "$ZIP"; then
5794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5795 $as_echo "$ZIP" >&6; }
5796 else
5797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5798 $as_echo "no" >&6; }
5799 fi
5800
5801
5802 # Extract the first word of "unzip", so it can be a program name with args.
5803 set dummy unzip; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if test "${ac_cv_path_UNZIP+set}" = set; then :
5807   $as_echo_n "(cached) " >&6
5808 else
5809   case $UNZIP in
5810   [\\/]* | ?:[\\/]*)
5811   ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5812   ;;
5813   *)
5814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815 for as_dir in $PATH
5816 do
5817   IFS=$as_save_IFS
5818   test -z "$as_dir" && as_dir=.
5819     for ac_exec_ext in '' $ac_executable_extensions; do
5820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5821     ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5823     break 2
5824   fi
5825 done
5826   done
5827 IFS=$as_save_IFS
5828
5829   test -z "$ac_cv_path_UNZIP" && ac_cv_path_UNZIP="unzip"
5830   ;;
5831 esac
5832 fi
5833 UNZIP=$ac_cv_path_UNZIP
5834 if test -n "$UNZIP"; then
5835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5836 $as_echo "$UNZIP" >&6; }
5837 else
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5839 $as_echo "no" >&6; }
5840 fi
5841
5842
5843
5844 # We need a jar that supports -@.  This is a GNU extension.
5845 if test "$JAR" != no; then
5846    rm -f config-test.jar
5847    echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
5848    if test -f config-test.jar; then
5849      rm -f config-test.jar
5850    else
5851      JAR=no
5852    fi
5853 fi
5854
5855 # Prefer the jar we found, but fall back to our jar script.
5856 if test "$JAR" = no; then
5857   if test "$ZIP" = no; then
5858     as_fn_error "cannot find neither zip nor jar, cannot continue" "$LINENO" 5
5859   else
5860     # InfoZIP available, use the 'guaranteed' Bourne-shell JAR to build libjava
5861     JAR=`pwd`/scripts/jar
5862   fi
5863 fi
5864
5865
5866
5867
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5869 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5870     # Check whether --enable-maintainer-mode was given.
5871 if test "${enable_maintainer_mode+set}" = set; then :
5872   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5873 else
5874   USE_MAINTAINER_MODE=no
5875 fi
5876
5877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5878 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5879    if test $USE_MAINTAINER_MODE = yes; then
5880   MAINTAINER_MODE_TRUE=
5881   MAINTAINER_MODE_FALSE='#'
5882 else
5883   MAINTAINER_MODE_TRUE='#'
5884   MAINTAINER_MODE_FALSE=
5885 fi
5886
5887   MAINT=$MAINTAINER_MODE_TRUE
5888
5889
5890
5891
5892
5893 # configure.host sets the following important variables
5894 #       libgcj_cflags    - host specific C compiler flags
5895 #       libgcj_cxxflags  - host specific C++ compiler flags
5896 #       libgcj_javaflags - host specific Java compiler flags
5897 #       libgcj_sublib_ltflags - host specific Libtool flags
5898 #       libgcj_sublib_core_extra_deps - host specific extra
5899 #                          dependencies for core sublib
5900 #       (these last two only used when building sublibs)
5901 # and a number of others; see the list at the start of the file.
5902
5903 libgcj_cflags=
5904 libgcj_cxxflags=
5905 libgcj_javaflags=
5906 libgcj_sublib_ltflags=
5907 libgcj_sublib_core_extra_deps=
5908
5909 . ${srcdir}/configure.host
5910
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5912 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5913 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
5914   $as_echo_n "(cached) " >&6
5915 else
5916   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5917 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
5918   acl_cv_prog_gnu_ld=yes
5919 else
5920   acl_cv_prog_gnu_ld=no
5921 fi
5922 fi
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5924 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5925 with_gnu_ld=$acl_cv_prog_gnu_ld
5926
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the GNU linker ($LD) supports -Bsymbolic-functions" >&5
5928 $as_echo_n "checking if the GNU linker ($LD) supports -Bsymbolic-functions... " >&6; }
5929 if test "${acl_cv_prog_gnu_ld_symbolic+set}" = set; then :
5930   $as_echo_n "(cached) " >&6
5931 else
5932
5933 acl_cv_prog_gnu_ld_symbolic=no
5934
5935 if test x"$with_gnu_ld" = x"yes"; then
5936   if $LD --help 2>&1 </dev/null | grep Bsymbolic-functions 1>&5; then
5937     acl_cv_prog_gnu_ld_symbolic=yes
5938   fi
5939 fi
5940 fi
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld_symbolic" >&5
5942 $as_echo "$acl_cv_prog_gnu_ld_symbolic" >&6; }
5943 if test x"$acl_cv_prog_gnu_ld_symbolic" = x"yes"; then
5944   SYMBOLIC_LDFLAGS="-Wl,-Bsymbolic-functions"
5945 else
5946   SYMBOLIC_LDFLAGS=''
5947 fi
5948
5949 libgcj_ld_symbolic_functions=$SYMBOLIC_LDFLAGS
5950 if test -z "$libgcj_ld_symbolic"; then
5951   libgcj_ld_symbolic=$SYMBOLIC_LDFLAGS
5952 fi
5953
5954 LIBGCJ_CFLAGS="${libgcj_cflags}"
5955 LIBGCJ_CXXFLAGS="${libgcj_cxxflags}"
5956 LIBGCJ_JAVAFLAGS="${libgcj_javaflags}"
5957 LIBGCJ_SUBLIB_LTFLAGS="${libgcj_sublib_ltflags}"
5958 LIBGCJ_SUBLIB_CORE_EXTRA_DEPS="${libgcj_sublib_core_extra_deps}"
5959 LIBGCJ_LD_SYMBOLIC="${libgcj_ld_symbolic}"
5960 LIBGCJ_LD_SYMBOLIC_FUNCTIONS="${libgcj_ld_symbolic_functions}"
5961
5962
5963
5964
5965
5966
5967
5968
5969 # Only use libltdl for non-newlib builds.
5970 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
5971    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
5972 $as_echo_n "checking dynamic linker characteristics... " >&6; }
5973 library_names_spec=
5974 libname_spec='lib$name'
5975 soname_spec=
5976 shrext=".so"
5977 postinstall_cmds=
5978 postuninstall_cmds=
5979 finish_cmds=
5980 finish_eval=
5981 shlibpath_var=
5982 shlibpath_overrides_runpath=unknown
5983 version_type=none
5984 dynamic_linker="$host_os ld.so"
5985 sys_lib_dlsearch_path_spec="/lib /usr/lib"
5986 if test "$GCC" = yes; then
5987   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
5988   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
5989     # if the path contains ";" then we assume it to be the separator
5990     # otherwise default to the standard path separator (i.e. ":") - it is
5991     # assumed that no part of a normal pathname contains ";" but that should
5992     # okay in the real world where ";" in dirpaths is itself problematic.
5993     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
5994   else
5995     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
5996   fi
5997 else
5998   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
5999 fi
6000 need_lib_prefix=unknown
6001 hardcode_into_libs=no
6002
6003 # when you set need_version to no, make sure it does not cause -set_version
6004 # flags to be left without arguments
6005 need_version=unknown
6006
6007 case $host_os in
6008 aix3*)
6009   version_type=linux
6010   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
6011   shlibpath_var=LIBPATH
6012
6013   # AIX 3 has no versioning support, so we append a major version to the name.
6014   soname_spec='${libname}${release}${shared_ext}$major'
6015   ;;
6016
6017 aix[4-9]*)
6018   version_type=linux
6019   need_lib_prefix=no
6020   need_version=no
6021   hardcode_into_libs=yes
6022   if test "$host_cpu" = ia64; then
6023     # AIX 5 supports IA64
6024     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
6025     shlibpath_var=LD_LIBRARY_PATH
6026   else
6027     # With GCC up to 2.95.x, collect2 would create an import file
6028     # for dependence libraries.  The import file would start with
6029     # the line `#! .'.  This would cause the generated library to
6030     # depend on `.', always an invalid library.  This was fixed in
6031     # development snapshots of GCC prior to 3.0.
6032     case $host_os in
6033       aix4 | aix4.[01] | aix4.[01].*)
6034       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
6035            echo ' yes '
6036            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
6037         :
6038       else
6039         can_build_shared=no
6040       fi
6041       ;;
6042     esac
6043     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
6044     # soname into executable. Probably we can add versioning support to
6045     # collect2, so additional links can be useful in future.
6046     if test "$aix_use_runtimelinking" = yes; then
6047       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
6048       # instead of lib<name>.a to let people know that these are not
6049       # typical AIX shared libraries.
6050       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6051     else
6052       # We preserve .a as extension for shared libraries through AIX4.2
6053       # and later when we are not doing run time linking.
6054       library_names_spec='${libname}${release}.a $libname.a'
6055       soname_spec='${libname}${release}${shared_ext}$major'
6056     fi
6057     shlibpath_var=LIBPATH
6058   fi
6059   ;;
6060
6061 amigaos*)
6062   library_names_spec='$libname.ixlibrary $libname.a'
6063   # Create ${libname}_ixlibrary.a entries in /sys/libs.
6064   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'
6065   ;;
6066
6067 beos*)
6068   library_names_spec='${libname}${shared_ext}'
6069   dynamic_linker="$host_os ld.so"
6070   shlibpath_var=LIBRARY_PATH
6071   ;;
6072
6073 bsdi4*)
6074   version_type=linux
6075   need_version=no
6076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6077   soname_spec='${libname}${release}${shared_ext}$major'
6078   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
6079   shlibpath_var=LD_LIBRARY_PATH
6080   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
6081   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
6082   # the default ld.so.conf also contains /usr/contrib/lib and
6083   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
6084   # libtool to hard-code these into programs
6085   ;;
6086
6087 cygwin* | mingw* | pw32*)
6088   version_type=windows
6089   shrext=".dll"
6090   need_version=no
6091   need_lib_prefix=no
6092
6093   case $GCC,$host_os in
6094   yes,cygwin* | yes,mingw* | yes,pw32*)
6095     library_names_spec='$libname.dll.a'
6096     # DLL is installed to $(libdir)/../bin by postinstall_cmds
6097     postinstall_cmds='base_file=`basename \${file}`~
6098       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
6099       dldir=$destdir/`dirname \$dlpath`~
6100       test -d \$dldir || mkdir -p \$dldir~
6101       $install_prog $dir/$dlname \$dldir/$dlname'
6102     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
6103       dlpath=$dir/\$dldll~
6104        $rm \$dlpath'
6105     shlibpath_overrides_runpath=yes
6106
6107     case $host_os in
6108     cygwin*)
6109       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
6110       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6111       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
6112       ;;
6113     mingw*)
6114       # MinGW DLLs use traditional 'lib' prefix
6115       soname_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext}'
6116       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g"`
6117       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
6118         # It is most probably a Windows format PATH printed by
6119         # mingw gcc, but we are running on Cygwin. Gcc prints its search
6120         # path with ; separators, and with drive letters. We can handle the
6121         # drive letters (cygwin fileutils understands them), so leave them,
6122         # especially as we might pass files found there to a mingw objdump,
6123         # which wouldn't understand a cygwinified path. Ahh.
6124         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e 's/;/ /g'`
6125       else
6126         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | sed -e "s/$PATH_SEPARATOR/ /g"`
6127       fi
6128       ;;
6129     pw32*)
6130       # pw32 DLLs use 'pw' prefix rather than 'lib'
6131       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}${shared_ext}'
6132       ;;
6133     esac
6134     ;;
6135
6136   *)
6137     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
6138     ;;
6139   esac
6140   dynamic_linker='Win32 ld.exe'
6141   # FIXME: first we should search . and the directory the executable is in
6142   shlibpath_var=PATH
6143   ;;
6144
6145 darwin* | rhapsody*)
6146   dynamic_linker="$host_os dyld"
6147   version_type=darwin
6148   need_lib_prefix=no
6149   need_version=no
6150   # FIXME: Relying on posixy $() will cause problems for
6151   #        cross-compilation, but unfortunately the echo tests do not
6152   #        yet detect zsh echo's removal of \ escapes.
6153   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
6154   soname_spec='${libname}${release}${major}$shared_ext'
6155   shlibpath_overrides_runpath=yes
6156   shlibpath_var=DYLD_LIBRARY_PATH
6157   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
6158   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
6159   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
6160   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"`
6161   fi
6162   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
6163   ;;
6164
6165 dgux*)
6166   version_type=linux
6167   need_lib_prefix=no
6168   need_version=no
6169   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
6170   soname_spec='${libname}${release}${shared_ext}$major'
6171   shlibpath_var=LD_LIBRARY_PATH
6172   ;;
6173
6174 freebsd1*)
6175   dynamic_linker=no
6176   ;;
6177
6178 freebsd*)
6179   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
6180   version_type=freebsd-$objformat
6181   case $version_type in
6182     freebsd-elf*)
6183       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
6184       need_version=no
6185       need_lib_prefix=no
6186       ;;
6187     freebsd-*)
6188       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
6189       need_version=yes
6190       ;;
6191   esac
6192   shlibpath_var=LD_LIBRARY_PATH
6193   case $host_os in
6194   freebsd2*)
6195     shlibpath_overrides_runpath=yes
6196     ;;
6197   freebsd3.01* | freebsdelf3.01*)
6198     shlibpath_overrides_runpath=yes
6199     hardcode_into_libs=yes
6200     ;;
6201   *) # from 3.2 on
6202     shlibpath_overrides_runpath=no
6203     hardcode_into_libs=yes
6204     ;;
6205   esac
6206   ;;
6207
6208 gnu*)
6209   version_type=linux
6210   need_lib_prefix=no
6211   need_version=no
6212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
6213   soname_spec='${libname}${release}${shared_ext}$major'
6214   shlibpath_var=LD_LIBRARY_PATH
6215   hardcode_into_libs=yes
6216   ;;
6217
6218 hpux9* | hpux10* | hpux11*)
6219   # Give a soname corresponding to the major version so that dld.sl refuses to
6220   # link against other versions.
6221   version_type=sunos
6222   need_lib_prefix=no
6223   need_version=no
6224   case "$host_cpu" in
6225   ia64*)
6226     shrext='.so'
6227     hardcode_into_libs=yes
6228     dynamic_linker="$host_os dld.so"
6229     shlibpath_var=LD_LIBRARY_PATH
6230     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6232     soname_spec='${libname}${release}${shared_ext}$major'
6233     if test "X$HPUX_IA64_MODE" = X32; then
6234       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
6235     else
6236       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
6237     fi
6238     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6239     ;;
6240    hppa*64*)
6241      shrext='.sl'
6242      hardcode_into_libs=yes
6243      dynamic_linker="$host_os dld.sl"
6244      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
6245      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
6246      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6247      soname_spec='${libname}${release}${shared_ext}$major'
6248      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
6249      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
6250      ;;
6251    *)
6252     shrext='.sl'
6253     dynamic_linker="$host_os dld.sl"
6254     shlibpath_var=SHLIB_PATH
6255     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
6256     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6257     soname_spec='${libname}${release}${shared_ext}$major'
6258     ;;
6259   esac
6260   # HP-UX runs *really* slowly unless shared libraries are mode 555.
6261   postinstall_cmds='chmod 555 $lib'
6262   ;;
6263
6264 irix5* | irix6* | nonstopux*)
6265   case $host_os in
6266     nonstopux*) version_type=nonstopux ;;
6267     *)
6268         if test "$lt_cv_prog_gnu_ld" = yes; then
6269                 version_type=linux
6270         else
6271                 version_type=irix
6272         fi ;;
6273   esac
6274   need_lib_prefix=no
6275   need_version=no
6276   soname_spec='${libname}${release}${shared_ext}$major'
6277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
6278   case $host_os in
6279   irix5* | nonstopux*)
6280     libsuff= shlibsuff=
6281     ;;
6282   *)
6283     case $LD in # libtool.m4 will add one of these switches to LD
6284     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
6285       libsuff= shlibsuff= libmagic=32-bit;;
6286     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
6287       libsuff=32 shlibsuff=N32 libmagic=N32;;
6288     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
6289       libsuff=64 shlibsuff=64 libmagic=64-bit;;
6290     *) libsuff= shlibsuff= libmagic=never-match;;
6291     esac
6292     ;;
6293   esac
6294   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
6295   shlibpath_overrides_runpath=no
6296   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
6297   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
6298   hardcode_into_libs=yes
6299   ;;
6300
6301 # No shared lib support for Linux oldld, aout, or coff.
6302 linux*oldld* | linux*aout* | linux*coff*)
6303   dynamic_linker=no
6304   ;;
6305
6306 # This must be Linux ELF.
6307 linux*|k*bsd*-gnu)
6308   version_type=linux
6309   need_lib_prefix=no
6310   need_version=no
6311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6312   soname_spec='${libname}${release}${shared_ext}$major'
6313   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
6314   shlibpath_var=LD_LIBRARY_PATH
6315   shlibpath_overrides_runpath=no
6316   # This implies no fast_install, which is unacceptable.
6317   # Some rework will be needed to allow for fast_install
6318   # before this can be enabled.
6319   hardcode_into_libs=yes
6320
6321   # We used to test for /lib/ld.so.1 and disable shared libraries on
6322   # powerpc, because MkLinux only supported shared libraries with the
6323   # GNU dynamic linker.  Since this was broken with cross compilers,
6324   # most powerpc-linux boxes support dynamic linking these days and
6325   # people can always --disable-shared, the test was removed, and we
6326   # assume the GNU/Linux dynamic linker is in use.
6327   dynamic_linker='GNU/Linux ld.so'
6328   ;;
6329
6330 netbsd*)
6331   version_type=sunos
6332   need_lib_prefix=no
6333   need_version=no
6334   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6335     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6336     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6337     dynamic_linker='NetBSD (a.out) ld.so'
6338   else
6339     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
6340     soname_spec='${libname}${release}${shared_ext}$major'
6341     dynamic_linker='NetBSD ld.elf_so'
6342   fi
6343   shlibpath_var=LD_LIBRARY_PATH
6344   shlibpath_overrides_runpath=yes
6345   hardcode_into_libs=yes
6346   ;;
6347
6348 newsos6)
6349   version_type=linux
6350   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6351   shlibpath_var=LD_LIBRARY_PATH
6352   shlibpath_overrides_runpath=yes
6353   ;;
6354
6355 nto-qnx)
6356   version_type=linux
6357   need_lib_prefix=no
6358   need_version=no
6359   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6360   soname_spec='${libname}${release}${shared_ext}$major'
6361   shlibpath_var=LD_LIBRARY_PATH
6362   shlibpath_overrides_runpath=yes
6363   ;;
6364
6365 openbsd*)
6366   version_type=sunos
6367   need_lib_prefix=no
6368   need_version=no
6369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6370   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
6371   shlibpath_var=LD_LIBRARY_PATH
6372   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6373     case $host_os in
6374       openbsd2.[89] | openbsd2.[89].*)
6375         shlibpath_overrides_runpath=no
6376         ;;
6377       *)
6378         shlibpath_overrides_runpath=yes
6379         ;;
6380       esac
6381   else
6382     shlibpath_overrides_runpath=yes
6383   fi
6384   ;;
6385
6386 os2*)
6387   libname_spec='$name'
6388   shrext=".dll"
6389   need_lib_prefix=no
6390   library_names_spec='$libname${shared_ext} $libname.a'
6391   dynamic_linker='OS/2 ld.exe'
6392   shlibpath_var=LIBPATH
6393   ;;
6394
6395 osf3* | osf4* | osf5*)
6396   version_type=osf
6397   need_lib_prefix=no
6398   need_version=no
6399   soname_spec='${libname}${release}${shared_ext}$major'
6400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6401   shlibpath_var=LD_LIBRARY_PATH
6402   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
6403   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
6404   ;;
6405
6406 sco3.2v5*)
6407   version_type=osf
6408   soname_spec='${libname}${release}${shared_ext}$major'
6409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6410   shlibpath_var=LD_LIBRARY_PATH
6411   ;;
6412
6413 solaris*)
6414   version_type=linux
6415   need_lib_prefix=no
6416   need_version=no
6417   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6418   soname_spec='${libname}${release}${shared_ext}$major'
6419   shlibpath_var=LD_LIBRARY_PATH
6420   shlibpath_overrides_runpath=yes
6421   hardcode_into_libs=yes
6422   # ldd complains unless libraries are executable
6423   postinstall_cmds='chmod +x $lib'
6424   ;;
6425
6426 sunos4*)
6427   version_type=sunos
6428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
6429   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
6430   shlibpath_var=LD_LIBRARY_PATH
6431   shlibpath_overrides_runpath=yes
6432   if test "$with_gnu_ld" = yes; then
6433     need_lib_prefix=no
6434   fi
6435   need_version=yes
6436   ;;
6437
6438 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6439   version_type=linux
6440   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6441   soname_spec='${libname}${release}${shared_ext}$major'
6442   shlibpath_var=LD_LIBRARY_PATH
6443   case $host_vendor in
6444     sni)
6445       shlibpath_overrides_runpath=no
6446       need_lib_prefix=no
6447       export_dynamic_flag_spec='${wl}-Blargedynsym'
6448       runpath_var=LD_RUN_PATH
6449       ;;
6450     siemens)
6451       need_lib_prefix=no
6452       ;;
6453     motorola)
6454       need_lib_prefix=no
6455       need_version=no
6456       shlibpath_overrides_runpath=no
6457       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
6458       ;;
6459   esac
6460   ;;
6461
6462 sysv4*MP*)
6463   if test -d /usr/nec ;then
6464     version_type=linux
6465     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
6466     soname_spec='$libname${shared_ext}.$major'
6467     shlibpath_var=LD_LIBRARY_PATH
6468   fi
6469   ;;
6470
6471 uts4*)
6472   version_type=linux
6473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
6474   soname_spec='${libname}${release}${shared_ext}$major'
6475   shlibpath_var=LD_LIBRARY_PATH
6476   ;;
6477
6478 *)
6479   dynamic_linker=no
6480   ;;
6481 esac
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
6483 $as_echo "$dynamic_linker" >&6; }
6484 test "$dynamic_linker" = no && can_build_shared=no
6485
6486
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
6488 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
6489 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
6490   $as_echo_n "(cached) " >&6
6491 else
6492   libltdl_cv_shlibpath_var="$shlibpath_var"
6493 fi
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
6495 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
6496 if test -n "$libltdl_cv_shlibpath_var"; then
6497
6498 cat >>confdefs.h <<_ACEOF
6499 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
6500 _ACEOF
6501
6502 fi
6503
6504 fi
6505
6506 ac_config_headers="$ac_config_headers include/config.h gcj/libgcj-config.h"
6507
6508
6509 # Possibly build libgcj as many sub-libraries.
6510 # Check whether --enable-libgcj-sublibs was given.
6511 if test "${enable_libgcj_sublibs+set}" = set; then :
6512   enableval=$enable_libgcj_sublibs;
6513 fi
6514
6515
6516 if test -z "$enable_libgcj_sublibs"; then
6517    enable_libgcj_sublibs=$enable_libgcj_sublibs_default
6518 fi
6519  if test "$enable_libgcj_sublibs" = yes; then
6520   BUILD_SUBLIBS_TRUE=
6521   BUILD_SUBLIBS_FALSE='#'
6522 else
6523   BUILD_SUBLIBS_TRUE='#'
6524   BUILD_SUBLIBS_FALSE=
6525 fi
6526
6527 if test "$enable_libgcj_sublibs" = yes ; then
6528   # In theory we could make do with only one override and simply
6529   # tag "_bc" onto the end of it when we use it to generate the
6530   # spec, but that's an ugly thing to do when there are multiple
6531   # words in the string and you're relying on the ordering to
6532   # append the correct one.
6533   libgcj_spec_lgcj_override="-lgcj-noncore -lgcj"
6534   libgcj_spec_lgcj_bc_override="-lgcj-noncore -lgcj_bc"
6535 fi
6536
6537
6538 # See if the user has requested runtime debugging.
6539 LIBGCJDEBUG="disable"
6540
6541 # Check whether --enable-libgcj-debug was given.
6542 if test "${enable_libgcj_debug+set}" = set; then :
6543   enableval=$enable_libgcj_debug; if test "$enable_libgcj_debug" = yes; then
6544
6545 $as_echo "#define __GCJ_DEBUG 1" >>confdefs.h
6546
6547     LIBGCJDEBUG="enable"
6548   fi
6549 fi
6550
6551
6552
6553 # Check whether --with-escher was given.
6554 if test "${with_escher+set}" = set; then :
6555   withval=$with_escher;
6556 fi
6557
6558 case "$with_escher" in
6559 "")
6560         use_escher=false
6561         ;;
6562 "no")
6563         use_escher=false
6564         ;;
6565 "yes")
6566         as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
6567         ;;
6568 *)
6569         use_escher=true
6570         ;;
6571 esac
6572
6573 # Determine which AWT peer libraries to build
6574 # Check whether --enable-java-awt was given.
6575 if test "${enable_java_awt+set}" = set; then :
6576   enableval=$enable_java_awt;
6577 fi
6578
6579
6580 peerlibs="`echo ${enable_java_awt} | tr ',' ' '`"
6581 use_xlib_awt=""
6582 use_gtk_awt=""
6583 use_qt_awt=""
6584 use_x_awt=""
6585 # The default toolkit to use is the first one specified.
6586 TOOLKIT=
6587
6588
6589 for peer in $peerlibs ; do
6590   case $peer in
6591     xlib)
6592       if test "$no_x" = yes; then
6593         echo "*** xlib peers requested but no X library available" 1>&2
6594         exit 1
6595       else
6596         use_xlib_awt="yes"
6597         if test -z "$TOOLKIT"; then
6598            TOOLKIT=gnu.awt.xlib.XToolkit
6599         fi
6600       fi
6601       ;;
6602     gtk)
6603       if test "$no_x" = yes; then
6604          echo "*** gtk peers requested but no X library available" 1>&2
6605          exit 1
6606       else
6607          use_gtk_awt=yes
6608          if test -z "$TOOLKIT"; then
6609             TOOLKIT=gnu.java.awt.peer.gtk.GtkToolkit
6610          fi
6611       fi
6612       ;;
6613     qt)
6614       if test "$no_x" = yes; then
6615          # Perhaps we should admit the possibility of embedded Qt.
6616          echo "*** Qt peers requested but no X library available" 1>&2
6617          exit 1
6618       else
6619          use_qt_awt=yes
6620          if test -z "$TOOLKIT"; then
6621             TOOLKIT=gnu.java.awt.peer.qt.QtToolkit
6622          fi
6623       fi
6624       ;;
6625     x)
6626       use_x_awt=yes
6627       if test -z "$TOOLKIT"; then
6628          TOOLKIT=gnu.java.awt.peer.x.XToolkit
6629       fi
6630       ;;
6631     no)
6632       use_xlib_awt=
6633       use_gtk_awt=
6634       use_qt_awt=
6635       use_x_awt=
6636       break
6637       ;;
6638     *)
6639       echo "*** unrecognised argument \"${peer}\" for --enable-java-awt" 1>&2
6640       exit 1
6641   esac
6642 done
6643
6644  if test "$use_xlib_awt" = yes; then
6645   XLIB_AWT_TRUE=
6646   XLIB_AWT_FALSE='#'
6647 else
6648   XLIB_AWT_TRUE='#'
6649   XLIB_AWT_FALSE=
6650 fi
6651
6652  if test "$use_x_awt" = yes; then
6653   X_AWT_TRUE=
6654   X_AWT_FALSE='#'
6655 else
6656   X_AWT_TRUE='#'
6657   X_AWT_FALSE=
6658 fi
6659
6660
6661
6662 cat >>confdefs.h <<_ACEOF
6663 #define AWT_TOOLKIT "$TOOLKIT"
6664 _ACEOF
6665
6666
6667 expanded_prefix=$prefix
6668 if test "X$prefix" = XNONE; then
6669   expanded_prefix=${ac_default_prefix}
6670 fi
6671
6672
6673 cat >>confdefs.h <<_ACEOF
6674 #define LIBGCJ_PREFIX "$expanded_prefix"
6675 _ACEOF
6676
6677
6678 # Create standard.omit based on decisions we just made.
6679 cp $srcdir/standard.omit.in standard.omit
6680 if test "$use_xlib_awt" != yes; then
6681    echo gnu/awt/xlib >> standard.omit
6682    echo gnu/gcj/xlib >> standard.omit
6683 fi
6684 if test "$use_x_awt" != yes; then
6685    echo gnu/java/awt/peer/x >> standard.omit
6686 fi
6687
6688 # Tools that need to be compiled against classpath's tools classes
6689 : > vm-tools-packages
6690 for package in gnu/gcj/tools/gc_analyze ; do
6691     echo $package >> standard.omit
6692     echo $package >> vm-tools-packages
6693 done
6694
6695 if test -z "${with_multisubdir}"; then
6696    builddotdot=.
6697 else
6698    builddotdot=`echo ${with_multisubdir} | sed -e 's:[^/][^/]*:..:g'`
6699 fi
6700
6701 NATIVE=yes
6702
6703 # Which gcj and host gcj (for ecjx) do we use?
6704 which_gcj=default
6705 host_exeext=${ac_exeext}
6706 GCJ_FOR_ECJX=
6707 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
6708 if test -n "${with_cross_host}"; then
6709   # We are being configured with a cross compiler. We can't
6710   # use ac_exeext, because that is for the target platform.
6711   NATIVE=no
6712   cross_host_exeext=
6713   GCJ_FOR_ECJX="${with_cross_host}-gcj"
6714   case "${with_cross_host}" in
6715      *mingw* | *cygwin*)
6716          cross_host_exeext=.exe
6717      ;;
6718   esac
6719   host_exeext=${cross_host_exeext}
6720   if test -x "${built_gcc_dir}/gcj${cross_host_exeext}"; then
6721      if test x"$build_noncanonical" = x"$with_cross_host"; then
6722         # Ordinary cross (host!=target and host=build)
6723         which_gcj=built
6724      else
6725         # Canadian cross (host!=target and host!=build)
6726         which_gcj=cross
6727      fi
6728   else
6729      which_gcj=cross
6730   fi
6731 else
6732   # We are being configured with a native or crossed-native compiler
6733   if test -x "${built_gcc_dir}/gcj${ac_exeext}"; then
6734      if test x"$build" = x"$host"; then
6735         # True native build (host=target and host=build)
6736         which_gcj=built
6737      else
6738         # Crossed-native build (host=target and host!=build)
6739         which_gcj=cross
6740      fi
6741   else
6742      which_gcj=path
6743   fi
6744 fi
6745 libgcjdir=`${PWDCMD-pwd}`
6746 case $GCJ in
6747 *" -B"*)
6748   # Just in case there is a comma in the build dir, quote it for the
6749   # sed command below.
6750   case $libgcjdir in
6751   *[,\\]*) qlibgcjdir=`echo "$libgcjdir" | sed 's:[,\\]:\\&:g'`;;
6752   *) qlibgcjdir=$libgcjdir;;
6753   esac
6754   GCJ=`echo "$GCJ" | sed "s, -B, -B$qlibgcjdir/&,"`
6755   ;;
6756 *)
6757   GCJ=$GCJ" -B$libgcjdir/"
6758   ;;
6759 esac
6760 case "${which_gcj}" in
6761    built)
6762       GCJH='$(top_builddir)/$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
6763    ;;
6764    cross)
6765       if test "x${with_newlib}" = "xyes"; then
6766          # FIXME (comment): Why is this needed?
6767          GCC_UNWIND_INCLUDE=
6768       fi
6769       GCJH='$(target_noncanonical)-gcjh'
6770    ;;
6771    path)
6772       GCJH=gcjh
6773    ;;
6774 esac
6775 JAVAC="$GCJ -C"
6776 export JAVAC
6777
6778
6779
6780
6781
6782 # Create it, so that compile/link tests don't fail
6783 test -f libgcj.spec || touch libgcj.spec
6784
6785
6786
6787 # Set up to configure Classpath.
6788 # FIXME: no supported way to pass args in autoconf.
6789 # Disable tool wrappers to avoid ltdl.h configure check.
6790 ac_configure_args="$ac_configure_args --disable-tool-wrappers"
6791 ac_configure_args="$ac_configure_args --disable-load-library"
6792 ac_configure_args="$ac_configure_args --${LIBGCJDEBUG}-debug"
6793 ac_configure_args="$ac_configure_args --enable-default-toolkit=$TOOLKIT"
6794 dir1=`cd $srcdir && pwd`
6795 dir2=`pwd`
6796 ac_configure_args="$ac_configure_args --with-vm-classes=$dir1:$dir2"
6797 ac_configure_args="$ac_configure_args --disable-core-jni"
6798 ac_configure_args="$ac_configure_args --disable-examples"
6799 ac_configure_args="$ac_configure_args --with-glibj=build"
6800 if test "$browser_plugin_enabled" != yes; then
6801   ac_configure_args="$ac_configure_args --disable-plugin"
6802 else
6803   ac_configure_args="$ac_configure_args --enable-plugin"
6804 fi
6805 if test "$gconf_enabled" != yes; then
6806   ac_configure_args="$ac_configure_args --disable-gconf-peer"
6807   ac_configure_args="$ac_configure_args --enable-default-preferences-peer=gnu.java.util.prefs.FileBasedFactory"
6808 fi
6809 if test "$use_gtk_awt" != yes; then
6810   ac_configure_args="$ac_configure_args --disable-gtk-peer --disable-plugin"
6811 fi
6812 if test "$use_qt_awt" != yes; then
6813   ac_configure_args="$ac_configure_args --disable-qt-peer"
6814 else
6815   # We need this as qt is disabled by default in classpath.
6816   ac_configure_args="$ac_configure_args --enable-qt-peer"
6817 fi
6818 if test "$use_x_awt" != yes; then
6819   ac_configure_args="$ac_configure_args --without-escher"
6820 else
6821   # We need this as escher is disabled by default in classpath.
6822   if test "$use_escher" != true; then
6823     as_fn_error "Please supply an absolute path to the Escher library" "$LINENO" 5
6824   else
6825     ac_configure_args="$ac_configure_args --with-escher=$with_escher"
6826   fi
6827 fi
6828 if test "x$BUILD_GJDOC" = xno; then
6829   ac_configure_args="$ac_configure_args --disable-gjdoc"
6830 fi
6831 # -Werror causes unavoidable problems in code using alsa.
6832 ac_configure_args="$ac_configure_args --disable-regen-headers"
6833 ac_configure_args="$ac_configure_args --disable-Werror"
6834
6835 # Only use libltdl for non-newlib builds.
6836 if test "x${with_newlib}" = "x" || test "x${with_newlib}" = "xno"; then
6837      case $enable_ltdl_convenience in
6838   no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
6839   "") enable_ltdl_convenience=yes
6840       ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
6841   esac
6842   LIBLTDL='${top_builddir}/''libltdl'/libltdlc.la
6843   LTDLINCL='-I${top_srcdir}/''libltdl'
6844   # For backwards non-gettext consistent compatibility...
6845   INCLTDL="$LTDLINCL"
6846
6847    enable_dlopen=yes
6848
6849
6850
6851    DIRLTDL=libltdl
6852
6853 $as_echo "#define USE_LTDL 1" >>confdefs.h
6854
6855    # Sigh.  Libtool's macro doesn't do the right thing.
6856    INCLTDL="-I\$(top_srcdir)/libltdl $INCLTDL"
6857    # FIXME: this is a hack.
6858    sub_auxdir="`cd $ac_aux_dir && ${PWDCMD-pwd}`"
6859    ac_configure_args="$ac_configure_args --with-auxdir=$sub_auxdir"
6860 fi
6861
6862
6863
6864 case `pwd` in
6865   *\ * | *\     *)
6866     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6867 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6868 esac
6869
6870
6871
6872 macro_version='2.2.7a'
6873 macro_revision='1.3134'
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887 ltmain="$ac_aux_dir/ltmain.sh"
6888
6889 # Backslashify metacharacters that are still active within
6890 # double-quoted strings.
6891 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6892
6893 # Same as above, but do not quote variable references.
6894 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6895
6896 # Sed substitution to delay expansion of an escaped shell variable in a
6897 # double_quote_subst'ed string.
6898 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6899
6900 # Sed substitution to delay expansion of an escaped single quote.
6901 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6902
6903 # Sed substitution to avoid accidental globbing in evaled expressions
6904 no_glob_subst='s/\*/\\\*/g'
6905
6906 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6907 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6908 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6909
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6911 $as_echo_n "checking how to print strings... " >&6; }
6912 # Test print first, because it will be a builtin if present.
6913 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6914    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6915   ECHO='print -r --'
6916 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6917   ECHO='printf %s\n'
6918 else
6919   # Use this function as a fallback that always works.
6920   func_fallback_echo ()
6921   {
6922     eval 'cat <<_LTECHO_EOF
6923 $1
6924 _LTECHO_EOF'
6925   }
6926   ECHO='func_fallback_echo'
6927 fi
6928
6929 # func_echo_all arg...
6930 # Invoke $ECHO with all args, space-separated.
6931 func_echo_all ()
6932 {
6933     $ECHO ""
6934 }
6935
6936 case "$ECHO" in
6937   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6938 $as_echo "printf" >&6; } ;;
6939   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6940 $as_echo "print -r" >&6; } ;;
6941   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6942 $as_echo "cat" >&6; } ;;
6943 esac
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6959 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6960 if test "${ac_cv_path_SED+set}" = set; then :
6961   $as_echo_n "(cached) " >&6
6962 else
6963             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6964      for ac_i in 1 2 3 4 5 6 7; do
6965        ac_script="$ac_script$as_nl$ac_script"
6966      done
6967      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6968      { ac_script=; unset ac_script;}
6969      if test -z "$SED"; then
6970   ac_path_SED_found=false
6971   # Loop through the user's path and test for each of PROGNAME-LIST
6972   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6973 for as_dir in $PATH
6974 do
6975   IFS=$as_save_IFS
6976   test -z "$as_dir" && as_dir=.
6977     for ac_prog in sed gsed; do
6978     for ac_exec_ext in '' $ac_executable_extensions; do
6979       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6980       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6981 # Check for GNU ac_path_SED and select it if it is found.
6982   # Check for GNU $ac_path_SED
6983 case `"$ac_path_SED" --version 2>&1` in
6984 *GNU*)
6985   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6986 *)
6987   ac_count=0
6988   $as_echo_n 0123456789 >"conftest.in"
6989   while :
6990   do
6991     cat "conftest.in" "conftest.in" >"conftest.tmp"
6992     mv "conftest.tmp" "conftest.in"
6993     cp "conftest.in" "conftest.nl"
6994     $as_echo '' >> "conftest.nl"
6995     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6996     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6997     as_fn_arith $ac_count + 1 && ac_count=$as_val
6998     if test $ac_count -gt ${ac_path_SED_max-0}; then
6999       # Best one so far, save it but keep looking for a better one
7000       ac_cv_path_SED="$ac_path_SED"
7001       ac_path_SED_max=$ac_count
7002     fi
7003     # 10*(2^10) chars as input seems more than enough
7004     test $ac_count -gt 10 && break
7005   done
7006   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7007 esac
7008
7009       $ac_path_SED_found && break 3
7010     done
7011   done
7012   done
7013 IFS=$as_save_IFS
7014   if test -z "$ac_cv_path_SED"; then
7015     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
7016   fi
7017 else
7018   ac_cv_path_SED=$SED
7019 fi
7020
7021 fi
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7023 $as_echo "$ac_cv_path_SED" >&6; }
7024  SED="$ac_cv_path_SED"
7025   rm -f conftest.sed
7026
7027 test -z "$SED" && SED=sed
7028 Xsed="$SED -e 1s/^X//"
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7041 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
7042 if test "${ac_cv_path_GREP+set}" = set; then :
7043   $as_echo_n "(cached) " >&6
7044 else
7045   if test -z "$GREP"; then
7046   ac_path_GREP_found=false
7047   # Loop through the user's path and test for each of PROGNAME-LIST
7048   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7050 do
7051   IFS=$as_save_IFS
7052   test -z "$as_dir" && as_dir=.
7053     for ac_prog in grep ggrep; do
7054     for ac_exec_ext in '' $ac_executable_extensions; do
7055       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
7056       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
7057 # Check for GNU ac_path_GREP and select it if it is found.
7058   # Check for GNU $ac_path_GREP
7059 case `"$ac_path_GREP" --version 2>&1` in
7060 *GNU*)
7061   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7062 *)
7063   ac_count=0
7064   $as_echo_n 0123456789 >"conftest.in"
7065   while :
7066   do
7067     cat "conftest.in" "conftest.in" >"conftest.tmp"
7068     mv "conftest.tmp" "conftest.in"
7069     cp "conftest.in" "conftest.nl"
7070     $as_echo 'GREP' >> "conftest.nl"
7071     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7072     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7073     as_fn_arith $ac_count + 1 && ac_count=$as_val
7074     if test $ac_count -gt ${ac_path_GREP_max-0}; then
7075       # Best one so far, save it but keep looking for a better one
7076       ac_cv_path_GREP="$ac_path_GREP"
7077       ac_path_GREP_max=$ac_count
7078     fi
7079     # 10*(2^10) chars as input seems more than enough
7080     test $ac_count -gt 10 && break
7081   done
7082   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7083 esac
7084
7085       $ac_path_GREP_found && break 3
7086     done
7087   done
7088   done
7089 IFS=$as_save_IFS
7090   if test -z "$ac_cv_path_GREP"; then
7091     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7092   fi
7093 else
7094   ac_cv_path_GREP=$GREP
7095 fi
7096
7097 fi
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7099 $as_echo "$ac_cv_path_GREP" >&6; }
7100  GREP="$ac_cv_path_GREP"
7101
7102
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7104 $as_echo_n "checking for egrep... " >&6; }
7105 if test "${ac_cv_path_EGREP+set}" = set; then :
7106   $as_echo_n "(cached) " >&6
7107 else
7108   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7109    then ac_cv_path_EGREP="$GREP -E"
7110    else
7111      if test -z "$EGREP"; then
7112   ac_path_EGREP_found=false
7113   # Loop through the user's path and test for each of PROGNAME-LIST
7114   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7115 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7116 do
7117   IFS=$as_save_IFS
7118   test -z "$as_dir" && as_dir=.
7119     for ac_prog in egrep; do
7120     for ac_exec_ext in '' $ac_executable_extensions; do
7121       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
7122       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
7123 # Check for GNU ac_path_EGREP and select it if it is found.
7124   # Check for GNU $ac_path_EGREP
7125 case `"$ac_path_EGREP" --version 2>&1` in
7126 *GNU*)
7127   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7128 *)
7129   ac_count=0
7130   $as_echo_n 0123456789 >"conftest.in"
7131   while :
7132   do
7133     cat "conftest.in" "conftest.in" >"conftest.tmp"
7134     mv "conftest.tmp" "conftest.in"
7135     cp "conftest.in" "conftest.nl"
7136     $as_echo 'EGREP' >> "conftest.nl"
7137     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7138     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7139     as_fn_arith $ac_count + 1 && ac_count=$as_val
7140     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7141       # Best one so far, save it but keep looking for a better one
7142       ac_cv_path_EGREP="$ac_path_EGREP"
7143       ac_path_EGREP_max=$ac_count
7144     fi
7145     # 10*(2^10) chars as input seems more than enough
7146     test $ac_count -gt 10 && break
7147   done
7148   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7149 esac
7150
7151       $ac_path_EGREP_found && break 3
7152     done
7153   done
7154   done
7155 IFS=$as_save_IFS
7156   if test -z "$ac_cv_path_EGREP"; then
7157     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7158   fi
7159 else
7160   ac_cv_path_EGREP=$EGREP
7161 fi
7162
7163    fi
7164 fi
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7166 $as_echo "$ac_cv_path_EGREP" >&6; }
7167  EGREP="$ac_cv_path_EGREP"
7168
7169
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7171 $as_echo_n "checking for fgrep... " >&6; }
7172 if test "${ac_cv_path_FGREP+set}" = set; then :
7173   $as_echo_n "(cached) " >&6
7174 else
7175   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7176    then ac_cv_path_FGREP="$GREP -F"
7177    else
7178      if test -z "$FGREP"; then
7179   ac_path_FGREP_found=false
7180   # Loop through the user's path and test for each of PROGNAME-LIST
7181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7182 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7183 do
7184   IFS=$as_save_IFS
7185   test -z "$as_dir" && as_dir=.
7186     for ac_prog in fgrep; do
7187     for ac_exec_ext in '' $ac_executable_extensions; do
7188       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7189       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
7190 # Check for GNU ac_path_FGREP and select it if it is found.
7191   # Check for GNU $ac_path_FGREP
7192 case `"$ac_path_FGREP" --version 2>&1` in
7193 *GNU*)
7194   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7195 *)
7196   ac_count=0
7197   $as_echo_n 0123456789 >"conftest.in"
7198   while :
7199   do
7200     cat "conftest.in" "conftest.in" >"conftest.tmp"
7201     mv "conftest.tmp" "conftest.in"
7202     cp "conftest.in" "conftest.nl"
7203     $as_echo 'FGREP' >> "conftest.nl"
7204     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7205     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7206     as_fn_arith $ac_count + 1 && ac_count=$as_val
7207     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7208       # Best one so far, save it but keep looking for a better one
7209       ac_cv_path_FGREP="$ac_path_FGREP"
7210       ac_path_FGREP_max=$ac_count
7211     fi
7212     # 10*(2^10) chars as input seems more than enough
7213     test $ac_count -gt 10 && break
7214   done
7215   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7216 esac
7217
7218       $ac_path_FGREP_found && break 3
7219     done
7220   done
7221   done
7222 IFS=$as_save_IFS
7223   if test -z "$ac_cv_path_FGREP"; then
7224     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7225   fi
7226 else
7227   ac_cv_path_FGREP=$FGREP
7228 fi
7229
7230    fi
7231 fi
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7233 $as_echo "$ac_cv_path_FGREP" >&6; }
7234  FGREP="$ac_cv_path_FGREP"
7235
7236
7237 test -z "$GREP" && GREP=grep
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255
7256
7257 # Check whether --with-gnu-ld was given.
7258 if test "${with_gnu_ld+set}" = set; then :
7259   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7260 else
7261   with_gnu_ld=no
7262 fi
7263
7264 ac_prog=ld
7265 if test "$GCC" = yes; then
7266   # Check if gcc -print-prog-name=ld gives a path.
7267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7268 $as_echo_n "checking for ld used by $CC... " >&6; }
7269   case $host in
7270   *-*-mingw*)
7271     # gcc leaves a trailing carriage return which upsets mingw
7272     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7273   *)
7274     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7275   esac
7276   case $ac_prog in
7277     # Accept absolute paths.
7278     [\\/]* | ?:[\\/]*)
7279       re_direlt='/[^/][^/]*/\.\./'
7280       # Canonicalize the pathname of ld
7281       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7282       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7283         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7284       done
7285       test -z "$LD" && LD="$ac_prog"
7286       ;;
7287   "")
7288     # If it fails, then pretend we aren't using GCC.
7289     ac_prog=ld
7290     ;;
7291   *)
7292     # If it is relative, then search for the first ld in PATH.
7293     with_gnu_ld=unknown
7294     ;;
7295   esac
7296 elif test "$with_gnu_ld" = yes; then
7297   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7298 $as_echo_n "checking for GNU ld... " >&6; }
7299 else
7300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7301 $as_echo_n "checking for non-GNU ld... " >&6; }
7302 fi
7303 if test "${lt_cv_path_LD+set}" = set; then :
7304   $as_echo_n "(cached) " >&6
7305 else
7306   if test -z "$LD"; then
7307   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7308   for ac_dir in $PATH; do
7309     IFS="$lt_save_ifs"
7310     test -z "$ac_dir" && ac_dir=.
7311     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7312       lt_cv_path_LD="$ac_dir/$ac_prog"
7313       # Check to see if the program is GNU ld.  I'd rather use --version,
7314       # but apparently some variants of GNU ld only accept -v.
7315       # Break only if it was the GNU/non-GNU ld that we prefer.
7316       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7317       *GNU* | *'with BFD'*)
7318         test "$with_gnu_ld" != no && break
7319         ;;
7320       *)
7321         test "$with_gnu_ld" != yes && break
7322         ;;
7323       esac
7324     fi
7325   done
7326   IFS="$lt_save_ifs"
7327 else
7328   lt_cv_path_LD="$LD" # Let the user override the test with a path.
7329 fi
7330 fi
7331
7332 LD="$lt_cv_path_LD"
7333 if test -n "$LD"; then
7334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7335 $as_echo "$LD" >&6; }
7336 else
7337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7339 fi
7340 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7342 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7343 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
7344   $as_echo_n "(cached) " >&6
7345 else
7346   # I'd rather use --version here, but apparently some GNU lds only accept -v.
7347 case `$LD -v 2>&1 </dev/null` in
7348 *GNU* | *'with BFD'*)
7349   lt_cv_prog_gnu_ld=yes
7350   ;;
7351 *)
7352   lt_cv_prog_gnu_ld=no
7353   ;;
7354 esac
7355 fi
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7357 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7358 with_gnu_ld=$lt_cv_prog_gnu_ld
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7369 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7370 if test "${lt_cv_path_NM+set}" = set; then :
7371   $as_echo_n "(cached) " >&6
7372 else
7373   if test -n "$NM"; then
7374   # Let the user override the test.
7375   lt_cv_path_NM="$NM"
7376 else
7377   lt_nm_to_check="${ac_tool_prefix}nm"
7378   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7379     lt_nm_to_check="$lt_nm_to_check nm"
7380   fi
7381   for lt_tmp_nm in $lt_nm_to_check; do
7382     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7383     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7384       IFS="$lt_save_ifs"
7385       test -z "$ac_dir" && ac_dir=.
7386       tmp_nm="$ac_dir/$lt_tmp_nm"
7387       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
7388         # Check to see if the nm accepts a BSD-compat flag.
7389         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
7390         #   nm: unknown option "B" ignored
7391         # Tru64's nm complains that /dev/null is an invalid object file
7392         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
7393         */dev/null* | *'Invalid file or object type'*)
7394           lt_cv_path_NM="$tmp_nm -B"
7395           break
7396           ;;
7397         *)
7398           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7399           */dev/null*)
7400             lt_cv_path_NM="$tmp_nm -p"
7401             break
7402             ;;
7403           *)
7404             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7405             continue # so that we can try to find one that supports BSD flags
7406             ;;
7407           esac
7408           ;;
7409         esac
7410       fi
7411     done
7412     IFS="$lt_save_ifs"
7413   done
7414   : ${lt_cv_path_NM=no}
7415 fi
7416 fi
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7418 $as_echo "$lt_cv_path_NM" >&6; }
7419 if test "$lt_cv_path_NM" != "no"; then
7420   NM="$lt_cv_path_NM"
7421 else
7422   # Didn't find any BSD compatible name lister, look for dumpbin.
7423   if test -n "$DUMPBIN"; then :
7424     # Let the user override the test.
7425   else
7426     if test -n "$ac_tool_prefix"; then
7427   for ac_prog in dumpbin "link -dump"
7428   do
7429     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
7434   $as_echo_n "(cached) " >&6
7435 else
7436   if test -n "$DUMPBIN"; then
7437   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442   IFS=$as_save_IFS
7443   test -z "$as_dir" && as_dir=.
7444     for ac_exec_ext in '' $ac_executable_extensions; do
7445   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7446     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7447     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448     break 2
7449   fi
7450 done
7451   done
7452 IFS=$as_save_IFS
7453
7454 fi
7455 fi
7456 DUMPBIN=$ac_cv_prog_DUMPBIN
7457 if test -n "$DUMPBIN"; then
7458   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7459 $as_echo "$DUMPBIN" >&6; }
7460 else
7461   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464
7465
7466     test -n "$DUMPBIN" && break
7467   done
7468 fi
7469 if test -z "$DUMPBIN"; then
7470   ac_ct_DUMPBIN=$DUMPBIN
7471   for ac_prog in dumpbin "link -dump"
7472 do
7473   # Extract the first word of "$ac_prog", so it can be a program name with args.
7474 set dummy $ac_prog; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
7478   $as_echo_n "(cached) " >&6
7479 else
7480   if test -n "$ac_ct_DUMPBIN"; then
7481   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486   IFS=$as_save_IFS
7487   test -z "$as_dir" && as_dir=.
7488     for ac_exec_ext in '' $ac_executable_extensions; do
7489   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7490     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7491     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492     break 2
7493   fi
7494 done
7495   done
7496 IFS=$as_save_IFS
7497
7498 fi
7499 fi
7500 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7501 if test -n "$ac_ct_DUMPBIN"; then
7502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7503 $as_echo "$ac_ct_DUMPBIN" >&6; }
7504 else
7505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7507 fi
7508
7509
7510   test -n "$ac_ct_DUMPBIN" && break
7511 done
7512
7513   if test "x$ac_ct_DUMPBIN" = x; then
7514     DUMPBIN=":"
7515   else
7516     case $cross_compiling:$ac_tool_warned in
7517 yes:)
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7519 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7520 ac_tool_warned=yes ;;
7521 esac
7522     DUMPBIN=$ac_ct_DUMPBIN
7523   fi
7524 fi
7525
7526     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7527     *COFF*)
7528       DUMPBIN="$DUMPBIN -symbols"
7529       ;;
7530     *)
7531       DUMPBIN=:
7532       ;;
7533     esac
7534   fi
7535
7536   if test "$DUMPBIN" != ":"; then
7537     NM="$DUMPBIN"
7538   fi
7539 fi
7540 test -z "$NM" && NM=nm
7541
7542
7543
7544
7545
7546
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7548 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7549 if test "${lt_cv_nm_interface+set}" = set; then :
7550   $as_echo_n "(cached) " >&6
7551 else
7552   lt_cv_nm_interface="BSD nm"
7553   echo "int some_variable = 0;" > conftest.$ac_ext
7554   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7555   (eval "$ac_compile" 2>conftest.err)
7556   cat conftest.err >&5
7557   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7558   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7559   cat conftest.err >&5
7560   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7561   cat conftest.out >&5
7562   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7563     lt_cv_nm_interface="MS dumpbin"
7564   fi
7565   rm -f conftest*
7566 fi
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7568 $as_echo "$lt_cv_nm_interface" >&6; }
7569
7570 # find the maximum length of command line arguments
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7572 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7573 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
7574   $as_echo_n "(cached) " >&6
7575 else
7576     i=0
7577   teststring="ABCD"
7578
7579   case $build_os in
7580   msdosdjgpp*)
7581     # On DJGPP, this test can blow up pretty badly due to problems in libc
7582     # (any single argument exceeding 2000 bytes causes a buffer overrun
7583     # during glob expansion).  Even if it were fixed, the result of this
7584     # check would be larger than it should be.
7585     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7586     ;;
7587
7588   gnu*)
7589     # Under GNU Hurd, this test is not required because there is
7590     # no limit to the length of command line arguments.
7591     # Libtool will interpret -1 as no limit whatsoever
7592     lt_cv_sys_max_cmd_len=-1;
7593     ;;
7594
7595   cygwin* | mingw* | cegcc*)
7596     # On Win9x/ME, this test blows up -- it succeeds, but takes
7597     # about 5 minutes as the teststring grows exponentially.
7598     # Worse, since 9x/ME are not pre-emptively multitasking,
7599     # you end up with a "frozen" computer, even though with patience
7600     # the test eventually succeeds (with a max line length of 256k).
7601     # Instead, let's just punt: use the minimum linelength reported by
7602     # all of the supported platforms: 8192 (on NT/2K/XP).
7603     lt_cv_sys_max_cmd_len=8192;
7604     ;;
7605
7606   mint*)
7607     # On MiNT this can take a long time and run out of memory.
7608     lt_cv_sys_max_cmd_len=8192;
7609     ;;
7610
7611   amigaos*)
7612     # On AmigaOS with pdksh, this test takes hours, literally.
7613     # So we just punt and use a minimum line length of 8192.
7614     lt_cv_sys_max_cmd_len=8192;
7615     ;;
7616
7617   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7618     # This has been around since 386BSD, at least.  Likely further.
7619     if test -x /sbin/sysctl; then
7620       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7621     elif test -x /usr/sbin/sysctl; then
7622       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7623     else
7624       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7625     fi
7626     # And add a safety zone
7627     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7628     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7629     ;;
7630
7631   interix*)
7632     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7633     lt_cv_sys_max_cmd_len=196608
7634     ;;
7635
7636   osf*)
7637     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7638     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7639     # nice to cause kernel panics so lets avoid the loop below.
7640     # First set a reasonable default.
7641     lt_cv_sys_max_cmd_len=16384
7642     #
7643     if test -x /sbin/sysconfig; then
7644       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7645         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7646       esac
7647     fi
7648     ;;
7649   sco3.2v5*)
7650     lt_cv_sys_max_cmd_len=102400
7651     ;;
7652   sysv5* | sco5v6* | sysv4.2uw2*)
7653     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7654     if test -n "$kargmax"; then
7655       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
7656     else
7657       lt_cv_sys_max_cmd_len=32768
7658     fi
7659     ;;
7660   *)
7661     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7662     if test -n "$lt_cv_sys_max_cmd_len"; then
7663       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7664       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7665     else
7666       # Make teststring a little bigger before we do anything with it.
7667       # a 1K string should be a reasonable start.
7668       for i in 1 2 3 4 5 6 7 8 ; do
7669         teststring=$teststring$teststring
7670       done
7671       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7672       # If test is not a shell built-in, we'll probably end up computing a
7673       # maximum length that is only half of the actual maximum length, but
7674       # we can't tell.
7675       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7676                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7677               test $i != 17 # 1/2 MB should be enough
7678       do
7679         i=`expr $i + 1`
7680         teststring=$teststring$teststring
7681       done
7682       # Only check the string length outside the loop.
7683       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7684       teststring=
7685       # Add a significant safety factor because C++ compilers can tack on
7686       # massive amounts of additional arguments before passing them to the
7687       # linker.  It appears as though 1/2 is a usable value.
7688       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7689     fi
7690     ;;
7691   esac
7692
7693 fi
7694
7695 if test -n $lt_cv_sys_max_cmd_len ; then
7696   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7697 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7698 else
7699   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7700 $as_echo "none" >&6; }
7701 fi
7702 max_cmd_len=$lt_cv_sys_max_cmd_len
7703
7704
7705
7706
7707
7708
7709 : ${CP="cp -f"}
7710 : ${MV="mv -f"}
7711 : ${RM="rm -f"}
7712
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7714 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7715 # Try some XSI features
7716 xsi_shell=no
7717 ( _lt_dummy="a/b/c"
7718   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7719       = c,a/b,, \
7720     && eval 'test $(( 1 + 1 )) -eq 2 \
7721     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7722   && xsi_shell=yes
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7724 $as_echo "$xsi_shell" >&6; }
7725
7726
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7728 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7729 lt_shell_append=no
7730 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7731     >/dev/null 2>&1 \
7732   && lt_shell_append=yes
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7734 $as_echo "$lt_shell_append" >&6; }
7735
7736
7737 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7738   lt_unset=unset
7739 else
7740   lt_unset=false
7741 fi
7742
7743
7744
7745
7746
7747 # test EBCDIC or ASCII
7748 case `echo X|tr X '\101'` in
7749  A) # ASCII based system
7750     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7751   lt_SP2NL='tr \040 \012'
7752   lt_NL2SP='tr \015\012 \040\040'
7753   ;;
7754  *) # EBCDIC based system
7755   lt_SP2NL='tr \100 \n'
7756   lt_NL2SP='tr \r\n \100\100'
7757   ;;
7758 esac
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7769 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7770 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7771   $as_echo_n "(cached) " >&6
7772 else
7773   lt_cv_ld_reload_flag='-r'
7774 fi
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7776 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7777 reload_flag=$lt_cv_ld_reload_flag
7778 case $reload_flag in
7779 "" | " "*) ;;
7780 *) reload_flag=" $reload_flag" ;;
7781 esac
7782 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7783 case $host_os in
7784   darwin*)
7785     if test "$GCC" = yes; then
7786       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7787     else
7788       reload_cmds='$LD$reload_flag -o $output$reload_objs'
7789     fi
7790     ;;
7791 esac
7792
7793
7794
7795
7796
7797
7798
7799
7800
7801 if test -n "$ac_tool_prefix"; then
7802   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7803 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7805 $as_echo_n "checking for $ac_word... " >&6; }
7806 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7807   $as_echo_n "(cached) " >&6
7808 else
7809   if test -n "$OBJDUMP"; then
7810   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7814 do
7815   IFS=$as_save_IFS
7816   test -z "$as_dir" && as_dir=.
7817     for ac_exec_ext in '' $ac_executable_extensions; do
7818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7821     break 2
7822   fi
7823 done
7824   done
7825 IFS=$as_save_IFS
7826
7827 fi
7828 fi
7829 OBJDUMP=$ac_cv_prog_OBJDUMP
7830 if test -n "$OBJDUMP"; then
7831   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7832 $as_echo "$OBJDUMP" >&6; }
7833 else
7834   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7835 $as_echo "no" >&6; }
7836 fi
7837
7838
7839 fi
7840 if test -z "$ac_cv_prog_OBJDUMP"; then
7841   ac_ct_OBJDUMP=$OBJDUMP
7842   # Extract the first word of "objdump", so it can be a program name with args.
7843 set dummy objdump; ac_word=$2
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7845 $as_echo_n "checking for $ac_word... " >&6; }
7846 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7847   $as_echo_n "(cached) " >&6
7848 else
7849   if test -n "$ac_ct_OBJDUMP"; then
7850   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7851 else
7852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7853 for as_dir in $PATH
7854 do
7855   IFS=$as_save_IFS
7856   test -z "$as_dir" && as_dir=.
7857     for ac_exec_ext in '' $ac_executable_extensions; do
7858   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7859     ac_cv_prog_ac_ct_OBJDUMP="objdump"
7860     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7861     break 2
7862   fi
7863 done
7864   done
7865 IFS=$as_save_IFS
7866
7867 fi
7868 fi
7869 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7870 if test -n "$ac_ct_OBJDUMP"; then
7871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7872 $as_echo "$ac_ct_OBJDUMP" >&6; }
7873 else
7874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7876 fi
7877
7878   if test "x$ac_ct_OBJDUMP" = x; then
7879     OBJDUMP="false"
7880   else
7881     case $cross_compiling:$ac_tool_warned in
7882 yes:)
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7885 ac_tool_warned=yes ;;
7886 esac
7887     OBJDUMP=$ac_ct_OBJDUMP
7888   fi
7889 else
7890   OBJDUMP="$ac_cv_prog_OBJDUMP"
7891 fi
7892
7893 test -z "$OBJDUMP" && OBJDUMP=objdump
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7904 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7905 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7906   $as_echo_n "(cached) " >&6
7907 else
7908   lt_cv_file_magic_cmd='$MAGIC_CMD'
7909 lt_cv_file_magic_test_file=
7910 lt_cv_deplibs_check_method='unknown'
7911 # Need to set the preceding variable on all platforms that support
7912 # interlibrary dependencies.
7913 # 'none' -- dependencies not supported.
7914 # `unknown' -- same as none, but documents that we really don't know.
7915 # 'pass_all' -- all dependencies passed with no checks.
7916 # 'test_compile' -- check by making test program.
7917 # 'file_magic [[regex]]' -- check by looking for files in library path
7918 # which responds to the $file_magic_cmd with a given extended regex.
7919 # If you have `file' or equivalent on your system and you're not sure
7920 # whether `pass_all' will *always* work, you probably want this one.
7921
7922 case $host_os in
7923 aix[4-9]*)
7924   lt_cv_deplibs_check_method=pass_all
7925   ;;
7926
7927 beos*)
7928   lt_cv_deplibs_check_method=pass_all
7929   ;;
7930
7931 bsdi[45]*)
7932   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7933   lt_cv_file_magic_cmd='/usr/bin/file -L'
7934   lt_cv_file_magic_test_file=/shlib/libc.so
7935   ;;
7936
7937 cygwin*)
7938   # func_win32_libid is a shell function defined in ltmain.sh
7939   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7940   lt_cv_file_magic_cmd='func_win32_libid'
7941   ;;
7942
7943 mingw* | pw32*)
7944   # Base MSYS/MinGW do not provide the 'file' command needed by
7945   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7946   # unless we find 'file', for example because we are cross-compiling.
7947   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7948   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7949     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7950     lt_cv_file_magic_cmd='func_win32_libid'
7951   else
7952     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7953     lt_cv_file_magic_cmd='$OBJDUMP -f'
7954   fi
7955   ;;
7956
7957 cegcc*)
7958   # use the weaker test based on 'objdump'. See mingw*.
7959   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7960   lt_cv_file_magic_cmd='$OBJDUMP -f'
7961   ;;
7962
7963 darwin* | rhapsody*)
7964   lt_cv_deplibs_check_method=pass_all
7965   ;;
7966
7967 freebsd* | dragonfly*)
7968   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7969     case $host_cpu in
7970     i*86 )
7971       # Not sure whether the presence of OpenBSD here was a mistake.
7972       # Let's accept both of them until this is cleared up.
7973       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7974       lt_cv_file_magic_cmd=/usr/bin/file
7975       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7976       ;;
7977     esac
7978   else
7979     lt_cv_deplibs_check_method=pass_all
7980   fi
7981   ;;
7982
7983 gnu*)
7984   lt_cv_deplibs_check_method=pass_all
7985   ;;
7986
7987 haiku*)
7988   lt_cv_deplibs_check_method=pass_all
7989   ;;
7990
7991 hpux10.20* | hpux11*)
7992   lt_cv_file_magic_cmd=/usr/bin/file
7993   case $host_cpu in
7994   ia64*)
7995     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7996     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7997     ;;
7998   hppa*64*)
7999     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]'
8000     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8001     ;;
8002   *)
8003     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8004     lt_cv_file_magic_test_file=/usr/lib/libc.sl
8005     ;;
8006   esac
8007   ;;
8008
8009 interix[3-9]*)
8010   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8011   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8012   ;;
8013
8014 irix5* | irix6* | nonstopux*)
8015   case $LD in
8016   *-32|*"-32 ") libmagic=32-bit;;
8017   *-n32|*"-n32 ") libmagic=N32;;
8018   *-64|*"-64 ") libmagic=64-bit;;
8019   *) libmagic=never-match;;
8020   esac
8021   lt_cv_deplibs_check_method=pass_all
8022   ;;
8023
8024 # This must be Linux ELF.
8025 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8026   lt_cv_deplibs_check_method=pass_all
8027   ;;
8028
8029 netbsd*)
8030   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8031     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8032   else
8033     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8034   fi
8035   ;;
8036
8037 newos6*)
8038   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8039   lt_cv_file_magic_cmd=/usr/bin/file
8040   lt_cv_file_magic_test_file=/usr/lib/libnls.so
8041   ;;
8042
8043 *nto* | *qnx*)
8044   lt_cv_deplibs_check_method=pass_all
8045   ;;
8046
8047 openbsd*)
8048   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8049     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8050   else
8051     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8052   fi
8053   ;;
8054
8055 osf3* | osf4* | osf5*)
8056   lt_cv_deplibs_check_method=pass_all
8057   ;;
8058
8059 rdos*)
8060   lt_cv_deplibs_check_method=pass_all
8061   ;;
8062
8063 solaris*)
8064   lt_cv_deplibs_check_method=pass_all
8065   ;;
8066
8067 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8068   lt_cv_deplibs_check_method=pass_all
8069   ;;
8070
8071 sysv4 | sysv4.3*)
8072   case $host_vendor in
8073   motorola)
8074     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]'
8075     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8076     ;;
8077   ncr)
8078     lt_cv_deplibs_check_method=pass_all
8079     ;;
8080   sequent)
8081     lt_cv_file_magic_cmd='/bin/file'
8082     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8083     ;;
8084   sni)
8085     lt_cv_file_magic_cmd='/bin/file'
8086     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8087     lt_cv_file_magic_test_file=/lib/libc.so
8088     ;;
8089   siemens)
8090     lt_cv_deplibs_check_method=pass_all
8091     ;;
8092   pc)
8093     lt_cv_deplibs_check_method=pass_all
8094     ;;
8095   esac
8096   ;;
8097
8098 tpf*)
8099   lt_cv_deplibs_check_method=pass_all
8100   ;;
8101 esac
8102
8103 fi
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8105 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8106 file_magic_cmd=$lt_cv_file_magic_cmd
8107 deplibs_check_method=$lt_cv_deplibs_check_method
8108 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121 if test -n "$ac_tool_prefix"; then
8122   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8123 set dummy ${ac_tool_prefix}ar; ac_word=$2
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8125 $as_echo_n "checking for $ac_word... " >&6; }
8126 if test "${ac_cv_prog_AR+set}" = set; then :
8127   $as_echo_n "(cached) " >&6
8128 else
8129   if test -n "$AR"; then
8130   ac_cv_prog_AR="$AR" # Let the user override the test.
8131 else
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 for as_dir in $PATH
8134 do
8135   IFS=$as_save_IFS
8136   test -z "$as_dir" && as_dir=.
8137     for ac_exec_ext in '' $ac_executable_extensions; do
8138   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8139     ac_cv_prog_AR="${ac_tool_prefix}ar"
8140     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8141     break 2
8142   fi
8143 done
8144   done
8145 IFS=$as_save_IFS
8146
8147 fi
8148 fi
8149 AR=$ac_cv_prog_AR
8150 if test -n "$AR"; then
8151   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8152 $as_echo "$AR" >&6; }
8153 else
8154   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8155 $as_echo "no" >&6; }
8156 fi
8157
8158
8159 fi
8160 if test -z "$ac_cv_prog_AR"; then
8161   ac_ct_AR=$AR
8162   # Extract the first word of "ar", so it can be a program name with args.
8163 set dummy ar; ac_word=$2
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8165 $as_echo_n "checking for $ac_word... " >&6; }
8166 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8167   $as_echo_n "(cached) " >&6
8168 else
8169   if test -n "$ac_ct_AR"; then
8170   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8171 else
8172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8173 for as_dir in $PATH
8174 do
8175   IFS=$as_save_IFS
8176   test -z "$as_dir" && as_dir=.
8177     for ac_exec_ext in '' $ac_executable_extensions; do
8178   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8179     ac_cv_prog_ac_ct_AR="ar"
8180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8181     break 2
8182   fi
8183 done
8184   done
8185 IFS=$as_save_IFS
8186
8187 fi
8188 fi
8189 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8190 if test -n "$ac_ct_AR"; then
8191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8192 $as_echo "$ac_ct_AR" >&6; }
8193 else
8194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 $as_echo "no" >&6; }
8196 fi
8197
8198   if test "x$ac_ct_AR" = x; then
8199     AR="false"
8200   else
8201     case $cross_compiling:$ac_tool_warned in
8202 yes:)
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8205 ac_tool_warned=yes ;;
8206 esac
8207     AR=$ac_ct_AR
8208   fi
8209 else
8210   AR="$ac_cv_prog_AR"
8211 fi
8212
8213 test -z "$AR" && AR=ar
8214 test -z "$AR_FLAGS" && AR_FLAGS=cru
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226 if test -n "$ac_tool_prefix"; then
8227   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8228 set dummy ${ac_tool_prefix}strip; ac_word=$2
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8230 $as_echo_n "checking for $ac_word... " >&6; }
8231 if test "${ac_cv_prog_STRIP+set}" = set; then :
8232   $as_echo_n "(cached) " >&6
8233 else
8234   if test -n "$STRIP"; then
8235   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8236 else
8237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8238 for as_dir in $PATH
8239 do
8240   IFS=$as_save_IFS
8241   test -z "$as_dir" && as_dir=.
8242     for ac_exec_ext in '' $ac_executable_extensions; do
8243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8244     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8246     break 2
8247   fi
8248 done
8249   done
8250 IFS=$as_save_IFS
8251
8252 fi
8253 fi
8254 STRIP=$ac_cv_prog_STRIP
8255 if test -n "$STRIP"; then
8256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8257 $as_echo "$STRIP" >&6; }
8258 else
8259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8261 fi
8262
8263
8264 fi
8265 if test -z "$ac_cv_prog_STRIP"; then
8266   ac_ct_STRIP=$STRIP
8267   # Extract the first word of "strip", so it can be a program name with args.
8268 set dummy strip; ac_word=$2
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8270 $as_echo_n "checking for $ac_word... " >&6; }
8271 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
8272   $as_echo_n "(cached) " >&6
8273 else
8274   if test -n "$ac_ct_STRIP"; then
8275   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8276 else
8277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8278 for as_dir in $PATH
8279 do
8280   IFS=$as_save_IFS
8281   test -z "$as_dir" && as_dir=.
8282     for ac_exec_ext in '' $ac_executable_extensions; do
8283   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8284     ac_cv_prog_ac_ct_STRIP="strip"
8285     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8286     break 2
8287   fi
8288 done
8289   done
8290 IFS=$as_save_IFS
8291
8292 fi
8293 fi
8294 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8295 if test -n "$ac_ct_STRIP"; then
8296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8297 $as_echo "$ac_ct_STRIP" >&6; }
8298 else
8299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8301 fi
8302
8303   if test "x$ac_ct_STRIP" = x; then
8304     STRIP=":"
8305   else
8306     case $cross_compiling:$ac_tool_warned in
8307 yes:)
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8310 ac_tool_warned=yes ;;
8311 esac
8312     STRIP=$ac_ct_STRIP
8313   fi
8314 else
8315   STRIP="$ac_cv_prog_STRIP"
8316 fi
8317
8318 test -z "$STRIP" && STRIP=:
8319
8320
8321
8322
8323
8324
8325 if test -n "$ac_tool_prefix"; then
8326   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8327 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8329 $as_echo_n "checking for $ac_word... " >&6; }
8330 if test "${ac_cv_prog_RANLIB+set}" = set; then :
8331   $as_echo_n "(cached) " >&6
8332 else
8333   if test -n "$RANLIB"; then
8334   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8335 else
8336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8337 for as_dir in $PATH
8338 do
8339   IFS=$as_save_IFS
8340   test -z "$as_dir" && as_dir=.
8341     for ac_exec_ext in '' $ac_executable_extensions; do
8342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8343     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8345     break 2
8346   fi
8347 done
8348   done
8349 IFS=$as_save_IFS
8350
8351 fi
8352 fi
8353 RANLIB=$ac_cv_prog_RANLIB
8354 if test -n "$RANLIB"; then
8355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8356 $as_echo "$RANLIB" >&6; }
8357 else
8358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8359 $as_echo "no" >&6; }
8360 fi
8361
8362
8363 fi
8364 if test -z "$ac_cv_prog_RANLIB"; then
8365   ac_ct_RANLIB=$RANLIB
8366   # Extract the first word of "ranlib", so it can be a program name with args.
8367 set dummy ranlib; ac_word=$2
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8369 $as_echo_n "checking for $ac_word... " >&6; }
8370 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
8371   $as_echo_n "(cached) " >&6
8372 else
8373   if test -n "$ac_ct_RANLIB"; then
8374   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8375 else
8376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8377 for as_dir in $PATH
8378 do
8379   IFS=$as_save_IFS
8380   test -z "$as_dir" && as_dir=.
8381     for ac_exec_ext in '' $ac_executable_extensions; do
8382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8383     ac_cv_prog_ac_ct_RANLIB="ranlib"
8384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385     break 2
8386   fi
8387 done
8388   done
8389 IFS=$as_save_IFS
8390
8391 fi
8392 fi
8393 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8394 if test -n "$ac_ct_RANLIB"; then
8395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8396 $as_echo "$ac_ct_RANLIB" >&6; }
8397 else
8398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8399 $as_echo "no" >&6; }
8400 fi
8401
8402   if test "x$ac_ct_RANLIB" = x; then
8403     RANLIB=":"
8404   else
8405     case $cross_compiling:$ac_tool_warned in
8406 yes:)
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8409 ac_tool_warned=yes ;;
8410 esac
8411     RANLIB=$ac_ct_RANLIB
8412   fi
8413 else
8414   RANLIB="$ac_cv_prog_RANLIB"
8415 fi
8416
8417 test -z "$RANLIB" && RANLIB=:
8418
8419
8420
8421
8422
8423
8424 # Determine commands to create old-style static archives.
8425 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8426 old_postinstall_cmds='chmod 644 $oldlib'
8427 old_postuninstall_cmds=
8428
8429 if test -n "$RANLIB"; then
8430   case $host_os in
8431   openbsd*)
8432     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8433     ;;
8434   *)
8435     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8436     ;;
8437   esac
8438   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8439 fi
8440
8441 case $host_os in
8442   darwin*)
8443     lock_old_archive_extraction=yes ;;
8444   *)
8445     lock_old_archive_extraction=no ;;
8446 esac
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486 # If no C compiler was specified, use CC.
8487 LTCC=${LTCC-"$CC"}
8488
8489 # If no C compiler flags were specified, use CFLAGS.
8490 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8491
8492 # Allow CC to be a program name with arguments.
8493 compiler=$CC
8494
8495
8496 # Check for command to grab the raw symbol name followed by C symbol from nm.
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8498 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8499 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
8500   $as_echo_n "(cached) " >&6
8501 else
8502
8503 # These are sane defaults that work on at least a few old systems.
8504 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
8505
8506 # Character class describing NM global symbol codes.
8507 symcode='[BCDEGRST]'
8508
8509 # Regexp to match symbols that can be accessed directly from C.
8510 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8511
8512 # Define system-specific variables.
8513 case $host_os in
8514 aix*)
8515   symcode='[BCDT]'
8516   ;;
8517 cygwin* | mingw* | pw32* | cegcc*)
8518   symcode='[ABCDGISTW]'
8519   ;;
8520 hpux*)
8521   if test "$host_cpu" = ia64; then
8522     symcode='[ABCDEGRST]'
8523   fi
8524   ;;
8525 irix* | nonstopux*)
8526   symcode='[BCDEGRST]'
8527   ;;
8528 osf*)
8529   symcode='[BCDEGQRST]'
8530   ;;
8531 solaris*)
8532   symcode='[BDRT]'
8533   ;;
8534 sco3.2v5*)
8535   symcode='[DT]'
8536   ;;
8537 sysv4.2uw2*)
8538   symcode='[DT]'
8539   ;;
8540 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8541   symcode='[ABDT]'
8542   ;;
8543 sysv4)
8544   symcode='[DFNSTU]'
8545   ;;
8546 esac
8547
8548 # If we're using GNU nm, then use its standard symbol codes.
8549 case `$NM -V 2>&1` in
8550 *GNU* | *'with BFD'*)
8551   symcode='[ABCDGIRSTW]' ;;
8552 esac
8553
8554 # Transform an extracted symbol line into a proper C declaration.
8555 # Some systems (esp. on ia64) link data and code symbols differently,
8556 # so use this general approach.
8557 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8558
8559 # Transform an extracted symbol line into symbol name and symbol address
8560 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
8561 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'"
8562
8563 # Handle CRLF in mingw tool chain
8564 opt_cr=
8565 case $build_os in
8566 mingw*)
8567   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8568   ;;
8569 esac
8570
8571 # Try without a prefix underscore, then with it.
8572 for ac_symprfx in "" "_"; do
8573
8574   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8575   symxfrm="\\1 $ac_symprfx\\2 \\2"
8576
8577   # Write the raw and C identifiers.
8578   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8579     # Fake it for dumpbin and say T for any non-static function
8580     # and D for any global variable.
8581     # Also find C++ and __fastcall symbols from MSVC++,
8582     # which start with @ or ?.
8583     lt_cv_sys_global_symbol_pipe="$AWK '"\
8584 "     {last_section=section; section=\$ 3};"\
8585 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8586 "     \$ 0!~/External *\|/{next};"\
8587 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8588 "     {if(hide[section]) next};"\
8589 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8590 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8591 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
8592 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8593 "     ' prfx=^$ac_symprfx"
8594   else
8595     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8596   fi
8597
8598   # Check to see that the pipe works correctly.
8599   pipe_works=no
8600
8601   rm -f conftest*
8602   cat > conftest.$ac_ext <<_LT_EOF
8603 #ifdef __cplusplus
8604 extern "C" {
8605 #endif
8606 char nm_test_var;
8607 void nm_test_func(void);
8608 void nm_test_func(void){}
8609 #ifdef __cplusplus
8610 }
8611 #endif
8612 int main(){nm_test_var='a';nm_test_func();return(0);}
8613 _LT_EOF
8614
8615   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8616   (eval $ac_compile) 2>&5
8617   ac_status=$?
8618   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8619   test $ac_status = 0; }; then
8620     # Now try to grab the symbols.
8621     nlist=conftest.nm
8622     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8623   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8624   ac_status=$?
8625   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8626   test $ac_status = 0; } && test -s "$nlist"; then
8627       # Try sorting and uniquifying the output.
8628       if sort "$nlist" | uniq > "$nlist"T; then
8629         mv -f "$nlist"T "$nlist"
8630       else
8631         rm -f "$nlist"T
8632       fi
8633
8634       # Make sure that we snagged all the symbols we need.
8635       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8636         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8637           cat <<_LT_EOF > conftest.$ac_ext
8638 #ifdef __cplusplus
8639 extern "C" {
8640 #endif
8641
8642 _LT_EOF
8643           # Now generate the symbol file.
8644           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8645
8646           cat <<_LT_EOF >> conftest.$ac_ext
8647
8648 /* The mapping between symbol names and symbols.  */
8649 const struct {
8650   const char *name;
8651   void       *address;
8652 }
8653 lt__PROGRAM__LTX_preloaded_symbols[] =
8654 {
8655   { "@PROGRAM@", (void *) 0 },
8656 _LT_EOF
8657           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8658           cat <<\_LT_EOF >> conftest.$ac_ext
8659   {0, (void *) 0}
8660 };
8661
8662 /* This works around a problem in FreeBSD linker */
8663 #ifdef FREEBSD_WORKAROUND
8664 static const void *lt_preloaded_setup() {
8665   return lt__PROGRAM__LTX_preloaded_symbols;
8666 }
8667 #endif
8668
8669 #ifdef __cplusplus
8670 }
8671 #endif
8672 _LT_EOF
8673           # Now try linking the two files.
8674           mv conftest.$ac_objext conftstm.$ac_objext
8675           lt_save_LIBS="$LIBS"
8676           lt_save_CFLAGS="$CFLAGS"
8677           LIBS="conftstm.$ac_objext"
8678           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8679           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8680   (eval $ac_link) 2>&5
8681   ac_status=$?
8682   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8683   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8684             pipe_works=yes
8685           fi
8686           LIBS="$lt_save_LIBS"
8687           CFLAGS="$lt_save_CFLAGS"
8688         else
8689           echo "cannot find nm_test_func in $nlist" >&5
8690         fi
8691       else
8692         echo "cannot find nm_test_var in $nlist" >&5
8693       fi
8694     else
8695       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8696     fi
8697   else
8698     echo "$progname: failed program was:" >&5
8699     cat conftest.$ac_ext >&5
8700   fi
8701   rm -rf conftest* conftst*
8702
8703   # Do not use the global_symbol_pipe unless it works.
8704   if test "$pipe_works" = yes; then
8705     break
8706   else
8707     lt_cv_sys_global_symbol_pipe=
8708   fi
8709 done
8710
8711 fi
8712
8713 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8714   lt_cv_sys_global_symbol_to_cdecl=
8715 fi
8716 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8718 $as_echo "failed" >&6; }
8719 else
8720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8721 $as_echo "ok" >&6; }
8722 fi
8723
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738
8739
8740
8741
8742
8743
8744
8745
8746 # Check whether --enable-libtool-lock was given.
8747 if test "${enable_libtool_lock+set}" = set; then :
8748   enableval=$enable_libtool_lock;
8749 fi
8750
8751 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8752
8753 # Some flags need to be propagated to the compiler or linker for good
8754 # libtool support.
8755 case $host in
8756 ia64-*-hpux*)
8757   # Find out which ABI we are using.
8758   echo 'int i;' > conftest.$ac_ext
8759   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8760   (eval $ac_compile) 2>&5
8761   ac_status=$?
8762   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8763   test $ac_status = 0; }; then
8764     case `/usr/bin/file conftest.$ac_objext` in
8765       *ELF-32*)
8766         HPUX_IA64_MODE="32"
8767         ;;
8768       *ELF-64*)
8769         HPUX_IA64_MODE="64"
8770         ;;
8771     esac
8772   fi
8773   rm -rf conftest*
8774   ;;
8775 *-*-irix6*)
8776   # Find out which ABI we are using.
8777   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8778   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8779   (eval $ac_compile) 2>&5
8780   ac_status=$?
8781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8782   test $ac_status = 0; }; then
8783     if test "$lt_cv_prog_gnu_ld" = yes; then
8784       case `/usr/bin/file conftest.$ac_objext` in
8785         *32-bit*)
8786           LD="${LD-ld} -melf32bsmip"
8787           ;;
8788         *N32*)
8789           LD="${LD-ld} -melf32bmipn32"
8790           ;;
8791         *64-bit*)
8792           LD="${LD-ld} -melf64bmip"
8793         ;;
8794       esac
8795     else
8796       case `/usr/bin/file conftest.$ac_objext` in
8797         *32-bit*)
8798           LD="${LD-ld} -32"
8799           ;;
8800         *N32*)
8801           LD="${LD-ld} -n32"
8802           ;;
8803         *64-bit*)
8804           LD="${LD-ld} -64"
8805           ;;
8806       esac
8807     fi
8808   fi
8809   rm -rf conftest*
8810   ;;
8811
8812 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8813 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8814   # Find out which ABI we are using.
8815   echo 'int i;' > conftest.$ac_ext
8816   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8817   (eval $ac_compile) 2>&5
8818   ac_status=$?
8819   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8820   test $ac_status = 0; }; then
8821     case `/usr/bin/file conftest.o` in
8822       *32-bit*)
8823         case $host in
8824           x86_64-*kfreebsd*-gnu)
8825             LD="${LD-ld} -m elf_i386_fbsd"
8826             ;;
8827           x86_64-*linux*)
8828             LD="${LD-ld} -m elf_i386"
8829             ;;
8830           ppc64-*linux*|powerpc64-*linux*)
8831             LD="${LD-ld} -m elf32ppclinux"
8832             ;;
8833           s390x-*linux*)
8834             LD="${LD-ld} -m elf_s390"
8835             ;;
8836           sparc64-*linux*)
8837             LD="${LD-ld} -m elf32_sparc"
8838             ;;
8839         esac
8840         ;;
8841       *64-bit*)
8842         case $host in
8843           x86_64-*kfreebsd*-gnu)
8844             LD="${LD-ld} -m elf_x86_64_fbsd"
8845             ;;
8846           x86_64-*linux*)
8847             LD="${LD-ld} -m elf_x86_64"
8848             ;;
8849           ppc*-*linux*|powerpc*-*linux*)
8850             LD="${LD-ld} -m elf64ppc"
8851             ;;
8852           s390*-*linux*|s390*-*tpf*)
8853             LD="${LD-ld} -m elf64_s390"
8854             ;;
8855           sparc*-*linux*)
8856             LD="${LD-ld} -m elf64_sparc"
8857             ;;
8858         esac
8859         ;;
8860     esac
8861   fi
8862   rm -rf conftest*
8863   ;;
8864
8865 *-*-sco3.2v5*)
8866   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8867   SAVE_CFLAGS="$CFLAGS"
8868   CFLAGS="$CFLAGS -belf"
8869   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8870 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8871 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8872   $as_echo_n "(cached) " >&6
8873 else
8874   ac_ext=c
8875 ac_cpp='$CPP $CPPFLAGS'
8876 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8877 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8878 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8879
8880      if test x$gcc_no_link = xyes; then
8881   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8882 fi
8883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8884 /* end confdefs.h.  */
8885
8886 int
8887 main ()
8888 {
8889
8890   ;
8891   return 0;
8892 }
8893 _ACEOF
8894 if ac_fn_c_try_link "$LINENO"; then :
8895   lt_cv_cc_needs_belf=yes
8896 else
8897   lt_cv_cc_needs_belf=no
8898 fi
8899 rm -f core conftest.err conftest.$ac_objext \
8900     conftest$ac_exeext conftest.$ac_ext
8901      ac_ext=c
8902 ac_cpp='$CPP $CPPFLAGS'
8903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8906
8907 fi
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8909 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8910   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8911     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8912     CFLAGS="$SAVE_CFLAGS"
8913   fi
8914   ;;
8915 sparc*-*solaris*)
8916   # Find out which ABI we are using.
8917   echo 'int i;' > conftest.$ac_ext
8918   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8919   (eval $ac_compile) 2>&5
8920   ac_status=$?
8921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8922   test $ac_status = 0; }; then
8923     case `/usr/bin/file conftest.o` in
8924     *64-bit*)
8925       case $lt_cv_prog_gnu_ld in
8926       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8927       *)
8928         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8929           LD="${LD-ld} -64"
8930         fi
8931         ;;
8932       esac
8933       ;;
8934     esac
8935   fi
8936   rm -rf conftest*
8937   ;;
8938 esac
8939
8940 need_locks="$enable_libtool_lock"
8941
8942
8943   case $host_os in
8944     rhapsody* | darwin*)
8945     if test -n "$ac_tool_prefix"; then
8946   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8947 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8949 $as_echo_n "checking for $ac_word... " >&6; }
8950 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8951   $as_echo_n "(cached) " >&6
8952 else
8953   if test -n "$DSYMUTIL"; then
8954   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8955 else
8956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8957 for as_dir in $PATH
8958 do
8959   IFS=$as_save_IFS
8960   test -z "$as_dir" && as_dir=.
8961     for ac_exec_ext in '' $ac_executable_extensions; do
8962   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8963     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8964     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8965     break 2
8966   fi
8967 done
8968   done
8969 IFS=$as_save_IFS
8970
8971 fi
8972 fi
8973 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8974 if test -n "$DSYMUTIL"; then
8975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8976 $as_echo "$DSYMUTIL" >&6; }
8977 else
8978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8979 $as_echo "no" >&6; }
8980 fi
8981
8982
8983 fi
8984 if test -z "$ac_cv_prog_DSYMUTIL"; then
8985   ac_ct_DSYMUTIL=$DSYMUTIL
8986   # Extract the first word of "dsymutil", so it can be a program name with args.
8987 set dummy dsymutil; ac_word=$2
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8989 $as_echo_n "checking for $ac_word... " >&6; }
8990 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8991   $as_echo_n "(cached) " >&6
8992 else
8993   if test -n "$ac_ct_DSYMUTIL"; then
8994   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8995 else
8996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8997 for as_dir in $PATH
8998 do
8999   IFS=$as_save_IFS
9000   test -z "$as_dir" && as_dir=.
9001     for ac_exec_ext in '' $ac_executable_extensions; do
9002   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9003     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9004     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9005     break 2
9006   fi
9007 done
9008   done
9009 IFS=$as_save_IFS
9010
9011 fi
9012 fi
9013 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9014 if test -n "$ac_ct_DSYMUTIL"; then
9015   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9016 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9017 else
9018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9019 $as_echo "no" >&6; }
9020 fi
9021
9022   if test "x$ac_ct_DSYMUTIL" = x; then
9023     DSYMUTIL=":"
9024   else
9025     case $cross_compiling:$ac_tool_warned in
9026 yes:)
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9029 ac_tool_warned=yes ;;
9030 esac
9031     DSYMUTIL=$ac_ct_DSYMUTIL
9032   fi
9033 else
9034   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9035 fi
9036
9037     if test -n "$ac_tool_prefix"; then
9038   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9039 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 $as_echo_n "checking for $ac_word... " >&6; }
9042 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9043   $as_echo_n "(cached) " >&6
9044 else
9045   if test -n "$NMEDIT"; then
9046   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9047 else
9048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9049 for as_dir in $PATH
9050 do
9051   IFS=$as_save_IFS
9052   test -z "$as_dir" && as_dir=.
9053     for ac_exec_ext in '' $ac_executable_extensions; do
9054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9055     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9056     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9057     break 2
9058   fi
9059 done
9060   done
9061 IFS=$as_save_IFS
9062
9063 fi
9064 fi
9065 NMEDIT=$ac_cv_prog_NMEDIT
9066 if test -n "$NMEDIT"; then
9067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9068 $as_echo "$NMEDIT" >&6; }
9069 else
9070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9071 $as_echo "no" >&6; }
9072 fi
9073
9074
9075 fi
9076 if test -z "$ac_cv_prog_NMEDIT"; then
9077   ac_ct_NMEDIT=$NMEDIT
9078   # Extract the first word of "nmedit", so it can be a program name with args.
9079 set dummy nmedit; ac_word=$2
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9081 $as_echo_n "checking for $ac_word... " >&6; }
9082 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9083   $as_echo_n "(cached) " >&6
9084 else
9085   if test -n "$ac_ct_NMEDIT"; then
9086   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9087 else
9088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9089 for as_dir in $PATH
9090 do
9091   IFS=$as_save_IFS
9092   test -z "$as_dir" && as_dir=.
9093     for ac_exec_ext in '' $ac_executable_extensions; do
9094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9095     ac_cv_prog_ac_ct_NMEDIT="nmedit"
9096     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9097     break 2
9098   fi
9099 done
9100   done
9101 IFS=$as_save_IFS
9102
9103 fi
9104 fi
9105 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9106 if test -n "$ac_ct_NMEDIT"; then
9107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9108 $as_echo "$ac_ct_NMEDIT" >&6; }
9109 else
9110   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9111 $as_echo "no" >&6; }
9112 fi
9113
9114   if test "x$ac_ct_NMEDIT" = x; then
9115     NMEDIT=":"
9116   else
9117     case $cross_compiling:$ac_tool_warned in
9118 yes:)
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9120 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9121 ac_tool_warned=yes ;;
9122 esac
9123     NMEDIT=$ac_ct_NMEDIT
9124   fi
9125 else
9126   NMEDIT="$ac_cv_prog_NMEDIT"
9127 fi
9128
9129     if test -n "$ac_tool_prefix"; then
9130   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9131 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9133 $as_echo_n "checking for $ac_word... " >&6; }
9134 if test "${ac_cv_prog_LIPO+set}" = set; then :
9135   $as_echo_n "(cached) " >&6
9136 else
9137   if test -n "$LIPO"; then
9138   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9139 else
9140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141 for as_dir in $PATH
9142 do
9143   IFS=$as_save_IFS
9144   test -z "$as_dir" && as_dir=.
9145     for ac_exec_ext in '' $ac_executable_extensions; do
9146   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9147     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9148     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9149     break 2
9150   fi
9151 done
9152   done
9153 IFS=$as_save_IFS
9154
9155 fi
9156 fi
9157 LIPO=$ac_cv_prog_LIPO
9158 if test -n "$LIPO"; then
9159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9160 $as_echo "$LIPO" >&6; }
9161 else
9162   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163 $as_echo "no" >&6; }
9164 fi
9165
9166
9167 fi
9168 if test -z "$ac_cv_prog_LIPO"; then
9169   ac_ct_LIPO=$LIPO
9170   # Extract the first word of "lipo", so it can be a program name with args.
9171 set dummy lipo; ac_word=$2
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9173 $as_echo_n "checking for $ac_word... " >&6; }
9174 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
9175   $as_echo_n "(cached) " >&6
9176 else
9177   if test -n "$ac_ct_LIPO"; then
9178   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
9179 else
9180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9181 for as_dir in $PATH
9182 do
9183   IFS=$as_save_IFS
9184   test -z "$as_dir" && as_dir=.
9185     for ac_exec_ext in '' $ac_executable_extensions; do
9186   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9187     ac_cv_prog_ac_ct_LIPO="lipo"
9188     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9189     break 2
9190   fi
9191 done
9192   done
9193 IFS=$as_save_IFS
9194
9195 fi
9196 fi
9197 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
9198 if test -n "$ac_ct_LIPO"; then
9199   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
9200 $as_echo "$ac_ct_LIPO" >&6; }
9201 else
9202   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9203 $as_echo "no" >&6; }
9204 fi
9205
9206   if test "x$ac_ct_LIPO" = x; then
9207     LIPO=":"
9208   else
9209     case $cross_compiling:$ac_tool_warned in
9210 yes:)
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9213 ac_tool_warned=yes ;;
9214 esac
9215     LIPO=$ac_ct_LIPO
9216   fi
9217 else
9218   LIPO="$ac_cv_prog_LIPO"
9219 fi
9220
9221     if test -n "$ac_tool_prefix"; then
9222   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
9223 set dummy ${ac_tool_prefix}otool; ac_word=$2
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9225 $as_echo_n "checking for $ac_word... " >&6; }
9226 if test "${ac_cv_prog_OTOOL+set}" = set; then :
9227   $as_echo_n "(cached) " >&6
9228 else
9229   if test -n "$OTOOL"; then
9230   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
9231 else
9232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9233 for as_dir in $PATH
9234 do
9235   IFS=$as_save_IFS
9236   test -z "$as_dir" && as_dir=.
9237     for ac_exec_ext in '' $ac_executable_extensions; do
9238   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9239     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
9240     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9241     break 2
9242   fi
9243 done
9244   done
9245 IFS=$as_save_IFS
9246
9247 fi
9248 fi
9249 OTOOL=$ac_cv_prog_OTOOL
9250 if test -n "$OTOOL"; then
9251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
9252 $as_echo "$OTOOL" >&6; }
9253 else
9254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9255 $as_echo "no" >&6; }
9256 fi
9257
9258
9259 fi
9260 if test -z "$ac_cv_prog_OTOOL"; then
9261   ac_ct_OTOOL=$OTOOL
9262   # Extract the first word of "otool", so it can be a program name with args.
9263 set dummy otool; ac_word=$2
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9265 $as_echo_n "checking for $ac_word... " >&6; }
9266 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
9267   $as_echo_n "(cached) " >&6
9268 else
9269   if test -n "$ac_ct_OTOOL"; then
9270   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
9271 else
9272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9273 for as_dir in $PATH
9274 do
9275   IFS=$as_save_IFS
9276   test -z "$as_dir" && as_dir=.
9277     for ac_exec_ext in '' $ac_executable_extensions; do
9278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9279     ac_cv_prog_ac_ct_OTOOL="otool"
9280     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9281     break 2
9282   fi
9283 done
9284   done
9285 IFS=$as_save_IFS
9286
9287 fi
9288 fi
9289 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
9290 if test -n "$ac_ct_OTOOL"; then
9291   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
9292 $as_echo "$ac_ct_OTOOL" >&6; }
9293 else
9294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9295 $as_echo "no" >&6; }
9296 fi
9297
9298   if test "x$ac_ct_OTOOL" = x; then
9299     OTOOL=":"
9300   else
9301     case $cross_compiling:$ac_tool_warned in
9302 yes:)
9303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9305 ac_tool_warned=yes ;;
9306 esac
9307     OTOOL=$ac_ct_OTOOL
9308   fi
9309 else
9310   OTOOL="$ac_cv_prog_OTOOL"
9311 fi
9312
9313     if test -n "$ac_tool_prefix"; then
9314   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
9315 set dummy ${ac_tool_prefix}otool64; ac_word=$2
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9317 $as_echo_n "checking for $ac_word... " >&6; }
9318 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
9319   $as_echo_n "(cached) " >&6
9320 else
9321   if test -n "$OTOOL64"; then
9322   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
9323 else
9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9325 for as_dir in $PATH
9326 do
9327   IFS=$as_save_IFS
9328   test -z "$as_dir" && as_dir=.
9329     for ac_exec_ext in '' $ac_executable_extensions; do
9330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9331     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
9332     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9333     break 2
9334   fi
9335 done
9336   done
9337 IFS=$as_save_IFS
9338
9339 fi
9340 fi
9341 OTOOL64=$ac_cv_prog_OTOOL64
9342 if test -n "$OTOOL64"; then
9343   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
9344 $as_echo "$OTOOL64" >&6; }
9345 else
9346   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9347 $as_echo "no" >&6; }
9348 fi
9349
9350
9351 fi
9352 if test -z "$ac_cv_prog_OTOOL64"; then
9353   ac_ct_OTOOL64=$OTOOL64
9354   # Extract the first word of "otool64", so it can be a program name with args.
9355 set dummy otool64; ac_word=$2
9356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9357 $as_echo_n "checking for $ac_word... " >&6; }
9358 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
9359   $as_echo_n "(cached) " >&6
9360 else
9361   if test -n "$ac_ct_OTOOL64"; then
9362   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9363 else
9364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9365 for as_dir in $PATH
9366 do
9367   IFS=$as_save_IFS
9368   test -z "$as_dir" && as_dir=.
9369     for ac_exec_ext in '' $ac_executable_extensions; do
9370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9371     ac_cv_prog_ac_ct_OTOOL64="otool64"
9372     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9373     break 2
9374   fi
9375 done
9376   done
9377 IFS=$as_save_IFS
9378
9379 fi
9380 fi
9381 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9382 if test -n "$ac_ct_OTOOL64"; then
9383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9384 $as_echo "$ac_ct_OTOOL64" >&6; }
9385 else
9386   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9387 $as_echo "no" >&6; }
9388 fi
9389
9390   if test "x$ac_ct_OTOOL64" = x; then
9391     OTOOL64=":"
9392   else
9393     case $cross_compiling:$ac_tool_warned in
9394 yes:)
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9397 ac_tool_warned=yes ;;
9398 esac
9399     OTOOL64=$ac_ct_OTOOL64
9400   fi
9401 else
9402   OTOOL64="$ac_cv_prog_OTOOL64"
9403 fi
9404
9405
9406
9407
9408
9409
9410
9411
9412
9413
9414
9415
9416
9417
9418
9419
9420
9421
9422
9423
9424
9425
9426
9427
9428
9429
9430
9431     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9432 $as_echo_n "checking for -single_module linker flag... " >&6; }
9433 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
9434   $as_echo_n "(cached) " >&6
9435 else
9436   lt_cv_apple_cc_single_mod=no
9437       if test -z "${LT_MULTI_MODULE}"; then
9438         # By default we will add the -single_module flag. You can override
9439         # by either setting the environment variable LT_MULTI_MODULE
9440         # non-empty at configure time, or by adding -multi_module to the
9441         # link flags.
9442         rm -rf libconftest.dylib*
9443         echo "int foo(void){return 1;}" > conftest.c
9444         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9445 -dynamiclib -Wl,-single_module conftest.c" >&5
9446         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9447           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9448         _lt_result=$?
9449         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9450           lt_cv_apple_cc_single_mod=yes
9451         else
9452           cat conftest.err >&5
9453         fi
9454         rm -rf libconftest.dylib*
9455         rm -f conftest.*
9456       fi
9457 fi
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9459 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9460     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9461 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9462 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
9463   $as_echo_n "(cached) " >&6
9464 else
9465   lt_cv_ld_exported_symbols_list=no
9466       save_LDFLAGS=$LDFLAGS
9467       echo "_main" > conftest.sym
9468       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9469       if test x$gcc_no_link = xyes; then
9470   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9471 fi
9472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9473 /* end confdefs.h.  */
9474
9475 int
9476 main ()
9477 {
9478
9479   ;
9480   return 0;
9481 }
9482 _ACEOF
9483 if ac_fn_c_try_link "$LINENO"; then :
9484   lt_cv_ld_exported_symbols_list=yes
9485 else
9486   lt_cv_ld_exported_symbols_list=no
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext \
9489     conftest$ac_exeext conftest.$ac_ext
9490         LDFLAGS="$save_LDFLAGS"
9491
9492 fi
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9494 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9495     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9496 $as_echo_n "checking for -force_load linker flag... " >&6; }
9497 if test "${lt_cv_ld_force_load+set}" = set; then :
9498   $as_echo_n "(cached) " >&6
9499 else
9500   lt_cv_ld_force_load=no
9501       cat > conftest.c << _LT_EOF
9502 int forced_loaded() { return 2;}
9503 _LT_EOF
9504       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9505       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9506       echo "$AR cru libconftest.a conftest.o" >&5
9507       $AR cru libconftest.a conftest.o 2>&5
9508       cat > conftest.c << _LT_EOF
9509 int main() { return 0;}
9510 _LT_EOF
9511       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9512       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9513       _lt_result=$?
9514       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9515         lt_cv_ld_force_load=yes
9516       else
9517         cat conftest.err >&5
9518       fi
9519         rm -f conftest.err libconftest.a conftest conftest.c
9520         rm -rf conftest.dSYM
9521
9522 fi
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9524 $as_echo "$lt_cv_ld_force_load" >&6; }
9525     case $host_os in
9526     rhapsody* | darwin1.[012])
9527       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9528     darwin1.*)
9529       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9530     darwin*) # darwin 5.x on
9531       # if running on 10.5 or later, the deployment target defaults
9532       # to the OS version, if on x86, and 10.4, the deployment
9533       # target defaults to 10.4. Don't you love it?
9534       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9535         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9536           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9537         10.[012]*)
9538           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9539         10.*)
9540           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9541       esac
9542     ;;
9543   esac
9544     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9545       _lt_dar_single_mod='$single_module'
9546     fi
9547     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9548       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9549     else
9550       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9551     fi
9552     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9553       _lt_dsymutil='~$DSYMUTIL $lib || :'
9554     else
9555       _lt_dsymutil=
9556     fi
9557     ;;
9558   esac
9559
9560 ac_ext=c
9561 ac_cpp='$CPP $CPPFLAGS'
9562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9566 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9567 # On Suns, sometimes $CPP names a directory.
9568 if test -n "$CPP" && test -d "$CPP"; then
9569   CPP=
9570 fi
9571 if test -z "$CPP"; then
9572   if test "${ac_cv_prog_CPP+set}" = set; then :
9573   $as_echo_n "(cached) " >&6
9574 else
9575       # Double quotes because CPP needs to be expanded
9576     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9577     do
9578       ac_preproc_ok=false
9579 for ac_c_preproc_warn_flag in '' yes
9580 do
9581   # Use a header file that comes with gcc, so configuring glibc
9582   # with a fresh cross-compiler works.
9583   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9584   # <limits.h> exists even on freestanding compilers.
9585   # On the NeXT, cc -E runs the code through the compiler's parser,
9586   # not just through cpp. "Syntax error" is here to catch this case.
9587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9588 /* end confdefs.h.  */
9589 #ifdef __STDC__
9590 # include <limits.h>
9591 #else
9592 # include <assert.h>
9593 #endif
9594                      Syntax error
9595 _ACEOF
9596 if ac_fn_c_try_cpp "$LINENO"; then :
9597
9598 else
9599   # Broken: fails on valid input.
9600 continue
9601 fi
9602 rm -f conftest.err conftest.$ac_ext
9603
9604   # OK, works on sane cases.  Now check whether nonexistent headers
9605   # can be detected and how.
9606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9607 /* end confdefs.h.  */
9608 #include <ac_nonexistent.h>
9609 _ACEOF
9610 if ac_fn_c_try_cpp "$LINENO"; then :
9611   # Broken: success on invalid input.
9612 continue
9613 else
9614   # Passes both tests.
9615 ac_preproc_ok=:
9616 break
9617 fi
9618 rm -f conftest.err conftest.$ac_ext
9619
9620 done
9621 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9622 rm -f conftest.err conftest.$ac_ext
9623 if $ac_preproc_ok; then :
9624   break
9625 fi
9626
9627     done
9628     ac_cv_prog_CPP=$CPP
9629
9630 fi
9631   CPP=$ac_cv_prog_CPP
9632 else
9633   ac_cv_prog_CPP=$CPP
9634 fi
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9636 $as_echo "$CPP" >&6; }
9637 ac_preproc_ok=false
9638 for ac_c_preproc_warn_flag in '' yes
9639 do
9640   # Use a header file that comes with gcc, so configuring glibc
9641   # with a fresh cross-compiler works.
9642   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9643   # <limits.h> exists even on freestanding compilers.
9644   # On the NeXT, cc -E runs the code through the compiler's parser,
9645   # not just through cpp. "Syntax error" is here to catch this case.
9646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9647 /* end confdefs.h.  */
9648 #ifdef __STDC__
9649 # include <limits.h>
9650 #else
9651 # include <assert.h>
9652 #endif
9653                      Syntax error
9654 _ACEOF
9655 if ac_fn_c_try_cpp "$LINENO"; then :
9656
9657 else
9658   # Broken: fails on valid input.
9659 continue
9660 fi
9661 rm -f conftest.err conftest.$ac_ext
9662
9663   # OK, works on sane cases.  Now check whether nonexistent headers
9664   # can be detected and how.
9665   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9666 /* end confdefs.h.  */
9667 #include <ac_nonexistent.h>
9668 _ACEOF
9669 if ac_fn_c_try_cpp "$LINENO"; then :
9670   # Broken: success on invalid input.
9671 continue
9672 else
9673   # Passes both tests.
9674 ac_preproc_ok=:
9675 break
9676 fi
9677 rm -f conftest.err conftest.$ac_ext
9678
9679 done
9680 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9681 rm -f conftest.err conftest.$ac_ext
9682 if $ac_preproc_ok; then :
9683
9684 else
9685   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9687 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9688 See \`config.log' for more details." "$LINENO" 5; }
9689 fi
9690
9691 ac_ext=c
9692 ac_cpp='$CPP $CPPFLAGS'
9693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9696
9697
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9699 $as_echo_n "checking for ANSI C header files... " >&6; }
9700 if test "${ac_cv_header_stdc+set}" = set; then :
9701   $as_echo_n "(cached) " >&6
9702 else
9703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9704 /* end confdefs.h.  */
9705 #include <stdlib.h>
9706 #include <stdarg.h>
9707 #include <string.h>
9708 #include <float.h>
9709
9710 int
9711 main ()
9712 {
9713
9714   ;
9715   return 0;
9716 }
9717 _ACEOF
9718 if ac_fn_c_try_compile "$LINENO"; then :
9719   ac_cv_header_stdc=yes
9720 else
9721   ac_cv_header_stdc=no
9722 fi
9723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9724
9725 if test $ac_cv_header_stdc = yes; then
9726   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9728 /* end confdefs.h.  */
9729 #include <string.h>
9730
9731 _ACEOF
9732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9733   $EGREP "memchr" >/dev/null 2>&1; then :
9734
9735 else
9736   ac_cv_header_stdc=no
9737 fi
9738 rm -f conftest*
9739
9740 fi
9741
9742 if test $ac_cv_header_stdc = yes; then
9743   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9745 /* end confdefs.h.  */
9746 #include <stdlib.h>
9747
9748 _ACEOF
9749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9750   $EGREP "free" >/dev/null 2>&1; then :
9751
9752 else
9753   ac_cv_header_stdc=no
9754 fi
9755 rm -f conftest*
9756
9757 fi
9758
9759 if test $ac_cv_header_stdc = yes; then
9760   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9761   if test "$cross_compiling" = yes; then :
9762   :
9763 else
9764   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765 /* end confdefs.h.  */
9766 #include <ctype.h>
9767 #include <stdlib.h>
9768 #if ((' ' & 0x0FF) == 0x020)
9769 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9770 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9771 #else
9772 # define ISLOWER(c) \
9773                    (('a' <= (c) && (c) <= 'i') \
9774                      || ('j' <= (c) && (c) <= 'r') \
9775                      || ('s' <= (c) && (c) <= 'z'))
9776 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9777 #endif
9778
9779 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9780 int
9781 main ()
9782 {
9783   int i;
9784   for (i = 0; i < 256; i++)
9785     if (XOR (islower (i), ISLOWER (i))
9786         || toupper (i) != TOUPPER (i))
9787       return 2;
9788   return 0;
9789 }
9790 _ACEOF
9791 if ac_fn_c_try_run "$LINENO"; then :
9792
9793 else
9794   ac_cv_header_stdc=no
9795 fi
9796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9797   conftest.$ac_objext conftest.beam conftest.$ac_ext
9798 fi
9799
9800 fi
9801 fi
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9803 $as_echo "$ac_cv_header_stdc" >&6; }
9804 if test $ac_cv_header_stdc = yes; then
9805
9806 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9807
9808 fi
9809
9810 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9811 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9812                   inttypes.h stdint.h unistd.h
9813 do :
9814   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9815 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9816 "
9817 eval as_val=\$$as_ac_Header
9818    if test "x$as_val" = x""yes; then :
9819   cat >>confdefs.h <<_ACEOF
9820 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9821 _ACEOF
9822
9823 fi
9824
9825 done
9826
9827
9828 for ac_header in dlfcn.h
9829 do :
9830   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9831 "
9832 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9833   cat >>confdefs.h <<_ACEOF
9834 #define HAVE_DLFCN_H 1
9835 _ACEOF
9836
9837 fi
9838
9839 done
9840
9841
9842
9843
9844
9845
9846 # Set options
9847
9848
9849
9850
9851   enable_win32_dll=no
9852
9853
9854             # Check whether --enable-shared was given.
9855 if test "${enable_shared+set}" = set; then :
9856   enableval=$enable_shared; p=${PACKAGE-default}
9857     case $enableval in
9858     yes) enable_shared=yes ;;
9859     no) enable_shared=no ;;
9860     *)
9861       enable_shared=no
9862       # Look at the argument we got.  We use all the common list separators.
9863       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9864       for pkg in $enableval; do
9865         IFS="$lt_save_ifs"
9866         if test "X$pkg" = "X$p"; then
9867           enable_shared=yes
9868         fi
9869       done
9870       IFS="$lt_save_ifs"
9871       ;;
9872     esac
9873 else
9874   enable_shared=yes
9875 fi
9876
9877
9878
9879
9880
9881
9882
9883
9884
9885   # Check whether --enable-static was given.
9886 if test "${enable_static+set}" = set; then :
9887   enableval=$enable_static; p=${PACKAGE-default}
9888     case $enableval in
9889     yes) enable_static=yes ;;
9890     no) enable_static=no ;;
9891     *)
9892      enable_static=no
9893       # Look at the argument we got.  We use all the common list separators.
9894       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9895       for pkg in $enableval; do
9896         IFS="$lt_save_ifs"
9897         if test "X$pkg" = "X$p"; then
9898           enable_static=yes
9899         fi
9900       done
9901       IFS="$lt_save_ifs"
9902       ;;
9903     esac
9904 else
9905   enable_static=yes
9906 fi
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917 # Check whether --with-pic was given.
9918 if test "${with_pic+set}" = set; then :
9919   withval=$with_pic; pic_mode="$withval"
9920 else
9921   pic_mode=default
9922 fi
9923
9924
9925 test -z "$pic_mode" && pic_mode=default
9926
9927
9928
9929
9930
9931
9932
9933   # Check whether --enable-fast-install was given.
9934 if test "${enable_fast_install+set}" = set; then :
9935   enableval=$enable_fast_install; p=${PACKAGE-default}
9936     case $enableval in
9937     yes) enable_fast_install=yes ;;
9938     no) enable_fast_install=no ;;
9939     *)
9940       enable_fast_install=no
9941       # Look at the argument we got.  We use all the common list separators.
9942       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9943       for pkg in $enableval; do
9944         IFS="$lt_save_ifs"
9945         if test "X$pkg" = "X$p"; then
9946           enable_fast_install=yes
9947         fi
9948       done
9949       IFS="$lt_save_ifs"
9950       ;;
9951     esac
9952 else
9953   enable_fast_install=yes
9954 fi
9955
9956
9957
9958
9959
9960
9961
9962
9963
9964
9965
9966 # This can be used to rebuild libtool when needed
9967 LIBTOOL_DEPS="$ltmain"
9968
9969 # Always use our own libtool.
9970 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
9991
9992
9993
9994
9995
9996
9997 test -z "$LN_S" && LN_S="ln -s"
9998
9999
10000
10001
10002
10003
10004
10005
10006
10007
10008
10009
10010
10011
10012 if test -n "${ZSH_VERSION+set}" ; then
10013    setopt NO_GLOB_SUBST
10014 fi
10015
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
10017 $as_echo_n "checking for objdir... " >&6; }
10018 if test "${lt_cv_objdir+set}" = set; then :
10019   $as_echo_n "(cached) " >&6
10020 else
10021   rm -f .libs 2>/dev/null
10022 mkdir .libs 2>/dev/null
10023 if test -d .libs; then
10024   lt_cv_objdir=.libs
10025 else
10026   # MS-DOS does not allow filenames that begin with a dot.
10027   lt_cv_objdir=_libs
10028 fi
10029 rmdir .libs 2>/dev/null
10030 fi
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
10032 $as_echo "$lt_cv_objdir" >&6; }
10033 objdir=$lt_cv_objdir
10034
10035
10036
10037
10038
10039 cat >>confdefs.h <<_ACEOF
10040 #define LT_OBJDIR "$lt_cv_objdir/"
10041 _ACEOF
10042
10043
10044
10045
10046 case $host_os in
10047 aix3*)
10048   # AIX sometimes has problems with the GCC collect2 program.  For some
10049   # reason, if we set the COLLECT_NAMES environment variable, the problems
10050   # vanish in a puff of smoke.
10051   if test "X${COLLECT_NAMES+set}" != Xset; then
10052     COLLECT_NAMES=
10053     export COLLECT_NAMES
10054   fi
10055   ;;
10056 esac
10057
10058 # Global variables:
10059 ofile=libtool
10060 can_build_shared=yes
10061
10062 # All known linkers require a `.a' archive for static linking (except MSVC,
10063 # which needs '.lib').
10064 libext=a
10065
10066 with_gnu_ld="$lt_cv_prog_gnu_ld"
10067
10068 old_CC="$CC"
10069 old_CFLAGS="$CFLAGS"
10070
10071 # Set sane defaults for various variables
10072 test -z "$CC" && CC=cc
10073 test -z "$LTCC" && LTCC=$CC
10074 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
10075 test -z "$LD" && LD=ld
10076 test -z "$ac_objext" && ac_objext=o
10077
10078 for cc_temp in $compiler""; do
10079   case $cc_temp in
10080     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10081     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10082     \-*) ;;
10083     *) break;;
10084   esac
10085 done
10086 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10087
10088
10089 # Only perform the check for file, if the check method requires it
10090 test -z "$MAGIC_CMD" && MAGIC_CMD=file
10091 case $deplibs_check_method in
10092 file_magic*)
10093   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
10094     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
10095 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
10096 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10097   $as_echo_n "(cached) " >&6
10098 else
10099   case $MAGIC_CMD in
10100 [\\/*] |  ?:[\\/]*)
10101   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10102   ;;
10103 *)
10104   lt_save_MAGIC_CMD="$MAGIC_CMD"
10105   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10106   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10107   for ac_dir in $ac_dummy; do
10108     IFS="$lt_save_ifs"
10109     test -z "$ac_dir" && ac_dir=.
10110     if test -f $ac_dir/${ac_tool_prefix}file; then
10111       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
10112       if test -n "$file_magic_test_file"; then
10113         case $deplibs_check_method in
10114         "file_magic "*)
10115           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10116           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10117           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10118             $EGREP "$file_magic_regex" > /dev/null; then
10119             :
10120           else
10121             cat <<_LT_EOF 1>&2
10122
10123 *** Warning: the command libtool uses to detect shared libraries,
10124 *** $file_magic_cmd, produces output that libtool cannot recognize.
10125 *** The result is that libtool may fail to recognize shared libraries
10126 *** as such.  This will affect the creation of libtool libraries that
10127 *** depend on shared libraries, but programs linked with such libtool
10128 *** libraries will work regardless of this problem.  Nevertheless, you
10129 *** may want to report the problem to your system manager and/or to
10130 *** bug-libtool@gnu.org
10131
10132 _LT_EOF
10133           fi ;;
10134         esac
10135       fi
10136       break
10137     fi
10138   done
10139   IFS="$lt_save_ifs"
10140   MAGIC_CMD="$lt_save_MAGIC_CMD"
10141   ;;
10142 esac
10143 fi
10144
10145 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10146 if test -n "$MAGIC_CMD"; then
10147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10148 $as_echo "$MAGIC_CMD" >&6; }
10149 else
10150   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10151 $as_echo "no" >&6; }
10152 fi
10153
10154
10155
10156
10157
10158 if test -z "$lt_cv_path_MAGIC_CMD"; then
10159   if test -n "$ac_tool_prefix"; then
10160     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
10161 $as_echo_n "checking for file... " >&6; }
10162 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
10163   $as_echo_n "(cached) " >&6
10164 else
10165   case $MAGIC_CMD in
10166 [\\/*] |  ?:[\\/]*)
10167   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
10168   ;;
10169 *)
10170   lt_save_MAGIC_CMD="$MAGIC_CMD"
10171   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10172   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
10173   for ac_dir in $ac_dummy; do
10174     IFS="$lt_save_ifs"
10175     test -z "$ac_dir" && ac_dir=.
10176     if test -f $ac_dir/file; then
10177       lt_cv_path_MAGIC_CMD="$ac_dir/file"
10178       if test -n "$file_magic_test_file"; then
10179         case $deplibs_check_method in
10180         "file_magic "*)
10181           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
10182           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10183           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
10184             $EGREP "$file_magic_regex" > /dev/null; then
10185             :
10186           else
10187             cat <<_LT_EOF 1>&2
10188
10189 *** Warning: the command libtool uses to detect shared libraries,
10190 *** $file_magic_cmd, produces output that libtool cannot recognize.
10191 *** The result is that libtool may fail to recognize shared libraries
10192 *** as such.  This will affect the creation of libtool libraries that
10193 *** depend on shared libraries, but programs linked with such libtool
10194 *** libraries will work regardless of this problem.  Nevertheless, you
10195 *** may want to report the problem to your system manager and/or to
10196 *** bug-libtool@gnu.org
10197
10198 _LT_EOF
10199           fi ;;
10200         esac
10201       fi
10202       break
10203     fi
10204   done
10205   IFS="$lt_save_ifs"
10206   MAGIC_CMD="$lt_save_MAGIC_CMD"
10207   ;;
10208 esac
10209 fi
10210
10211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
10212 if test -n "$MAGIC_CMD"; then
10213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
10214 $as_echo "$MAGIC_CMD" >&6; }
10215 else
10216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10217 $as_echo "no" >&6; }
10218 fi
10219
10220
10221   else
10222     MAGIC_CMD=:
10223   fi
10224 fi
10225
10226   fi
10227   ;;
10228 esac
10229
10230 # Use C for the default configuration in the libtool script
10231
10232 lt_save_CC="$CC"
10233 ac_ext=c
10234 ac_cpp='$CPP $CPPFLAGS'
10235 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10236 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10237 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10238
10239
10240 # Source file extension for C test sources.
10241 ac_ext=c
10242
10243 # Object file extension for compiled C test sources.
10244 objext=o
10245 objext=$objext
10246
10247 # Code to be used in simple compile tests
10248 lt_simple_compile_test_code="int some_variable = 0;"
10249
10250 # Code to be used in simple link tests
10251 lt_simple_link_test_code='int main(){return(0);}'
10252
10253
10254
10255
10256
10257
10258
10259 # If no C compiler was specified, use CC.
10260 LTCC=${LTCC-"$CC"}
10261
10262 # If no C compiler flags were specified, use CFLAGS.
10263 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10264
10265 # Allow CC to be a program name with arguments.
10266 compiler=$CC
10267
10268 # Save the default compiler, since it gets overwritten when the other
10269 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
10270 compiler_DEFAULT=$CC
10271
10272 # save warnings/boilerplate of simple test code
10273 ac_outfile=conftest.$ac_objext
10274 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10275 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10276 _lt_compiler_boilerplate=`cat conftest.err`
10277 $RM conftest*
10278
10279 ac_outfile=conftest.$ac_objext
10280 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10281 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10282 _lt_linker_boilerplate=`cat conftest.err`
10283 $RM -r conftest*
10284
10285
10286 ## CAVEAT EMPTOR:
10287 ## There is no encapsulation within the following macros, do not change
10288 ## the running order or otherwise move them around unless you know exactly
10289 ## what you are doing...
10290 if test -n "$compiler"; then
10291
10292 lt_prog_compiler_no_builtin_flag=
10293
10294 if test "$GCC" = yes; then
10295   case $cc_basename in
10296   nvcc*)
10297     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
10298   *)
10299     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
10300   esac
10301
10302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
10303 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
10304 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
10305   $as_echo_n "(cached) " >&6
10306 else
10307   lt_cv_prog_compiler_rtti_exceptions=no
10308    ac_outfile=conftest.$ac_objext
10309    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10310    lt_compiler_flag="-fno-rtti -fno-exceptions"
10311    # Insert the option either (1) after the last *FLAGS variable, or
10312    # (2) before a word containing "conftest.", or (3) at the end.
10313    # Note that $ac_compile itself does not contain backslashes and begins
10314    # with a dollar sign (not a hyphen), so the echo should work correctly.
10315    # The option is referenced via a variable to avoid confusing sed.
10316    lt_compile=`echo "$ac_compile" | $SED \
10317    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10318    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10319    -e 's:$: $lt_compiler_flag:'`
10320    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10321    (eval "$lt_compile" 2>conftest.err)
10322    ac_status=$?
10323    cat conftest.err >&5
10324    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325    if (exit $ac_status) && test -s "$ac_outfile"; then
10326      # The compiler can only warn and ignore the option if not recognized
10327      # So say no if there are warnings other than the usual output.
10328      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10329      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10330      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10331        lt_cv_prog_compiler_rtti_exceptions=yes
10332      fi
10333    fi
10334    $RM conftest*
10335
10336 fi
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
10338 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
10339
10340 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
10341     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
10342 else
10343     :
10344 fi
10345
10346 fi
10347
10348
10349
10350
10351
10352
10353   lt_prog_compiler_wl=
10354 lt_prog_compiler_pic=
10355 lt_prog_compiler_static=
10356
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10358 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10359
10360   if test "$GCC" = yes; then
10361     lt_prog_compiler_wl='-Wl,'
10362     lt_prog_compiler_static='-static'
10363
10364     case $host_os in
10365       aix*)
10366       # All AIX code is PIC.
10367       if test "$host_cpu" = ia64; then
10368         # AIX 5 now supports IA64 processor
10369         lt_prog_compiler_static='-Bstatic'
10370       fi
10371       ;;
10372
10373     amigaos*)
10374       case $host_cpu in
10375       powerpc)
10376             # see comment about AmigaOS4 .so support
10377             lt_prog_compiler_pic='-fPIC'
10378         ;;
10379       m68k)
10380             # FIXME: we need at least 68020 code to build shared libraries, but
10381             # adding the `-m68020' flag to GCC prevents building anything better,
10382             # like `-m68040'.
10383             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
10384         ;;
10385       esac
10386       ;;
10387
10388     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10389       # PIC is the default for these OSes.
10390       ;;
10391
10392     mingw* | cygwin* | pw32* | os2* | cegcc*)
10393       # This hack is so that the source file can tell whether it is being
10394       # built for inclusion in a dll (and should export symbols for example).
10395       # Although the cygwin gcc ignores -fPIC, still need this for old-style
10396       # (--disable-auto-import) libraries
10397       lt_prog_compiler_pic='-DDLL_EXPORT'
10398       ;;
10399
10400     darwin* | rhapsody*)
10401       # PIC is the default on this platform
10402       # Common symbols not allowed in MH_DYLIB files
10403       lt_prog_compiler_pic='-fno-common'
10404       ;;
10405
10406     haiku*)
10407       # PIC is the default for Haiku.
10408       # The "-static" flag exists, but is broken.
10409       lt_prog_compiler_static=
10410       ;;
10411
10412     hpux*)
10413       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
10414       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
10415       # sets the default TLS model and affects inlining.
10416       case $host_cpu in
10417       hppa*64*)
10418         # +Z the default
10419         ;;
10420       *)
10421         lt_prog_compiler_pic='-fPIC'
10422         ;;
10423       esac
10424       ;;
10425
10426     interix[3-9]*)
10427       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
10428       # Instead, we relocate shared libraries at runtime.
10429       ;;
10430
10431     msdosdjgpp*)
10432       # Just because we use GCC doesn't mean we suddenly get shared libraries
10433       # on systems that don't support them.
10434       lt_prog_compiler_can_build_shared=no
10435       enable_shared=no
10436       ;;
10437
10438     *nto* | *qnx*)
10439       # QNX uses GNU C++, but need to define -shared option too, otherwise
10440       # it will coredump.
10441       lt_prog_compiler_pic='-fPIC -shared'
10442       ;;
10443
10444     sysv4*MP*)
10445       if test -d /usr/nec; then
10446         lt_prog_compiler_pic=-Kconform_pic
10447       fi
10448       ;;
10449
10450     *)
10451       lt_prog_compiler_pic='-fPIC'
10452       ;;
10453     esac
10454
10455     case $cc_basename in
10456     nvcc*) # Cuda Compiler Driver 2.2
10457       lt_prog_compiler_wl='-Xlinker '
10458       lt_prog_compiler_pic='-Xcompiler -fPIC'
10459       ;;
10460     esac
10461   else
10462     # PORTME Check for flag to pass linker flags through the system compiler.
10463     case $host_os in
10464     aix*)
10465       lt_prog_compiler_wl='-Wl,'
10466       if test "$host_cpu" = ia64; then
10467         # AIX 5 now supports IA64 processor
10468         lt_prog_compiler_static='-Bstatic'
10469       else
10470         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
10471       fi
10472       ;;
10473
10474     mingw* | cygwin* | pw32* | os2* | cegcc*)
10475       # This hack is so that the source file can tell whether it is being
10476       # built for inclusion in a dll (and should export symbols for example).
10477       lt_prog_compiler_pic='-DDLL_EXPORT'
10478       ;;
10479
10480     hpux9* | hpux10* | hpux11*)
10481       lt_prog_compiler_wl='-Wl,'
10482       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10483       # not for PA HP-UX.
10484       case $host_cpu in
10485       hppa*64*|ia64*)
10486         # +Z the default
10487         ;;
10488       *)
10489         lt_prog_compiler_pic='+Z'
10490         ;;
10491       esac
10492       # Is there a better lt_prog_compiler_static that works with the bundled CC?
10493       lt_prog_compiler_static='${wl}-a ${wl}archive'
10494       ;;
10495
10496     irix5* | irix6* | nonstopux*)
10497       lt_prog_compiler_wl='-Wl,'
10498       # PIC (with -KPIC) is the default.
10499       lt_prog_compiler_static='-non_shared'
10500       ;;
10501
10502     linux* | k*bsd*-gnu | kopensolaris*-gnu)
10503       case $cc_basename in
10504       # old Intel for x86_64 which still supported -KPIC.
10505       ecc*)
10506         lt_prog_compiler_wl='-Wl,'
10507         lt_prog_compiler_pic='-KPIC'
10508         lt_prog_compiler_static='-static'
10509         ;;
10510       # icc used to be incompatible with GCC.
10511       # ICC 10 doesn't accept -KPIC any more.
10512       icc* | ifort*)
10513         lt_prog_compiler_wl='-Wl,'
10514         lt_prog_compiler_pic='-fPIC'
10515         lt_prog_compiler_static='-static'
10516         ;;
10517       # Lahey Fortran 8.1.
10518       lf95*)
10519         lt_prog_compiler_wl='-Wl,'
10520         lt_prog_compiler_pic='--shared'
10521         lt_prog_compiler_static='--static'
10522         ;;
10523       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
10524         # Portland Group compilers (*not* the Pentium gcc compiler,
10525         # which looks to be a dead project)
10526         lt_prog_compiler_wl='-Wl,'
10527         lt_prog_compiler_pic='-fpic'
10528         lt_prog_compiler_static='-Bstatic'
10529         ;;
10530       ccc*)
10531         lt_prog_compiler_wl='-Wl,'
10532         # All Alpha code is PIC.
10533         lt_prog_compiler_static='-non_shared'
10534         ;;
10535       xl* | bgxl* | bgf* | mpixl*)
10536         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
10537         lt_prog_compiler_wl='-Wl,'
10538         lt_prog_compiler_pic='-qpic'
10539         lt_prog_compiler_static='-qstaticlink'
10540         ;;
10541       *)
10542         case `$CC -V 2>&1 | sed 5q` in
10543         *Sun\ F* | *Sun*Fortran*)
10544           # Sun Fortran 8.3 passes all unrecognized flags to the linker
10545           lt_prog_compiler_pic='-KPIC'
10546           lt_prog_compiler_static='-Bstatic'
10547           lt_prog_compiler_wl=''
10548           ;;
10549         *Sun\ C*)
10550           # Sun C 5.9
10551           lt_prog_compiler_pic='-KPIC'
10552           lt_prog_compiler_static='-Bstatic'
10553           lt_prog_compiler_wl='-Wl,'
10554           ;;
10555         esac
10556         ;;
10557       esac
10558       ;;
10559
10560     newsos6)
10561       lt_prog_compiler_pic='-KPIC'
10562       lt_prog_compiler_static='-Bstatic'
10563       ;;
10564
10565     *nto* | *qnx*)
10566       # QNX uses GNU C++, but need to define -shared option too, otherwise
10567       # it will coredump.
10568       lt_prog_compiler_pic='-fPIC -shared'
10569       ;;
10570
10571     osf3* | osf4* | osf5*)
10572       lt_prog_compiler_wl='-Wl,'
10573       # All OSF/1 code is PIC.
10574       lt_prog_compiler_static='-non_shared'
10575       ;;
10576
10577     rdos*)
10578       lt_prog_compiler_static='-non_shared'
10579       ;;
10580
10581     solaris*)
10582       lt_prog_compiler_pic='-KPIC'
10583       lt_prog_compiler_static='-Bstatic'
10584       case $cc_basename in
10585       f77* | f90* | f95*)
10586         lt_prog_compiler_wl='-Qoption ld ';;
10587       *)
10588         lt_prog_compiler_wl='-Wl,';;
10589       esac
10590       ;;
10591
10592     sunos4*)
10593       lt_prog_compiler_wl='-Qoption ld '
10594       lt_prog_compiler_pic='-PIC'
10595       lt_prog_compiler_static='-Bstatic'
10596       ;;
10597
10598     sysv4 | sysv4.2uw2* | sysv4.3*)
10599       lt_prog_compiler_wl='-Wl,'
10600       lt_prog_compiler_pic='-KPIC'
10601       lt_prog_compiler_static='-Bstatic'
10602       ;;
10603
10604     sysv4*MP*)
10605       if test -d /usr/nec ;then
10606         lt_prog_compiler_pic='-Kconform_pic'
10607         lt_prog_compiler_static='-Bstatic'
10608       fi
10609       ;;
10610
10611     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10612       lt_prog_compiler_wl='-Wl,'
10613       lt_prog_compiler_pic='-KPIC'
10614       lt_prog_compiler_static='-Bstatic'
10615       ;;
10616
10617     unicos*)
10618       lt_prog_compiler_wl='-Wl,'
10619       lt_prog_compiler_can_build_shared=no
10620       ;;
10621
10622     uts4*)
10623       lt_prog_compiler_pic='-pic'
10624       lt_prog_compiler_static='-Bstatic'
10625       ;;
10626
10627     *)
10628       lt_prog_compiler_can_build_shared=no
10629       ;;
10630     esac
10631   fi
10632
10633 case $host_os in
10634   # For platforms which do not support PIC, -DPIC is meaningless:
10635   *djgpp*)
10636     lt_prog_compiler_pic=
10637     ;;
10638   *)
10639     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10640     ;;
10641 esac
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10643 $as_echo "$lt_prog_compiler_pic" >&6; }
10644
10645
10646
10647
10648
10649
10650 #
10651 # Check to make sure the PIC flag actually works.
10652 #
10653 if test -n "$lt_prog_compiler_pic"; then
10654   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10655 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10656 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10657   $as_echo_n "(cached) " >&6
10658 else
10659   lt_cv_prog_compiler_pic_works=no
10660    ac_outfile=conftest.$ac_objext
10661    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10662    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10663    # Insert the option either (1) after the last *FLAGS variable, or
10664    # (2) before a word containing "conftest.", or (3) at the end.
10665    # Note that $ac_compile itself does not contain backslashes and begins
10666    # with a dollar sign (not a hyphen), so the echo should work correctly.
10667    # The option is referenced via a variable to avoid confusing sed.
10668    lt_compile=`echo "$ac_compile" | $SED \
10669    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10670    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10671    -e 's:$: $lt_compiler_flag:'`
10672    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10673    (eval "$lt_compile" 2>conftest.err)
10674    ac_status=$?
10675    cat conftest.err >&5
10676    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677    if (exit $ac_status) && test -s "$ac_outfile"; then
10678      # The compiler can only warn and ignore the option if not recognized
10679      # So say no if there are warnings other than the usual output.
10680      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10681      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10682      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10683        lt_cv_prog_compiler_pic_works=yes
10684      fi
10685    fi
10686    $RM conftest*
10687
10688 fi
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10690 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10691
10692 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10693     case $lt_prog_compiler_pic in
10694      "" | " "*) ;;
10695      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10696      esac
10697 else
10698     lt_prog_compiler_pic=
10699      lt_prog_compiler_can_build_shared=no
10700 fi
10701
10702 fi
10703
10704
10705
10706
10707
10708
10709 #
10710 # Check to make sure the static flag actually works.
10711 #
10712 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10714 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10715 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10716   $as_echo_n "(cached) " >&6
10717 else
10718   lt_cv_prog_compiler_static_works=no
10719    save_LDFLAGS="$LDFLAGS"
10720    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10721    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10722    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10723      # The linker can only warn and ignore the option if not recognized
10724      # So say no if there are warnings
10725      if test -s conftest.err; then
10726        # Append any errors to the config.log.
10727        cat conftest.err 1>&5
10728        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10729        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10730        if diff conftest.exp conftest.er2 >/dev/null; then
10731          lt_cv_prog_compiler_static_works=yes
10732        fi
10733      else
10734        lt_cv_prog_compiler_static_works=yes
10735      fi
10736    fi
10737    $RM -r conftest*
10738    LDFLAGS="$save_LDFLAGS"
10739
10740 fi
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10742 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10743
10744 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10745     :
10746 else
10747     lt_prog_compiler_static=
10748 fi
10749
10750
10751
10752
10753
10754
10755
10756   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10757 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10758 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10759   $as_echo_n "(cached) " >&6
10760 else
10761   lt_cv_prog_compiler_c_o=no
10762    $RM -r conftest 2>/dev/null
10763    mkdir conftest
10764    cd conftest
10765    mkdir out
10766    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10767
10768    lt_compiler_flag="-o out/conftest2.$ac_objext"
10769    # Insert the option either (1) after the last *FLAGS variable, or
10770    # (2) before a word containing "conftest.", or (3) at the end.
10771    # Note that $ac_compile itself does not contain backslashes and begins
10772    # with a dollar sign (not a hyphen), so the echo should work correctly.
10773    lt_compile=`echo "$ac_compile" | $SED \
10774    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10775    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10776    -e 's:$: $lt_compiler_flag:'`
10777    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10778    (eval "$lt_compile" 2>out/conftest.err)
10779    ac_status=$?
10780    cat out/conftest.err >&5
10781    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10782    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10783    then
10784      # The compiler can only warn and ignore the option if not recognized
10785      # So say no if there are warnings
10786      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10787      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10788      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10789        lt_cv_prog_compiler_c_o=yes
10790      fi
10791    fi
10792    chmod u+w . 2>&5
10793    $RM conftest*
10794    # SGI C++ compiler will create directory out/ii_files/ for
10795    # template instantiation
10796    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10797    $RM out/* && rmdir out
10798    cd ..
10799    $RM -r conftest
10800    $RM conftest*
10801
10802 fi
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10804 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10805
10806
10807
10808
10809
10810
10811   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10812 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10813 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10814   $as_echo_n "(cached) " >&6
10815 else
10816   lt_cv_prog_compiler_c_o=no
10817    $RM -r conftest 2>/dev/null
10818    mkdir conftest
10819    cd conftest
10820    mkdir out
10821    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10822
10823    lt_compiler_flag="-o out/conftest2.$ac_objext"
10824    # Insert the option either (1) after the last *FLAGS variable, or
10825    # (2) before a word containing "conftest.", or (3) at the end.
10826    # Note that $ac_compile itself does not contain backslashes and begins
10827    # with a dollar sign (not a hyphen), so the echo should work correctly.
10828    lt_compile=`echo "$ac_compile" | $SED \
10829    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10830    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10831    -e 's:$: $lt_compiler_flag:'`
10832    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10833    (eval "$lt_compile" 2>out/conftest.err)
10834    ac_status=$?
10835    cat out/conftest.err >&5
10836    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10837    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10838    then
10839      # The compiler can only warn and ignore the option if not recognized
10840      # So say no if there are warnings
10841      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10842      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10843      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10844        lt_cv_prog_compiler_c_o=yes
10845      fi
10846    fi
10847    chmod u+w . 2>&5
10848    $RM conftest*
10849    # SGI C++ compiler will create directory out/ii_files/ for
10850    # template instantiation
10851    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10852    $RM out/* && rmdir out
10853    cd ..
10854    $RM -r conftest
10855    $RM conftest*
10856
10857 fi
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10859 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10860
10861
10862
10863
10864 hard_links="nottested"
10865 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10866   # do not overwrite the value of need_locks provided by the user
10867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10868 $as_echo_n "checking if we can lock with hard links... " >&6; }
10869   hard_links=yes
10870   $RM conftest*
10871   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10872   touch conftest.a
10873   ln conftest.a conftest.b 2>&5 || hard_links=no
10874   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10876 $as_echo "$hard_links" >&6; }
10877   if test "$hard_links" = no; then
10878     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10879 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10880     need_locks=warn
10881   fi
10882 else
10883   need_locks=no
10884 fi
10885
10886
10887
10888
10889
10890
10891   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10892 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10893
10894   runpath_var=
10895   allow_undefined_flag=
10896   always_export_symbols=no
10897   archive_cmds=
10898   archive_expsym_cmds=
10899   compiler_needs_object=no
10900   enable_shared_with_static_runtimes=no
10901   export_dynamic_flag_spec=
10902   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10903   hardcode_automatic=no
10904   hardcode_direct=no
10905   hardcode_direct_absolute=no
10906   hardcode_libdir_flag_spec=
10907   hardcode_libdir_flag_spec_ld=
10908   hardcode_libdir_separator=
10909   hardcode_minus_L=no
10910   hardcode_shlibpath_var=unsupported
10911   inherit_rpath=no
10912   link_all_deplibs=unknown
10913   module_cmds=
10914   module_expsym_cmds=
10915   old_archive_from_new_cmds=
10916   old_archive_from_expsyms_cmds=
10917   thread_safe_flag_spec=
10918   whole_archive_flag_spec=
10919   # include_expsyms should be a list of space-separated symbols to be *always*
10920   # included in the symbol list
10921   include_expsyms=
10922   # exclude_expsyms can be an extended regexp of symbols to exclude
10923   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10924   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10925   # as well as any symbol that contains `d'.
10926   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10927   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10928   # platforms (ab)use it in PIC code, but their linkers get confused if
10929   # the symbol is explicitly referenced.  Since portable code cannot
10930   # rely on this symbol name, it's probably fine to never include it in
10931   # preloaded symbol tables.
10932   # Exclude shared library initialization/finalization symbols.
10933   extract_expsyms_cmds=
10934
10935   case $host_os in
10936   cygwin* | mingw* | pw32* | cegcc*)
10937     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10938     # When not using gcc, we currently assume that we are using
10939     # Microsoft Visual C++.
10940     if test "$GCC" != yes; then
10941       with_gnu_ld=no
10942     fi
10943     ;;
10944   interix*)
10945     # we just hope/assume this is gcc and not c89 (= MSVC++)
10946     with_gnu_ld=yes
10947     ;;
10948   openbsd*)
10949     with_gnu_ld=no
10950     ;;
10951   esac
10952
10953   ld_shlibs=yes
10954
10955   # On some targets, GNU ld is compatible enough with the native linker
10956   # that we're better off using the native interface for both.
10957   lt_use_gnu_ld_interface=no
10958   if test "$with_gnu_ld" = yes; then
10959     case $host_os in
10960       aix*)
10961         # The AIX port of GNU ld has always aspired to compatibility
10962         # with the native linker.  However, as the warning in the GNU ld
10963         # block says, versions before 2.19.5* couldn't really create working
10964         # shared libraries, regardless of the interface used.
10965         case `$LD -v 2>&1` in
10966           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10967           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10968           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10969           *)
10970             lt_use_gnu_ld_interface=yes
10971             ;;
10972         esac
10973         ;;
10974       *)
10975         lt_use_gnu_ld_interface=yes
10976         ;;
10977     esac
10978   fi
10979
10980   if test "$lt_use_gnu_ld_interface" = yes; then
10981     # If archive_cmds runs LD, not CC, wlarc should be empty
10982     wlarc='${wl}'
10983
10984     # Set some defaults for GNU ld with shared library support. These
10985     # are reset later if shared libraries are not supported. Putting them
10986     # here allows them to be overridden if necessary.
10987     runpath_var=LD_RUN_PATH
10988     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10989     export_dynamic_flag_spec='${wl}--export-dynamic'
10990     # ancient GNU ld didn't support --whole-archive et. al.
10991     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10992       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10993     else
10994       whole_archive_flag_spec=
10995     fi
10996     supports_anon_versioning=no
10997     case `$LD -v 2>&1` in
10998       *GNU\ gold*) supports_anon_versioning=yes ;;
10999       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
11000       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
11001       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
11002       *\ 2.11.*) ;; # other 2.11 versions
11003       *) supports_anon_versioning=yes ;;
11004     esac
11005
11006     # See if GNU ld supports shared libraries.
11007     case $host_os in
11008     aix[3-9]*)
11009       # On AIX/PPC, the GNU linker is very broken
11010       if test "$host_cpu" != ia64; then
11011         ld_shlibs=no
11012         cat <<_LT_EOF 1>&2
11013
11014 *** Warning: the GNU linker, at least up to release 2.19, is reported
11015 *** to be unable to reliably create shared libraries on AIX.
11016 *** Therefore, libtool is disabling shared libraries support.  If you
11017 *** really care for shared libraries, you may want to install binutils
11018 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
11019 *** You will then need to restart the configuration process.
11020
11021 _LT_EOF
11022       fi
11023       ;;
11024
11025     amigaos*)
11026       case $host_cpu in
11027       powerpc)
11028             # see comment about AmigaOS4 .so support
11029             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11030             archive_expsym_cmds=''
11031         ;;
11032       m68k)
11033             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)'
11034             hardcode_libdir_flag_spec='-L$libdir'
11035             hardcode_minus_L=yes
11036         ;;
11037       esac
11038       ;;
11039
11040     beos*)
11041       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11042         allow_undefined_flag=unsupported
11043         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11044         # support --undefined.  This deserves some investigation.  FIXME
11045         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11046       else
11047         ld_shlibs=no
11048       fi
11049       ;;
11050
11051     cygwin* | mingw* | pw32* | cegcc*)
11052       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
11053       # as there is no search path for DLLs.
11054       hardcode_libdir_flag_spec='-L$libdir'
11055       export_dynamic_flag_spec='${wl}--export-all-symbols'
11056       allow_undefined_flag=unsupported
11057       always_export_symbols=no
11058       enable_shared_with_static_runtimes=yes
11059       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11060
11061       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11062         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11063         # If the export-symbols file already is a .def file (1st line
11064         # is EXPORTS), use it as is; otherwise, prepend...
11065         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11066           cp $export_symbols $output_objdir/$soname.def;
11067         else
11068           echo EXPORTS > $output_objdir/$soname.def;
11069           cat $export_symbols >> $output_objdir/$soname.def;
11070         fi~
11071         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11072       else
11073         ld_shlibs=no
11074       fi
11075       ;;
11076
11077     haiku*)
11078       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11079       link_all_deplibs=yes
11080       ;;
11081
11082     interix[3-9]*)
11083       hardcode_direct=no
11084       hardcode_shlibpath_var=no
11085       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11086       export_dynamic_flag_spec='${wl}-E'
11087       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11088       # Instead, shared libraries are loaded at an image base (0x10000000 by
11089       # default) and relocated if they conflict, which is a slow very memory
11090       # consuming and fragmenting process.  To avoid this, we pick a random,
11091       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11092       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
11093       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11094       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'
11095       ;;
11096
11097     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
11098       tmp_diet=no
11099       if test "$host_os" = linux-dietlibc; then
11100         case $cc_basename in
11101           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
11102         esac
11103       fi
11104       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
11105          && test "$tmp_diet" = no
11106       then
11107         tmp_addflag=
11108         tmp_sharedflag='-shared'
11109         case $cc_basename,$host_cpu in
11110         pgcc*)                          # Portland Group C compiler
11111           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'
11112           tmp_addflag=' $pic_flag'
11113           ;;
11114         pgf77* | pgf90* | pgf95* | pgfortran*)
11115                                         # Portland Group f77 and f90 compilers
11116           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'
11117           tmp_addflag=' $pic_flag -Mnomain' ;;
11118         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
11119           tmp_addflag=' -i_dynamic' ;;
11120         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
11121           tmp_addflag=' -i_dynamic -nofor_main' ;;
11122         ifc* | ifort*)                  # Intel Fortran compiler
11123           tmp_addflag=' -nofor_main' ;;
11124         lf95*)                          # Lahey Fortran 8.1
11125           whole_archive_flag_spec=
11126           tmp_sharedflag='--shared' ;;
11127         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
11128           tmp_sharedflag='-qmkshrobj'
11129           tmp_addflag= ;;
11130         nvcc*)  # Cuda Compiler Driver 2.2
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           compiler_needs_object=yes
11133           ;;
11134         esac
11135         case `$CC -V 2>&1 | sed 5q` in
11136         *Sun\ C*)                       # Sun C 5.9
11137           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'
11138           compiler_needs_object=yes
11139           tmp_sharedflag='-G' ;;
11140         *Sun\ F*)                       # Sun Fortran 8.3
11141           tmp_sharedflag='-G' ;;
11142         esac
11143         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11144
11145         if test "x$supports_anon_versioning" = xyes; then
11146           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11147             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11148             echo "local: *; };" >> $output_objdir/$libname.ver~
11149             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
11150         fi
11151
11152         case $cc_basename in
11153         xlf* | bgf* | bgxlf* | mpixlf*)
11154           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
11155           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
11156           hardcode_libdir_flag_spec=
11157           hardcode_libdir_flag_spec_ld='-rpath $libdir'
11158           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
11159           if test "x$supports_anon_versioning" = xyes; then
11160             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
11161               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
11162               echo "local: *; };" >> $output_objdir/$libname.ver~
11163               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
11164           fi
11165           ;;
11166         esac
11167       else
11168         ld_shlibs=no
11169       fi
11170       ;;
11171
11172     netbsd*)
11173       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11174         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
11175         wlarc=
11176       else
11177         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11178         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11179       fi
11180       ;;
11181
11182     solaris*)
11183       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
11184         ld_shlibs=no
11185         cat <<_LT_EOF 1>&2
11186
11187 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
11188 *** create shared libraries on Solaris systems.  Therefore, libtool
11189 *** is disabling shared libraries support.  We urge you to upgrade GNU
11190 *** binutils to release 2.9.1 or newer.  Another option is to modify
11191 *** your PATH or compiler configuration so that the native linker is
11192 *** used, and then restart.
11193
11194 _LT_EOF
11195       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11196         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11197         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11198       else
11199         ld_shlibs=no
11200       fi
11201       ;;
11202
11203     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
11204       case `$LD -v 2>&1` in
11205         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
11206         ld_shlibs=no
11207         cat <<_LT_EOF 1>&2
11208
11209 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
11210 *** reliably create shared libraries on SCO systems.  Therefore, libtool
11211 *** is disabling shared libraries support.  We urge you to upgrade GNU
11212 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
11213 *** your PATH or compiler configuration so that the native linker is
11214 *** used, and then restart.
11215
11216 _LT_EOF
11217         ;;
11218         *)
11219           # For security reasons, it is highly recommended that you always
11220           # use absolute paths for naming shared libraries, and exclude the
11221           # DT_RUNPATH tag from executables and libraries.  But doing so
11222           # requires that you compile everything twice, which is a pain.
11223           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11224             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11225             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11226             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11227           else
11228             ld_shlibs=no
11229           fi
11230         ;;
11231       esac
11232       ;;
11233
11234     sunos4*)
11235       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11236       wlarc=
11237       hardcode_direct=yes
11238       hardcode_shlibpath_var=no
11239       ;;
11240
11241     *)
11242       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11243         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11244         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11245       else
11246         ld_shlibs=no
11247       fi
11248       ;;
11249     esac
11250
11251     if test "$ld_shlibs" = no; then
11252       runpath_var=
11253       hardcode_libdir_flag_spec=
11254       export_dynamic_flag_spec=
11255       whole_archive_flag_spec=
11256     fi
11257   else
11258     # PORTME fill in a description of your system's linker (not GNU ld)
11259     case $host_os in
11260     aix3*)
11261       allow_undefined_flag=unsupported
11262       always_export_symbols=yes
11263       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'
11264       # Note: this linker hardcodes the directories in LIBPATH if there
11265       # are no directories specified by -L.
11266       hardcode_minus_L=yes
11267       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
11268         # Neither direct hardcoding nor static linking is supported with a
11269         # broken collect2.
11270         hardcode_direct=unsupported
11271       fi
11272       ;;
11273
11274     aix[4-9]*)
11275       if test "$host_cpu" = ia64; then
11276         # On IA64, the linker does run time linking by default, so we don't
11277         # have to do anything special.
11278         aix_use_runtimelinking=no
11279         exp_sym_flag='-Bexport'
11280         no_entry_flag=""
11281       else
11282         # If we're using GNU nm, then we don't want the "-C" option.
11283         # -C means demangle to AIX nm, but means don't demangle with GNU nm
11284         # Also, AIX nm treats weak defined symbols like other global
11285         # defined symbols, whereas GNU nm marks them as "W".
11286         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
11287           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'
11288         else
11289           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'
11290         fi
11291         aix_use_runtimelinking=no
11292
11293         # Test if we are trying to use run time linking or normal
11294         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11295         # need to do runtime linking.
11296         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11297           for ld_flag in $LDFLAGS; do
11298           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
11299             aix_use_runtimelinking=yes
11300             break
11301           fi
11302           done
11303           ;;
11304         esac
11305
11306         exp_sym_flag='-bexport'
11307         no_entry_flag='-bnoentry'
11308       fi
11309
11310       # When large executables or shared objects are built, AIX ld can
11311       # have problems creating the table of contents.  If linking a library
11312       # or program results in "error TOC overflow" add -mminimal-toc to
11313       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11314       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11315
11316       archive_cmds=''
11317       hardcode_direct=yes
11318       hardcode_direct_absolute=yes
11319       hardcode_libdir_separator=':'
11320       link_all_deplibs=yes
11321       file_list_spec='${wl}-f,'
11322
11323       if test "$GCC" = yes; then
11324         case $host_os in aix4.[012]|aix4.[012].*)
11325         # We only want to do this on AIX 4.2 and lower, the check
11326         # below for broken collect2 doesn't work under 4.3+
11327           collect2name=`${CC} -print-prog-name=collect2`
11328           if test -f "$collect2name" &&
11329            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11330           then
11331           # We have reworked collect2
11332           :
11333           else
11334           # We have old collect2
11335           hardcode_direct=unsupported
11336           # It fails to find uninstalled libraries when the uninstalled
11337           # path is not listed in the libpath.  Setting hardcode_minus_L
11338           # to unsupported forces relinking
11339           hardcode_minus_L=yes
11340           hardcode_libdir_flag_spec='-L$libdir'
11341           hardcode_libdir_separator=
11342           fi
11343           ;;
11344         esac
11345         shared_flag='-shared'
11346         if test "$aix_use_runtimelinking" = yes; then
11347           shared_flag="$shared_flag "'${wl}-G'
11348         fi
11349       else
11350         # not using gcc
11351         if test "$host_cpu" = ia64; then
11352         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11353         # chokes on -Wl,-G. The following line is correct:
11354           shared_flag='-G'
11355         else
11356           if test "$aix_use_runtimelinking" = yes; then
11357             shared_flag='${wl}-G'
11358           else
11359             shared_flag='${wl}-bM:SRE'
11360           fi
11361         fi
11362       fi
11363
11364       export_dynamic_flag_spec='${wl}-bexpall'
11365       # It seems that -bexpall does not export symbols beginning with
11366       # underscore (_), so it is better to generate a list of symbols to export.
11367       always_export_symbols=yes
11368       if test "$aix_use_runtimelinking" = yes; then
11369         # Warning - without using the other runtime loading flags (-brtl),
11370         # -berok will link without error, but may produce a broken library.
11371         allow_undefined_flag='-berok'
11372         # Determine the default libpath from the value encoded in an
11373         # empty executable.
11374         if test x$gcc_no_link = xyes; then
11375   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11376 fi
11377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11378 /* end confdefs.h.  */
11379
11380 int
11381 main ()
11382 {
11383
11384   ;
11385   return 0;
11386 }
11387 _ACEOF
11388 if ac_fn_c_try_link "$LINENO"; then :
11389
11390 lt_aix_libpath_sed='
11391     /Import File Strings/,/^$/ {
11392         /^0/ {
11393             s/^0  *\(.*\)$/\1/
11394             p
11395         }
11396     }'
11397 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11398 # Check for a 64-bit object if we didn't find anything.
11399 if test -z "$aix_libpath"; then
11400   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11401 fi
11402 fi
11403 rm -f core conftest.err conftest.$ac_objext \
11404     conftest$ac_exeext conftest.$ac_ext
11405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11406
11407         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11408         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"
11409       else
11410         if test "$host_cpu" = ia64; then
11411           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
11412           allow_undefined_flag="-z nodefs"
11413           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"
11414         else
11415          # Determine the default libpath from the value encoded in an
11416          # empty executable.
11417          if test x$gcc_no_link = xyes; then
11418   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11419 fi
11420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11421 /* end confdefs.h.  */
11422
11423 int
11424 main ()
11425 {
11426
11427   ;
11428   return 0;
11429 }
11430 _ACEOF
11431 if ac_fn_c_try_link "$LINENO"; then :
11432
11433 lt_aix_libpath_sed='
11434     /Import File Strings/,/^$/ {
11435         /^0/ {
11436             s/^0  *\(.*\)$/\1/
11437             p
11438         }
11439     }'
11440 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11441 # Check for a 64-bit object if we didn't find anything.
11442 if test -z "$aix_libpath"; then
11443   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11444 fi
11445 fi
11446 rm -f core conftest.err conftest.$ac_objext \
11447     conftest$ac_exeext conftest.$ac_ext
11448 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11449
11450          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
11451           # Warning - without using the other run time loading flags,
11452           # -berok will link without error, but may produce a broken library.
11453           no_undefined_flag=' ${wl}-bernotok'
11454           allow_undefined_flag=' ${wl}-berok'
11455           if test "$with_gnu_ld" = yes; then
11456             # We only use this code for GNU lds that support --whole-archive.
11457             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11458           else
11459             # Exported symbols can be pulled into shared objects from archives
11460             whole_archive_flag_spec='$convenience'
11461           fi
11462           archive_cmds_need_lc=yes
11463           # This is similar to how AIX traditionally builds its shared libraries.
11464           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'
11465         fi
11466       fi
11467       ;;
11468
11469     amigaos*)
11470       case $host_cpu in
11471       powerpc)
11472             # see comment about AmigaOS4 .so support
11473             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11474             archive_expsym_cmds=''
11475         ;;
11476       m68k)
11477             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)'
11478             hardcode_libdir_flag_spec='-L$libdir'
11479             hardcode_minus_L=yes
11480         ;;
11481       esac
11482       ;;
11483
11484     bsdi[45]*)
11485       export_dynamic_flag_spec=-rdynamic
11486       ;;
11487
11488     cygwin* | mingw* | pw32* | cegcc*)
11489       # When not using gcc, we currently assume that we are using
11490       # Microsoft Visual C++.
11491       # hardcode_libdir_flag_spec is actually meaningless, as there is
11492       # no search path for DLLs.
11493       hardcode_libdir_flag_spec=' '
11494       allow_undefined_flag=unsupported
11495       # Tell ltmain to make .lib files, not .a files.
11496       libext=lib
11497       # Tell ltmain to make .dll files, not .so files.
11498       shrext_cmds=".dll"
11499       # FIXME: Setting linknames here is a bad hack.
11500       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11501       # The linker will automatically build a .lib file if we build a DLL.
11502       old_archive_from_new_cmds='true'
11503       # FIXME: Should let the user specify the lib program.
11504       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11505       fix_srcfile_path='`cygpath -w "$srcfile"`'
11506       enable_shared_with_static_runtimes=yes
11507       ;;
11508
11509     darwin* | rhapsody*)
11510
11511
11512   archive_cmds_need_lc=no
11513   hardcode_direct=no
11514   hardcode_automatic=yes
11515   hardcode_shlibpath_var=unsupported
11516   if test "$lt_cv_ld_force_load" = "yes"; then
11517     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\"`'
11518   else
11519     whole_archive_flag_spec=''
11520   fi
11521   link_all_deplibs=yes
11522   allow_undefined_flag="$_lt_dar_allow_undefined"
11523   case $cc_basename in
11524      ifort*) _lt_dar_can_shared=yes ;;
11525      *) _lt_dar_can_shared=$GCC ;;
11526   esac
11527   if test "$_lt_dar_can_shared" = "yes"; then
11528     output_verbose_link_cmd=func_echo_all
11529     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11530     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11531     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}"
11532     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}"
11533
11534   else
11535   ld_shlibs=no
11536   fi
11537
11538       ;;
11539
11540     dgux*)
11541       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11542       hardcode_libdir_flag_spec='-L$libdir'
11543       hardcode_shlibpath_var=no
11544       ;;
11545
11546     freebsd1*)
11547       ld_shlibs=no
11548       ;;
11549
11550     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11551     # support.  Future versions do this automatically, but an explicit c++rt0.o
11552     # does not break anything, and helps significantly (at the cost of a little
11553     # extra space).
11554     freebsd2.2*)
11555       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11556       hardcode_libdir_flag_spec='-R$libdir'
11557       hardcode_direct=yes
11558       hardcode_shlibpath_var=no
11559       ;;
11560
11561     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11562     freebsd2*)
11563       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11564       hardcode_direct=yes
11565       hardcode_minus_L=yes
11566       hardcode_shlibpath_var=no
11567       ;;
11568
11569     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11570     freebsd* | dragonfly*)
11571       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11572       hardcode_libdir_flag_spec='-R$libdir'
11573       hardcode_direct=yes
11574       hardcode_shlibpath_var=no
11575       ;;
11576
11577     hpux9*)
11578       if test "$GCC" = yes; then
11579         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'
11580       else
11581         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'
11582       fi
11583       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11584       hardcode_libdir_separator=:
11585       hardcode_direct=yes
11586
11587       # hardcode_minus_L: Not really in the search PATH,
11588       # but as the default location of the library.
11589       hardcode_minus_L=yes
11590       export_dynamic_flag_spec='${wl}-E'
11591       ;;
11592
11593     hpux10*)
11594       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11595         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11596       else
11597         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11598       fi
11599       if test "$with_gnu_ld" = no; then
11600         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11601         hardcode_libdir_flag_spec_ld='+b $libdir'
11602         hardcode_libdir_separator=:
11603         hardcode_direct=yes
11604         hardcode_direct_absolute=yes
11605         export_dynamic_flag_spec='${wl}-E'
11606         # hardcode_minus_L: Not really in the search PATH,
11607         # but as the default location of the library.
11608         hardcode_minus_L=yes
11609       fi
11610       ;;
11611
11612     hpux11*)
11613       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11614         case $host_cpu in
11615         hppa*64*)
11616           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11617           ;;
11618         ia64*)
11619           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11620           ;;
11621         *)
11622           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11623           ;;
11624         esac
11625       else
11626         case $host_cpu in
11627         hppa*64*)
11628           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11629           ;;
11630         ia64*)
11631           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11632           ;;
11633         *)
11634
11635           # Older versions of the 11.00 compiler do not understand -b yet
11636           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11637           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11638 $as_echo_n "checking if $CC understands -b... " >&6; }
11639 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11640   $as_echo_n "(cached) " >&6
11641 else
11642   lt_cv_prog_compiler__b=no
11643    save_LDFLAGS="$LDFLAGS"
11644    LDFLAGS="$LDFLAGS -b"
11645    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11646    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11647      # The linker can only warn and ignore the option if not recognized
11648      # So say no if there are warnings
11649      if test -s conftest.err; then
11650        # Append any errors to the config.log.
11651        cat conftest.err 1>&5
11652        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11653        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11654        if diff conftest.exp conftest.er2 >/dev/null; then
11655          lt_cv_prog_compiler__b=yes
11656        fi
11657      else
11658        lt_cv_prog_compiler__b=yes
11659      fi
11660    fi
11661    $RM -r conftest*
11662    LDFLAGS="$save_LDFLAGS"
11663
11664 fi
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11666 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11667
11668 if test x"$lt_cv_prog_compiler__b" = xyes; then
11669     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11670 else
11671     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11672 fi
11673
11674           ;;
11675         esac
11676       fi
11677       if test "$with_gnu_ld" = no; then
11678         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11679         hardcode_libdir_separator=:
11680
11681         case $host_cpu in
11682         hppa*64*|ia64*)
11683           hardcode_direct=no
11684           hardcode_shlibpath_var=no
11685           ;;
11686         *)
11687           hardcode_direct=yes
11688           hardcode_direct_absolute=yes
11689           export_dynamic_flag_spec='${wl}-E'
11690
11691           # hardcode_minus_L: Not really in the search PATH,
11692           # but as the default location of the library.
11693           hardcode_minus_L=yes
11694           ;;
11695         esac
11696       fi
11697       ;;
11698
11699     irix5* | irix6* | nonstopux*)
11700       if test "$GCC" = yes; then
11701         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'
11702         # Try to use the -exported_symbol ld option, if it does not
11703         # work, assume that -exports_file does not work either and
11704         # implicitly export all symbols.
11705         save_LDFLAGS="$LDFLAGS"
11706         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11707         if test x$gcc_no_link = xyes; then
11708   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11709 fi
11710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11711 /* end confdefs.h.  */
11712 int foo(void) {}
11713 _ACEOF
11714 if ac_fn_c_try_link "$LINENO"; then :
11715   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'
11716
11717 fi
11718 rm -f core conftest.err conftest.$ac_objext \
11719     conftest$ac_exeext conftest.$ac_ext
11720         LDFLAGS="$save_LDFLAGS"
11721       else
11722         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'
11723         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'
11724       fi
11725       archive_cmds_need_lc='no'
11726       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11727       hardcode_libdir_separator=:
11728       inherit_rpath=yes
11729       link_all_deplibs=yes
11730       ;;
11731
11732     netbsd*)
11733       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11734         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11735       else
11736         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11737       fi
11738       hardcode_libdir_flag_spec='-R$libdir'
11739       hardcode_direct=yes
11740       hardcode_shlibpath_var=no
11741       ;;
11742
11743     newsos6)
11744       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11745       hardcode_direct=yes
11746       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11747       hardcode_libdir_separator=:
11748       hardcode_shlibpath_var=no
11749       ;;
11750
11751     *nto* | *qnx*)
11752       ;;
11753
11754     openbsd*)
11755       if test -f /usr/libexec/ld.so; then
11756         hardcode_direct=yes
11757         hardcode_shlibpath_var=no
11758         hardcode_direct_absolute=yes
11759         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11760           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11761           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11762           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11763           export_dynamic_flag_spec='${wl}-E'
11764         else
11765           case $host_os in
11766            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11767              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11768              hardcode_libdir_flag_spec='-R$libdir'
11769              ;;
11770            *)
11771              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11772              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11773              ;;
11774           esac
11775         fi
11776       else
11777         ld_shlibs=no
11778       fi
11779       ;;
11780
11781     os2*)
11782       hardcode_libdir_flag_spec='-L$libdir'
11783       hardcode_minus_L=yes
11784       allow_undefined_flag=unsupported
11785       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'
11786       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11787       ;;
11788
11789     osf3*)
11790       if test "$GCC" = yes; then
11791         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11792         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'
11793       else
11794         allow_undefined_flag=' -expect_unresolved \*'
11795         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'
11796       fi
11797       archive_cmds_need_lc='no'
11798       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11799       hardcode_libdir_separator=:
11800       ;;
11801
11802     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11803       if test "$GCC" = yes; then
11804         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11805         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'
11806         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11807       else
11808         allow_undefined_flag=' -expect_unresolved \*'
11809         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'
11810         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~
11811         $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'
11812
11813         # Both c and cxx compiler support -rpath directly
11814         hardcode_libdir_flag_spec='-rpath $libdir'
11815       fi
11816       archive_cmds_need_lc='no'
11817       hardcode_libdir_separator=:
11818       ;;
11819
11820     solaris*)
11821       no_undefined_flag=' -z defs'
11822       if test "$GCC" = yes; then
11823         wlarc='${wl}'
11824         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11825         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11826           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11827       else
11828         case `$CC -V 2>&1` in
11829         *"Compilers 5.0"*)
11830           wlarc=''
11831           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11832           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11833           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11834           ;;
11835         *)
11836           wlarc='${wl}'
11837           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11838           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11839           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11840           ;;
11841         esac
11842       fi
11843       hardcode_libdir_flag_spec='-R$libdir'
11844       hardcode_shlibpath_var=no
11845       case $host_os in
11846       solaris2.[0-5] | solaris2.[0-5].*) ;;
11847       *)
11848         # The compiler driver will combine and reorder linker options,
11849         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11850         # but is careful enough not to reorder.
11851         # Supported since Solaris 2.6 (maybe 2.5.1?)
11852         if test "$GCC" = yes; then
11853           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11854         else
11855           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11856         fi
11857         ;;
11858       esac
11859       link_all_deplibs=yes
11860       ;;
11861
11862     sunos4*)
11863       if test "x$host_vendor" = xsequent; then
11864         # Use $CC to link under sequent, because it throws in some extra .o
11865         # files that make .init and .fini sections work.
11866         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11867       else
11868         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11869       fi
11870       hardcode_libdir_flag_spec='-L$libdir'
11871       hardcode_direct=yes
11872       hardcode_minus_L=yes
11873       hardcode_shlibpath_var=no
11874       ;;
11875
11876     sysv4)
11877       case $host_vendor in
11878         sni)
11879           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11880           hardcode_direct=yes # is this really true???
11881         ;;
11882         siemens)
11883           ## LD is ld it makes a PLAMLIB
11884           ## CC just makes a GrossModule.
11885           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11886           reload_cmds='$CC -r -o $output$reload_objs'
11887           hardcode_direct=no
11888         ;;
11889         motorola)
11890           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11891           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11892         ;;
11893       esac
11894       runpath_var='LD_RUN_PATH'
11895       hardcode_shlibpath_var=no
11896       ;;
11897
11898     sysv4.3*)
11899       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11900       hardcode_shlibpath_var=no
11901       export_dynamic_flag_spec='-Bexport'
11902       ;;
11903
11904     sysv4*MP*)
11905       if test -d /usr/nec; then
11906         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11907         hardcode_shlibpath_var=no
11908         runpath_var=LD_RUN_PATH
11909         hardcode_runpath_var=yes
11910         ld_shlibs=yes
11911       fi
11912       ;;
11913
11914     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11915       no_undefined_flag='${wl}-z,text'
11916       archive_cmds_need_lc=no
11917       hardcode_shlibpath_var=no
11918       runpath_var='LD_RUN_PATH'
11919
11920       if test "$GCC" = yes; then
11921         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11922         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11923       else
11924         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11925         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11926       fi
11927       ;;
11928
11929     sysv5* | sco3.2v5* | sco5v6*)
11930       # Note: We can NOT use -z defs as we might desire, because we do not
11931       # link with -lc, and that would cause any symbols used from libc to
11932       # always be unresolved, which means just about no library would
11933       # ever link correctly.  If we're not using GNU ld we use -z text
11934       # though, which does catch some bad symbols but isn't as heavy-handed
11935       # as -z defs.
11936       no_undefined_flag='${wl}-z,text'
11937       allow_undefined_flag='${wl}-z,nodefs'
11938       archive_cmds_need_lc=no
11939       hardcode_shlibpath_var=no
11940       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11941       hardcode_libdir_separator=':'
11942       link_all_deplibs=yes
11943       export_dynamic_flag_spec='${wl}-Bexport'
11944       runpath_var='LD_RUN_PATH'
11945
11946       if test "$GCC" = yes; then
11947         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11948         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11949       else
11950         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11951         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11952       fi
11953       ;;
11954
11955     uts4*)
11956       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11957       hardcode_libdir_flag_spec='-L$libdir'
11958       hardcode_shlibpath_var=no
11959       ;;
11960
11961     *)
11962       ld_shlibs=no
11963       ;;
11964     esac
11965
11966     if test x$host_vendor = xsni; then
11967       case $host in
11968       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11969         export_dynamic_flag_spec='${wl}-Blargedynsym'
11970         ;;
11971       esac
11972     fi
11973   fi
11974
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11976 $as_echo "$ld_shlibs" >&6; }
11977 test "$ld_shlibs" = no && can_build_shared=no
11978
11979 with_gnu_ld=$with_gnu_ld
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994
11995 #
11996 # Do we need to explicitly link libc?
11997 #
11998 case "x$archive_cmds_need_lc" in
11999 x|xyes)
12000   # Assume -lc should be added
12001   archive_cmds_need_lc=yes
12002
12003   if test "$enable_shared" = yes && test "$GCC" = yes; then
12004     case $archive_cmds in
12005     *'~'*)
12006       # FIXME: we may have to deal with multi-command sequences.
12007       ;;
12008     '$CC '*)
12009       # Test whether the compiler implicitly links with -lc since on some
12010       # systems, -lgcc has to come before -lc. If gcc already passes -lc
12011       # to ld, don't add -lc before -lgcc.
12012       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12013 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12014 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
12015   $as_echo_n "(cached) " >&6
12016 else
12017   $RM conftest*
12018         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12019
12020         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12021   (eval $ac_compile) 2>&5
12022   ac_status=$?
12023   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12024   test $ac_status = 0; } 2>conftest.err; then
12025           soname=conftest
12026           lib=conftest
12027           libobjs=conftest.$ac_objext
12028           deplibs=
12029           wl=$lt_prog_compiler_wl
12030           pic_flag=$lt_prog_compiler_pic
12031           compiler_flags=-v
12032           linker_flags=-v
12033           verstring=
12034           output_objdir=.
12035           libname=conftest
12036           lt_save_allow_undefined_flag=$allow_undefined_flag
12037           allow_undefined_flag=
12038           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12039   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
12040   ac_status=$?
12041   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12042   test $ac_status = 0; }
12043           then
12044             lt_cv_archive_cmds_need_lc=no
12045           else
12046             lt_cv_archive_cmds_need_lc=yes
12047           fi
12048           allow_undefined_flag=$lt_save_allow_undefined_flag
12049         else
12050           cat conftest.err 1>&5
12051         fi
12052         $RM conftest*
12053
12054 fi
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
12056 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
12057       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
12058       ;;
12059     esac
12060   fi
12061   ;;
12062 esac
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127
12128
12129
12130
12131
12132
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
12173
12174
12175
12176
12177
12178
12179
12180
12181
12182
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12221 $as_echo_n "checking dynamic linker characteristics... " >&6; }
12222
12223 if test "$GCC" = yes; then
12224   case $host_os in
12225     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
12226     *) lt_awk_arg="/^libraries:/" ;;
12227   esac
12228   case $host_os in
12229     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
12230     *) lt_sed_strip_eq="s,=/,/,g" ;;
12231   esac
12232   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
12233   case $lt_search_path_spec in
12234   *\;*)
12235     # if the path contains ";" then we assume it to be the separator
12236     # otherwise default to the standard path separator (i.e. ":") - it is
12237     # assumed that no part of a normal pathname contains ";" but that should
12238     # okay in the real world where ";" in dirpaths is itself problematic.
12239     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
12240     ;;
12241   *)
12242     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
12243     ;;
12244   esac
12245   # Ok, now we have the path, separated by spaces, we can step through it
12246   # and add multilib dir if necessary.
12247   lt_tmp_lt_search_path_spec=
12248   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
12249   for lt_sys_path in $lt_search_path_spec; do
12250     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
12251       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
12252     else
12253       test -d "$lt_sys_path" && \
12254         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
12255     fi
12256   done
12257   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
12258 BEGIN {RS=" "; FS="/|\n";} {
12259   lt_foo="";
12260   lt_count=0;
12261   for (lt_i = NF; lt_i > 0; lt_i--) {
12262     if ($lt_i != "" && $lt_i != ".") {
12263       if ($lt_i == "..") {
12264         lt_count++;
12265       } else {
12266         if (lt_count == 0) {
12267           lt_foo="/" $lt_i lt_foo;
12268         } else {
12269           lt_count--;
12270         }
12271       }
12272     }
12273   }
12274   if (lt_foo != "") { lt_freq[lt_foo]++; }
12275   if (lt_freq[lt_foo] == 1) { print lt_foo; }
12276 }'`
12277   # AWK program above erroneously prepends '/' to C:/dos/paths
12278   # for these hosts.
12279   case $host_os in
12280     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
12281       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
12282   esac
12283   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
12284 else
12285   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12286 fi
12287 library_names_spec=
12288 libname_spec='lib$name'
12289 soname_spec=
12290 shrext_cmds=".so"
12291 postinstall_cmds=
12292 postuninstall_cmds=
12293 finish_cmds=
12294 finish_eval=
12295 shlibpath_var=
12296 shlibpath_overrides_runpath=unknown
12297 version_type=none
12298 dynamic_linker="$host_os ld.so"
12299 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12300 need_lib_prefix=unknown
12301 hardcode_into_libs=no
12302
12303 # when you set need_version to no, make sure it does not cause -set_version
12304 # flags to be left without arguments
12305 need_version=unknown
12306
12307 case $host_os in
12308 aix3*)
12309   version_type=linux
12310   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12311   shlibpath_var=LIBPATH
12312
12313   # AIX 3 has no versioning support, so we append a major version to the name.
12314   soname_spec='${libname}${release}${shared_ext}$major'
12315   ;;
12316
12317 aix[4-9]*)
12318   version_type=linux
12319   need_lib_prefix=no
12320   need_version=no
12321   hardcode_into_libs=yes
12322   if test "$host_cpu" = ia64; then
12323     # AIX 5 supports IA64
12324     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12325     shlibpath_var=LD_LIBRARY_PATH
12326   else
12327     # With GCC up to 2.95.x, collect2 would create an import file
12328     # for dependence libraries.  The import file would start with
12329     # the line `#! .'.  This would cause the generated library to
12330     # depend on `.', always an invalid library.  This was fixed in
12331     # development snapshots of GCC prior to 3.0.
12332     case $host_os in
12333       aix4 | aix4.[01] | aix4.[01].*)
12334       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12335            echo ' yes '
12336            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
12337         :
12338       else
12339         can_build_shared=no
12340       fi
12341       ;;
12342     esac
12343     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12344     # soname into executable. Probably we can add versioning support to
12345     # collect2, so additional links can be useful in future.
12346     if test "$aix_use_runtimelinking" = yes; then
12347       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12348       # instead of lib<name>.a to let people know that these are not
12349       # typical AIX shared libraries.
12350       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12351     else
12352       # We preserve .a as extension for shared libraries through AIX4.2
12353       # and later when we are not doing run time linking.
12354       library_names_spec='${libname}${release}.a $libname.a'
12355       soname_spec='${libname}${release}${shared_ext}$major'
12356     fi
12357     shlibpath_var=LIBPATH
12358   fi
12359   ;;
12360
12361 amigaos*)
12362   case $host_cpu in
12363   powerpc)
12364     # Since July 2007 AmigaOS4 officially supports .so libraries.
12365     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12366     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12367     ;;
12368   m68k)
12369     library_names_spec='$libname.ixlibrary $libname.a'
12370     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12371     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'
12372     ;;
12373   esac
12374   ;;
12375
12376 beos*)
12377   library_names_spec='${libname}${shared_ext}'
12378   dynamic_linker="$host_os ld.so"
12379   shlibpath_var=LIBRARY_PATH
12380   ;;
12381
12382 bsdi[45]*)
12383   version_type=linux
12384   need_version=no
12385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386   soname_spec='${libname}${release}${shared_ext}$major'
12387   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12388   shlibpath_var=LD_LIBRARY_PATH
12389   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12390   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12391   # the default ld.so.conf also contains /usr/contrib/lib and
12392   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12393   # libtool to hard-code these into programs
12394   ;;
12395
12396 cygwin* | mingw* | pw32* | cegcc*)
12397   version_type=windows
12398   shrext_cmds=".dll"
12399   need_version=no
12400   need_lib_prefix=no
12401
12402   case $GCC,$host_os in
12403   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
12404     library_names_spec='$libname.dll.a'
12405     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12406     postinstall_cmds='base_file=`basename \${file}`~
12407       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
12408       dldir=$destdir/`dirname \$dlpath`~
12409       test -d \$dldir || mkdir -p \$dldir~
12410       $install_prog $dir/$dlname \$dldir/$dlname~
12411       chmod a+x \$dldir/$dlname~
12412       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12413         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12414       fi'
12415     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12416       dlpath=$dir/\$dldll~
12417        $RM \$dlpath'
12418     shlibpath_overrides_runpath=yes
12419
12420     case $host_os in
12421     cygwin*)
12422       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12423       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12424
12425       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12426       ;;
12427     mingw* | cegcc*)
12428       # MinGW DLLs use traditional 'lib' prefix
12429       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12430       ;;
12431     pw32*)
12432       # pw32 DLLs use 'pw' prefix rather than 'lib'
12433       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12434       ;;
12435     esac
12436     ;;
12437
12438   *)
12439     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12440     ;;
12441   esac
12442   dynamic_linker='Win32 ld.exe'
12443   # FIXME: first we should search . and the directory the executable is in
12444   shlibpath_var=PATH
12445   ;;
12446
12447 darwin* | rhapsody*)
12448   dynamic_linker="$host_os dyld"
12449   version_type=darwin
12450   need_lib_prefix=no
12451   need_version=no
12452   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12453   soname_spec='${libname}${release}${major}$shared_ext'
12454   shlibpath_overrides_runpath=yes
12455   shlibpath_var=DYLD_LIBRARY_PATH
12456   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12457
12458   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12459   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12460   ;;
12461
12462 dgux*)
12463   version_type=linux
12464   need_lib_prefix=no
12465   need_version=no
12466   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12467   soname_spec='${libname}${release}${shared_ext}$major'
12468   shlibpath_var=LD_LIBRARY_PATH
12469   ;;
12470
12471 freebsd1*)
12472   dynamic_linker=no
12473   ;;
12474
12475 freebsd* | dragonfly*)
12476   # DragonFly does not have aout.  When/if they implement a new
12477   # versioning mechanism, adjust this.
12478   if test -x /usr/bin/objformat; then
12479     objformat=`/usr/bin/objformat`
12480   else
12481     case $host_os in
12482     freebsd[123]*) objformat=aout ;;
12483     *) objformat=elf ;;
12484     esac
12485   fi
12486   version_type=freebsd-$objformat
12487   case $version_type in
12488     freebsd-elf*)
12489       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12490       need_version=no
12491       need_lib_prefix=no
12492       ;;
12493     freebsd-*)
12494       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12495       need_version=yes
12496       ;;
12497   esac
12498   shlibpath_var=LD_LIBRARY_PATH
12499   case $host_os in
12500   freebsd2*)
12501     shlibpath_overrides_runpath=yes
12502     ;;
12503   freebsd3.[01]* | freebsdelf3.[01]*)
12504     shlibpath_overrides_runpath=yes
12505     hardcode_into_libs=yes
12506     ;;
12507   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12508   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12509     shlibpath_overrides_runpath=no
12510     hardcode_into_libs=yes
12511     ;;
12512   *) # from 4.6 on, and DragonFly
12513     shlibpath_overrides_runpath=yes
12514     hardcode_into_libs=yes
12515     ;;
12516   esac
12517   ;;
12518
12519 gnu*)
12520   version_type=linux
12521   need_lib_prefix=no
12522   need_version=no
12523   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12524   soname_spec='${libname}${release}${shared_ext}$major'
12525   shlibpath_var=LD_LIBRARY_PATH
12526   hardcode_into_libs=yes
12527   ;;
12528
12529 haiku*)
12530   version_type=linux
12531   need_lib_prefix=no
12532   need_version=no
12533   dynamic_linker="$host_os runtime_loader"
12534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12535   soname_spec='${libname}${release}${shared_ext}$major'
12536   shlibpath_var=LIBRARY_PATH
12537   shlibpath_overrides_runpath=yes
12538   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
12539   hardcode_into_libs=yes
12540   ;;
12541
12542 hpux9* | hpux10* | hpux11*)
12543   # Give a soname corresponding to the major version so that dld.sl refuses to
12544   # link against other versions.
12545   version_type=sunos
12546   need_lib_prefix=no
12547   need_version=no
12548   case $host_cpu in
12549   ia64*)
12550     shrext_cmds='.so'
12551     hardcode_into_libs=yes
12552     dynamic_linker="$host_os dld.so"
12553     shlibpath_var=LD_LIBRARY_PATH
12554     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12555     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12556     soname_spec='${libname}${release}${shared_ext}$major'
12557     if test "X$HPUX_IA64_MODE" = X32; then
12558       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12559     else
12560       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12561     fi
12562     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12563     ;;
12564   hppa*64*)
12565     shrext_cmds='.sl'
12566     hardcode_into_libs=yes
12567     dynamic_linker="$host_os dld.sl"
12568     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12569     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12570     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12571     soname_spec='${libname}${release}${shared_ext}$major'
12572     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12573     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12574     ;;
12575   *)
12576     shrext_cmds='.sl'
12577     dynamic_linker="$host_os dld.sl"
12578     shlibpath_var=SHLIB_PATH
12579     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12580     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12581     soname_spec='${libname}${release}${shared_ext}$major'
12582     ;;
12583   esac
12584   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12585   postinstall_cmds='chmod 555 $lib'
12586   # or fails outright, so override atomically:
12587   install_override_mode=555
12588   ;;
12589
12590 interix[3-9]*)
12591   version_type=linux
12592   need_lib_prefix=no
12593   need_version=no
12594   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12595   soname_spec='${libname}${release}${shared_ext}$major'
12596   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12597   shlibpath_var=LD_LIBRARY_PATH
12598   shlibpath_overrides_runpath=no
12599   hardcode_into_libs=yes
12600   ;;
12601
12602 irix5* | irix6* | nonstopux*)
12603   case $host_os in
12604     nonstopux*) version_type=nonstopux ;;
12605     *)
12606         if test "$lt_cv_prog_gnu_ld" = yes; then
12607                 version_type=linux
12608         else
12609                 version_type=irix
12610         fi ;;
12611   esac
12612   need_lib_prefix=no
12613   need_version=no
12614   soname_spec='${libname}${release}${shared_ext}$major'
12615   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12616   case $host_os in
12617   irix5* | nonstopux*)
12618     libsuff= shlibsuff=
12619     ;;
12620   *)
12621     case $LD in # libtool.m4 will add one of these switches to LD
12622     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12623       libsuff= shlibsuff= libmagic=32-bit;;
12624     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12625       libsuff=32 shlibsuff=N32 libmagic=N32;;
12626     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12627       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12628     *) libsuff= shlibsuff= libmagic=never-match;;
12629     esac
12630     ;;
12631   esac
12632   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12633   shlibpath_overrides_runpath=no
12634   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12635   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12636   hardcode_into_libs=yes
12637   ;;
12638
12639 # No shared lib support for Linux oldld, aout, or coff.
12640 linux*oldld* | linux*aout* | linux*coff*)
12641   dynamic_linker=no
12642   ;;
12643
12644 # This must be Linux ELF.
12645 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12646   version_type=linux
12647   need_lib_prefix=no
12648   need_version=no
12649   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12650   soname_spec='${libname}${release}${shared_ext}$major'
12651   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12652   shlibpath_var=LD_LIBRARY_PATH
12653   shlibpath_overrides_runpath=no
12654
12655   # Some binutils ld are patched to set DT_RUNPATH
12656   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12657   $as_echo_n "(cached) " >&6
12658 else
12659   lt_cv_shlibpath_overrides_runpath=no
12660     save_LDFLAGS=$LDFLAGS
12661     save_libdir=$libdir
12662     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12663          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12664     if test x$gcc_no_link = xyes; then
12665   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12666 fi
12667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12668 /* end confdefs.h.  */
12669
12670 int
12671 main ()
12672 {
12673
12674   ;
12675   return 0;
12676 }
12677 _ACEOF
12678 if ac_fn_c_try_link "$LINENO"; then :
12679   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12680   lt_cv_shlibpath_overrides_runpath=yes
12681 fi
12682 fi
12683 rm -f core conftest.err conftest.$ac_objext \
12684     conftest$ac_exeext conftest.$ac_ext
12685     LDFLAGS=$save_LDFLAGS
12686     libdir=$save_libdir
12687
12688 fi
12689
12690   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12691
12692   # This implies no fast_install, which is unacceptable.
12693   # Some rework will be needed to allow for fast_install
12694   # before this can be enabled.
12695   hardcode_into_libs=yes
12696
12697   # Append ld.so.conf contents to the search path
12698   if test -f /etc/ld.so.conf; then
12699     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' ' '`
12700     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12701   fi
12702
12703   # We used to test for /lib/ld.so.1 and disable shared libraries on
12704   # powerpc, because MkLinux only supported shared libraries with the
12705   # GNU dynamic linker.  Since this was broken with cross compilers,
12706   # most powerpc-linux boxes support dynamic linking these days and
12707   # people can always --disable-shared, the test was removed, and we
12708   # assume the GNU/Linux dynamic linker is in use.
12709   dynamic_linker='GNU/Linux ld.so'
12710   ;;
12711
12712 netbsd*)
12713   version_type=sunos
12714   need_lib_prefix=no
12715   need_version=no
12716   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12717     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12718     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12719     dynamic_linker='NetBSD (a.out) ld.so'
12720   else
12721     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12722     soname_spec='${libname}${release}${shared_ext}$major'
12723     dynamic_linker='NetBSD ld.elf_so'
12724   fi
12725   shlibpath_var=LD_LIBRARY_PATH
12726   shlibpath_overrides_runpath=yes
12727   hardcode_into_libs=yes
12728   ;;
12729
12730 newsos6)
12731   version_type=linux
12732   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12733   shlibpath_var=LD_LIBRARY_PATH
12734   shlibpath_overrides_runpath=yes
12735   ;;
12736
12737 *nto* | *qnx*)
12738   version_type=qnx
12739   need_lib_prefix=no
12740   need_version=no
12741   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12742   soname_spec='${libname}${release}${shared_ext}$major'
12743   shlibpath_var=LD_LIBRARY_PATH
12744   shlibpath_overrides_runpath=no
12745   hardcode_into_libs=yes
12746   dynamic_linker='ldqnx.so'
12747   ;;
12748
12749 openbsd*)
12750   version_type=sunos
12751   sys_lib_dlsearch_path_spec="/usr/lib"
12752   need_lib_prefix=no
12753   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12754   case $host_os in
12755     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12756     *)                          need_version=no  ;;
12757   esac
12758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12759   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12760   shlibpath_var=LD_LIBRARY_PATH
12761   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12762     case $host_os in
12763       openbsd2.[89] | openbsd2.[89].*)
12764         shlibpath_overrides_runpath=no
12765         ;;
12766       *)
12767         shlibpath_overrides_runpath=yes
12768         ;;
12769       esac
12770   else
12771     shlibpath_overrides_runpath=yes
12772   fi
12773   ;;
12774
12775 os2*)
12776   libname_spec='$name'
12777   shrext_cmds=".dll"
12778   need_lib_prefix=no
12779   library_names_spec='$libname${shared_ext} $libname.a'
12780   dynamic_linker='OS/2 ld.exe'
12781   shlibpath_var=LIBPATH
12782   ;;
12783
12784 osf3* | osf4* | osf5*)
12785   version_type=osf
12786   need_lib_prefix=no
12787   need_version=no
12788   soname_spec='${libname}${release}${shared_ext}$major'
12789   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12790   shlibpath_var=LD_LIBRARY_PATH
12791   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12792   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12793   ;;
12794
12795 rdos*)
12796   dynamic_linker=no
12797   ;;
12798
12799 solaris*)
12800   version_type=linux
12801   need_lib_prefix=no
12802   need_version=no
12803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12804   soname_spec='${libname}${release}${shared_ext}$major'
12805   shlibpath_var=LD_LIBRARY_PATH
12806   shlibpath_overrides_runpath=yes
12807   hardcode_into_libs=yes
12808   # ldd complains unless libraries are executable
12809   postinstall_cmds='chmod +x $lib'
12810   ;;
12811
12812 sunos4*)
12813   version_type=sunos
12814   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12815   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12816   shlibpath_var=LD_LIBRARY_PATH
12817   shlibpath_overrides_runpath=yes
12818   if test "$with_gnu_ld" = yes; then
12819     need_lib_prefix=no
12820   fi
12821   need_version=yes
12822   ;;
12823
12824 sysv4 | sysv4.3*)
12825   version_type=linux
12826   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12827   soname_spec='${libname}${release}${shared_ext}$major'
12828   shlibpath_var=LD_LIBRARY_PATH
12829   case $host_vendor in
12830     sni)
12831       shlibpath_overrides_runpath=no
12832       need_lib_prefix=no
12833       runpath_var=LD_RUN_PATH
12834       ;;
12835     siemens)
12836       need_lib_prefix=no
12837       ;;
12838     motorola)
12839       need_lib_prefix=no
12840       need_version=no
12841       shlibpath_overrides_runpath=no
12842       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12843       ;;
12844   esac
12845   ;;
12846
12847 sysv4*MP*)
12848   if test -d /usr/nec ;then
12849     version_type=linux
12850     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12851     soname_spec='$libname${shared_ext}.$major'
12852     shlibpath_var=LD_LIBRARY_PATH
12853   fi
12854   ;;
12855
12856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12857   version_type=freebsd-elf
12858   need_lib_prefix=no
12859   need_version=no
12860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12861   soname_spec='${libname}${release}${shared_ext}$major'
12862   shlibpath_var=LD_LIBRARY_PATH
12863   shlibpath_overrides_runpath=yes
12864   hardcode_into_libs=yes
12865   if test "$with_gnu_ld" = yes; then
12866     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12867   else
12868     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12869     case $host_os in
12870       sco3.2v5*)
12871         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12872         ;;
12873     esac
12874   fi
12875   sys_lib_dlsearch_path_spec='/usr/lib'
12876   ;;
12877
12878 tpf*)
12879   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12880   version_type=linux
12881   need_lib_prefix=no
12882   need_version=no
12883   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12884   shlibpath_var=LD_LIBRARY_PATH
12885   shlibpath_overrides_runpath=no
12886   hardcode_into_libs=yes
12887   ;;
12888
12889 uts4*)
12890   version_type=linux
12891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12892   soname_spec='${libname}${release}${shared_ext}$major'
12893   shlibpath_var=LD_LIBRARY_PATH
12894   ;;
12895
12896 *)
12897   dynamic_linker=no
12898   ;;
12899 esac
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12901 $as_echo "$dynamic_linker" >&6; }
12902 test "$dynamic_linker" = no && can_build_shared=no
12903
12904 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12905 if test "$GCC" = yes; then
12906   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12907 fi
12908
12909 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12910   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12911 fi
12912 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12913   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12914 fi
12915
12916
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934
12935
12936
12937
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987
12988
12989
12990
12991
12992
12993
12994
12995
12996
12997
12998
12999
13000
13001
13002
13003
13004
13005
13006
13007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13008 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13009 hardcode_action=
13010 if test -n "$hardcode_libdir_flag_spec" ||
13011    test -n "$runpath_var" ||
13012    test "X$hardcode_automatic" = "Xyes" ; then
13013
13014   # We can hardcode non-existent directories.
13015   if test "$hardcode_direct" != no &&
13016      # If the only mechanism to avoid hardcoding is shlibpath_var, we
13017      # have to relink, otherwise we might link with an installed library
13018      # when we should be linking with a yet-to-be-installed one
13019      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
13020      test "$hardcode_minus_L" != no; then
13021     # Linking always hardcodes the temporary library directory.
13022     hardcode_action=relink
13023   else
13024     # We can link without hardcoding, and we can hardcode nonexisting dirs.
13025     hardcode_action=immediate
13026   fi
13027 else
13028   # We cannot hardcode anything, or else we can only hardcode existing
13029   # directories.
13030   hardcode_action=unsupported
13031 fi
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13033 $as_echo "$hardcode_action" >&6; }
13034
13035 if test "$hardcode_action" = relink ||
13036    test "$inherit_rpath" = yes; then
13037   # Fast installation is not supported
13038   enable_fast_install=no
13039 elif test "$shlibpath_overrides_runpath" = yes ||
13040      test "$enable_shared" = no; then
13041   # Fast installation is not necessary
13042   enable_fast_install=needless
13043 fi
13044
13045
13046
13047
13048
13049
13050   if test "x$enable_dlopen" != xyes; then
13051   enable_dlopen=unknown
13052   enable_dlopen_self=unknown
13053   enable_dlopen_self_static=unknown
13054 else
13055   lt_cv_dlopen=no
13056   lt_cv_dlopen_libs=
13057
13058   case $host_os in
13059   beos*)
13060     lt_cv_dlopen="load_add_on"
13061     lt_cv_dlopen_libs=
13062     lt_cv_dlopen_self=yes
13063     ;;
13064
13065   mingw* | pw32* | cegcc*)
13066     lt_cv_dlopen="LoadLibrary"
13067     lt_cv_dlopen_libs=
13068     ;;
13069
13070   cygwin*)
13071     lt_cv_dlopen="dlopen"
13072     lt_cv_dlopen_libs=
13073     ;;
13074
13075   darwin*)
13076   # if libdl is installed we need to link against it
13077     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13078 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13079 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13080   $as_echo_n "(cached) " >&6
13081 else
13082   ac_check_lib_save_LIBS=$LIBS
13083 LIBS="-ldl  $LIBS"
13084 if test x$gcc_no_link = xyes; then
13085   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13086 fi
13087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h.  */
13089
13090 /* Override any GCC internal prototype to avoid an error.
13091    Use char because int might match the return type of a GCC
13092    builtin and then its argument prototype would still apply.  */
13093 #ifdef __cplusplus
13094 extern "C"
13095 #endif
13096 char dlopen ();
13097 int
13098 main ()
13099 {
13100 return dlopen ();
13101   ;
13102   return 0;
13103 }
13104 _ACEOF
13105 if ac_fn_c_try_link "$LINENO"; then :
13106   ac_cv_lib_dl_dlopen=yes
13107 else
13108   ac_cv_lib_dl_dlopen=no
13109 fi
13110 rm -f core conftest.err conftest.$ac_objext \
13111     conftest$ac_exeext conftest.$ac_ext
13112 LIBS=$ac_check_lib_save_LIBS
13113 fi
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13115 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13116 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13117   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13118 else
13119
13120     lt_cv_dlopen="dyld"
13121     lt_cv_dlopen_libs=
13122     lt_cv_dlopen_self=yes
13123
13124 fi
13125
13126     ;;
13127
13128   *)
13129     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13130 if test "x$ac_cv_func_shl_load" = x""yes; then :
13131   lt_cv_dlopen="shl_load"
13132 else
13133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13134 $as_echo_n "checking for shl_load in -ldld... " >&6; }
13135 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
13136   $as_echo_n "(cached) " >&6
13137 else
13138   ac_check_lib_save_LIBS=$LIBS
13139 LIBS="-ldld  $LIBS"
13140 if test x$gcc_no_link = xyes; then
13141   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13142 fi
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h.  */
13145
13146 /* Override any GCC internal prototype to avoid an error.
13147    Use char because int might match the return type of a GCC
13148    builtin and then its argument prototype would still apply.  */
13149 #ifdef __cplusplus
13150 extern "C"
13151 #endif
13152 char shl_load ();
13153 int
13154 main ()
13155 {
13156 return shl_load ();
13157   ;
13158   return 0;
13159 }
13160 _ACEOF
13161 if ac_fn_c_try_link "$LINENO"; then :
13162   ac_cv_lib_dld_shl_load=yes
13163 else
13164   ac_cv_lib_dld_shl_load=no
13165 fi
13166 rm -f core conftest.err conftest.$ac_objext \
13167     conftest$ac_exeext conftest.$ac_ext
13168 LIBS=$ac_check_lib_save_LIBS
13169 fi
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13171 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
13172 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
13173   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
13174 else
13175   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13176 if test "x$ac_cv_func_dlopen" = x""yes; then :
13177   lt_cv_dlopen="dlopen"
13178 else
13179   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13180 $as_echo_n "checking for dlopen in -ldl... " >&6; }
13181 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
13182   $as_echo_n "(cached) " >&6
13183 else
13184   ac_check_lib_save_LIBS=$LIBS
13185 LIBS="-ldl  $LIBS"
13186 if test x$gcc_no_link = xyes; then
13187   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13188 fi
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h.  */
13191
13192 /* Override any GCC internal prototype to avoid an error.
13193    Use char because int might match the return type of a GCC
13194    builtin and then its argument prototype would still apply.  */
13195 #ifdef __cplusplus
13196 extern "C"
13197 #endif
13198 char dlopen ();
13199 int
13200 main ()
13201 {
13202 return dlopen ();
13203   ;
13204   return 0;
13205 }
13206 _ACEOF
13207 if ac_fn_c_try_link "$LINENO"; then :
13208   ac_cv_lib_dl_dlopen=yes
13209 else
13210   ac_cv_lib_dl_dlopen=no
13211 fi
13212 rm -f core conftest.err conftest.$ac_objext \
13213     conftest$ac_exeext conftest.$ac_ext
13214 LIBS=$ac_check_lib_save_LIBS
13215 fi
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13217 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
13218 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
13219   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13220 else
13221   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13222 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
13223 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
13224   $as_echo_n "(cached) " >&6
13225 else
13226   ac_check_lib_save_LIBS=$LIBS
13227 LIBS="-lsvld  $LIBS"
13228 if test x$gcc_no_link = xyes; then
13229   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13230 fi
13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h.  */
13233
13234 /* Override any GCC internal prototype to avoid an error.
13235    Use char because int might match the return type of a GCC
13236    builtin and then its argument prototype would still apply.  */
13237 #ifdef __cplusplus
13238 extern "C"
13239 #endif
13240 char dlopen ();
13241 int
13242 main ()
13243 {
13244 return dlopen ();
13245   ;
13246   return 0;
13247 }
13248 _ACEOF
13249 if ac_fn_c_try_link "$LINENO"; then :
13250   ac_cv_lib_svld_dlopen=yes
13251 else
13252   ac_cv_lib_svld_dlopen=no
13253 fi
13254 rm -f core conftest.err conftest.$ac_objext \
13255     conftest$ac_exeext conftest.$ac_ext
13256 LIBS=$ac_check_lib_save_LIBS
13257 fi
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13259 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13260 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
13261   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
13262 else
13263   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13264 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13265 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
13266   $as_echo_n "(cached) " >&6
13267 else
13268   ac_check_lib_save_LIBS=$LIBS
13269 LIBS="-ldld  $LIBS"
13270 if test x$gcc_no_link = xyes; then
13271   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13272 fi
13273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13274 /* end confdefs.h.  */
13275
13276 /* Override any GCC internal prototype to avoid an error.
13277    Use char because int might match the return type of a GCC
13278    builtin and then its argument prototype would still apply.  */
13279 #ifdef __cplusplus
13280 extern "C"
13281 #endif
13282 char dld_link ();
13283 int
13284 main ()
13285 {
13286 return dld_link ();
13287   ;
13288   return 0;
13289 }
13290 _ACEOF
13291 if ac_fn_c_try_link "$LINENO"; then :
13292   ac_cv_lib_dld_dld_link=yes
13293 else
13294   ac_cv_lib_dld_dld_link=no
13295 fi
13296 rm -f core conftest.err conftest.$ac_objext \
13297     conftest$ac_exeext conftest.$ac_ext
13298 LIBS=$ac_check_lib_save_LIBS
13299 fi
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13301 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13302 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
13303   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
13304 fi
13305
13306
13307 fi
13308
13309
13310 fi
13311
13312
13313 fi
13314
13315
13316 fi
13317
13318
13319 fi
13320
13321     ;;
13322   esac
13323
13324   if test "x$lt_cv_dlopen" != xno; then
13325     enable_dlopen=yes
13326   else
13327     enable_dlopen=no
13328   fi
13329
13330   case $lt_cv_dlopen in
13331   dlopen)
13332     save_CPPFLAGS="$CPPFLAGS"
13333     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13334
13335     save_LDFLAGS="$LDFLAGS"
13336     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13337
13338     save_LIBS="$LIBS"
13339     LIBS="$lt_cv_dlopen_libs $LIBS"
13340
13341     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13342 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13343 if test "${lt_cv_dlopen_self+set}" = set; then :
13344   $as_echo_n "(cached) " >&6
13345 else
13346           if test "$cross_compiling" = yes; then :
13347   lt_cv_dlopen_self=cross
13348 else
13349   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13350   lt_status=$lt_dlunknown
13351   cat > conftest.$ac_ext <<_LT_EOF
13352 #line 13352 "configure"
13353 #include "confdefs.h"
13354
13355 #if HAVE_DLFCN_H
13356 #include <dlfcn.h>
13357 #endif
13358
13359 #include <stdio.h>
13360
13361 #ifdef RTLD_GLOBAL
13362 #  define LT_DLGLOBAL           RTLD_GLOBAL
13363 #else
13364 #  ifdef DL_GLOBAL
13365 #    define LT_DLGLOBAL         DL_GLOBAL
13366 #  else
13367 #    define LT_DLGLOBAL         0
13368 #  endif
13369 #endif
13370
13371 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13372    find out it does not work in some platform. */
13373 #ifndef LT_DLLAZY_OR_NOW
13374 #  ifdef RTLD_LAZY
13375 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13376 #  else
13377 #    ifdef DL_LAZY
13378 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13379 #    else
13380 #      ifdef RTLD_NOW
13381 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13382 #      else
13383 #        ifdef DL_NOW
13384 #          define LT_DLLAZY_OR_NOW      DL_NOW
13385 #        else
13386 #          define LT_DLLAZY_OR_NOW      0
13387 #        endif
13388 #      endif
13389 #    endif
13390 #  endif
13391 #endif
13392
13393 /* When -fvisbility=hidden is used, assume the code has been annotated
13394    correspondingly for the symbols needed.  */
13395 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13396 void fnord () __attribute__((visibility("default")));
13397 #endif
13398
13399 void fnord () { int i=42; }
13400 int main ()
13401 {
13402   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13403   int status = $lt_dlunknown;
13404
13405   if (self)
13406     {
13407       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13408       else
13409         {
13410           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13411           else puts (dlerror ());
13412         }
13413       /* dlclose (self); */
13414     }
13415   else
13416     puts (dlerror ());
13417
13418   return status;
13419 }
13420 _LT_EOF
13421   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13422   (eval $ac_link) 2>&5
13423   ac_status=$?
13424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13425   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13426     (./conftest; exit; ) >&5 2>/dev/null
13427     lt_status=$?
13428     case x$lt_status in
13429       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13430       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13431       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13432     esac
13433   else :
13434     # compilation failed
13435     lt_cv_dlopen_self=no
13436   fi
13437 fi
13438 rm -fr conftest*
13439
13440
13441 fi
13442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13443 $as_echo "$lt_cv_dlopen_self" >&6; }
13444
13445     if test "x$lt_cv_dlopen_self" = xyes; then
13446       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13447       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13448 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13449 if test "${lt_cv_dlopen_self_static+set}" = set; then :
13450   $as_echo_n "(cached) " >&6
13451 else
13452           if test "$cross_compiling" = yes; then :
13453   lt_cv_dlopen_self_static=cross
13454 else
13455   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13456   lt_status=$lt_dlunknown
13457   cat > conftest.$ac_ext <<_LT_EOF
13458 #line 13458 "configure"
13459 #include "confdefs.h"
13460
13461 #if HAVE_DLFCN_H
13462 #include <dlfcn.h>
13463 #endif
13464
13465 #include <stdio.h>
13466
13467 #ifdef RTLD_GLOBAL
13468 #  define LT_DLGLOBAL           RTLD_GLOBAL
13469 #else
13470 #  ifdef DL_GLOBAL
13471 #    define LT_DLGLOBAL         DL_GLOBAL
13472 #  else
13473 #    define LT_DLGLOBAL         0
13474 #  endif
13475 #endif
13476
13477 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13478    find out it does not work in some platform. */
13479 #ifndef LT_DLLAZY_OR_NOW
13480 #  ifdef RTLD_LAZY
13481 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13482 #  else
13483 #    ifdef DL_LAZY
13484 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13485 #    else
13486 #      ifdef RTLD_NOW
13487 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13488 #      else
13489 #        ifdef DL_NOW
13490 #          define LT_DLLAZY_OR_NOW      DL_NOW
13491 #        else
13492 #          define LT_DLLAZY_OR_NOW      0
13493 #        endif
13494 #      endif
13495 #    endif
13496 #  endif
13497 #endif
13498
13499 /* When -fvisbility=hidden is used, assume the code has been annotated
13500    correspondingly for the symbols needed.  */
13501 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13502 void fnord () __attribute__((visibility("default")));
13503 #endif
13504
13505 void fnord () { int i=42; }
13506 int main ()
13507 {
13508   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13509   int status = $lt_dlunknown;
13510
13511   if (self)
13512     {
13513       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13514       else
13515         {
13516           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13517           else puts (dlerror ());
13518         }
13519       /* dlclose (self); */
13520     }
13521   else
13522     puts (dlerror ());
13523
13524   return status;
13525 }
13526 _LT_EOF
13527   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13528   (eval $ac_link) 2>&5
13529   ac_status=$?
13530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13531   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13532     (./conftest; exit; ) >&5 2>/dev/null
13533     lt_status=$?
13534     case x$lt_status in
13535       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13536       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13537       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13538     esac
13539   else :
13540     # compilation failed
13541     lt_cv_dlopen_self_static=no
13542   fi
13543 fi
13544 rm -fr conftest*
13545
13546
13547 fi
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13549 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13550     fi
13551
13552     CPPFLAGS="$save_CPPFLAGS"
13553     LDFLAGS="$save_LDFLAGS"
13554     LIBS="$save_LIBS"
13555     ;;
13556   esac
13557
13558   case $lt_cv_dlopen_self in
13559   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13560   *) enable_dlopen_self=unknown ;;
13561   esac
13562
13563   case $lt_cv_dlopen_self_static in
13564   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13565   *) enable_dlopen_self_static=unknown ;;
13566   esac
13567 fi
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579
13580
13581
13582
13583
13584
13585 striplib=
13586 old_striplib=
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13588 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13589 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13590   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13591   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13593 $as_echo "yes" >&6; }
13594 else
13595 # FIXME - insert some real tests, host_os isn't really good enough
13596   case $host_os in
13597   darwin*)
13598     if test -n "$STRIP" ; then
13599       striplib="$STRIP -x"
13600       old_striplib="$STRIP -S"
13601       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13602 $as_echo "yes" >&6; }
13603     else
13604       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13605 $as_echo "no" >&6; }
13606     fi
13607     ;;
13608   *)
13609     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13610 $as_echo "no" >&6; }
13611     ;;
13612   esac
13613 fi
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626   # Report which library types will actually be built
13627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13628 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13630 $as_echo "$can_build_shared" >&6; }
13631
13632   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13633 $as_echo_n "checking whether to build shared libraries... " >&6; }
13634   test "$can_build_shared" = "no" && enable_shared=no
13635
13636   # On AIX, shared libraries and static libraries use the same namespace, and
13637   # are all built from PIC.
13638   case $host_os in
13639   aix3*)
13640     test "$enable_shared" = yes && enable_static=no
13641     if test -n "$RANLIB"; then
13642       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13643       postinstall_cmds='$RANLIB $lib'
13644     fi
13645     ;;
13646
13647   aix[4-9]*)
13648     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13649       test "$enable_shared" = yes && enable_static=no
13650     fi
13651     ;;
13652   esac
13653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13654 $as_echo "$enable_shared" >&6; }
13655
13656   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13657 $as_echo_n "checking whether to build static libraries... " >&6; }
13658   # Make sure either enable_shared or enable_static is yes.
13659   test "$enable_shared" = yes || enable_static=yes
13660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13661 $as_echo "$enable_static" >&6; }
13662
13663
13664
13665
13666 fi
13667 ac_ext=c
13668 ac_cpp='$CPP $CPPFLAGS'
13669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13672
13673 CC="$lt_save_CC"
13674
13675       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13676     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13677     (test "X$CXX" != "Xg++"))) ; then
13678   ac_ext=cpp
13679 ac_cpp='$CXXCPP $CPPFLAGS'
13680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13684 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13685 if test -z "$CXXCPP"; then
13686   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13687   $as_echo_n "(cached) " >&6
13688 else
13689       # Double quotes because CXXCPP needs to be expanded
13690     for CXXCPP in "$CXX -E" "/lib/cpp"
13691     do
13692       ac_preproc_ok=false
13693 for ac_cxx_preproc_warn_flag in '' yes
13694 do
13695   # Use a header file that comes with gcc, so configuring glibc
13696   # with a fresh cross-compiler works.
13697   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13698   # <limits.h> exists even on freestanding compilers.
13699   # On the NeXT, cc -E runs the code through the compiler's parser,
13700   # not just through cpp. "Syntax error" is here to catch this case.
13701   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h.  */
13703 #ifdef __STDC__
13704 # include <limits.h>
13705 #else
13706 # include <assert.h>
13707 #endif
13708                      Syntax error
13709 _ACEOF
13710 if ac_fn_cxx_try_cpp "$LINENO"; then :
13711
13712 else
13713   # Broken: fails on valid input.
13714 continue
13715 fi
13716 rm -f conftest.err conftest.$ac_ext
13717
13718   # OK, works on sane cases.  Now check whether nonexistent headers
13719   # can be detected and how.
13720   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h.  */
13722 #include <ac_nonexistent.h>
13723 _ACEOF
13724 if ac_fn_cxx_try_cpp "$LINENO"; then :
13725   # Broken: success on invalid input.
13726 continue
13727 else
13728   # Passes both tests.
13729 ac_preproc_ok=:
13730 break
13731 fi
13732 rm -f conftest.err conftest.$ac_ext
13733
13734 done
13735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13736 rm -f conftest.err conftest.$ac_ext
13737 if $ac_preproc_ok; then :
13738   break
13739 fi
13740
13741     done
13742     ac_cv_prog_CXXCPP=$CXXCPP
13743
13744 fi
13745   CXXCPP=$ac_cv_prog_CXXCPP
13746 else
13747   ac_cv_prog_CXXCPP=$CXXCPP
13748 fi
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13750 $as_echo "$CXXCPP" >&6; }
13751 ac_preproc_ok=false
13752 for ac_cxx_preproc_warn_flag in '' yes
13753 do
13754   # Use a header file that comes with gcc, so configuring glibc
13755   # with a fresh cross-compiler works.
13756   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13757   # <limits.h> exists even on freestanding compilers.
13758   # On the NeXT, cc -E runs the code through the compiler's parser,
13759   # not just through cpp. "Syntax error" is here to catch this case.
13760   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h.  */
13762 #ifdef __STDC__
13763 # include <limits.h>
13764 #else
13765 # include <assert.h>
13766 #endif
13767                      Syntax error
13768 _ACEOF
13769 if ac_fn_cxx_try_cpp "$LINENO"; then :
13770
13771 else
13772   # Broken: fails on valid input.
13773 continue
13774 fi
13775 rm -f conftest.err conftest.$ac_ext
13776
13777   # OK, works on sane cases.  Now check whether nonexistent headers
13778   # can be detected and how.
13779   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13780 /* end confdefs.h.  */
13781 #include <ac_nonexistent.h>
13782 _ACEOF
13783 if ac_fn_cxx_try_cpp "$LINENO"; then :
13784   # Broken: success on invalid input.
13785 continue
13786 else
13787   # Passes both tests.
13788 ac_preproc_ok=:
13789 break
13790 fi
13791 rm -f conftest.err conftest.$ac_ext
13792
13793 done
13794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13795 rm -f conftest.err conftest.$ac_ext
13796 if $ac_preproc_ok; then :
13797
13798 else
13799   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13801 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13802 See \`config.log' for more details." "$LINENO" 5; }
13803 fi
13804
13805 ac_ext=c
13806 ac_cpp='$CPP $CPPFLAGS'
13807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13810
13811 else
13812   _lt_caught_CXX_error=yes
13813 fi
13814
13815 ac_ext=cpp
13816 ac_cpp='$CXXCPP $CPPFLAGS'
13817 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13818 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13819 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13820
13821 archive_cmds_need_lc_CXX=no
13822 allow_undefined_flag_CXX=
13823 always_export_symbols_CXX=no
13824 archive_expsym_cmds_CXX=
13825 compiler_needs_object_CXX=no
13826 export_dynamic_flag_spec_CXX=
13827 hardcode_direct_CXX=no
13828 hardcode_direct_absolute_CXX=no
13829 hardcode_libdir_flag_spec_CXX=
13830 hardcode_libdir_flag_spec_ld_CXX=
13831 hardcode_libdir_separator_CXX=
13832 hardcode_minus_L_CXX=no
13833 hardcode_shlibpath_var_CXX=unsupported
13834 hardcode_automatic_CXX=no
13835 inherit_rpath_CXX=no
13836 module_cmds_CXX=
13837 module_expsym_cmds_CXX=
13838 link_all_deplibs_CXX=unknown
13839 old_archive_cmds_CXX=$old_archive_cmds
13840 reload_flag_CXX=$reload_flag
13841 reload_cmds_CXX=$reload_cmds
13842 no_undefined_flag_CXX=
13843 whole_archive_flag_spec_CXX=
13844 enable_shared_with_static_runtimes_CXX=no
13845
13846 # Source file extension for C++ test sources.
13847 ac_ext=cpp
13848
13849 # Object file extension for compiled C++ test sources.
13850 objext=o
13851 objext_CXX=$objext
13852
13853 # No sense in running all these tests if we already determined that
13854 # the CXX compiler isn't working.  Some variables (like enable_shared)
13855 # are currently assumed to apply to all compilers on this platform,
13856 # and will be corrupted by setting them based on a non-working compiler.
13857 if test "$_lt_caught_CXX_error" != yes; then
13858   # Code to be used in simple compile tests
13859   lt_simple_compile_test_code="int some_variable = 0;"
13860
13861   # Code to be used in simple link tests
13862   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13863
13864   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13865
13866
13867
13868
13869
13870
13871 # If no C compiler was specified, use CC.
13872 LTCC=${LTCC-"$CC"}
13873
13874 # If no C compiler flags were specified, use CFLAGS.
13875 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13876
13877 # Allow CC to be a program name with arguments.
13878 compiler=$CC
13879
13880
13881   # save warnings/boilerplate of simple test code
13882   ac_outfile=conftest.$ac_objext
13883 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13884 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13885 _lt_compiler_boilerplate=`cat conftest.err`
13886 $RM conftest*
13887
13888   ac_outfile=conftest.$ac_objext
13889 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13890 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13891 _lt_linker_boilerplate=`cat conftest.err`
13892 $RM -r conftest*
13893
13894
13895   # Allow CC to be a program name with arguments.
13896   lt_save_CC=$CC
13897   lt_save_LD=$LD
13898   lt_save_GCC=$GCC
13899   GCC=$GXX
13900   lt_save_with_gnu_ld=$with_gnu_ld
13901   lt_save_path_LD=$lt_cv_path_LD
13902   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13903     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13904   else
13905     $as_unset lt_cv_prog_gnu_ld
13906   fi
13907   if test -n "${lt_cv_path_LDCXX+set}"; then
13908     lt_cv_path_LD=$lt_cv_path_LDCXX
13909   else
13910     $as_unset lt_cv_path_LD
13911   fi
13912   test -z "${LDCXX+set}" || LD=$LDCXX
13913   CC=${CXX-"c++"}
13914   compiler=$CC
13915   compiler_CXX=$CC
13916   for cc_temp in $compiler""; do
13917   case $cc_temp in
13918     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13919     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13920     \-*) ;;
13921     *) break;;
13922   esac
13923 done
13924 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13925
13926
13927   if test -n "$compiler"; then
13928     # We don't want -fno-exception when compiling C++ code, so set the
13929     # no_builtin_flag separately
13930     if test "$GXX" = yes; then
13931       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13932     else
13933       lt_prog_compiler_no_builtin_flag_CXX=
13934     fi
13935
13936     if test "$GXX" = yes; then
13937       # Set up default GNU C++ configuration
13938
13939
13940
13941 # Check whether --with-gnu-ld was given.
13942 if test "${with_gnu_ld+set}" = set; then :
13943   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13944 else
13945   with_gnu_ld=no
13946 fi
13947
13948 ac_prog=ld
13949 if test "$GCC" = yes; then
13950   # Check if gcc -print-prog-name=ld gives a path.
13951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13952 $as_echo_n "checking for ld used by $CC... " >&6; }
13953   case $host in
13954   *-*-mingw*)
13955     # gcc leaves a trailing carriage return which upsets mingw
13956     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13957   *)
13958     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13959   esac
13960   case $ac_prog in
13961     # Accept absolute paths.
13962     [\\/]* | ?:[\\/]*)
13963       re_direlt='/[^/][^/]*/\.\./'
13964       # Canonicalize the pathname of ld
13965       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13966       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13967         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13968       done
13969       test -z "$LD" && LD="$ac_prog"
13970       ;;
13971   "")
13972     # If it fails, then pretend we aren't using GCC.
13973     ac_prog=ld
13974     ;;
13975   *)
13976     # If it is relative, then search for the first ld in PATH.
13977     with_gnu_ld=unknown
13978     ;;
13979   esac
13980 elif test "$with_gnu_ld" = yes; then
13981   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13982 $as_echo_n "checking for GNU ld... " >&6; }
13983 else
13984   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13985 $as_echo_n "checking for non-GNU ld... " >&6; }
13986 fi
13987 if test "${lt_cv_path_LD+set}" = set; then :
13988   $as_echo_n "(cached) " >&6
13989 else
13990   if test -z "$LD"; then
13991   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13992   for ac_dir in $PATH; do
13993     IFS="$lt_save_ifs"
13994     test -z "$ac_dir" && ac_dir=.
13995     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13996       lt_cv_path_LD="$ac_dir/$ac_prog"
13997       # Check to see if the program is GNU ld.  I'd rather use --version,
13998       # but apparently some variants of GNU ld only accept -v.
13999       # Break only if it was the GNU/non-GNU ld that we prefer.
14000       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14001       *GNU* | *'with BFD'*)
14002         test "$with_gnu_ld" != no && break
14003         ;;
14004       *)
14005         test "$with_gnu_ld" != yes && break
14006         ;;
14007       esac
14008     fi
14009   done
14010   IFS="$lt_save_ifs"
14011 else
14012   lt_cv_path_LD="$LD" # Let the user override the test with a path.
14013 fi
14014 fi
14015
14016 LD="$lt_cv_path_LD"
14017 if test -n "$LD"; then
14018   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14019 $as_echo "$LD" >&6; }
14020 else
14021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14022 $as_echo "no" >&6; }
14023 fi
14024 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14026 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
14027 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
14028   $as_echo_n "(cached) " >&6
14029 else
14030   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14031 case `$LD -v 2>&1 </dev/null` in
14032 *GNU* | *'with BFD'*)
14033   lt_cv_prog_gnu_ld=yes
14034   ;;
14035 *)
14036   lt_cv_prog_gnu_ld=no
14037   ;;
14038 esac
14039 fi
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
14041 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
14042 with_gnu_ld=$lt_cv_prog_gnu_ld
14043
14044
14045
14046
14047
14048
14049
14050       # Check if GNU C++ uses GNU ld as the underlying linker, since the
14051       # archiving commands below assume that GNU ld is being used.
14052       if test "$with_gnu_ld" = yes; then
14053         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14054         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'
14055
14056         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14057         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14058
14059         # If archive_cmds runs LD, not CC, wlarc should be empty
14060         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
14061         #     investigate it a little bit more. (MM)
14062         wlarc='${wl}'
14063
14064         # ancient GNU ld didn't support --whole-archive et. al.
14065         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
14066           $GREP 'no-whole-archive' > /dev/null; then
14067           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14068         else
14069           whole_archive_flag_spec_CXX=
14070         fi
14071       else
14072         with_gnu_ld=no
14073         wlarc=
14074
14075         # A generic and very simple default shared library creation
14076         # command for GNU C++ for the case where it uses the native
14077         # linker, instead of GNU ld.  If possible, this setting should
14078         # overridden to take advantage of the native linker features on
14079         # the platform it is being used on.
14080         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14081       fi
14082
14083       # Commands to make compiler produce verbose output that lists
14084       # what "hidden" libraries, object files and flags are used when
14085       # linking a shared library.
14086       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14087
14088     else
14089       GXX=no
14090       with_gnu_ld=no
14091       wlarc=
14092     fi
14093
14094     # PORTME: fill in a description of your system's C++ link characteristics
14095     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14096 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14097     ld_shlibs_CXX=yes
14098     case $host_os in
14099       aix3*)
14100         # FIXME: insert proper C++ library support
14101         ld_shlibs_CXX=no
14102         ;;
14103       aix[4-9]*)
14104         if test "$host_cpu" = ia64; then
14105           # On IA64, the linker does run time linking by default, so we don't
14106           # have to do anything special.
14107           aix_use_runtimelinking=no
14108           exp_sym_flag='-Bexport'
14109           no_entry_flag=""
14110         else
14111           aix_use_runtimelinking=no
14112
14113           # Test if we are trying to use run time linking or normal
14114           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14115           # need to do runtime linking.
14116           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14117             for ld_flag in $LDFLAGS; do
14118               case $ld_flag in
14119               *-brtl*)
14120                 aix_use_runtimelinking=yes
14121                 break
14122                 ;;
14123               esac
14124             done
14125             ;;
14126           esac
14127
14128           exp_sym_flag='-bexport'
14129           no_entry_flag='-bnoentry'
14130         fi
14131
14132         # When large executables or shared objects are built, AIX ld can
14133         # have problems creating the table of contents.  If linking a library
14134         # or program results in "error TOC overflow" add -mminimal-toc to
14135         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
14136         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14137
14138         archive_cmds_CXX=''
14139         hardcode_direct_CXX=yes
14140         hardcode_direct_absolute_CXX=yes
14141         hardcode_libdir_separator_CXX=':'
14142         link_all_deplibs_CXX=yes
14143         file_list_spec_CXX='${wl}-f,'
14144
14145         if test "$GXX" = yes; then
14146           case $host_os in aix4.[012]|aix4.[012].*)
14147           # We only want to do this on AIX 4.2 and lower, the check
14148           # below for broken collect2 doesn't work under 4.3+
14149           collect2name=`${CC} -print-prog-name=collect2`
14150           if test -f "$collect2name" &&
14151              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14152           then
14153             # We have reworked collect2
14154             :
14155           else
14156             # We have old collect2
14157             hardcode_direct_CXX=unsupported
14158             # It fails to find uninstalled libraries when the uninstalled
14159             # path is not listed in the libpath.  Setting hardcode_minus_L
14160             # to unsupported forces relinking
14161             hardcode_minus_L_CXX=yes
14162             hardcode_libdir_flag_spec_CXX='-L$libdir'
14163             hardcode_libdir_separator_CXX=
14164           fi
14165           esac
14166           shared_flag='-shared'
14167           if test "$aix_use_runtimelinking" = yes; then
14168             shared_flag="$shared_flag "'${wl}-G'
14169           fi
14170         else
14171           # not using gcc
14172           if test "$host_cpu" = ia64; then
14173           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14174           # chokes on -Wl,-G. The following line is correct:
14175           shared_flag='-G'
14176           else
14177             if test "$aix_use_runtimelinking" = yes; then
14178               shared_flag='${wl}-G'
14179             else
14180               shared_flag='${wl}-bM:SRE'
14181             fi
14182           fi
14183         fi
14184
14185         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14186         # It seems that -bexpall does not export symbols beginning with
14187         # underscore (_), so it is better to generate a list of symbols to
14188         # export.
14189         always_export_symbols_CXX=yes
14190         if test "$aix_use_runtimelinking" = yes; then
14191           # Warning - without using the other runtime loading flags (-brtl),
14192           # -berok will link without error, but may produce a broken library.
14193           allow_undefined_flag_CXX='-berok'
14194           # Determine the default libpath from the value encoded in an empty
14195           # executable.
14196           if test x$gcc_no_link = xyes; then
14197   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14198 fi
14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h.  */
14201
14202 int
14203 main ()
14204 {
14205
14206   ;
14207   return 0;
14208 }
14209 _ACEOF
14210 if ac_fn_cxx_try_link "$LINENO"; then :
14211
14212 lt_aix_libpath_sed='
14213     /Import File Strings/,/^$/ {
14214         /^0/ {
14215             s/^0  *\(.*\)$/\1/
14216             p
14217         }
14218     }'
14219 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14220 # Check for a 64-bit object if we didn't find anything.
14221 if test -z "$aix_libpath"; then
14222   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14223 fi
14224 fi
14225 rm -f core conftest.err conftest.$ac_objext \
14226     conftest$ac_exeext conftest.$ac_ext
14227 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14228
14229           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14230
14231           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"
14232         else
14233           if test "$host_cpu" = ia64; then
14234             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14235             allow_undefined_flag_CXX="-z nodefs"
14236             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"
14237           else
14238             # Determine the default libpath from the value encoded in an
14239             # empty executable.
14240             if test x$gcc_no_link = xyes; then
14241   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14242 fi
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h.  */
14245
14246 int
14247 main ()
14248 {
14249
14250   ;
14251   return 0;
14252 }
14253 _ACEOF
14254 if ac_fn_cxx_try_link "$LINENO"; then :
14255
14256 lt_aix_libpath_sed='
14257     /Import File Strings/,/^$/ {
14258         /^0/ {
14259             s/^0  *\(.*\)$/\1/
14260             p
14261         }
14262     }'
14263 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14264 # Check for a 64-bit object if we didn't find anything.
14265 if test -z "$aix_libpath"; then
14266   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14267 fi
14268 fi
14269 rm -f core conftest.err conftest.$ac_objext \
14270     conftest$ac_exeext conftest.$ac_ext
14271 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14272
14273             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14274             # Warning - without using the other run time loading flags,
14275             # -berok will link without error, but may produce a broken library.
14276             no_undefined_flag_CXX=' ${wl}-bernotok'
14277             allow_undefined_flag_CXX=' ${wl}-berok'
14278             if test "$with_gnu_ld" = yes; then
14279               # We only use this code for GNU lds that support --whole-archive.
14280               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14281             else
14282               # Exported symbols can be pulled into shared objects from archives
14283               whole_archive_flag_spec_CXX='$convenience'
14284             fi
14285             archive_cmds_need_lc_CXX=yes
14286             # This is similar to how AIX traditionally builds its shared
14287             # libraries.
14288             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'
14289           fi
14290         fi
14291         ;;
14292
14293       beos*)
14294         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14295           allow_undefined_flag_CXX=unsupported
14296           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14297           # support --undefined.  This deserves some investigation.  FIXME
14298           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14299         else
14300           ld_shlibs_CXX=no
14301         fi
14302         ;;
14303
14304       chorus*)
14305         case $cc_basename in
14306           *)
14307           # FIXME: insert proper C++ library support
14308           ld_shlibs_CXX=no
14309           ;;
14310         esac
14311         ;;
14312
14313       cygwin* | mingw* | pw32* | cegcc*)
14314         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14315         # as there is no search path for DLLs.
14316         hardcode_libdir_flag_spec_CXX='-L$libdir'
14317         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14318         allow_undefined_flag_CXX=unsupported
14319         always_export_symbols_CXX=no
14320         enable_shared_with_static_runtimes_CXX=yes
14321
14322         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14323           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'
14324           # If the export-symbols file already is a .def file (1st line
14325           # is EXPORTS), use it as is; otherwise, prepend...
14326           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14327             cp $export_symbols $output_objdir/$soname.def;
14328           else
14329             echo EXPORTS > $output_objdir/$soname.def;
14330             cat $export_symbols >> $output_objdir/$soname.def;
14331           fi~
14332           $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'
14333         else
14334           ld_shlibs_CXX=no
14335         fi
14336         ;;
14337       darwin* | rhapsody*)
14338
14339
14340   archive_cmds_need_lc_CXX=no
14341   hardcode_direct_CXX=no
14342   hardcode_automatic_CXX=yes
14343   hardcode_shlibpath_var_CXX=unsupported
14344   if test "$lt_cv_ld_force_load" = "yes"; then
14345     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\"`'
14346   else
14347     whole_archive_flag_spec_CXX=''
14348   fi
14349   link_all_deplibs_CXX=yes
14350   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14351   case $cc_basename in
14352      ifort*) _lt_dar_can_shared=yes ;;
14353      *) _lt_dar_can_shared=$GCC ;;
14354   esac
14355   if test "$_lt_dar_can_shared" = "yes"; then
14356     output_verbose_link_cmd=func_echo_all
14357     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}"
14358     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14359     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}"
14360     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}"
14361        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14362       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}"
14363       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}"
14364     fi
14365
14366   else
14367   ld_shlibs_CXX=no
14368   fi
14369
14370         ;;
14371
14372       dgux*)
14373         case $cc_basename in
14374           ec++*)
14375             # FIXME: insert proper C++ library support
14376             ld_shlibs_CXX=no
14377             ;;
14378           ghcx*)
14379             # Green Hills C++ Compiler
14380             # FIXME: insert proper C++ library support
14381             ld_shlibs_CXX=no
14382             ;;
14383           *)
14384             # FIXME: insert proper C++ library support
14385             ld_shlibs_CXX=no
14386             ;;
14387         esac
14388         ;;
14389
14390       freebsd[12]*)
14391         # C++ shared libraries reported to be fairly broken before
14392         # switch to ELF
14393         ld_shlibs_CXX=no
14394         ;;
14395
14396       freebsd-elf*)
14397         archive_cmds_need_lc_CXX=no
14398         ;;
14399
14400       freebsd* | dragonfly*)
14401         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14402         # conventions
14403         ld_shlibs_CXX=yes
14404         ;;
14405
14406       gnu*)
14407         ;;
14408
14409       haiku*)
14410         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14411         link_all_deplibs_CXX=yes
14412         ;;
14413
14414       hpux9*)
14415         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14416         hardcode_libdir_separator_CXX=:
14417         export_dynamic_flag_spec_CXX='${wl}-E'
14418         hardcode_direct_CXX=yes
14419         hardcode_minus_L_CXX=yes # Not in the search PATH,
14420                                              # but as the default
14421                                              # location of the library.
14422
14423         case $cc_basename in
14424           CC*)
14425             # FIXME: insert proper C++ library support
14426             ld_shlibs_CXX=no
14427             ;;
14428           aCC*)
14429             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'
14430             # Commands to make compiler produce verbose output that lists
14431             # what "hidden" libraries, object files and flags are used when
14432             # linking a shared library.
14433             #
14434             # There doesn't appear to be a way to prevent this compiler from
14435             # explicitly linking system object files so we need to strip them
14436             # from the output so that they don't get included in the library
14437             # dependencies.
14438             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"'
14439             ;;
14440           *)
14441             if test "$GXX" = yes; then
14442               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'
14443             else
14444               # FIXME: insert proper C++ library support
14445               ld_shlibs_CXX=no
14446             fi
14447             ;;
14448         esac
14449         ;;
14450
14451       hpux10*|hpux11*)
14452         if test $with_gnu_ld = no; then
14453           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14454           hardcode_libdir_separator_CXX=:
14455
14456           case $host_cpu in
14457             hppa*64*|ia64*)
14458               ;;
14459             *)
14460               export_dynamic_flag_spec_CXX='${wl}-E'
14461               ;;
14462           esac
14463         fi
14464         case $host_cpu in
14465           hppa*64*|ia64*)
14466             hardcode_direct_CXX=no
14467             hardcode_shlibpath_var_CXX=no
14468             ;;
14469           *)
14470             hardcode_direct_CXX=yes
14471             hardcode_direct_absolute_CXX=yes
14472             hardcode_minus_L_CXX=yes # Not in the search PATH,
14473                                                  # but as the default
14474                                                  # location of the library.
14475             ;;
14476         esac
14477
14478         case $cc_basename in
14479           CC*)
14480             # FIXME: insert proper C++ library support
14481             ld_shlibs_CXX=no
14482             ;;
14483           aCC*)
14484             case $host_cpu in
14485               hppa*64*)
14486                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14487                 ;;
14488               ia64*)
14489                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14490                 ;;
14491               *)
14492                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14493                 ;;
14494             esac
14495             # Commands to make compiler produce verbose output that lists
14496             # what "hidden" libraries, object files and flags are used when
14497             # linking a shared library.
14498             #
14499             # There doesn't appear to be a way to prevent this compiler from
14500             # explicitly linking system object files so we need to strip them
14501             # from the output so that they don't get included in the library
14502             # dependencies.
14503             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"'
14504             ;;
14505           *)
14506             if test "$GXX" = yes; then
14507               if test $with_gnu_ld = no; then
14508                 case $host_cpu in
14509                   hppa*64*)
14510                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14511                     ;;
14512                   ia64*)
14513                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14514                     ;;
14515                   *)
14516                     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'
14517                     ;;
14518                 esac
14519               fi
14520             else
14521               # FIXME: insert proper C++ library support
14522               ld_shlibs_CXX=no
14523             fi
14524             ;;
14525         esac
14526         ;;
14527
14528       interix[3-9]*)
14529         hardcode_direct_CXX=no
14530         hardcode_shlibpath_var_CXX=no
14531         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14532         export_dynamic_flag_spec_CXX='${wl}-E'
14533         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14534         # Instead, shared libraries are loaded at an image base (0x10000000 by
14535         # default) and relocated if they conflict, which is a slow very memory
14536         # consuming and fragmenting process.  To avoid this, we pick a random,
14537         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14538         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14539         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'
14540         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'
14541         ;;
14542       irix5* | irix6*)
14543         case $cc_basename in
14544           CC*)
14545             # SGI C++
14546             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'
14547
14548             # Archives containing C++ object files must be created using
14549             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14550             # necessary to make sure instantiated templates are included
14551             # in the archive.
14552             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14553             ;;
14554           *)
14555             if test "$GXX" = yes; then
14556               if test "$with_gnu_ld" = no; then
14557                 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'
14558               else
14559                 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'
14560               fi
14561             fi
14562             link_all_deplibs_CXX=yes
14563             ;;
14564         esac
14565         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14566         hardcode_libdir_separator_CXX=:
14567         inherit_rpath_CXX=yes
14568         ;;
14569
14570       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14571         case $cc_basename in
14572           KCC*)
14573             # Kuck and Associates, Inc. (KAI) C++ Compiler
14574
14575             # KCC will only create a shared library if the output file
14576             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14577             # to its proper name (with version) after linking.
14578             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'
14579             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'
14580             # Commands to make compiler produce verbose output that lists
14581             # what "hidden" libraries, object files and flags are used when
14582             # linking a shared library.
14583             #
14584             # There doesn't appear to be a way to prevent this compiler from
14585             # explicitly linking system object files so we need to strip them
14586             # from the output so that they don't get included in the library
14587             # dependencies.
14588             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"'
14589
14590             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14591             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14592
14593             # Archives containing C++ object files must be created using
14594             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14595             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14596             ;;
14597           icpc* | ecpc* )
14598             # Intel C++
14599             with_gnu_ld=yes
14600             # version 8.0 and above of icpc choke on multiply defined symbols
14601             # if we add $predep_objects and $postdep_objects, however 7.1 and
14602             # earlier do not add the objects themselves.
14603             case `$CC -V 2>&1` in
14604               *"Version 7."*)
14605                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14606                 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'
14607                 ;;
14608               *)  # Version 8.0 or newer
14609                 tmp_idyn=
14610                 case $host_cpu in
14611                   ia64*) tmp_idyn=' -i_dynamic';;
14612                 esac
14613                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14614                 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'
14615                 ;;
14616             esac
14617             archive_cmds_need_lc_CXX=no
14618             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14619             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14620             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14621             ;;
14622           pgCC* | pgcpp*)
14623             # Portland Group C++ compiler
14624             case `$CC -V` in
14625             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14626               prelink_cmds_CXX='tpldir=Template.dir~
14627                 rm -rf $tpldir~
14628                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14629                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14630               old_archive_cmds_CXX='tpldir=Template.dir~
14631                 rm -rf $tpldir~
14632                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14633                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14634                 $RANLIB $oldlib'
14635               archive_cmds_CXX='tpldir=Template.dir~
14636                 rm -rf $tpldir~
14637                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14638                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14639               archive_expsym_cmds_CXX='tpldir=Template.dir~
14640                 rm -rf $tpldir~
14641                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14642                 $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'
14643               ;;
14644             *) # Version 6 and above use weak symbols
14645               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14646               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'
14647               ;;
14648             esac
14649
14650             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14651             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14652             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'
14653             ;;
14654           cxx*)
14655             # Compaq C++
14656             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14657             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'
14658
14659             runpath_var=LD_RUN_PATH
14660             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14661             hardcode_libdir_separator_CXX=:
14662
14663             # Commands to make compiler produce verbose output that lists
14664             # what "hidden" libraries, object files and flags are used when
14665             # linking a shared library.
14666             #
14667             # There doesn't appear to be a way to prevent this compiler from
14668             # explicitly linking system object files so we need to strip them
14669             # from the output so that they don't get included in the library
14670             # dependencies.
14671             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'
14672             ;;
14673           xl* | mpixl* | bgxl*)
14674             # IBM XL 8.0 on PPC, with GNU ld
14675             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14676             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14677             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14678             if test "x$supports_anon_versioning" = xyes; then
14679               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14680                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14681                 echo "local: *; };" >> $output_objdir/$libname.ver~
14682                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14683             fi
14684             ;;
14685           *)
14686             case `$CC -V 2>&1 | sed 5q` in
14687             *Sun\ C*)
14688               # Sun C++ 5.9
14689               no_undefined_flag_CXX=' -zdefs'
14690               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14691               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'
14692               hardcode_libdir_flag_spec_CXX='-R$libdir'
14693               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'
14694               compiler_needs_object_CXX=yes
14695
14696               # Not sure whether something based on
14697               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14698               # would be better.
14699               output_verbose_link_cmd='func_echo_all'
14700
14701               # Archives containing C++ object files must be created using
14702               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14703               # necessary to make sure instantiated templates are included
14704               # in the archive.
14705               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14706               ;;
14707             esac
14708             ;;
14709         esac
14710         ;;
14711
14712       lynxos*)
14713         # FIXME: insert proper C++ library support
14714         ld_shlibs_CXX=no
14715         ;;
14716
14717       m88k*)
14718         # FIXME: insert proper C++ library support
14719         ld_shlibs_CXX=no
14720         ;;
14721
14722       mvs*)
14723         case $cc_basename in
14724           cxx*)
14725             # FIXME: insert proper C++ library support
14726             ld_shlibs_CXX=no
14727             ;;
14728           *)
14729             # FIXME: insert proper C++ library support
14730             ld_shlibs_CXX=no
14731             ;;
14732         esac
14733         ;;
14734
14735       netbsd*)
14736         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14737           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14738           wlarc=
14739           hardcode_libdir_flag_spec_CXX='-R$libdir'
14740           hardcode_direct_CXX=yes
14741           hardcode_shlibpath_var_CXX=no
14742         fi
14743         # Workaround some broken pre-1.5 toolchains
14744         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14745         ;;
14746
14747       *nto* | *qnx*)
14748         ld_shlibs_CXX=yes
14749         ;;
14750
14751       openbsd2*)
14752         # C++ shared libraries are fairly broken
14753         ld_shlibs_CXX=no
14754         ;;
14755
14756       openbsd*)
14757         if test -f /usr/libexec/ld.so; then
14758           hardcode_direct_CXX=yes
14759           hardcode_shlibpath_var_CXX=no
14760           hardcode_direct_absolute_CXX=yes
14761           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14762           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14763           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14764             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14765             export_dynamic_flag_spec_CXX='${wl}-E'
14766             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14767           fi
14768           output_verbose_link_cmd=func_echo_all
14769         else
14770           ld_shlibs_CXX=no
14771         fi
14772         ;;
14773
14774       osf3* | osf4* | osf5*)
14775         case $cc_basename in
14776           KCC*)
14777             # Kuck and Associates, Inc. (KAI) C++ Compiler
14778
14779             # KCC will only create a shared library if the output file
14780             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14781             # to its proper name (with version) after linking.
14782             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'
14783
14784             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14785             hardcode_libdir_separator_CXX=:
14786
14787             # Archives containing C++ object files must be created using
14788             # the KAI C++ compiler.
14789             case $host in
14790               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14791               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14792             esac
14793             ;;
14794           RCC*)
14795             # Rational C++ 2.4.1
14796             # FIXME: insert proper C++ library support
14797             ld_shlibs_CXX=no
14798             ;;
14799           cxx*)
14800             case $host in
14801               osf3*)
14802                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14803                 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'
14804                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14805                 ;;
14806               *)
14807                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14808                 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'
14809                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14810                   echo "-hidden">> $lib.exp~
14811                   $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~
14812                   $RM $lib.exp'
14813                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14814                 ;;
14815             esac
14816
14817             hardcode_libdir_separator_CXX=:
14818
14819             # Commands to make compiler produce verbose output that lists
14820             # what "hidden" libraries, object files and flags are used when
14821             # linking a shared library.
14822             #
14823             # There doesn't appear to be a way to prevent this compiler from
14824             # explicitly linking system object files so we need to strip them
14825             # from the output so that they don't get included in the library
14826             # dependencies.
14827             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"'
14828             ;;
14829           *)
14830             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14831               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14832               case $host in
14833                 osf3*)
14834                   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'
14835                   ;;
14836                 *)
14837                   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'
14838                   ;;
14839               esac
14840
14841               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14842               hardcode_libdir_separator_CXX=:
14843
14844               # Commands to make compiler produce verbose output that lists
14845               # what "hidden" libraries, object files and flags are used when
14846               # linking a shared library.
14847               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14848
14849             else
14850               # FIXME: insert proper C++ library support
14851               ld_shlibs_CXX=no
14852             fi
14853             ;;
14854         esac
14855         ;;
14856
14857       psos*)
14858         # FIXME: insert proper C++ library support
14859         ld_shlibs_CXX=no
14860         ;;
14861
14862       sunos4*)
14863         case $cc_basename in
14864           CC*)
14865             # Sun C++ 4.x
14866             # FIXME: insert proper C++ library support
14867             ld_shlibs_CXX=no
14868             ;;
14869           lcc*)
14870             # Lucid
14871             # FIXME: insert proper C++ library support
14872             ld_shlibs_CXX=no
14873             ;;
14874           *)
14875             # FIXME: insert proper C++ library support
14876             ld_shlibs_CXX=no
14877             ;;
14878         esac
14879         ;;
14880
14881       solaris*)
14882         case $cc_basename in
14883           CC*)
14884             # Sun C++ 4.2, 5.x and Centerline C++
14885             archive_cmds_need_lc_CXX=yes
14886             no_undefined_flag_CXX=' -zdefs'
14887             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14888             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14889               $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'
14890
14891             hardcode_libdir_flag_spec_CXX='-R$libdir'
14892             hardcode_shlibpath_var_CXX=no
14893             case $host_os in
14894               solaris2.[0-5] | solaris2.[0-5].*) ;;
14895               *)
14896                 # The compiler driver will combine and reorder linker options,
14897                 # but understands `-z linker_flag'.
14898                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14899                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14900                 ;;
14901             esac
14902             link_all_deplibs_CXX=yes
14903
14904             output_verbose_link_cmd='func_echo_all'
14905
14906             # Archives containing C++ object files must be created using
14907             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14908             # necessary to make sure instantiated templates are included
14909             # in the archive.
14910             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14911             ;;
14912           gcx*)
14913             # Green Hills C++ Compiler
14914             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14915
14916             # The C++ compiler must be used to create the archive.
14917             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14918             ;;
14919           *)
14920             # GNU C++ compiler with Solaris linker
14921             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14922               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14923               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14924                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14925                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14926                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14927
14928                 # Commands to make compiler produce verbose output that lists
14929                 # what "hidden" libraries, object files and flags are used when
14930                 # linking a shared library.
14931                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14932               else
14933                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14934                 # platform.
14935                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14936                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14937                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14938
14939                 # Commands to make compiler produce verbose output that lists
14940                 # what "hidden" libraries, object files and flags are used when
14941                 # linking a shared library.
14942                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14943               fi
14944
14945               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14946               case $host_os in
14947                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14948                 *)
14949                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14950                   ;;
14951               esac
14952             fi
14953             ;;
14954         esac
14955         ;;
14956
14957     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14958       no_undefined_flag_CXX='${wl}-z,text'
14959       archive_cmds_need_lc_CXX=no
14960       hardcode_shlibpath_var_CXX=no
14961       runpath_var='LD_RUN_PATH'
14962
14963       case $cc_basename in
14964         CC*)
14965           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14966           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14967           ;;
14968         *)
14969           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14970           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14971           ;;
14972       esac
14973       ;;
14974
14975       sysv5* | sco3.2v5* | sco5v6*)
14976         # Note: We can NOT use -z defs as we might desire, because we do not
14977         # link with -lc, and that would cause any symbols used from libc to
14978         # always be unresolved, which means just about no library would
14979         # ever link correctly.  If we're not using GNU ld we use -z text
14980         # though, which does catch some bad symbols but isn't as heavy-handed
14981         # as -z defs.
14982         no_undefined_flag_CXX='${wl}-z,text'
14983         allow_undefined_flag_CXX='${wl}-z,nodefs'
14984         archive_cmds_need_lc_CXX=no
14985         hardcode_shlibpath_var_CXX=no
14986         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14987         hardcode_libdir_separator_CXX=':'
14988         link_all_deplibs_CXX=yes
14989         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14990         runpath_var='LD_RUN_PATH'
14991
14992         case $cc_basename in
14993           CC*)
14994             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14995             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14996             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14997               '"$old_archive_cmds_CXX"
14998             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14999               '"$reload_cmds_CXX"
15000             ;;
15001           *)
15002             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15003             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15004             ;;
15005         esac
15006       ;;
15007
15008       tandem*)
15009         case $cc_basename in
15010           NCC*)
15011             # NonStop-UX NCC 3.20
15012             # FIXME: insert proper C++ library support
15013             ld_shlibs_CXX=no
15014             ;;
15015           *)
15016             # FIXME: insert proper C++ library support
15017             ld_shlibs_CXX=no
15018             ;;
15019         esac
15020         ;;
15021
15022       vxworks*)
15023         # FIXME: insert proper C++ library support
15024         ld_shlibs_CXX=no
15025         ;;
15026
15027       *)
15028         # FIXME: insert proper C++ library support
15029         ld_shlibs_CXX=no
15030         ;;
15031     esac
15032
15033     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15034 $as_echo "$ld_shlibs_CXX" >&6; }
15035     test "$ld_shlibs_CXX" = no && can_build_shared=no
15036
15037     GCC_CXX="$GXX"
15038     LD_CXX="$LD"
15039
15040     ## CAVEAT EMPTOR:
15041     ## There is no encapsulation within the following macros, do not change
15042     ## the running order or otherwise move them around unless you know exactly
15043     ## what you are doing...
15044     # Dependencies to place before and after the object being linked:
15045 predep_objects_CXX=
15046 postdep_objects_CXX=
15047 predeps_CXX=
15048 postdeps_CXX=
15049 compiler_lib_search_path_CXX=
15050
15051 cat > conftest.$ac_ext <<_LT_EOF
15052 class Foo
15053 {
15054 public:
15055   Foo (void) { a = 0; }
15056 private:
15057   int a;
15058 };
15059 _LT_EOF
15060
15061 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15062   (eval $ac_compile) 2>&5
15063   ac_status=$?
15064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15065   test $ac_status = 0; }; then
15066   # Parse the compiler output and extract the necessary
15067   # objects, libraries and library flags.
15068
15069   # Sentinel used to keep track of whether or not we are before
15070   # the conftest object file.
15071   pre_test_object_deps_done=no
15072
15073   for p in `eval "$output_verbose_link_cmd"`; do
15074     case $p in
15075
15076     -L* | -R* | -l*)
15077        # Some compilers place space between "-{L,R}" and the path.
15078        # Remove the space.
15079        if test $p = "-L" ||
15080           test $p = "-R"; then
15081          prev=$p
15082          continue
15083        else
15084          prev=
15085        fi
15086
15087        if test "$pre_test_object_deps_done" = no; then
15088          case $p in
15089          -L* | -R*)
15090            # Internal compiler library paths should come after those
15091            # provided the user.  The postdeps already come after the
15092            # user supplied libs so there is no need to process them.
15093            if test -z "$compiler_lib_search_path_CXX"; then
15094              compiler_lib_search_path_CXX="${prev}${p}"
15095            else
15096              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
15097            fi
15098            ;;
15099          # The "-l" case would never come before the object being
15100          # linked, so don't bother handling this case.
15101          esac
15102        else
15103          if test -z "$postdeps_CXX"; then
15104            postdeps_CXX="${prev}${p}"
15105          else
15106            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
15107          fi
15108        fi
15109        ;;
15110
15111     *.$objext)
15112        # This assumes that the test object file only shows up
15113        # once in the compiler output.
15114        if test "$p" = "conftest.$objext"; then
15115          pre_test_object_deps_done=yes
15116          continue
15117        fi
15118
15119        if test "$pre_test_object_deps_done" = no; then
15120          if test -z "$predep_objects_CXX"; then
15121            predep_objects_CXX="$p"
15122          else
15123            predep_objects_CXX="$predep_objects_CXX $p"
15124          fi
15125        else
15126          if test -z "$postdep_objects_CXX"; then
15127            postdep_objects_CXX="$p"
15128          else
15129            postdep_objects_CXX="$postdep_objects_CXX $p"
15130          fi
15131        fi
15132        ;;
15133
15134     *) ;; # Ignore the rest.
15135
15136     esac
15137   done
15138
15139   # Clean up.
15140   rm -f a.out a.exe
15141 else
15142   echo "libtool.m4: error: problem compiling CXX test program"
15143 fi
15144
15145 $RM -f confest.$objext
15146
15147 # PORTME: override above test on systems where it is broken
15148 case $host_os in
15149 interix[3-9]*)
15150   # Interix 3.5 installs completely hosed .la files for C++, so rather than
15151   # hack all around it, let's just trust "g++" to DTRT.
15152   predep_objects_CXX=
15153   postdep_objects_CXX=
15154   postdeps_CXX=
15155   ;;
15156
15157 linux*)
15158   case `$CC -V 2>&1 | sed 5q` in
15159   *Sun\ C*)
15160     # Sun C++ 5.9
15161
15162     # The more standards-conforming stlport4 library is
15163     # incompatible with the Cstd library. Avoid specifying
15164     # it if it's in CXXFLAGS. Ignore libCrun as
15165     # -library=stlport4 depends on it.
15166     case " $CXX $CXXFLAGS " in
15167     *" -library=stlport4 "*)
15168       solaris_use_stlport4=yes
15169       ;;
15170     esac
15171
15172     if test "$solaris_use_stlport4" != yes; then
15173       postdeps_CXX='-library=Cstd -library=Crun'
15174     fi
15175     ;;
15176   esac
15177   ;;
15178
15179 solaris*)
15180   case $cc_basename in
15181   CC*)
15182     # The more standards-conforming stlport4 library is
15183     # incompatible with the Cstd library. Avoid specifying
15184     # it if it's in CXXFLAGS. Ignore libCrun as
15185     # -library=stlport4 depends on it.
15186     case " $CXX $CXXFLAGS " in
15187     *" -library=stlport4 "*)
15188       solaris_use_stlport4=yes
15189       ;;
15190     esac
15191
15192     # Adding this requires a known-good setup of shared libraries for
15193     # Sun compiler versions before 5.6, else PIC objects from an old
15194     # archive will be linked into the output, leading to subtle bugs.
15195     if test "$solaris_use_stlport4" != yes; then
15196       postdeps_CXX='-library=Cstd -library=Crun'
15197     fi
15198     ;;
15199   esac
15200   ;;
15201 esac
15202
15203
15204 case " $postdeps_CXX " in
15205 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15206 esac
15207  compiler_lib_search_dirs_CXX=
15208 if test -n "${compiler_lib_search_path_CXX}"; then
15209  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15210 fi
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242     lt_prog_compiler_wl_CXX=
15243 lt_prog_compiler_pic_CXX=
15244 lt_prog_compiler_static_CXX=
15245
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15247 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15248
15249   # C++ specific cases for pic, static, wl, etc.
15250   if test "$GXX" = yes; then
15251     lt_prog_compiler_wl_CXX='-Wl,'
15252     lt_prog_compiler_static_CXX='-static'
15253
15254     case $host_os in
15255     aix*)
15256       # All AIX code is PIC.
15257       if test "$host_cpu" = ia64; then
15258         # AIX 5 now supports IA64 processor
15259         lt_prog_compiler_static_CXX='-Bstatic'
15260       fi
15261       ;;
15262
15263     amigaos*)
15264       case $host_cpu in
15265       powerpc)
15266             # see comment about AmigaOS4 .so support
15267             lt_prog_compiler_pic_CXX='-fPIC'
15268         ;;
15269       m68k)
15270             # FIXME: we need at least 68020 code to build shared libraries, but
15271             # adding the `-m68020' flag to GCC prevents building anything better,
15272             # like `-m68040'.
15273             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15274         ;;
15275       esac
15276       ;;
15277
15278     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15279       # PIC is the default for these OSes.
15280       ;;
15281     mingw* | cygwin* | os2* | pw32* | cegcc*)
15282       # This hack is so that the source file can tell whether it is being
15283       # built for inclusion in a dll (and should export symbols for example).
15284       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15285       # (--disable-auto-import) libraries
15286       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15287       ;;
15288     darwin* | rhapsody*)
15289       # PIC is the default on this platform
15290       # Common symbols not allowed in MH_DYLIB files
15291       lt_prog_compiler_pic_CXX='-fno-common'
15292       ;;
15293     *djgpp*)
15294       # DJGPP does not support shared libraries at all
15295       lt_prog_compiler_pic_CXX=
15296       ;;
15297     haiku*)
15298       # PIC is the default for Haiku.
15299       # The "-static" flag exists, but is broken.
15300       lt_prog_compiler_static_CXX=
15301       ;;
15302     interix[3-9]*)
15303       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15304       # Instead, we relocate shared libraries at runtime.
15305       ;;
15306     sysv4*MP*)
15307       if test -d /usr/nec; then
15308         lt_prog_compiler_pic_CXX=-Kconform_pic
15309       fi
15310       ;;
15311     hpux*)
15312       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15313       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15314       # sets the default TLS model and affects inlining.
15315       case $host_cpu in
15316       hppa*64*)
15317         ;;
15318       *)
15319         lt_prog_compiler_pic_CXX='-fPIC'
15320         ;;
15321       esac
15322       ;;
15323     *qnx* | *nto*)
15324       # QNX uses GNU C++, but need to define -shared option too, otherwise
15325       # it will coredump.
15326       lt_prog_compiler_pic_CXX='-fPIC -shared'
15327       ;;
15328     *)
15329       lt_prog_compiler_pic_CXX='-fPIC'
15330       ;;
15331     esac
15332   else
15333     case $host_os in
15334       aix[4-9]*)
15335         # All AIX code is PIC.
15336         if test "$host_cpu" = ia64; then
15337           # AIX 5 now supports IA64 processor
15338           lt_prog_compiler_static_CXX='-Bstatic'
15339         else
15340           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15341         fi
15342         ;;
15343       chorus*)
15344         case $cc_basename in
15345         cxch68*)
15346           # Green Hills C++ Compiler
15347           # _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"
15348           ;;
15349         esac
15350         ;;
15351       dgux*)
15352         case $cc_basename in
15353           ec++*)
15354             lt_prog_compiler_pic_CXX='-KPIC'
15355             ;;
15356           ghcx*)
15357             # Green Hills C++ Compiler
15358             lt_prog_compiler_pic_CXX='-pic'
15359             ;;
15360           *)
15361             ;;
15362         esac
15363         ;;
15364       freebsd* | dragonfly*)
15365         # FreeBSD uses GNU C++
15366         ;;
15367       hpux9* | hpux10* | hpux11*)
15368         case $cc_basename in
15369           CC*)
15370             lt_prog_compiler_wl_CXX='-Wl,'
15371             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15372             if test "$host_cpu" != ia64; then
15373               lt_prog_compiler_pic_CXX='+Z'
15374             fi
15375             ;;
15376           aCC*)
15377             lt_prog_compiler_wl_CXX='-Wl,'
15378             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15379             case $host_cpu in
15380             hppa*64*|ia64*)
15381               # +Z the default
15382               ;;
15383             *)
15384               lt_prog_compiler_pic_CXX='+Z'
15385               ;;
15386             esac
15387             ;;
15388           *)
15389             ;;
15390         esac
15391         ;;
15392       interix*)
15393         # This is c89, which is MS Visual C++ (no shared libs)
15394         # Anyone wants to do a port?
15395         ;;
15396       irix5* | irix6* | nonstopux*)
15397         case $cc_basename in
15398           CC*)
15399             lt_prog_compiler_wl_CXX='-Wl,'
15400             lt_prog_compiler_static_CXX='-non_shared'
15401             # CC pic flag -KPIC is the default.
15402             ;;
15403           *)
15404             ;;
15405         esac
15406         ;;
15407       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15408         case $cc_basename in
15409           KCC*)
15410             # KAI C++ Compiler
15411             lt_prog_compiler_wl_CXX='--backend -Wl,'
15412             lt_prog_compiler_pic_CXX='-fPIC'
15413             ;;
15414           ecpc* )
15415             # old Intel C++ for x86_64 which still supported -KPIC.
15416             lt_prog_compiler_wl_CXX='-Wl,'
15417             lt_prog_compiler_pic_CXX='-KPIC'
15418             lt_prog_compiler_static_CXX='-static'
15419             ;;
15420           icpc* )
15421             # Intel C++, used to be incompatible with GCC.
15422             # ICC 10 doesn't accept -KPIC any more.
15423             lt_prog_compiler_wl_CXX='-Wl,'
15424             lt_prog_compiler_pic_CXX='-fPIC'
15425             lt_prog_compiler_static_CXX='-static'
15426             ;;
15427           pgCC* | pgcpp*)
15428             # Portland Group C++ compiler
15429             lt_prog_compiler_wl_CXX='-Wl,'
15430             lt_prog_compiler_pic_CXX='-fpic'
15431             lt_prog_compiler_static_CXX='-Bstatic'
15432             ;;
15433           cxx*)
15434             # Compaq C++
15435             # Make sure the PIC flag is empty.  It appears that all Alpha
15436             # Linux and Compaq Tru64 Unix objects are PIC.
15437             lt_prog_compiler_pic_CXX=
15438             lt_prog_compiler_static_CXX='-non_shared'
15439             ;;
15440           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15441             # IBM XL 8.0, 9.0 on PPC and BlueGene
15442             lt_prog_compiler_wl_CXX='-Wl,'
15443             lt_prog_compiler_pic_CXX='-qpic'
15444             lt_prog_compiler_static_CXX='-qstaticlink'
15445             ;;
15446           *)
15447             case `$CC -V 2>&1 | sed 5q` in
15448             *Sun\ C*)
15449               # Sun C++ 5.9
15450               lt_prog_compiler_pic_CXX='-KPIC'
15451               lt_prog_compiler_static_CXX='-Bstatic'
15452               lt_prog_compiler_wl_CXX='-Qoption ld '
15453               ;;
15454             esac
15455             ;;
15456         esac
15457         ;;
15458       lynxos*)
15459         ;;
15460       m88k*)
15461         ;;
15462       mvs*)
15463         case $cc_basename in
15464           cxx*)
15465             lt_prog_compiler_pic_CXX='-W c,exportall'
15466             ;;
15467           *)
15468             ;;
15469         esac
15470         ;;
15471       netbsd*)
15472         ;;
15473       *qnx* | *nto*)
15474         # QNX uses GNU C++, but need to define -shared option too, otherwise
15475         # it will coredump.
15476         lt_prog_compiler_pic_CXX='-fPIC -shared'
15477         ;;
15478       osf3* | osf4* | osf5*)
15479         case $cc_basename in
15480           KCC*)
15481             lt_prog_compiler_wl_CXX='--backend -Wl,'
15482             ;;
15483           RCC*)
15484             # Rational C++ 2.4.1
15485             lt_prog_compiler_pic_CXX='-pic'
15486             ;;
15487           cxx*)
15488             # Digital/Compaq C++
15489             lt_prog_compiler_wl_CXX='-Wl,'
15490             # Make sure the PIC flag is empty.  It appears that all Alpha
15491             # Linux and Compaq Tru64 Unix objects are PIC.
15492             lt_prog_compiler_pic_CXX=
15493             lt_prog_compiler_static_CXX='-non_shared'
15494             ;;
15495           *)
15496             ;;
15497         esac
15498         ;;
15499       psos*)
15500         ;;
15501       solaris*)
15502         case $cc_basename in
15503           CC*)
15504             # Sun C++ 4.2, 5.x and Centerline C++
15505             lt_prog_compiler_pic_CXX='-KPIC'
15506             lt_prog_compiler_static_CXX='-Bstatic'
15507             lt_prog_compiler_wl_CXX='-Qoption ld '
15508             ;;
15509           gcx*)
15510             # Green Hills C++ Compiler
15511             lt_prog_compiler_pic_CXX='-PIC'
15512             ;;
15513           *)
15514             ;;
15515         esac
15516         ;;
15517       sunos4*)
15518         case $cc_basename in
15519           CC*)
15520             # Sun C++ 4.x
15521             lt_prog_compiler_pic_CXX='-pic'
15522             lt_prog_compiler_static_CXX='-Bstatic'
15523             ;;
15524           lcc*)
15525             # Lucid
15526             lt_prog_compiler_pic_CXX='-pic'
15527             ;;
15528           *)
15529             ;;
15530         esac
15531         ;;
15532       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15533         case $cc_basename in
15534           CC*)
15535             lt_prog_compiler_wl_CXX='-Wl,'
15536             lt_prog_compiler_pic_CXX='-KPIC'
15537             lt_prog_compiler_static_CXX='-Bstatic'
15538             ;;
15539         esac
15540         ;;
15541       tandem*)
15542         case $cc_basename in
15543           NCC*)
15544             # NonStop-UX NCC 3.20
15545             lt_prog_compiler_pic_CXX='-KPIC'
15546             ;;
15547           *)
15548             ;;
15549         esac
15550         ;;
15551       vxworks*)
15552         ;;
15553       *)
15554         lt_prog_compiler_can_build_shared_CXX=no
15555         ;;
15556     esac
15557   fi
15558
15559 case $host_os in
15560   # For platforms which do not support PIC, -DPIC is meaningless:
15561   *djgpp*)
15562     lt_prog_compiler_pic_CXX=
15563     ;;
15564   *)
15565     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15566     ;;
15567 esac
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15569 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15570
15571
15572
15573 #
15574 # Check to make sure the PIC flag actually works.
15575 #
15576 if test -n "$lt_prog_compiler_pic_CXX"; then
15577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15578 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15579 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15580   $as_echo_n "(cached) " >&6
15581 else
15582   lt_cv_prog_compiler_pic_works_CXX=no
15583    ac_outfile=conftest.$ac_objext
15584    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15585    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15586    # Insert the option either (1) after the last *FLAGS variable, or
15587    # (2) before a word containing "conftest.", or (3) at the end.
15588    # Note that $ac_compile itself does not contain backslashes and begins
15589    # with a dollar sign (not a hyphen), so the echo should work correctly.
15590    # The option is referenced via a variable to avoid confusing sed.
15591    lt_compile=`echo "$ac_compile" | $SED \
15592    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15593    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15594    -e 's:$: $lt_compiler_flag:'`
15595    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15596    (eval "$lt_compile" 2>conftest.err)
15597    ac_status=$?
15598    cat conftest.err >&5
15599    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600    if (exit $ac_status) && test -s "$ac_outfile"; then
15601      # The compiler can only warn and ignore the option if not recognized
15602      # So say no if there are warnings other than the usual output.
15603      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15604      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15605      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15606        lt_cv_prog_compiler_pic_works_CXX=yes
15607      fi
15608    fi
15609    $RM conftest*
15610
15611 fi
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15613 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15614
15615 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15616     case $lt_prog_compiler_pic_CXX in
15617      "" | " "*) ;;
15618      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15619      esac
15620 else
15621     lt_prog_compiler_pic_CXX=
15622      lt_prog_compiler_can_build_shared_CXX=no
15623 fi
15624
15625 fi
15626
15627
15628
15629 #
15630 # Check to make sure the static flag actually works.
15631 #
15632 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15634 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15635 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15636   $as_echo_n "(cached) " >&6
15637 else
15638   lt_cv_prog_compiler_static_works_CXX=no
15639    save_LDFLAGS="$LDFLAGS"
15640    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15641    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15642    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15643      # The linker can only warn and ignore the option if not recognized
15644      # So say no if there are warnings
15645      if test -s conftest.err; then
15646        # Append any errors to the config.log.
15647        cat conftest.err 1>&5
15648        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15649        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15650        if diff conftest.exp conftest.er2 >/dev/null; then
15651          lt_cv_prog_compiler_static_works_CXX=yes
15652        fi
15653      else
15654        lt_cv_prog_compiler_static_works_CXX=yes
15655      fi
15656    fi
15657    $RM -r conftest*
15658    LDFLAGS="$save_LDFLAGS"
15659
15660 fi
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15662 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15663
15664 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15665     :
15666 else
15667     lt_prog_compiler_static_CXX=
15668 fi
15669
15670
15671
15672
15673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15674 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15675 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15676   $as_echo_n "(cached) " >&6
15677 else
15678   lt_cv_prog_compiler_c_o_CXX=no
15679    $RM -r conftest 2>/dev/null
15680    mkdir conftest
15681    cd conftest
15682    mkdir out
15683    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15684
15685    lt_compiler_flag="-o out/conftest2.$ac_objext"
15686    # Insert the option either (1) after the last *FLAGS variable, or
15687    # (2) before a word containing "conftest.", or (3) at the end.
15688    # Note that $ac_compile itself does not contain backslashes and begins
15689    # with a dollar sign (not a hyphen), so the echo should work correctly.
15690    lt_compile=`echo "$ac_compile" | $SED \
15691    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15692    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15693    -e 's:$: $lt_compiler_flag:'`
15694    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15695    (eval "$lt_compile" 2>out/conftest.err)
15696    ac_status=$?
15697    cat out/conftest.err >&5
15698    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15700    then
15701      # The compiler can only warn and ignore the option if not recognized
15702      # So say no if there are warnings
15703      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15704      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15705      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15706        lt_cv_prog_compiler_c_o_CXX=yes
15707      fi
15708    fi
15709    chmod u+w . 2>&5
15710    $RM conftest*
15711    # SGI C++ compiler will create directory out/ii_files/ for
15712    # template instantiation
15713    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15714    $RM out/* && rmdir out
15715    cd ..
15716    $RM -r conftest
15717    $RM conftest*
15718
15719 fi
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15721 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15722
15723
15724
15725     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15726 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15727 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15728   $as_echo_n "(cached) " >&6
15729 else
15730   lt_cv_prog_compiler_c_o_CXX=no
15731    $RM -r conftest 2>/dev/null
15732    mkdir conftest
15733    cd conftest
15734    mkdir out
15735    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15736
15737    lt_compiler_flag="-o out/conftest2.$ac_objext"
15738    # Insert the option either (1) after the last *FLAGS variable, or
15739    # (2) before a word containing "conftest.", or (3) at the end.
15740    # Note that $ac_compile itself does not contain backslashes and begins
15741    # with a dollar sign (not a hyphen), so the echo should work correctly.
15742    lt_compile=`echo "$ac_compile" | $SED \
15743    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15744    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15745    -e 's:$: $lt_compiler_flag:'`
15746    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15747    (eval "$lt_compile" 2>out/conftest.err)
15748    ac_status=$?
15749    cat out/conftest.err >&5
15750    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15751    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15752    then
15753      # The compiler can only warn and ignore the option if not recognized
15754      # So say no if there are warnings
15755      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15756      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15757      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15758        lt_cv_prog_compiler_c_o_CXX=yes
15759      fi
15760    fi
15761    chmod u+w . 2>&5
15762    $RM conftest*
15763    # SGI C++ compiler will create directory out/ii_files/ for
15764    # template instantiation
15765    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15766    $RM out/* && rmdir out
15767    cd ..
15768    $RM -r conftest
15769    $RM conftest*
15770
15771 fi
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15773 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15774
15775
15776
15777
15778 hard_links="nottested"
15779 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15780   # do not overwrite the value of need_locks provided by the user
15781   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15782 $as_echo_n "checking if we can lock with hard links... " >&6; }
15783   hard_links=yes
15784   $RM conftest*
15785   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15786   touch conftest.a
15787   ln conftest.a conftest.b 2>&5 || hard_links=no
15788   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15790 $as_echo "$hard_links" >&6; }
15791   if test "$hard_links" = no; then
15792     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15793 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15794     need_locks=warn
15795   fi
15796 else
15797   need_locks=no
15798 fi
15799
15800
15801
15802     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15803 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15804
15805   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15806   case $host_os in
15807   aix[4-9]*)
15808     # If we're using GNU nm, then we don't want the "-C" option.
15809     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15810     # Also, AIX nm treats weak defined symbols like other global defined
15811     # symbols, whereas GNU nm marks them as "W".
15812     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15813       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'
15814     else
15815       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'
15816     fi
15817     ;;
15818   pw32*)
15819     export_symbols_cmds_CXX="$ltdll_cmds"
15820   ;;
15821   cygwin* | mingw* | cegcc*)
15822     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'
15823   ;;
15824   *)
15825     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15826   ;;
15827   esac
15828   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15829
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15831 $as_echo "$ld_shlibs_CXX" >&6; }
15832 test "$ld_shlibs_CXX" = no && can_build_shared=no
15833
15834 with_gnu_ld_CXX=$with_gnu_ld
15835
15836
15837
15838
15839
15840
15841 #
15842 # Do we need to explicitly link libc?
15843 #
15844 case "x$archive_cmds_need_lc_CXX" in
15845 x|xyes)
15846   # Assume -lc should be added
15847   archive_cmds_need_lc_CXX=yes
15848
15849   if test "$enable_shared" = yes && test "$GCC" = yes; then
15850     case $archive_cmds_CXX in
15851     *'~'*)
15852       # FIXME: we may have to deal with multi-command sequences.
15853       ;;
15854     '$CC '*)
15855       # Test whether the compiler implicitly links with -lc since on some
15856       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15857       # to ld, don't add -lc before -lgcc.
15858       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15859 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15860 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15861   $as_echo_n "(cached) " >&6
15862 else
15863   $RM conftest*
15864         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15865
15866         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15867   (eval $ac_compile) 2>&5
15868   ac_status=$?
15869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15870   test $ac_status = 0; } 2>conftest.err; then
15871           soname=conftest
15872           lib=conftest
15873           libobjs=conftest.$ac_objext
15874           deplibs=
15875           wl=$lt_prog_compiler_wl_CXX
15876           pic_flag=$lt_prog_compiler_pic_CXX
15877           compiler_flags=-v
15878           linker_flags=-v
15879           verstring=
15880           output_objdir=.
15881           libname=conftest
15882           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15883           allow_undefined_flag_CXX=
15884           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15885   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15886   ac_status=$?
15887   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15888   test $ac_status = 0; }
15889           then
15890             lt_cv_archive_cmds_need_lc_CXX=no
15891           else
15892             lt_cv_archive_cmds_need_lc_CXX=yes
15893           fi
15894           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15895         else
15896           cat conftest.err 1>&5
15897         fi
15898         $RM conftest*
15899
15900 fi
15901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15902 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15903       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15904       ;;
15905     esac
15906   fi
15907   ;;
15908 esac
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15974 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15975
15976 library_names_spec=
15977 libname_spec='lib$name'
15978 soname_spec=
15979 shrext_cmds=".so"
15980 postinstall_cmds=
15981 postuninstall_cmds=
15982 finish_cmds=
15983 finish_eval=
15984 shlibpath_var=
15985 shlibpath_overrides_runpath=unknown
15986 version_type=none
15987 dynamic_linker="$host_os ld.so"
15988 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15989 need_lib_prefix=unknown
15990 hardcode_into_libs=no
15991
15992 # when you set need_version to no, make sure it does not cause -set_version
15993 # flags to be left without arguments
15994 need_version=unknown
15995
15996 case $host_os in
15997 aix3*)
15998   version_type=linux
15999   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16000   shlibpath_var=LIBPATH
16001
16002   # AIX 3 has no versioning support, so we append a major version to the name.
16003   soname_spec='${libname}${release}${shared_ext}$major'
16004   ;;
16005
16006 aix[4-9]*)
16007   version_type=linux
16008   need_lib_prefix=no
16009   need_version=no
16010   hardcode_into_libs=yes
16011   if test "$host_cpu" = ia64; then
16012     # AIX 5 supports IA64
16013     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16014     shlibpath_var=LD_LIBRARY_PATH
16015   else
16016     # With GCC up to 2.95.x, collect2 would create an import file
16017     # for dependence libraries.  The import file would start with
16018     # the line `#! .'.  This would cause the generated library to
16019     # depend on `.', always an invalid library.  This was fixed in
16020     # development snapshots of GCC prior to 3.0.
16021     case $host_os in
16022       aix4 | aix4.[01] | aix4.[01].*)
16023       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16024            echo ' yes '
16025            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16026         :
16027       else
16028         can_build_shared=no
16029       fi
16030       ;;
16031     esac
16032     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16033     # soname into executable. Probably we can add versioning support to
16034     # collect2, so additional links can be useful in future.
16035     if test "$aix_use_runtimelinking" = yes; then
16036       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16037       # instead of lib<name>.a to let people know that these are not
16038       # typical AIX shared libraries.
16039       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16040     else
16041       # We preserve .a as extension for shared libraries through AIX4.2
16042       # and later when we are not doing run time linking.
16043       library_names_spec='${libname}${release}.a $libname.a'
16044       soname_spec='${libname}${release}${shared_ext}$major'
16045     fi
16046     shlibpath_var=LIBPATH
16047   fi
16048   ;;
16049
16050 amigaos*)
16051   case $host_cpu in
16052   powerpc)
16053     # Since July 2007 AmigaOS4 officially supports .so libraries.
16054     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16055     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16056     ;;
16057   m68k)
16058     library_names_spec='$libname.ixlibrary $libname.a'
16059     # Create ${libname}_ixlibrary.a entries in /sys/libs.
16060     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'
16061     ;;
16062   esac
16063   ;;
16064
16065 beos*)
16066   library_names_spec='${libname}${shared_ext}'
16067   dynamic_linker="$host_os ld.so"
16068   shlibpath_var=LIBRARY_PATH
16069   ;;
16070
16071 bsdi[45]*)
16072   version_type=linux
16073   need_version=no
16074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16075   soname_spec='${libname}${release}${shared_ext}$major'
16076   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16077   shlibpath_var=LD_LIBRARY_PATH
16078   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16079   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16080   # the default ld.so.conf also contains /usr/contrib/lib and
16081   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16082   # libtool to hard-code these into programs
16083   ;;
16084
16085 cygwin* | mingw* | pw32* | cegcc*)
16086   version_type=windows
16087   shrext_cmds=".dll"
16088   need_version=no
16089   need_lib_prefix=no
16090
16091   case $GCC,$host_os in
16092   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
16093     library_names_spec='$libname.dll.a'
16094     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16095     postinstall_cmds='base_file=`basename \${file}`~
16096       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16097       dldir=$destdir/`dirname \$dlpath`~
16098       test -d \$dldir || mkdir -p \$dldir~
16099       $install_prog $dir/$dlname \$dldir/$dlname~
16100       chmod a+x \$dldir/$dlname~
16101       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16102         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16103       fi'
16104     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16105       dlpath=$dir/\$dldll~
16106        $RM \$dlpath'
16107     shlibpath_overrides_runpath=yes
16108
16109     case $host_os in
16110     cygwin*)
16111       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16112       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16113
16114       ;;
16115     mingw* | cegcc*)
16116       # MinGW DLLs use traditional 'lib' prefix
16117       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16118       ;;
16119     pw32*)
16120       # pw32 DLLs use 'pw' prefix rather than 'lib'
16121       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16122       ;;
16123     esac
16124     ;;
16125
16126   *)
16127     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16128     ;;
16129   esac
16130   dynamic_linker='Win32 ld.exe'
16131   # FIXME: first we should search . and the directory the executable is in
16132   shlibpath_var=PATH
16133   ;;
16134
16135 darwin* | rhapsody*)
16136   dynamic_linker="$host_os dyld"
16137   version_type=darwin
16138   need_lib_prefix=no
16139   need_version=no
16140   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16141   soname_spec='${libname}${release}${major}$shared_ext'
16142   shlibpath_overrides_runpath=yes
16143   shlibpath_var=DYLD_LIBRARY_PATH
16144   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16145
16146   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16147   ;;
16148
16149 dgux*)
16150   version_type=linux
16151   need_lib_prefix=no
16152   need_version=no
16153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16154   soname_spec='${libname}${release}${shared_ext}$major'
16155   shlibpath_var=LD_LIBRARY_PATH
16156   ;;
16157
16158 freebsd1*)
16159   dynamic_linker=no
16160   ;;
16161
16162 freebsd* | dragonfly*)
16163   # DragonFly does not have aout.  When/if they implement a new
16164   # versioning mechanism, adjust this.
16165   if test -x /usr/bin/objformat; then
16166     objformat=`/usr/bin/objformat`
16167   else
16168     case $host_os in
16169     freebsd[123]*) objformat=aout ;;
16170     *) objformat=elf ;;
16171     esac
16172   fi
16173   version_type=freebsd-$objformat
16174   case $version_type in
16175     freebsd-elf*)
16176       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16177       need_version=no
16178       need_lib_prefix=no
16179       ;;
16180     freebsd-*)
16181       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16182       need_version=yes
16183       ;;
16184   esac
16185   shlibpath_var=LD_LIBRARY_PATH
16186   case $host_os in
16187   freebsd2*)
16188     shlibpath_overrides_runpath=yes
16189     ;;
16190   freebsd3.[01]* | freebsdelf3.[01]*)
16191     shlibpath_overrides_runpath=yes
16192     hardcode_into_libs=yes
16193     ;;
16194   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16195   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16196     shlibpath_overrides_runpath=no
16197     hardcode_into_libs=yes
16198     ;;
16199   *) # from 4.6 on, and DragonFly
16200     shlibpath_overrides_runpath=yes
16201     hardcode_into_libs=yes
16202     ;;
16203   esac
16204   ;;
16205
16206 gnu*)
16207   version_type=linux
16208   need_lib_prefix=no
16209   need_version=no
16210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16211   soname_spec='${libname}${release}${shared_ext}$major'
16212   shlibpath_var=LD_LIBRARY_PATH
16213   hardcode_into_libs=yes
16214   ;;
16215
16216 haiku*)
16217   version_type=linux
16218   need_lib_prefix=no
16219   need_version=no
16220   dynamic_linker="$host_os runtime_loader"
16221   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16222   soname_spec='${libname}${release}${shared_ext}$major'
16223   shlibpath_var=LIBRARY_PATH
16224   shlibpath_overrides_runpath=yes
16225   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16226   hardcode_into_libs=yes
16227   ;;
16228
16229 hpux9* | hpux10* | hpux11*)
16230   # Give a soname corresponding to the major version so that dld.sl refuses to
16231   # link against other versions.
16232   version_type=sunos
16233   need_lib_prefix=no
16234   need_version=no
16235   case $host_cpu in
16236   ia64*)
16237     shrext_cmds='.so'
16238     hardcode_into_libs=yes
16239     dynamic_linker="$host_os dld.so"
16240     shlibpath_var=LD_LIBRARY_PATH
16241     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16242     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16243     soname_spec='${libname}${release}${shared_ext}$major'
16244     if test "X$HPUX_IA64_MODE" = X32; then
16245       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16246     else
16247       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16248     fi
16249     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16250     ;;
16251   hppa*64*)
16252     shrext_cmds='.sl'
16253     hardcode_into_libs=yes
16254     dynamic_linker="$host_os dld.sl"
16255     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16256     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16257     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16258     soname_spec='${libname}${release}${shared_ext}$major'
16259     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16260     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16261     ;;
16262   *)
16263     shrext_cmds='.sl'
16264     dynamic_linker="$host_os dld.sl"
16265     shlibpath_var=SHLIB_PATH
16266     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16267     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16268     soname_spec='${libname}${release}${shared_ext}$major'
16269     ;;
16270   esac
16271   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16272   postinstall_cmds='chmod 555 $lib'
16273   # or fails outright, so override atomically:
16274   install_override_mode=555
16275   ;;
16276
16277 interix[3-9]*)
16278   version_type=linux
16279   need_lib_prefix=no
16280   need_version=no
16281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16282   soname_spec='${libname}${release}${shared_ext}$major'
16283   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16284   shlibpath_var=LD_LIBRARY_PATH
16285   shlibpath_overrides_runpath=no
16286   hardcode_into_libs=yes
16287   ;;
16288
16289 irix5* | irix6* | nonstopux*)
16290   case $host_os in
16291     nonstopux*) version_type=nonstopux ;;
16292     *)
16293         if test "$lt_cv_prog_gnu_ld" = yes; then
16294                 version_type=linux
16295         else
16296                 version_type=irix
16297         fi ;;
16298   esac
16299   need_lib_prefix=no
16300   need_version=no
16301   soname_spec='${libname}${release}${shared_ext}$major'
16302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16303   case $host_os in
16304   irix5* | nonstopux*)
16305     libsuff= shlibsuff=
16306     ;;
16307   *)
16308     case $LD in # libtool.m4 will add one of these switches to LD
16309     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16310       libsuff= shlibsuff= libmagic=32-bit;;
16311     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16312       libsuff=32 shlibsuff=N32 libmagic=N32;;
16313     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16314       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16315     *) libsuff= shlibsuff= libmagic=never-match;;
16316     esac
16317     ;;
16318   esac
16319   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16320   shlibpath_overrides_runpath=no
16321   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16322   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16323   hardcode_into_libs=yes
16324   ;;
16325
16326 # No shared lib support for Linux oldld, aout, or coff.
16327 linux*oldld* | linux*aout* | linux*coff*)
16328   dynamic_linker=no
16329   ;;
16330
16331 # This must be Linux ELF.
16332 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16333   version_type=linux
16334   need_lib_prefix=no
16335   need_version=no
16336   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16337   soname_spec='${libname}${release}${shared_ext}$major'
16338   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16339   shlibpath_var=LD_LIBRARY_PATH
16340   shlibpath_overrides_runpath=no
16341
16342   # Some binutils ld are patched to set DT_RUNPATH
16343   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16344   $as_echo_n "(cached) " >&6
16345 else
16346   lt_cv_shlibpath_overrides_runpath=no
16347     save_LDFLAGS=$LDFLAGS
16348     save_libdir=$libdir
16349     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16350          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16351     if test x$gcc_no_link = xyes; then
16352   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16353 fi
16354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16355 /* end confdefs.h.  */
16356
16357 int
16358 main ()
16359 {
16360
16361   ;
16362   return 0;
16363 }
16364 _ACEOF
16365 if ac_fn_cxx_try_link "$LINENO"; then :
16366   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16367   lt_cv_shlibpath_overrides_runpath=yes
16368 fi
16369 fi
16370 rm -f core conftest.err conftest.$ac_objext \
16371     conftest$ac_exeext conftest.$ac_ext
16372     LDFLAGS=$save_LDFLAGS
16373     libdir=$save_libdir
16374
16375 fi
16376
16377   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16378
16379   # This implies no fast_install, which is unacceptable.
16380   # Some rework will be needed to allow for fast_install
16381   # before this can be enabled.
16382   hardcode_into_libs=yes
16383
16384   # Append ld.so.conf contents to the search path
16385   if test -f /etc/ld.so.conf; then
16386     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' ' '`
16387     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16388   fi
16389
16390   # We used to test for /lib/ld.so.1 and disable shared libraries on
16391   # powerpc, because MkLinux only supported shared libraries with the
16392   # GNU dynamic linker.  Since this was broken with cross compilers,
16393   # most powerpc-linux boxes support dynamic linking these days and
16394   # people can always --disable-shared, the test was removed, and we
16395   # assume the GNU/Linux dynamic linker is in use.
16396   dynamic_linker='GNU/Linux ld.so'
16397   ;;
16398
16399 netbsd*)
16400   version_type=sunos
16401   need_lib_prefix=no
16402   need_version=no
16403   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16404     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16405     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16406     dynamic_linker='NetBSD (a.out) ld.so'
16407   else
16408     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16409     soname_spec='${libname}${release}${shared_ext}$major'
16410     dynamic_linker='NetBSD ld.elf_so'
16411   fi
16412   shlibpath_var=LD_LIBRARY_PATH
16413   shlibpath_overrides_runpath=yes
16414   hardcode_into_libs=yes
16415   ;;
16416
16417 newsos6)
16418   version_type=linux
16419   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16420   shlibpath_var=LD_LIBRARY_PATH
16421   shlibpath_overrides_runpath=yes
16422   ;;
16423
16424 *nto* | *qnx*)
16425   version_type=qnx
16426   need_lib_prefix=no
16427   need_version=no
16428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16429   soname_spec='${libname}${release}${shared_ext}$major'
16430   shlibpath_var=LD_LIBRARY_PATH
16431   shlibpath_overrides_runpath=no
16432   hardcode_into_libs=yes
16433   dynamic_linker='ldqnx.so'
16434   ;;
16435
16436 openbsd*)
16437   version_type=sunos
16438   sys_lib_dlsearch_path_spec="/usr/lib"
16439   need_lib_prefix=no
16440   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16441   case $host_os in
16442     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16443     *)                          need_version=no  ;;
16444   esac
16445   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16446   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16447   shlibpath_var=LD_LIBRARY_PATH
16448   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16449     case $host_os in
16450       openbsd2.[89] | openbsd2.[89].*)
16451         shlibpath_overrides_runpath=no
16452         ;;
16453       *)
16454         shlibpath_overrides_runpath=yes
16455         ;;
16456       esac
16457   else
16458     shlibpath_overrides_runpath=yes
16459   fi
16460   ;;
16461
16462 os2*)
16463   libname_spec='$name'
16464   shrext_cmds=".dll"
16465   need_lib_prefix=no
16466   library_names_spec='$libname${shared_ext} $libname.a'
16467   dynamic_linker='OS/2 ld.exe'
16468   shlibpath_var=LIBPATH
16469   ;;
16470
16471 osf3* | osf4* | osf5*)
16472   version_type=osf
16473   need_lib_prefix=no
16474   need_version=no
16475   soname_spec='${libname}${release}${shared_ext}$major'
16476   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16477   shlibpath_var=LD_LIBRARY_PATH
16478   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16479   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16480   ;;
16481
16482 rdos*)
16483   dynamic_linker=no
16484   ;;
16485
16486 solaris*)
16487   version_type=linux
16488   need_lib_prefix=no
16489   need_version=no
16490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491   soname_spec='${libname}${release}${shared_ext}$major'
16492   shlibpath_var=LD_LIBRARY_PATH
16493   shlibpath_overrides_runpath=yes
16494   hardcode_into_libs=yes
16495   # ldd complains unless libraries are executable
16496   postinstall_cmds='chmod +x $lib'
16497   ;;
16498
16499 sunos4*)
16500   version_type=sunos
16501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16502   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16503   shlibpath_var=LD_LIBRARY_PATH
16504   shlibpath_overrides_runpath=yes
16505   if test "$with_gnu_ld" = yes; then
16506     need_lib_prefix=no
16507   fi
16508   need_version=yes
16509   ;;
16510
16511 sysv4 | sysv4.3*)
16512   version_type=linux
16513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16514   soname_spec='${libname}${release}${shared_ext}$major'
16515   shlibpath_var=LD_LIBRARY_PATH
16516   case $host_vendor in
16517     sni)
16518       shlibpath_overrides_runpath=no
16519       need_lib_prefix=no
16520       runpath_var=LD_RUN_PATH
16521       ;;
16522     siemens)
16523       need_lib_prefix=no
16524       ;;
16525     motorola)
16526       need_lib_prefix=no
16527       need_version=no
16528       shlibpath_overrides_runpath=no
16529       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16530       ;;
16531   esac
16532   ;;
16533
16534 sysv4*MP*)
16535   if test -d /usr/nec ;then
16536     version_type=linux
16537     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16538     soname_spec='$libname${shared_ext}.$major'
16539     shlibpath_var=LD_LIBRARY_PATH
16540   fi
16541   ;;
16542
16543 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16544   version_type=freebsd-elf
16545   need_lib_prefix=no
16546   need_version=no
16547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16548   soname_spec='${libname}${release}${shared_ext}$major'
16549   shlibpath_var=LD_LIBRARY_PATH
16550   shlibpath_overrides_runpath=yes
16551   hardcode_into_libs=yes
16552   if test "$with_gnu_ld" = yes; then
16553     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16554   else
16555     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16556     case $host_os in
16557       sco3.2v5*)
16558         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16559         ;;
16560     esac
16561   fi
16562   sys_lib_dlsearch_path_spec='/usr/lib'
16563   ;;
16564
16565 tpf*)
16566   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16567   version_type=linux
16568   need_lib_prefix=no
16569   need_version=no
16570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571   shlibpath_var=LD_LIBRARY_PATH
16572   shlibpath_overrides_runpath=no
16573   hardcode_into_libs=yes
16574   ;;
16575
16576 uts4*)
16577   version_type=linux
16578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16579   soname_spec='${libname}${release}${shared_ext}$major'
16580   shlibpath_var=LD_LIBRARY_PATH
16581   ;;
16582
16583 *)
16584   dynamic_linker=no
16585   ;;
16586 esac
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16588 $as_echo "$dynamic_linker" >&6; }
16589 test "$dynamic_linker" = no && can_build_shared=no
16590
16591 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16592 if test "$GCC" = yes; then
16593   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16594 fi
16595
16596 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16597   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16598 fi
16599 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16600   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16601 fi
16602
16603
16604
16605
16606
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628
16629
16630
16631
16632
16633
16634
16635
16636
16637
16638
16639
16640     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16641 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16642 hardcode_action_CXX=
16643 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16644    test -n "$runpath_var_CXX" ||
16645    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16646
16647   # We can hardcode non-existent directories.
16648   if test "$hardcode_direct_CXX" != no &&
16649      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16650      # have to relink, otherwise we might link with an installed library
16651      # when we should be linking with a yet-to-be-installed one
16652      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16653      test "$hardcode_minus_L_CXX" != no; then
16654     # Linking always hardcodes the temporary library directory.
16655     hardcode_action_CXX=relink
16656   else
16657     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16658     hardcode_action_CXX=immediate
16659   fi
16660 else
16661   # We cannot hardcode anything, or else we can only hardcode existing
16662   # directories.
16663   hardcode_action_CXX=unsupported
16664 fi
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16666 $as_echo "$hardcode_action_CXX" >&6; }
16667
16668 if test "$hardcode_action_CXX" = relink ||
16669    test "$inherit_rpath_CXX" = yes; then
16670   # Fast installation is not supported
16671   enable_fast_install=no
16672 elif test "$shlibpath_overrides_runpath" = yes ||
16673      test "$enable_shared" = no; then
16674   # Fast installation is not necessary
16675   enable_fast_install=needless
16676 fi
16677
16678
16679
16680
16681
16682
16683
16684   fi # test -n "$compiler"
16685
16686   CC=$lt_save_CC
16687   LDCXX=$LD
16688   LD=$lt_save_LD
16689   GCC=$lt_save_GCC
16690   with_gnu_ld=$lt_save_with_gnu_ld
16691   lt_cv_path_LDCXX=$lt_cv_path_LD
16692   lt_cv_path_LD=$lt_save_path_LD
16693   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16694   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16695 fi # test "$_lt_caught_CXX_error" != yes
16696
16697 ac_ext=c
16698 ac_cpp='$CPP $CPPFLAGS'
16699 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16700 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16701 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715         ac_config_commands="$ac_config_commands libtool"
16716
16717
16718
16719
16720 # Only expand once:
16721
16722
16723
16724 if test -n "$ac_tool_prefix"; then
16725   for ac_prog in gcj
16726   do
16727     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16728 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16730 $as_echo_n "checking for $ac_word... " >&6; }
16731 if test "${ac_cv_prog_GCJ+set}" = set; then :
16732   $as_echo_n "(cached) " >&6
16733 else
16734   if test -n "$GCJ"; then
16735   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16736 else
16737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16738 for as_dir in $PATH
16739 do
16740   IFS=$as_save_IFS
16741   test -z "$as_dir" && as_dir=.
16742     for ac_exec_ext in '' $ac_executable_extensions; do
16743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16744     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16746     break 2
16747   fi
16748 done
16749   done
16750 IFS=$as_save_IFS
16751
16752 fi
16753 fi
16754 GCJ=$ac_cv_prog_GCJ
16755 if test -n "$GCJ"; then
16756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16757 $as_echo "$GCJ" >&6; }
16758 else
16759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16760 $as_echo "no" >&6; }
16761 fi
16762
16763
16764     test -n "$GCJ" && break
16765   done
16766 fi
16767 if test -z "$GCJ"; then
16768   ac_ct_GCJ=$GCJ
16769   for ac_prog in gcj
16770 do
16771   # Extract the first word of "$ac_prog", so it can be a program name with args.
16772 set dummy $ac_prog; ac_word=$2
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16774 $as_echo_n "checking for $ac_word... " >&6; }
16775 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
16776   $as_echo_n "(cached) " >&6
16777 else
16778   if test -n "$ac_ct_GCJ"; then
16779   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
16780 else
16781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16782 for as_dir in $PATH
16783 do
16784   IFS=$as_save_IFS
16785   test -z "$as_dir" && as_dir=.
16786     for ac_exec_ext in '' $ac_executable_extensions; do
16787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16788     ac_cv_prog_ac_ct_GCJ="$ac_prog"
16789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16790     break 2
16791   fi
16792 done
16793   done
16794 IFS=$as_save_IFS
16795
16796 fi
16797 fi
16798 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
16799 if test -n "$ac_ct_GCJ"; then
16800   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
16801 $as_echo "$ac_ct_GCJ" >&6; }
16802 else
16803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16804 $as_echo "no" >&6; }
16805 fi
16806
16807
16808   test -n "$ac_ct_GCJ" && break
16809 done
16810
16811   if test "x$ac_ct_GCJ" = x; then
16812     GCJ="gcj"
16813   else
16814     case $cross_compiling:$ac_tool_warned in
16815 yes:)
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16817 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16818 ac_tool_warned=yes ;;
16819 esac
16820     GCJ=$ac_ct_GCJ
16821   fi
16822 fi
16823
16824 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
16825 if test "x${GCJFLAGS-unset}" = xunset; then
16826    GCJFLAGS="-g -O2"
16827 fi
16828
16829
16830 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
16831
16832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
16833 $as_echo_n "checking dependency style of $depcc... " >&6; }
16834 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
16835   $as_echo_n "(cached) " >&6
16836 else
16837   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
16838   # We make a subdir and do the tests there.  Otherwise we can end up
16839   # making bogus files that we don't know about and never remove.  For
16840   # instance it was reported that on HP-UX the gcc test will end up
16841   # making a dummy file named `D' -- because `-MD' means `put the output
16842   # in D'.
16843   mkdir conftest.dir
16844   # Copy depcomp to subdir because otherwise we won't find it if we're
16845   # using a relative directory.
16846   cp "$am_depcomp" conftest.dir
16847   cd conftest.dir
16848   # We will build objects and dependencies in a subdirectory because
16849   # it helps to detect inapplicable dependency modes.  For instance
16850   # both Tru64's cc and ICC support -MD to output dependencies as a
16851   # side effect of compilation, but ICC will put the dependencies in
16852   # the current directory while Tru64 will put them in the object
16853   # directory.
16854   mkdir sub
16855
16856   am_cv_GCJ_dependencies_compiler_type=none
16857   if test "$am_compiler_list" = ""; then
16858      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
16859   fi
16860   am__universal=false
16861
16862
16863   for depmode in $am_compiler_list; do
16864     # Setup a source with many dependencies, because some compilers
16865     # like to wrap large dependency lists on column 80 (with \), and
16866     # we should not choose a depcomp mode which is confused by this.
16867     #
16868     # We need to recreate these files for each test, as the compiler may
16869     # overwrite some of them when testing with obscure command lines.
16870     # This happens at least with the AIX C compiler.
16871     : > sub/conftest.c
16872     for i in 1 2 3 4 5 6; do
16873       echo '#include "conftst'$i'.h"' >> sub/conftest.c
16874       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
16875       # Solaris 8's {/usr,}/bin/sh.
16876       touch sub/conftst$i.h
16877     done
16878     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
16879
16880     # We check with `-c' and `-o' for the sake of the "dashmstdout"
16881     # mode.  It turns out that the SunPro C++ compiler does not properly
16882     # handle `-M -o', and we need to detect this.  Also, some Intel
16883     # versions had trouble with output in subdirs
16884     am__obj=sub/conftest.${OBJEXT-o}
16885     am__minus_obj="-o $am__obj"
16886     case $depmode in
16887     gcc)
16888       # This depmode causes a compiler race in universal mode.
16889       test "$am__universal" = false || continue
16890       ;;
16891     nosideeffect)
16892       # after this tag, mechanisms are not by side-effect, so they'll
16893       # only be used when explicitly requested
16894       if test "x$enable_dependency_tracking" = xyes; then
16895         continue
16896       else
16897         break
16898       fi
16899       ;;
16900     msvisualcpp | msvcmsys)
16901       # This compiler won't grok `-c -o', but also, the minuso test has
16902       # not run yet.  These depmodes are late enough in the game, and
16903       # so weak that their functioning should not be impacted.
16904       am__obj=conftest.${OBJEXT-o}
16905       am__minus_obj=
16906       ;;
16907     none) break ;;
16908     esac
16909     if depmode=$depmode \
16910        source=sub/conftest.c object=$am__obj \
16911        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
16912        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
16913          >/dev/null 2>conftest.err &&
16914        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
16915        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
16916        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
16917        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
16918       # icc doesn't choke on unknown options, it will just issue warnings
16919       # or remarks (even with -Werror).  So we grep stderr for any message
16920       # that says an option was ignored or not supported.
16921       # When given -MP, icc 7.0 and 7.1 complain thusly:
16922       #   icc: Command line warning: ignoring option '-M'; no argument required
16923       # The diagnosis changed in icc 8.0:
16924       #   icc: Command line remark: option '-MP' not supported
16925       if (grep 'ignoring option' conftest.err ||
16926           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
16927         am_cv_GCJ_dependencies_compiler_type=$depmode
16928         break
16929       fi
16930     fi
16931   done
16932
16933   cd ..
16934   rm -rf conftest.dir
16935 else
16936   am_cv_GCJ_dependencies_compiler_type=none
16937 fi
16938
16939 fi
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
16941 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
16942 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
16943
16944  if
16945   test "x$enable_dependency_tracking" != xno \
16946   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
16947   am__fastdepGCJ_TRUE=
16948   am__fastdepGCJ_FALSE='#'
16949 else
16950   am__fastdepGCJ_TRUE='#'
16951   am__fastdepGCJ_FALSE=
16952 fi
16953
16954
16955
16956 if test -n "$ac_tool_prefix"; then
16957   for ac_prog in gcj
16958   do
16959     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16960 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16962 $as_echo_n "checking for $ac_word... " >&6; }
16963 if test "${ac_cv_prog_GCJ+set}" = set; then :
16964   $as_echo_n "(cached) " >&6
16965 else
16966   if test -n "$GCJ"; then
16967   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
16968 else
16969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16970 for as_dir in $PATH
16971 do
16972   IFS=$as_save_IFS
16973   test -z "$as_dir" && as_dir=.
16974     for ac_exec_ext in '' $ac_executable_extensions; do
16975   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16976     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
16977     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16978     break 2
16979   fi
16980 done
16981   done
16982 IFS=$as_save_IFS
16983
16984 fi
16985 fi
16986 GCJ=$ac_cv_prog_GCJ
16987 if test -n "$GCJ"; then
16988   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
16989 $as_echo "$GCJ" >&6; }
16990 else
16991   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16992 $as_echo "no" >&6; }
16993 fi
16994
16995
16996     test -n "$GCJ" && break
16997   done
16998 fi
16999 if test -z "$GCJ"; then
17000   ac_ct_GCJ=$GCJ
17001   for ac_prog in gcj
17002 do
17003   # Extract the first word of "$ac_prog", so it can be a program name with args.
17004 set dummy $ac_prog; ac_word=$2
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17006 $as_echo_n "checking for $ac_word... " >&6; }
17007 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
17008   $as_echo_n "(cached) " >&6
17009 else
17010   if test -n "$ac_ct_GCJ"; then
17011   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
17012 else
17013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17014 for as_dir in $PATH
17015 do
17016   IFS=$as_save_IFS
17017   test -z "$as_dir" && as_dir=.
17018     for ac_exec_ext in '' $ac_executable_extensions; do
17019   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17020     ac_cv_prog_ac_ct_GCJ="$ac_prog"
17021     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17022     break 2
17023   fi
17024 done
17025   done
17026 IFS=$as_save_IFS
17027
17028 fi
17029 fi
17030 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
17031 if test -n "$ac_ct_GCJ"; then
17032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
17033 $as_echo "$ac_ct_GCJ" >&6; }
17034 else
17035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17037 fi
17038
17039
17040   test -n "$ac_ct_GCJ" && break
17041 done
17042
17043   if test "x$ac_ct_GCJ" = x; then
17044     GCJ="gcj"
17045   else
17046     case $cross_compiling:$ac_tool_warned in
17047 yes:)
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
17049 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
17050 ac_tool_warned=yes ;;
17051 esac
17052     GCJ=$ac_ct_GCJ
17053   fi
17054 fi
17055
17056 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
17057 if test "x${GCJFLAGS-unset}" = xunset; then
17058    GCJFLAGS="-g -O2"
17059 fi
17060
17061
17062 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
17063
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
17065 $as_echo_n "checking dependency style of $depcc... " >&6; }
17066 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
17067   $as_echo_n "(cached) " >&6
17068 else
17069   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
17070   # We make a subdir and do the tests there.  Otherwise we can end up
17071   # making bogus files that we don't know about and never remove.  For
17072   # instance it was reported that on HP-UX the gcc test will end up
17073   # making a dummy file named `D' -- because `-MD' means `put the output
17074   # in D'.
17075   mkdir conftest.dir
17076   # Copy depcomp to subdir because otherwise we won't find it if we're
17077   # using a relative directory.
17078   cp "$am_depcomp" conftest.dir
17079   cd conftest.dir
17080   # We will build objects and dependencies in a subdirectory because
17081   # it helps to detect inapplicable dependency modes.  For instance
17082   # both Tru64's cc and ICC support -MD to output dependencies as a
17083   # side effect of compilation, but ICC will put the dependencies in
17084   # the current directory while Tru64 will put them in the object
17085   # directory.
17086   mkdir sub
17087
17088   am_cv_GCJ_dependencies_compiler_type=none
17089   if test "$am_compiler_list" = ""; then
17090      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
17091   fi
17092   am__universal=false
17093
17094
17095   for depmode in $am_compiler_list; do
17096     # Setup a source with many dependencies, because some compilers
17097     # like to wrap large dependency lists on column 80 (with \), and
17098     # we should not choose a depcomp mode which is confused by this.
17099     #
17100     # We need to recreate these files for each test, as the compiler may
17101     # overwrite some of them when testing with obscure command lines.
17102     # This happens at least with the AIX C compiler.
17103     : > sub/conftest.c
17104     for i in 1 2 3 4 5 6; do
17105       echo '#include "conftst'$i'.h"' >> sub/conftest.c
17106       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
17107       # Solaris 8's {/usr,}/bin/sh.
17108       touch sub/conftst$i.h
17109     done
17110     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
17111
17112     # We check with `-c' and `-o' for the sake of the "dashmstdout"
17113     # mode.  It turns out that the SunPro C++ compiler does not properly
17114     # handle `-M -o', and we need to detect this.  Also, some Intel
17115     # versions had trouble with output in subdirs
17116     am__obj=sub/conftest.${OBJEXT-o}
17117     am__minus_obj="-o $am__obj"
17118     case $depmode in
17119     gcc)
17120       # This depmode causes a compiler race in universal mode.
17121       test "$am__universal" = false || continue
17122       ;;
17123     nosideeffect)
17124       # after this tag, mechanisms are not by side-effect, so they'll
17125       # only be used when explicitly requested
17126       if test "x$enable_dependency_tracking" = xyes; then
17127         continue
17128       else
17129         break
17130       fi
17131       ;;
17132     msvisualcpp | msvcmsys)
17133       # This compiler won't grok `-c -o', but also, the minuso test has
17134       # not run yet.  These depmodes are late enough in the game, and
17135       # so weak that their functioning should not be impacted.
17136       am__obj=conftest.${OBJEXT-o}
17137       am__minus_obj=
17138       ;;
17139     none) break ;;
17140     esac
17141     if depmode=$depmode \
17142        source=sub/conftest.c object=$am__obj \
17143        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
17144        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
17145          >/dev/null 2>conftest.err &&
17146        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
17147        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
17148        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
17149        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
17150       # icc doesn't choke on unknown options, it will just issue warnings
17151       # or remarks (even with -Werror).  So we grep stderr for any message
17152       # that says an option was ignored or not supported.
17153       # When given -MP, icc 7.0 and 7.1 complain thusly:
17154       #   icc: Command line warning: ignoring option '-M'; no argument required
17155       # The diagnosis changed in icc 8.0:
17156       #   icc: Command line remark: option '-MP' not supported
17157       if (grep 'ignoring option' conftest.err ||
17158           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
17159         am_cv_GCJ_dependencies_compiler_type=$depmode
17160         break
17161       fi
17162     fi
17163   done
17164
17165   cd ..
17166   rm -rf conftest.dir
17167 else
17168   am_cv_GCJ_dependencies_compiler_type=none
17169 fi
17170
17171 fi
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
17173 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
17174 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
17175
17176  if
17177   test "x$enable_dependency_tracking" != xno \
17178   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
17179   am__fastdepGCJ_TRUE=
17180   am__fastdepGCJ_FALSE='#'
17181 else
17182   am__fastdepGCJ_TRUE='#'
17183   am__fastdepGCJ_FALSE=
17184 fi
17185
17186
17187
17188
17189
17190 # Source file extension for Java test sources.
17191 ac_ext=c
17192
17193 # Object file extension for compiled Java test sources.
17194 objext=o
17195 objext_GCJ=$objext
17196
17197 # Code to be used in simple compile tests
17198 lt_simple_compile_test_code="int some_variable = 0;"
17199
17200 # Code to be used in simple link tests
17201 lt_simple_link_test_code='int main(){return(0);}'
17202
17203 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17204
17205
17206
17207
17208
17209
17210 # If no C compiler was specified, use CC.
17211 LTCC=${LTCC-"$CC"}
17212
17213 # If no C compiler flags were specified, use CFLAGS.
17214 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17215
17216 # Allow CC to be a program name with arguments.
17217 compiler=$CC
17218
17219
17220 # save warnings/boilerplate of simple test code
17221 ac_outfile=conftest.$ac_objext
17222 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17223 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17224 _lt_compiler_boilerplate=`cat conftest.err`
17225 $RM conftest*
17226
17227 ac_outfile=conftest.$ac_objext
17228 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17229 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17230 _lt_linker_boilerplate=`cat conftest.err`
17231 $RM -r conftest*
17232
17233
17234 # Allow CC to be a program name with arguments.
17235 GCC=yes
17236 compiler=$CC
17237 compiler_GCJ=$CC
17238 for cc_temp in $compiler""; do
17239   case $cc_temp in
17240     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17241     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17242     \-*) ;;
17243     *) break;;
17244   esac
17245 done
17246 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
17247
17248
17249 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17250 archive_cmds_need_lc_GCJ=no
17251
17252 old_archive_cmds_GCJ=$old_archive_cmds
17253
17254 ## CAVEAT EMPTOR:
17255 ## There is no encapsulation within the following macros, do not change
17256 ## the running order or otherwise move them around unless you know exactly
17257 ## what you are doing...
17258 if test -n "$compiler"; then
17259
17260 lt_prog_compiler_no_builtin_flag_GCJ=
17261
17262 if test "$GCC" = yes; then
17263   case $cc_basename in
17264   nvcc*)
17265     lt_prog_compiler_no_builtin_flag_GCJ=' -Xcompiler -fno-builtin' ;;
17266   *)
17267     lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' ;;
17268   esac
17269
17270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17271 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
17272 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
17273   $as_echo_n "(cached) " >&6
17274 else
17275   lt_cv_prog_compiler_rtti_exceptions=no
17276    ac_outfile=conftest.$ac_objext
17277    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17278    lt_compiler_flag="-fno-rtti -fno-exceptions"
17279    # Insert the option either (1) after the last *FLAGS variable, or
17280    # (2) before a word containing "conftest.", or (3) at the end.
17281    # Note that $ac_compile itself does not contain backslashes and begins
17282    # with a dollar sign (not a hyphen), so the echo should work correctly.
17283    # The option is referenced via a variable to avoid confusing sed.
17284    lt_compile=`echo "$ac_compile" | $SED \
17285    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17286    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17287    -e 's:$: $lt_compiler_flag:'`
17288    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17289    (eval "$lt_compile" 2>conftest.err)
17290    ac_status=$?
17291    cat conftest.err >&5
17292    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293    if (exit $ac_status) && test -s "$ac_outfile"; then
17294      # The compiler can only warn and ignore the option if not recognized
17295      # So say no if there are warnings other than the usual output.
17296      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17297      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17298      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17299        lt_cv_prog_compiler_rtti_exceptions=yes
17300      fi
17301    fi
17302    $RM conftest*
17303
17304 fi
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17306 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
17307
17308 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17309     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17310 else
17311     :
17312 fi
17313
17314 fi
17315
17316
17317
17318   lt_prog_compiler_wl_GCJ=
17319 lt_prog_compiler_pic_GCJ=
17320 lt_prog_compiler_static_GCJ=
17321
17322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17323 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17324
17325   if test "$GCC" = yes; then
17326     lt_prog_compiler_wl_GCJ='-Wl,'
17327     lt_prog_compiler_static_GCJ='-static'
17328
17329     case $host_os in
17330       aix*)
17331       # All AIX code is PIC.
17332       if test "$host_cpu" = ia64; then
17333         # AIX 5 now supports IA64 processor
17334         lt_prog_compiler_static_GCJ='-Bstatic'
17335       fi
17336       ;;
17337
17338     amigaos*)
17339       case $host_cpu in
17340       powerpc)
17341             # see comment about AmigaOS4 .so support
17342             lt_prog_compiler_pic_GCJ='-fPIC'
17343         ;;
17344       m68k)
17345             # FIXME: we need at least 68020 code to build shared libraries, but
17346             # adding the `-m68020' flag to GCC prevents building anything better,
17347             # like `-m68040'.
17348             lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17349         ;;
17350       esac
17351       ;;
17352
17353     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17354       # PIC is the default for these OSes.
17355       ;;
17356
17357     mingw* | cygwin* | pw32* | os2* | cegcc*)
17358       # This hack is so that the source file can tell whether it is being
17359       # built for inclusion in a dll (and should export symbols for example).
17360       # Although the cygwin gcc ignores -fPIC, still need this for old-style
17361       # (--disable-auto-import) libraries
17362
17363       ;;
17364
17365     darwin* | rhapsody*)
17366       # PIC is the default on this platform
17367       # Common symbols not allowed in MH_DYLIB files
17368       lt_prog_compiler_pic_GCJ='-fno-common'
17369       ;;
17370
17371     haiku*)
17372       # PIC is the default for Haiku.
17373       # The "-static" flag exists, but is broken.
17374       lt_prog_compiler_static_GCJ=
17375       ;;
17376
17377     hpux*)
17378       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17379       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17380       # sets the default TLS model and affects inlining.
17381       case $host_cpu in
17382       hppa*64*)
17383         # +Z the default
17384         ;;
17385       *)
17386         lt_prog_compiler_pic_GCJ='-fPIC'
17387         ;;
17388       esac
17389       ;;
17390
17391     interix[3-9]*)
17392       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17393       # Instead, we relocate shared libraries at runtime.
17394       ;;
17395
17396     msdosdjgpp*)
17397       # Just because we use GCC doesn't mean we suddenly get shared libraries
17398       # on systems that don't support them.
17399       lt_prog_compiler_can_build_shared_GCJ=no
17400       enable_shared=no
17401       ;;
17402
17403     *nto* | *qnx*)
17404       # QNX uses GNU C++, but need to define -shared option too, otherwise
17405       # it will coredump.
17406       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17407       ;;
17408
17409     sysv4*MP*)
17410       if test -d /usr/nec; then
17411         lt_prog_compiler_pic_GCJ=-Kconform_pic
17412       fi
17413       ;;
17414
17415     *)
17416       lt_prog_compiler_pic_GCJ='-fPIC'
17417       ;;
17418     esac
17419
17420     case $cc_basename in
17421     nvcc*) # Cuda Compiler Driver 2.2
17422       lt_prog_compiler_wl_GCJ='-Xlinker '
17423       lt_prog_compiler_pic_GCJ='-Xcompiler -fPIC'
17424       ;;
17425     esac
17426   else
17427     # PORTME Check for flag to pass linker flags through the system compiler.
17428     case $host_os in
17429     aix*)
17430       lt_prog_compiler_wl_GCJ='-Wl,'
17431       if test "$host_cpu" = ia64; then
17432         # AIX 5 now supports IA64 processor
17433         lt_prog_compiler_static_GCJ='-Bstatic'
17434       else
17435         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17436       fi
17437       ;;
17438
17439     mingw* | cygwin* | pw32* | os2* | cegcc*)
17440       # This hack is so that the source file can tell whether it is being
17441       # built for inclusion in a dll (and should export symbols for example).
17442
17443       ;;
17444
17445     hpux9* | hpux10* | hpux11*)
17446       lt_prog_compiler_wl_GCJ='-Wl,'
17447       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17448       # not for PA HP-UX.
17449       case $host_cpu in
17450       hppa*64*|ia64*)
17451         # +Z the default
17452         ;;
17453       *)
17454         lt_prog_compiler_pic_GCJ='+Z'
17455         ;;
17456       esac
17457       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17458       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17459       ;;
17460
17461     irix5* | irix6* | nonstopux*)
17462       lt_prog_compiler_wl_GCJ='-Wl,'
17463       # PIC (with -KPIC) is the default.
17464       lt_prog_compiler_static_GCJ='-non_shared'
17465       ;;
17466
17467     linux* | k*bsd*-gnu | kopensolaris*-gnu)
17468       case $cc_basename in
17469       # old Intel for x86_64 which still supported -KPIC.
17470       ecc*)
17471         lt_prog_compiler_wl_GCJ='-Wl,'
17472         lt_prog_compiler_pic_GCJ='-KPIC'
17473         lt_prog_compiler_static_GCJ='-static'
17474         ;;
17475       # icc used to be incompatible with GCC.
17476       # ICC 10 doesn't accept -KPIC any more.
17477       icc* | ifort*)
17478         lt_prog_compiler_wl_GCJ='-Wl,'
17479         lt_prog_compiler_pic_GCJ='-fPIC'
17480         lt_prog_compiler_static_GCJ='-static'
17481         ;;
17482       # Lahey Fortran 8.1.
17483       lf95*)
17484         lt_prog_compiler_wl_GCJ='-Wl,'
17485         lt_prog_compiler_pic_GCJ='--shared'
17486         lt_prog_compiler_static_GCJ='--static'
17487         ;;
17488       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
17489         # Portland Group compilers (*not* the Pentium gcc compiler,
17490         # which looks to be a dead project)
17491         lt_prog_compiler_wl_GCJ='-Wl,'
17492         lt_prog_compiler_pic_GCJ='-fpic'
17493         lt_prog_compiler_static_GCJ='-Bstatic'
17494         ;;
17495       ccc*)
17496         lt_prog_compiler_wl_GCJ='-Wl,'
17497         # All Alpha code is PIC.
17498         lt_prog_compiler_static_GCJ='-non_shared'
17499         ;;
17500       xl* | bgxl* | bgf* | mpixl*)
17501         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
17502         lt_prog_compiler_wl_GCJ='-Wl,'
17503         lt_prog_compiler_pic_GCJ='-qpic'
17504         lt_prog_compiler_static_GCJ='-qstaticlink'
17505         ;;
17506       *)
17507         case `$CC -V 2>&1 | sed 5q` in
17508         *Sun\ F* | *Sun*Fortran*)
17509           # Sun Fortran 8.3 passes all unrecognized flags to the linker
17510           lt_prog_compiler_pic_GCJ='-KPIC'
17511           lt_prog_compiler_static_GCJ='-Bstatic'
17512           lt_prog_compiler_wl_GCJ=''
17513           ;;
17514         *Sun\ C*)
17515           # Sun C 5.9
17516           lt_prog_compiler_pic_GCJ='-KPIC'
17517           lt_prog_compiler_static_GCJ='-Bstatic'
17518           lt_prog_compiler_wl_GCJ='-Wl,'
17519           ;;
17520         esac
17521         ;;
17522       esac
17523       ;;
17524
17525     newsos6)
17526       lt_prog_compiler_pic_GCJ='-KPIC'
17527       lt_prog_compiler_static_GCJ='-Bstatic'
17528       ;;
17529
17530     *nto* | *qnx*)
17531       # QNX uses GNU C++, but need to define -shared option too, otherwise
17532       # it will coredump.
17533       lt_prog_compiler_pic_GCJ='-fPIC -shared'
17534       ;;
17535
17536     osf3* | osf4* | osf5*)
17537       lt_prog_compiler_wl_GCJ='-Wl,'
17538       # All OSF/1 code is PIC.
17539       lt_prog_compiler_static_GCJ='-non_shared'
17540       ;;
17541
17542     rdos*)
17543       lt_prog_compiler_static_GCJ='-non_shared'
17544       ;;
17545
17546     solaris*)
17547       lt_prog_compiler_pic_GCJ='-KPIC'
17548       lt_prog_compiler_static_GCJ='-Bstatic'
17549       case $cc_basename in
17550       f77* | f90* | f95*)
17551         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17552       *)
17553         lt_prog_compiler_wl_GCJ='-Wl,';;
17554       esac
17555       ;;
17556
17557     sunos4*)
17558       lt_prog_compiler_wl_GCJ='-Qoption ld '
17559       lt_prog_compiler_pic_GCJ='-PIC'
17560       lt_prog_compiler_static_GCJ='-Bstatic'
17561       ;;
17562
17563     sysv4 | sysv4.2uw2* | sysv4.3*)
17564       lt_prog_compiler_wl_GCJ='-Wl,'
17565       lt_prog_compiler_pic_GCJ='-KPIC'
17566       lt_prog_compiler_static_GCJ='-Bstatic'
17567       ;;
17568
17569     sysv4*MP*)
17570       if test -d /usr/nec ;then
17571         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17572         lt_prog_compiler_static_GCJ='-Bstatic'
17573       fi
17574       ;;
17575
17576     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17577       lt_prog_compiler_wl_GCJ='-Wl,'
17578       lt_prog_compiler_pic_GCJ='-KPIC'
17579       lt_prog_compiler_static_GCJ='-Bstatic'
17580       ;;
17581
17582     unicos*)
17583       lt_prog_compiler_wl_GCJ='-Wl,'
17584       lt_prog_compiler_can_build_shared_GCJ=no
17585       ;;
17586
17587     uts4*)
17588       lt_prog_compiler_pic_GCJ='-pic'
17589       lt_prog_compiler_static_GCJ='-Bstatic'
17590       ;;
17591
17592     *)
17593       lt_prog_compiler_can_build_shared_GCJ=no
17594       ;;
17595     esac
17596   fi
17597
17598 case $host_os in
17599   # For platforms which do not support PIC, -DPIC is meaningless:
17600   *djgpp*)
17601     lt_prog_compiler_pic_GCJ=
17602     ;;
17603   *)
17604     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17605     ;;
17606 esac
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
17608 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17609
17610
17611
17612 #
17613 # Check to make sure the PIC flag actually works.
17614 #
17615 if test -n "$lt_prog_compiler_pic_GCJ"; then
17616   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17617 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17618 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then :
17619   $as_echo_n "(cached) " >&6
17620 else
17621   lt_cv_prog_compiler_pic_works_GCJ=no
17622    ac_outfile=conftest.$ac_objext
17623    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17624    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17625    # Insert the option either (1) after the last *FLAGS variable, or
17626    # (2) before a word containing "conftest.", or (3) at the end.
17627    # Note that $ac_compile itself does not contain backslashes and begins
17628    # with a dollar sign (not a hyphen), so the echo should work correctly.
17629    # The option is referenced via a variable to avoid confusing sed.
17630    lt_compile=`echo "$ac_compile" | $SED \
17631    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17632    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17633    -e 's:$: $lt_compiler_flag:'`
17634    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17635    (eval "$lt_compile" 2>conftest.err)
17636    ac_status=$?
17637    cat conftest.err >&5
17638    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17639    if (exit $ac_status) && test -s "$ac_outfile"; then
17640      # The compiler can only warn and ignore the option if not recognized
17641      # So say no if there are warnings other than the usual output.
17642      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17643      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17644      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17645        lt_cv_prog_compiler_pic_works_GCJ=yes
17646      fi
17647    fi
17648    $RM conftest*
17649
17650 fi
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17652 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17653
17654 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17655     case $lt_prog_compiler_pic_GCJ in
17656      "" | " "*) ;;
17657      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17658      esac
17659 else
17660     lt_prog_compiler_pic_GCJ=
17661      lt_prog_compiler_can_build_shared_GCJ=no
17662 fi
17663
17664 fi
17665
17666
17667
17668 #
17669 # Check to make sure the static flag actually works.
17670 #
17671 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17673 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17674 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then :
17675   $as_echo_n "(cached) " >&6
17676 else
17677   lt_cv_prog_compiler_static_works_GCJ=no
17678    save_LDFLAGS="$LDFLAGS"
17679    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17680    echo "$lt_simple_link_test_code" > conftest.$ac_ext
17681    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17682      # The linker can only warn and ignore the option if not recognized
17683      # So say no if there are warnings
17684      if test -s conftest.err; then
17685        # Append any errors to the config.log.
17686        cat conftest.err 1>&5
17687        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17688        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17689        if diff conftest.exp conftest.er2 >/dev/null; then
17690          lt_cv_prog_compiler_static_works_GCJ=yes
17691        fi
17692      else
17693        lt_cv_prog_compiler_static_works_GCJ=yes
17694      fi
17695    fi
17696    $RM -r conftest*
17697    LDFLAGS="$save_LDFLAGS"
17698
17699 fi
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17701 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17702
17703 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17704     :
17705 else
17706     lt_prog_compiler_static_GCJ=
17707 fi
17708
17709
17710
17711
17712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17713 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17714 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17715   $as_echo_n "(cached) " >&6
17716 else
17717   lt_cv_prog_compiler_c_o_GCJ=no
17718    $RM -r conftest 2>/dev/null
17719    mkdir conftest
17720    cd conftest
17721    mkdir out
17722    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17723
17724    lt_compiler_flag="-o out/conftest2.$ac_objext"
17725    # Insert the option either (1) after the last *FLAGS variable, or
17726    # (2) before a word containing "conftest.", or (3) at the end.
17727    # Note that $ac_compile itself does not contain backslashes and begins
17728    # with a dollar sign (not a hyphen), so the echo should work correctly.
17729    lt_compile=`echo "$ac_compile" | $SED \
17730    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17731    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17732    -e 's:$: $lt_compiler_flag:'`
17733    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17734    (eval "$lt_compile" 2>out/conftest.err)
17735    ac_status=$?
17736    cat out/conftest.err >&5
17737    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17739    then
17740      # The compiler can only warn and ignore the option if not recognized
17741      # So say no if there are warnings
17742      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17743      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17744      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17745        lt_cv_prog_compiler_c_o_GCJ=yes
17746      fi
17747    fi
17748    chmod u+w . 2>&5
17749    $RM conftest*
17750    # SGI C++ compiler will create directory out/ii_files/ for
17751    # template instantiation
17752    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17753    $RM out/* && rmdir out
17754    cd ..
17755    $RM -r conftest
17756    $RM conftest*
17757
17758 fi
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17760 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17761
17762
17763
17764   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17765 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17766 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then :
17767   $as_echo_n "(cached) " >&6
17768 else
17769   lt_cv_prog_compiler_c_o_GCJ=no
17770    $RM -r conftest 2>/dev/null
17771    mkdir conftest
17772    cd conftest
17773    mkdir out
17774    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17775
17776    lt_compiler_flag="-o out/conftest2.$ac_objext"
17777    # Insert the option either (1) after the last *FLAGS variable, or
17778    # (2) before a word containing "conftest.", or (3) at the end.
17779    # Note that $ac_compile itself does not contain backslashes and begins
17780    # with a dollar sign (not a hyphen), so the echo should work correctly.
17781    lt_compile=`echo "$ac_compile" | $SED \
17782    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17783    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17784    -e 's:$: $lt_compiler_flag:'`
17785    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17786    (eval "$lt_compile" 2>out/conftest.err)
17787    ac_status=$?
17788    cat out/conftest.err >&5
17789    echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17791    then
17792      # The compiler can only warn and ignore the option if not recognized
17793      # So say no if there are warnings
17794      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17795      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17796      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17797        lt_cv_prog_compiler_c_o_GCJ=yes
17798      fi
17799    fi
17800    chmod u+w . 2>&5
17801    $RM conftest*
17802    # SGI C++ compiler will create directory out/ii_files/ for
17803    # template instantiation
17804    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17805    $RM out/* && rmdir out
17806    cd ..
17807    $RM -r conftest
17808    $RM conftest*
17809
17810 fi
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17812 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17813
17814
17815
17816
17817 hard_links="nottested"
17818 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17819   # do not overwrite the value of need_locks provided by the user
17820   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17821 $as_echo_n "checking if we can lock with hard links... " >&6; }
17822   hard_links=yes
17823   $RM conftest*
17824   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17825   touch conftest.a
17826   ln conftest.a conftest.b 2>&5 || hard_links=no
17827   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17829 $as_echo "$hard_links" >&6; }
17830   if test "$hard_links" = no; then
17831     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17832 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17833     need_locks=warn
17834   fi
17835 else
17836   need_locks=no
17837 fi
17838
17839
17840
17841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17842 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17843
17844   runpath_var=
17845   allow_undefined_flag_GCJ=
17846   always_export_symbols_GCJ=no
17847   archive_cmds_GCJ=
17848   archive_expsym_cmds_GCJ=
17849   compiler_needs_object_GCJ=no
17850   enable_shared_with_static_runtimes_GCJ=no
17851   export_dynamic_flag_spec_GCJ=
17852   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17853   hardcode_automatic_GCJ=no
17854   hardcode_direct_GCJ=no
17855   hardcode_direct_absolute_GCJ=no
17856   hardcode_libdir_flag_spec_GCJ=
17857   hardcode_libdir_flag_spec_ld_GCJ=
17858   hardcode_libdir_separator_GCJ=
17859   hardcode_minus_L_GCJ=no
17860   hardcode_shlibpath_var_GCJ=unsupported
17861   inherit_rpath_GCJ=no
17862   link_all_deplibs_GCJ=unknown
17863   module_cmds_GCJ=
17864   module_expsym_cmds_GCJ=
17865   old_archive_from_new_cmds_GCJ=
17866   old_archive_from_expsyms_cmds_GCJ=
17867   thread_safe_flag_spec_GCJ=
17868   whole_archive_flag_spec_GCJ=
17869   # include_expsyms should be a list of space-separated symbols to be *always*
17870   # included in the symbol list
17871   include_expsyms_GCJ=
17872   # exclude_expsyms can be an extended regexp of symbols to exclude
17873   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17874   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17875   # as well as any symbol that contains `d'.
17876   exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17877   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17878   # platforms (ab)use it in PIC code, but their linkers get confused if
17879   # the symbol is explicitly referenced.  Since portable code cannot
17880   # rely on this symbol name, it's probably fine to never include it in
17881   # preloaded symbol tables.
17882   # Exclude shared library initialization/finalization symbols.
17883   extract_expsyms_cmds=
17884
17885   case $host_os in
17886   cygwin* | mingw* | pw32* | cegcc*)
17887     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17888     # When not using gcc, we currently assume that we are using
17889     # Microsoft Visual C++.
17890     if test "$GCC" != yes; then
17891       with_gnu_ld=no
17892     fi
17893     ;;
17894   interix*)
17895     # we just hope/assume this is gcc and not c89 (= MSVC++)
17896     with_gnu_ld=yes
17897     ;;
17898   openbsd*)
17899     with_gnu_ld=no
17900     ;;
17901   esac
17902
17903   ld_shlibs_GCJ=yes
17904
17905   # On some targets, GNU ld is compatible enough with the native linker
17906   # that we're better off using the native interface for both.
17907   lt_use_gnu_ld_interface=no
17908   if test "$with_gnu_ld" = yes; then
17909     case $host_os in
17910       aix*)
17911         # The AIX port of GNU ld has always aspired to compatibility
17912         # with the native linker.  However, as the warning in the GNU ld
17913         # block says, versions before 2.19.5* couldn't really create working
17914         # shared libraries, regardless of the interface used.
17915         case `$LD -v 2>&1` in
17916           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17917           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17918           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17919           *)
17920             lt_use_gnu_ld_interface=yes
17921             ;;
17922         esac
17923         ;;
17924       *)
17925         lt_use_gnu_ld_interface=yes
17926         ;;
17927     esac
17928   fi
17929
17930   if test "$lt_use_gnu_ld_interface" = yes; then
17931     # If archive_cmds runs LD, not CC, wlarc should be empty
17932     wlarc='${wl}'
17933
17934     # Set some defaults for GNU ld with shared library support. These
17935     # are reset later if shared libraries are not supported. Putting them
17936     # here allows them to be overridden if necessary.
17937     runpath_var=LD_RUN_PATH
17938     hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17939     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17940     # ancient GNU ld didn't support --whole-archive et. al.
17941     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17942       whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17943     else
17944       whole_archive_flag_spec_GCJ=
17945     fi
17946     supports_anon_versioning=no
17947     case `$LD -v 2>&1` in
17948       *GNU\ gold*) supports_anon_versioning=yes ;;
17949       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17950       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17951       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17952       *\ 2.11.*) ;; # other 2.11 versions
17953       *) supports_anon_versioning=yes ;;
17954     esac
17955
17956     # See if GNU ld supports shared libraries.
17957     case $host_os in
17958     aix[3-9]*)
17959       # On AIX/PPC, the GNU linker is very broken
17960       if test "$host_cpu" != ia64; then
17961         ld_shlibs_GCJ=no
17962         cat <<_LT_EOF 1>&2
17963
17964 *** Warning: the GNU linker, at least up to release 2.19, is reported
17965 *** to be unable to reliably create shared libraries on AIX.
17966 *** Therefore, libtool is disabling shared libraries support.  If you
17967 *** really care for shared libraries, you may want to install binutils
17968 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17969 *** You will then need to restart the configuration process.
17970
17971 _LT_EOF
17972       fi
17973       ;;
17974
17975     amigaos*)
17976       case $host_cpu in
17977       powerpc)
17978             # see comment about AmigaOS4 .so support
17979             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17980             archive_expsym_cmds_GCJ=''
17981         ;;
17982       m68k)
17983             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)'
17984             hardcode_libdir_flag_spec_GCJ='-L$libdir'
17985             hardcode_minus_L_GCJ=yes
17986         ;;
17987       esac
17988       ;;
17989
17990     beos*)
17991       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17992         allow_undefined_flag_GCJ=unsupported
17993         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17994         # support --undefined.  This deserves some investigation.  FIXME
17995         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17996       else
17997         ld_shlibs_GCJ=no
17998       fi
17999       ;;
18000
18001     cygwin* | mingw* | pw32* | cegcc*)
18002       # _LT_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
18003       # as there is no search path for DLLs.
18004       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18005       export_dynamic_flag_spec_GCJ='${wl}--export-all-symbols'
18006       allow_undefined_flag_GCJ=unsupported
18007       always_export_symbols_GCJ=no
18008       enable_shared_with_static_runtimes_GCJ=yes
18009       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18010
18011       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18012         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18013         # If the export-symbols file already is a .def file (1st line
18014         # is EXPORTS), use it as is; otherwise, prepend...
18015         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18016           cp $export_symbols $output_objdir/$soname.def;
18017         else
18018           echo EXPORTS > $output_objdir/$soname.def;
18019           cat $export_symbols >> $output_objdir/$soname.def;
18020         fi~
18021         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18022       else
18023         ld_shlibs_GCJ=no
18024       fi
18025       ;;
18026
18027     haiku*)
18028       archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18029       link_all_deplibs_GCJ=yes
18030       ;;
18031
18032     interix[3-9]*)
18033       hardcode_direct_GCJ=no
18034       hardcode_shlibpath_var_GCJ=no
18035       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18036       export_dynamic_flag_spec_GCJ='${wl}-E'
18037       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18038       # Instead, shared libraries are loaded at an image base (0x10000000 by
18039       # default) and relocated if they conflict, which is a slow very memory
18040       # consuming and fragmenting process.  To avoid this, we pick a random,
18041       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18042       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
18043       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'
18044       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'
18045       ;;
18046
18047     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
18048       tmp_diet=no
18049       if test "$host_os" = linux-dietlibc; then
18050         case $cc_basename in
18051           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
18052         esac
18053       fi
18054       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18055          && test "$tmp_diet" = no
18056       then
18057         tmp_addflag=
18058         tmp_sharedflag='-shared'
18059         case $cc_basename,$host_cpu in
18060         pgcc*)                          # Portland Group C compiler
18061           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'
18062           tmp_addflag=' $pic_flag'
18063           ;;
18064         pgf77* | pgf90* | pgf95* | pgfortran*)
18065                                         # Portland Group f77 and f90 compilers
18066           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'
18067           tmp_addflag=' $pic_flag -Mnomain' ;;
18068         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
18069           tmp_addflag=' -i_dynamic' ;;
18070         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
18071           tmp_addflag=' -i_dynamic -nofor_main' ;;
18072         ifc* | ifort*)                  # Intel Fortran compiler
18073           tmp_addflag=' -nofor_main' ;;
18074         lf95*)                          # Lahey Fortran 8.1
18075           whole_archive_flag_spec_GCJ=
18076           tmp_sharedflag='--shared' ;;
18077         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18078           tmp_sharedflag='-qmkshrobj'
18079           tmp_addflag= ;;
18080         nvcc*)  # Cuda Compiler Driver 2.2
18081           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'
18082           compiler_needs_object_GCJ=yes
18083           ;;
18084         esac
18085         case `$CC -V 2>&1 | sed 5q` in
18086         *Sun\ C*)                       # Sun C 5.9
18087           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'
18088           compiler_needs_object_GCJ=yes
18089           tmp_sharedflag='-G' ;;
18090         *Sun\ F*)                       # Sun Fortran 8.3
18091           tmp_sharedflag='-G' ;;
18092         esac
18093         archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18094
18095         if test "x$supports_anon_versioning" = xyes; then
18096           archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18097             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18098             echo "local: *; };" >> $output_objdir/$libname.ver~
18099             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18100         fi
18101
18102         case $cc_basename in
18103         xlf* | bgf* | bgxlf* | mpixlf*)
18104           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18105           whole_archive_flag_spec_GCJ='--whole-archive$convenience --no-whole-archive'
18106           hardcode_libdir_flag_spec_GCJ=
18107           hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18108           archive_cmds_GCJ='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18109           if test "x$supports_anon_versioning" = xyes; then
18110             archive_expsym_cmds_GCJ='echo "{ global:" > $output_objdir/$libname.ver~
18111               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18112               echo "local: *; };" >> $output_objdir/$libname.ver~
18113               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18114           fi
18115           ;;
18116         esac
18117       else
18118         ld_shlibs_GCJ=no
18119       fi
18120       ;;
18121
18122     netbsd*)
18123       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18124         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18125         wlarc=
18126       else
18127         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18128         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18129       fi
18130       ;;
18131
18132     solaris*)
18133       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18134         ld_shlibs_GCJ=no
18135         cat <<_LT_EOF 1>&2
18136
18137 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18138 *** create shared libraries on Solaris systems.  Therefore, libtool
18139 *** is disabling shared libraries support.  We urge you to upgrade GNU
18140 *** binutils to release 2.9.1 or newer.  Another option is to modify
18141 *** your PATH or compiler configuration so that the native linker is
18142 *** used, and then restart.
18143
18144 _LT_EOF
18145       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18146         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18147         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18148       else
18149         ld_shlibs_GCJ=no
18150       fi
18151       ;;
18152
18153     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18154       case `$LD -v 2>&1` in
18155         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18156         ld_shlibs_GCJ=no
18157         cat <<_LT_EOF 1>&2
18158
18159 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18160 *** reliably create shared libraries on SCO systems.  Therefore, libtool
18161 *** is disabling shared libraries support.  We urge you to upgrade GNU
18162 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
18163 *** your PATH or compiler configuration so that the native linker is
18164 *** used, and then restart.
18165
18166 _LT_EOF
18167         ;;
18168         *)
18169           # For security reasons, it is highly recommended that you always
18170           # use absolute paths for naming shared libraries, and exclude the
18171           # DT_RUNPATH tag from executables and libraries.  But doing so
18172           # requires that you compile everything twice, which is a pain.
18173           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18174             hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18175             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18176             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18177           else
18178             ld_shlibs_GCJ=no
18179           fi
18180         ;;
18181       esac
18182       ;;
18183
18184     sunos4*)
18185       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18186       wlarc=
18187       hardcode_direct_GCJ=yes
18188       hardcode_shlibpath_var_GCJ=no
18189       ;;
18190
18191     *)
18192       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18193         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18194         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18195       else
18196         ld_shlibs_GCJ=no
18197       fi
18198       ;;
18199     esac
18200
18201     if test "$ld_shlibs_GCJ" = no; then
18202       runpath_var=
18203       hardcode_libdir_flag_spec_GCJ=
18204       export_dynamic_flag_spec_GCJ=
18205       whole_archive_flag_spec_GCJ=
18206     fi
18207   else
18208     # PORTME fill in a description of your system's linker (not GNU ld)
18209     case $host_os in
18210     aix3*)
18211       allow_undefined_flag_GCJ=unsupported
18212       always_export_symbols_GCJ=yes
18213       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'
18214       # Note: this linker hardcodes the directories in LIBPATH if there
18215       # are no directories specified by -L.
18216       hardcode_minus_L_GCJ=yes
18217       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18218         # Neither direct hardcoding nor static linking is supported with a
18219         # broken collect2.
18220         hardcode_direct_GCJ=unsupported
18221       fi
18222       ;;
18223
18224     aix[4-9]*)
18225       if test "$host_cpu" = ia64; then
18226         # On IA64, the linker does run time linking by default, so we don't
18227         # have to do anything special.
18228         aix_use_runtimelinking=no
18229         exp_sym_flag='-Bexport'
18230         no_entry_flag=""
18231       else
18232         # If we're using GNU nm, then we don't want the "-C" option.
18233         # -C means demangle to AIX nm, but means don't demangle with GNU nm
18234         # Also, AIX nm treats weak defined symbols like other global
18235         # defined symbols, whereas GNU nm marks them as "W".
18236         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18237           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'
18238         else
18239           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'
18240         fi
18241         aix_use_runtimelinking=no
18242
18243         # Test if we are trying to use run time linking or normal
18244         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18245         # need to do runtime linking.
18246         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18247           for ld_flag in $LDFLAGS; do
18248           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18249             aix_use_runtimelinking=yes
18250             break
18251           fi
18252           done
18253           ;;
18254         esac
18255
18256         exp_sym_flag='-bexport'
18257         no_entry_flag='-bnoentry'
18258       fi
18259
18260       # When large executables or shared objects are built, AIX ld can
18261       # have problems creating the table of contents.  If linking a library
18262       # or program results in "error TOC overflow" add -mminimal-toc to
18263       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18264       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18265
18266       archive_cmds_GCJ=''
18267       hardcode_direct_GCJ=yes
18268       hardcode_direct_absolute_GCJ=yes
18269       hardcode_libdir_separator_GCJ=':'
18270       link_all_deplibs_GCJ=yes
18271       file_list_spec_GCJ='${wl}-f,'
18272
18273       if test "$GCC" = yes; then
18274         case $host_os in aix4.[012]|aix4.[012].*)
18275         # We only want to do this on AIX 4.2 and lower, the check
18276         # below for broken collect2 doesn't work under 4.3+
18277           collect2name=`${CC} -print-prog-name=collect2`
18278           if test -f "$collect2name" &&
18279            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18280           then
18281           # We have reworked collect2
18282           :
18283           else
18284           # We have old collect2
18285           hardcode_direct_GCJ=unsupported
18286           # It fails to find uninstalled libraries when the uninstalled
18287           # path is not listed in the libpath.  Setting hardcode_minus_L
18288           # to unsupported forces relinking
18289           hardcode_minus_L_GCJ=yes
18290           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18291           hardcode_libdir_separator_GCJ=
18292           fi
18293           ;;
18294         esac
18295         shared_flag='-shared'
18296         if test "$aix_use_runtimelinking" = yes; then
18297           shared_flag="$shared_flag "'${wl}-G'
18298         fi
18299       else
18300         # not using gcc
18301         if test "$host_cpu" = ia64; then
18302         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18303         # chokes on -Wl,-G. The following line is correct:
18304           shared_flag='-G'
18305         else
18306           if test "$aix_use_runtimelinking" = yes; then
18307             shared_flag='${wl}-G'
18308           else
18309             shared_flag='${wl}-bM:SRE'
18310           fi
18311         fi
18312       fi
18313
18314       export_dynamic_flag_spec_GCJ='${wl}-bexpall'
18315       # It seems that -bexpall does not export symbols beginning with
18316       # underscore (_), so it is better to generate a list of symbols to export.
18317       always_export_symbols_GCJ=yes
18318       if test "$aix_use_runtimelinking" = yes; then
18319         # Warning - without using the other runtime loading flags (-brtl),
18320         # -berok will link without error, but may produce a broken library.
18321         allow_undefined_flag_GCJ='-berok'
18322         # Determine the default libpath from the value encoded in an
18323         # empty executable.
18324         if test x$gcc_no_link = xyes; then
18325   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18326 fi
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328 /* end confdefs.h.  */
18329
18330 int
18331 main ()
18332 {
18333
18334   ;
18335   return 0;
18336 }
18337 _ACEOF
18338 if ac_fn_c_try_link "$LINENO"; then :
18339
18340 lt_aix_libpath_sed='
18341     /Import File Strings/,/^$/ {
18342         /^0/ {
18343             s/^0  *\(.*\)$/\1/
18344             p
18345         }
18346     }'
18347 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18348 # Check for a 64-bit object if we didn't find anything.
18349 if test -z "$aix_libpath"; then
18350   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18351 fi
18352 fi
18353 rm -f core conftest.err conftest.$ac_objext \
18354     conftest$ac_exeext conftest.$ac_ext
18355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18356
18357         hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18358         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"
18359       else
18360         if test "$host_cpu" = ia64; then
18361           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18362           allow_undefined_flag_GCJ="-z nodefs"
18363           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"
18364         else
18365          # Determine the default libpath from the value encoded in an
18366          # empty executable.
18367          if test x$gcc_no_link = xyes; then
18368   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18369 fi
18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h.  */
18372
18373 int
18374 main ()
18375 {
18376
18377   ;
18378   return 0;
18379 }
18380 _ACEOF
18381 if ac_fn_c_try_link "$LINENO"; then :
18382
18383 lt_aix_libpath_sed='
18384     /Import File Strings/,/^$/ {
18385         /^0/ {
18386             s/^0  *\(.*\)$/\1/
18387             p
18388         }
18389     }'
18390 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18391 # Check for a 64-bit object if we didn't find anything.
18392 if test -z "$aix_libpath"; then
18393   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18394 fi
18395 fi
18396 rm -f core conftest.err conftest.$ac_objext \
18397     conftest$ac_exeext conftest.$ac_ext
18398 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18399
18400          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18401           # Warning - without using the other run time loading flags,
18402           # -berok will link without error, but may produce a broken library.
18403           no_undefined_flag_GCJ=' ${wl}-bernotok'
18404           allow_undefined_flag_GCJ=' ${wl}-berok'
18405           if test "$with_gnu_ld" = yes; then
18406             # We only use this code for GNU lds that support --whole-archive.
18407             whole_archive_flag_spec_GCJ='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18408           else
18409             # Exported symbols can be pulled into shared objects from archives
18410             whole_archive_flag_spec_GCJ='$convenience'
18411           fi
18412           archive_cmds_need_lc_GCJ=yes
18413           # This is similar to how AIX traditionally builds its shared libraries.
18414           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'
18415         fi
18416       fi
18417       ;;
18418
18419     amigaos*)
18420       case $host_cpu in
18421       powerpc)
18422             # see comment about AmigaOS4 .so support
18423             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18424             archive_expsym_cmds_GCJ=''
18425         ;;
18426       m68k)
18427             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)'
18428             hardcode_libdir_flag_spec_GCJ='-L$libdir'
18429             hardcode_minus_L_GCJ=yes
18430         ;;
18431       esac
18432       ;;
18433
18434     bsdi[45]*)
18435       export_dynamic_flag_spec_GCJ=-rdynamic
18436       ;;
18437
18438     cygwin* | mingw* | pw32* | cegcc*)
18439       # When not using gcc, we currently assume that we are using
18440       # Microsoft Visual C++.
18441       # hardcode_libdir_flag_spec is actually meaningless, as there is
18442       # no search path for DLLs.
18443       hardcode_libdir_flag_spec_GCJ=' '
18444       allow_undefined_flag_GCJ=unsupported
18445       # Tell ltmain to make .lib files, not .a files.
18446       libext=lib
18447       # Tell ltmain to make .dll files, not .so files.
18448       shrext_cmds=".dll"
18449       # FIXME: Setting linknames here is a bad hack.
18450       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
18451       # The linker will automatically build a .lib file if we build a DLL.
18452       old_archive_from_new_cmds_GCJ='true'
18453       # FIXME: Should let the user specify the lib program.
18454       old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
18455       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18456       enable_shared_with_static_runtimes_GCJ=yes
18457       ;;
18458
18459     darwin* | rhapsody*)
18460
18461
18462   archive_cmds_need_lc_GCJ=no
18463   hardcode_direct_GCJ=no
18464   hardcode_automatic_GCJ=yes
18465   hardcode_shlibpath_var_GCJ=unsupported
18466   if test "$lt_cv_ld_force_load" = "yes"; then
18467     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\"`'
18468   else
18469     whole_archive_flag_spec_GCJ=''
18470   fi
18471   link_all_deplibs_GCJ=yes
18472   allow_undefined_flag_GCJ="$_lt_dar_allow_undefined"
18473   case $cc_basename in
18474      ifort*) _lt_dar_can_shared=yes ;;
18475      *) _lt_dar_can_shared=$GCC ;;
18476   esac
18477   if test "$_lt_dar_can_shared" = "yes"; then
18478     output_verbose_link_cmd=func_echo_all
18479     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}"
18480     module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18481     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}"
18482     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}"
18483
18484   else
18485   ld_shlibs_GCJ=no
18486   fi
18487
18488       ;;
18489
18490     dgux*)
18491       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18492       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18493       hardcode_shlibpath_var_GCJ=no
18494       ;;
18495
18496     freebsd1*)
18497       ld_shlibs_GCJ=no
18498       ;;
18499
18500     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18501     # support.  Future versions do this automatically, but an explicit c++rt0.o
18502     # does not break anything, and helps significantly (at the cost of a little
18503     # extra space).
18504     freebsd2.2*)
18505       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18506       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18507       hardcode_direct_GCJ=yes
18508       hardcode_shlibpath_var_GCJ=no
18509       ;;
18510
18511     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18512     freebsd2*)
18513       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18514       hardcode_direct_GCJ=yes
18515       hardcode_minus_L_GCJ=yes
18516       hardcode_shlibpath_var_GCJ=no
18517       ;;
18518
18519     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18520     freebsd* | dragonfly*)
18521       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18522       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18523       hardcode_direct_GCJ=yes
18524       hardcode_shlibpath_var_GCJ=no
18525       ;;
18526
18527     hpux9*)
18528       if test "$GCC" = yes; then
18529         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'
18530       else
18531         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'
18532       fi
18533       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18534       hardcode_libdir_separator_GCJ=:
18535       hardcode_direct_GCJ=yes
18536
18537       # hardcode_minus_L: Not really in the search PATH,
18538       # but as the default location of the library.
18539       hardcode_minus_L_GCJ=yes
18540       export_dynamic_flag_spec_GCJ='${wl}-E'
18541       ;;
18542
18543     hpux10*)
18544       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18545         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18546       else
18547         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18548       fi
18549       if test "$with_gnu_ld" = no; then
18550         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18551         hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18552         hardcode_libdir_separator_GCJ=:
18553         hardcode_direct_GCJ=yes
18554         hardcode_direct_absolute_GCJ=yes
18555         export_dynamic_flag_spec_GCJ='${wl}-E'
18556         # hardcode_minus_L: Not really in the search PATH,
18557         # but as the default location of the library.
18558         hardcode_minus_L_GCJ=yes
18559       fi
18560       ;;
18561
18562     hpux11*)
18563       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
18564         case $host_cpu in
18565         hppa*64*)
18566           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18567           ;;
18568         ia64*)
18569           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18570           ;;
18571         *)
18572           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18573           ;;
18574         esac
18575       else
18576         case $host_cpu in
18577         hppa*64*)
18578           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18579           ;;
18580         ia64*)
18581           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18582           ;;
18583         *)
18584         archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18585           ;;
18586         esac
18587       fi
18588       if test "$with_gnu_ld" = no; then
18589         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18590         hardcode_libdir_separator_GCJ=:
18591
18592         case $host_cpu in
18593         hppa*64*|ia64*)
18594           hardcode_direct_GCJ=no
18595           hardcode_shlibpath_var_GCJ=no
18596           ;;
18597         *)
18598           hardcode_direct_GCJ=yes
18599           hardcode_direct_absolute_GCJ=yes
18600           export_dynamic_flag_spec_GCJ='${wl}-E'
18601
18602           # hardcode_minus_L: Not really in the search PATH,
18603           # but as the default location of the library.
18604           hardcode_minus_L_GCJ=yes
18605           ;;
18606         esac
18607       fi
18608       ;;
18609
18610     irix5* | irix6* | nonstopux*)
18611       if test "$GCC" = yes; then
18612         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'
18613         # Try to use the -exported_symbol ld option, if it does not
18614         # work, assume that -exports_file does not work either and
18615         # implicitly export all symbols.
18616         save_LDFLAGS="$LDFLAGS"
18617         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
18618         if test x$gcc_no_link = xyes; then
18619   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18620 fi
18621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18622 /* end confdefs.h.  */
18623 int foo(void) {}
18624 _ACEOF
18625 if ac_fn_c_try_link "$LINENO"; then :
18626   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'
18627
18628 fi
18629 rm -f core conftest.err conftest.$ac_objext \
18630     conftest$ac_exeext conftest.$ac_ext
18631         LDFLAGS="$save_LDFLAGS"
18632       else
18633         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'
18634         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'
18635       fi
18636       archive_cmds_need_lc_GCJ='no'
18637       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18638       hardcode_libdir_separator_GCJ=:
18639       inherit_rpath_GCJ=yes
18640       link_all_deplibs_GCJ=yes
18641       ;;
18642
18643     netbsd*)
18644       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18645         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18646       else
18647         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18648       fi
18649       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18650       hardcode_direct_GCJ=yes
18651       hardcode_shlibpath_var_GCJ=no
18652       ;;
18653
18654     newsos6)
18655       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18656       hardcode_direct_GCJ=yes
18657       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18658       hardcode_libdir_separator_GCJ=:
18659       hardcode_shlibpath_var_GCJ=no
18660       ;;
18661
18662     *nto* | *qnx*)
18663       ;;
18664
18665     openbsd*)
18666       if test -f /usr/libexec/ld.so; then
18667         hardcode_direct_GCJ=yes
18668         hardcode_shlibpath_var_GCJ=no
18669         hardcode_direct_absolute_GCJ=yes
18670         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18671           archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18672           archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18673           hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18674           export_dynamic_flag_spec_GCJ='${wl}-E'
18675         else
18676           case $host_os in
18677            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18678              archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18679              hardcode_libdir_flag_spec_GCJ='-R$libdir'
18680              ;;
18681            *)
18682              archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18683              hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18684              ;;
18685           esac
18686         fi
18687       else
18688         ld_shlibs_GCJ=no
18689       fi
18690       ;;
18691
18692     os2*)
18693       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18694       hardcode_minus_L_GCJ=yes
18695       allow_undefined_flag_GCJ=unsupported
18696       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'
18697       old_archive_from_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18698       ;;
18699
18700     osf3*)
18701       if test "$GCC" = yes; then
18702         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18703         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'
18704       else
18705         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18706         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'
18707       fi
18708       archive_cmds_need_lc_GCJ='no'
18709       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18710       hardcode_libdir_separator_GCJ=:
18711       ;;
18712
18713     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18714       if test "$GCC" = yes; then
18715         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18716         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'
18717         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18718       else
18719         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18720         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'
18721         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~
18722         $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'
18723
18724         # Both c and cxx compiler support -rpath directly
18725         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18726       fi
18727       archive_cmds_need_lc_GCJ='no'
18728       hardcode_libdir_separator_GCJ=:
18729       ;;
18730
18731     solaris*)
18732       no_undefined_flag_GCJ=' -z defs'
18733       if test "$GCC" = yes; then
18734         wlarc='${wl}'
18735         archive_cmds_GCJ='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18736         archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18737           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18738       else
18739         case `$CC -V 2>&1` in
18740         *"Compilers 5.0"*)
18741           wlarc=''
18742           archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18743           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18744           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18745           ;;
18746         *)
18747           wlarc='${wl}'
18748           archive_cmds_GCJ='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18749           archive_expsym_cmds_GCJ='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18750           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18751           ;;
18752         esac
18753       fi
18754       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18755       hardcode_shlibpath_var_GCJ=no
18756       case $host_os in
18757       solaris2.[0-5] | solaris2.[0-5].*) ;;
18758       *)
18759         # The compiler driver will combine and reorder linker options,
18760         # but understands `-z linker_flag'.  GCC discards it without `$wl',
18761         # but is careful enough not to reorder.
18762         # Supported since Solaris 2.6 (maybe 2.5.1?)
18763         if test "$GCC" = yes; then
18764           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18765         else
18766           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18767         fi
18768         ;;
18769       esac
18770       link_all_deplibs_GCJ=yes
18771       ;;
18772
18773     sunos4*)
18774       if test "x$host_vendor" = xsequent; then
18775         # Use $CC to link under sequent, because it throws in some extra .o
18776         # files that make .init and .fini sections work.
18777         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18778       else
18779         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18780       fi
18781       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18782       hardcode_direct_GCJ=yes
18783       hardcode_minus_L_GCJ=yes
18784       hardcode_shlibpath_var_GCJ=no
18785       ;;
18786
18787     sysv4)
18788       case $host_vendor in
18789         sni)
18790           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18791           hardcode_direct_GCJ=yes # is this really true???
18792         ;;
18793         siemens)
18794           ## LD is ld it makes a PLAMLIB
18795           ## CC just makes a GrossModule.
18796           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18797           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18798           hardcode_direct_GCJ=no
18799         ;;
18800         motorola)
18801           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18802           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18803         ;;
18804       esac
18805       runpath_var='LD_RUN_PATH'
18806       hardcode_shlibpath_var_GCJ=no
18807       ;;
18808
18809     sysv4.3*)
18810       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18811       hardcode_shlibpath_var_GCJ=no
18812       export_dynamic_flag_spec_GCJ='-Bexport'
18813       ;;
18814
18815     sysv4*MP*)
18816       if test -d /usr/nec; then
18817         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18818         hardcode_shlibpath_var_GCJ=no
18819         runpath_var=LD_RUN_PATH
18820         hardcode_runpath_var=yes
18821         ld_shlibs_GCJ=yes
18822       fi
18823       ;;
18824
18825     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18826       no_undefined_flag_GCJ='${wl}-z,text'
18827       archive_cmds_need_lc_GCJ=no
18828       hardcode_shlibpath_var_GCJ=no
18829       runpath_var='LD_RUN_PATH'
18830
18831       if test "$GCC" = yes; then
18832         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18833         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18834       else
18835         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18836         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18837       fi
18838       ;;
18839
18840     sysv5* | sco3.2v5* | sco5v6*)
18841       # Note: We can NOT use -z defs as we might desire, because we do not
18842       # link with -lc, and that would cause any symbols used from libc to
18843       # always be unresolved, which means just about no library would
18844       # ever link correctly.  If we're not using GNU ld we use -z text
18845       # though, which does catch some bad symbols but isn't as heavy-handed
18846       # as -z defs.
18847       no_undefined_flag_GCJ='${wl}-z,text'
18848       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18849       archive_cmds_need_lc_GCJ=no
18850       hardcode_shlibpath_var_GCJ=no
18851       hardcode_libdir_flag_spec_GCJ='${wl}-R,$libdir'
18852       hardcode_libdir_separator_GCJ=':'
18853       link_all_deplibs_GCJ=yes
18854       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18855       runpath_var='LD_RUN_PATH'
18856
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'
18863       fi
18864       ;;
18865
18866     uts4*)
18867       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18868       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18869       hardcode_shlibpath_var_GCJ=no
18870       ;;
18871
18872     *)
18873       ld_shlibs_GCJ=no
18874       ;;
18875     esac
18876
18877     if test x$host_vendor = xsni; then
18878       case $host in
18879       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18880         export_dynamic_flag_spec_GCJ='${wl}-Blargedynsym'
18881         ;;
18882       esac
18883     fi
18884   fi
18885
18886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
18887 $as_echo "$ld_shlibs_GCJ" >&6; }
18888 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18889
18890 with_gnu_ld_GCJ=$with_gnu_ld
18891
18892
18893
18894
18895
18896
18897 #
18898 # Do we need to explicitly link libc?
18899 #
18900 case "x$archive_cmds_need_lc_GCJ" in
18901 x|xyes)
18902   # Assume -lc should be added
18903   archive_cmds_need_lc_GCJ=yes
18904
18905   if test "$enable_shared" = yes && test "$GCC" = yes; then
18906     case $archive_cmds_GCJ in
18907     *'~'*)
18908       # FIXME: we may have to deal with multi-command sequences.
18909       ;;
18910     '$CC '*)
18911       # Test whether the compiler implicitly links with -lc since on some
18912       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18913       # to ld, don't add -lc before -lgcc.
18914       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18915 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18916 if test "${lt_cv_archive_cmds_need_lc_GCJ+set}" = set; then :
18917   $as_echo_n "(cached) " >&6
18918 else
18919   $RM conftest*
18920         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18921
18922         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18923   (eval $ac_compile) 2>&5
18924   ac_status=$?
18925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18926   test $ac_status = 0; } 2>conftest.err; then
18927           soname=conftest
18928           lib=conftest
18929           libobjs=conftest.$ac_objext
18930           deplibs=
18931           wl=$lt_prog_compiler_wl_GCJ
18932           pic_flag=$lt_prog_compiler_pic_GCJ
18933           compiler_flags=-v
18934           linker_flags=-v
18935           verstring=
18936           output_objdir=.
18937           libname=conftest
18938           lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18939           allow_undefined_flag_GCJ=
18940           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18941   (eval $archive_cmds_GCJ 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18942   ac_status=$?
18943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18944   test $ac_status = 0; }
18945           then
18946             lt_cv_archive_cmds_need_lc_GCJ=no
18947           else
18948             lt_cv_archive_cmds_need_lc_GCJ=yes
18949           fi
18950           allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18951         else
18952           cat conftest.err 1>&5
18953         fi
18954         $RM conftest*
18955
18956 fi
18957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_GCJ" >&5
18958 $as_echo "$lt_cv_archive_cmds_need_lc_GCJ" >&6; }
18959       archive_cmds_need_lc_GCJ=$lt_cv_archive_cmds_need_lc_GCJ
18960       ;;
18961     esac
18962   fi
18963   ;;
18964 esac
18965
18966
18967
18968
18969
18970
18971
18972
18973
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992
18993
18994
18995
18996
18997
18998
18999
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016
19017
19018
19019
19020
19021
19022
19023
19024
19025
19026
19027
19028
19029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19030 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19031 hardcode_action_GCJ=
19032 if test -n "$hardcode_libdir_flag_spec_GCJ" ||
19033    test -n "$runpath_var_GCJ" ||
19034    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19035
19036   # We can hardcode non-existent directories.
19037   if test "$hardcode_direct_GCJ" != no &&
19038      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19039      # have to relink, otherwise we might link with an installed library
19040      # when we should be linking with a yet-to-be-installed one
19041      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19042      test "$hardcode_minus_L_GCJ" != no; then
19043     # Linking always hardcodes the temporary library directory.
19044     hardcode_action_GCJ=relink
19045   else
19046     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19047     hardcode_action_GCJ=immediate
19048   fi
19049 else
19050   # We cannot hardcode anything, or else we can only hardcode existing
19051   # directories.
19052   hardcode_action_GCJ=unsupported
19053 fi
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
19055 $as_echo "$hardcode_action_GCJ" >&6; }
19056
19057 if test "$hardcode_action_GCJ" = relink ||
19058    test "$inherit_rpath_GCJ" = yes; then
19059   # Fast installation is not supported
19060   enable_fast_install=no
19061 elif test "$shlibpath_overrides_runpath" = yes ||
19062      test "$enable_shared" = no; then
19063   # Fast installation is not necessary
19064   enable_fast_install=needless
19065 fi
19066
19067
19068
19069
19070
19071
19072
19073 fi
19074
19075 compiler_GCJ=${GCJ-gcj}
19076 ac_ext=c
19077 ac_cpp='$CPP $CPPFLAGS'
19078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19081
19082
19083 if test "x$CC" != xcc; then
19084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
19085 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
19086 else
19087   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
19088 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
19089 fi
19090 set dummy $CC; ac_cc=`$as_echo "$2" |
19091                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19092 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
19093   $as_echo_n "(cached) " >&6
19094 else
19095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19096 /* end confdefs.h.  */
19097
19098 int
19099 main ()
19100 {
19101
19102   ;
19103   return 0;
19104 }
19105 _ACEOF
19106 # Make sure it works both with $CC and with simple cc.
19107 # We do the test twice because some compilers refuse to overwrite an
19108 # existing .o file with -o, though they will create one.
19109 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19110 rm -f conftest2.*
19111 if { { case "(($ac_try" in
19112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19113   *) ac_try_echo=$ac_try;;
19114 esac
19115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19116 $as_echo "$ac_try_echo"; } >&5
19117   (eval "$ac_try") 2>&5
19118   ac_status=$?
19119   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19120   test $ac_status = 0; } &&
19121    test -f conftest2.$ac_objext && { { case "(($ac_try" in
19122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123   *) ac_try_echo=$ac_try;;
19124 esac
19125 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19126 $as_echo "$ac_try_echo"; } >&5
19127   (eval "$ac_try") 2>&5
19128   ac_status=$?
19129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19130   test $ac_status = 0; };
19131 then
19132   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
19133   if test "x$CC" != xcc; then
19134     # Test first that cc exists at all.
19135     if { ac_try='cc -c conftest.$ac_ext >&5'
19136   { { case "(($ac_try" in
19137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19138   *) ac_try_echo=$ac_try;;
19139 esac
19140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19141 $as_echo "$ac_try_echo"; } >&5
19142   (eval "$ac_try") 2>&5
19143   ac_status=$?
19144   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19145   test $ac_status = 0; }; }; then
19146       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
19147       rm -f conftest2.*
19148       if { { case "(($ac_try" in
19149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150   *) ac_try_echo=$ac_try;;
19151 esac
19152 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19153 $as_echo "$ac_try_echo"; } >&5
19154   (eval "$ac_try") 2>&5
19155   ac_status=$?
19156   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19157   test $ac_status = 0; } &&
19158          test -f conftest2.$ac_objext && { { case "(($ac_try" in
19159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160   *) ac_try_echo=$ac_try;;
19161 esac
19162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
19163 $as_echo "$ac_try_echo"; } >&5
19164   (eval "$ac_try") 2>&5
19165   ac_status=$?
19166   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19167   test $ac_status = 0; };
19168       then
19169         # cc works too.
19170         :
19171       else
19172         # cc exists but doesn't like -o.
19173         eval ac_cv_prog_cc_${ac_cc}_c_o=no
19174       fi
19175     fi
19176   fi
19177 else
19178   eval ac_cv_prog_cc_${ac_cc}_c_o=no
19179 fi
19180 rm -f core conftest*
19181
19182 fi
19183 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
19184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19185 $as_echo "yes" >&6; }
19186 else
19187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19188 $as_echo "no" >&6; }
19189
19190 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
19191
19192 fi
19193
19194 # FIXME: we rely on the cache variable name because
19195 # there is no other way.
19196 set dummy $CC
19197 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
19198 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
19199 if test "$am_t" != yes; then
19200    # Losing compiler, so override with the script.
19201    # FIXME: It is wrong to rewrite CC.
19202    # But if we don't then we get into trouble of one sort or another.
19203    # A longer-term fix would be to have automake use am__CC in this case,
19204    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
19205    CC="$am_aux_dir/compile $CC"
19206 fi
19207
19208
19209
19210
19211
19212 subdirs="$subdirs classpath libltdl"
19213
19214
19215 # The -no-testsuite modules omit the test subdir.
19216  if test -d $srcdir/testsuite; then
19217   TESTSUBDIR_TRUE=
19218   TESTSUBDIR_FALSE='#'
19219 else
19220   TESTSUBDIR_TRUE='#'
19221   TESTSUBDIR_FALSE=
19222 fi
19223
19224
19225 # Should the runtime set system properties by examining the
19226 # environment variable GCJ_PROPERTIES?
19227 # Check whether --enable-getenv-properties was given.
19228 if test "${enable_getenv_properties+set}" = set; then :
19229   enableval=$enable_getenv_properties;
19230 fi
19231
19232
19233 # Whether GCJ_PROPERTIES is used depends on the target.
19234 if test -z "$enable_getenv_properties"; then
19235    enable_getenv_properties=${enable_getenv_properties_default-yes}
19236 fi
19237 if test "$enable_getenv_properties" = no; then
19238
19239 $as_echo "#define DISABLE_GETENV_PROPERTIES 1" >>confdefs.h
19240
19241 fi
19242
19243 # Whether we should use arguments to main()
19244 if test -z "$enable_main_args"; then
19245    enable_main_args=${enable_main_args_default-yes}
19246 fi
19247 if test "$enable_main_args" = no; then
19248
19249 $as_echo "#define DISABLE_MAIN_ARGS 1" >>confdefs.h
19250
19251 fi
19252
19253
19254 # Should we use hashtable-based synchronization?
19255 # Currently works only for Linux X86/ia64
19256 # Typically faster and more space-efficient
19257 # Check whether --enable-hash-synchronization was given.
19258 if test "${enable_hash_synchronization+set}" = set; then :
19259   enableval=$enable_hash_synchronization;
19260 fi
19261
19262
19263 if test -z "$enable_hash_synchronization"; then
19264    enable_hash_synchronization=$enable_hash_synchronization_default
19265 fi
19266
19267
19268 install_ecj_jar=no
19269 ECJ_BUILD_JAR=
19270 ECJ_JAR=
19271
19272 # Check whether --with-ecj-jar was given.
19273 if test "${with_ecj_jar+set}" = set; then :
19274   withval=$with_ecj_jar; ECJ_JAR=$withval
19275 else
19276   if test -f $multi_basedir/ecj.jar; then
19277            ECJ_BUILD_JAR=$multi_basedir/ecj.jar
19278            ECJ_JAR='$(jardir)/ecj.jar'
19279            install_ecj_jar=yes
19280          fi
19281 fi
19282
19283
19284
19285  if test "$ECJ_JAR" != ""; then
19286   BUILD_ECJ1_TRUE=
19287   BUILD_ECJ1_FALSE='#'
19288 else
19289   BUILD_ECJ1_TRUE='#'
19290   BUILD_ECJ1_FALSE=
19291 fi
19292
19293  if test $install_ecj_jar = yes; then
19294   INSTALL_ECJ_JAR_TRUE=
19295   INSTALL_ECJ_JAR_FALSE='#'
19296 else
19297   INSTALL_ECJ_JAR_TRUE='#'
19298   INSTALL_ECJ_JAR_FALSE=
19299 fi
19300
19301
19302
19303 # Check whether --with-java-home was given.
19304 if test "${with_java_home+set}" = set; then :
19305   withval=$with_java_home; JAVA_HOME="${withval}"
19306 else
19307   JAVA_HOME=""
19308 fi
19309
19310  if test ! -z "$JAVA_HOME"; then
19311   JAVA_HOME_SET_TRUE=
19312   JAVA_HOME_SET_FALSE='#'
19313 else
19314   JAVA_HOME_SET_TRUE='#'
19315   JAVA_HOME_SET_FALSE=
19316 fi
19317
19318
19319
19320 suppress_libgcj_bc=no
19321 # Check whether --enable-libgcj-bc was given.
19322 if test "${enable_libgcj_bc+set}" = set; then :
19323   enableval=$enable_libgcj_bc; if test "$enable_libgcj_bc" = "no"; then
19324      suppress_libgcj_bc=yes
19325    fi
19326 fi
19327
19328  if test "$suppress_libgcj_bc" = "yes"; then
19329   SUPPRESS_LIBGCJ_BC_TRUE=
19330   SUPPRESS_LIBGCJ_BC_FALSE='#'
19331 else
19332   SUPPRESS_LIBGCJ_BC_TRUE='#'
19333   SUPPRESS_LIBGCJ_BC_FALSE=
19334 fi
19335
19336
19337 build_libgcj_reduced_reflection=no
19338 # Check whether --enable-reduced-reflection was given.
19339 if test "${enable_reduced_reflection+set}" = set; then :
19340   enableval=$enable_reduced_reflection; if test "$enable_reduced_reflection" = "yes"; then
19341      build_libgcj_reduced_reflection=yes
19342    fi
19343 fi
19344
19345  if test "$build_libgcj_reduced_reflection" = "yes"; then
19346   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE=
19347   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE='#'
19348 else
19349   BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE='#'
19350   BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE=
19351 fi
19352
19353
19354 # What is the native OS API for MinGW?
19355
19356 # Check whether --with-win32-nlsapi was given.
19357 if test "${with_win32_nlsapi+set}" = set; then :
19358   withval=$with_win32_nlsapi; case "${withval}" in
19359   ansi) with_win32_nlsapi=ansi ;;
19360   unicows) with_win32_nlsapi=unicows ;;
19361   unicode) with_win32_nlsapi=unicode ;;
19362   *) as_fn_error "Bad value ${withval} for --with-win32-nlsapi." "$LINENO" 5 ;;
19363 esac
19364 else
19365   with_win32_nlsapi=ansi
19366 fi
19367
19368
19369 case "${with_win32_nlsapi}" in
19370   unicows | unicode)
19371
19372 $as_echo "#define MINGW_LIBGCJ_UNICODE 1" >>confdefs.h
19373
19374     ;;
19375 esac
19376
19377 # configure.host sets slow_pthread_self if the synchronization code should
19378 # try to avoid pthread_self calls by caching thread IDs in a hashtable.
19379 if test "${slow_pthread_self}" = "yes"; then
19380
19381 $as_echo "#define SLOW_PTHREAD_SELF 1" >>confdefs.h
19382
19383 fi
19384
19385 # Check for gc debugging.  This option is handled both here and in the GC.
19386 # Check whether --enable-gc-debug was given.
19387 if test "${enable_gc_debug+set}" = set; then :
19388   enableval=$enable_gc_debug;  if test "$enable_gc_debug" = "yes"; then
19389
19390 $as_echo "#define LIBGCJ_GC_DEBUG 1" >>confdefs.h
19391
19392   fi
19393 fi
19394
19395
19396 # See if the user has the interpreter included.
19397 # Check whether --enable-interpreter was given.
19398 if test "${enable_interpreter+set}" = set; then :
19399   enableval=$enable_interpreter; if test "$enable_interpreter" = yes; then
19400     # This can also be set in configure.host.
19401     libgcj_interpreter=yes
19402   elif test "$enable_interpreter" = no; then
19403     libgcj_interpreter=no
19404   fi
19405 fi
19406
19407
19408 if test "$libgcj_interpreter" = yes; then
19409
19410 $as_echo "#define INTERPRETER 1" >>confdefs.h
19411
19412 fi
19413 INTERPRETER="$libgcj_interpreter"
19414
19415  if test "$libgcj_interpreter" = yes; then
19416   INTERPRETER_TRUE=
19417   INTERPRETER_FALSE='#'
19418 else
19419   INTERPRETER_TRUE='#'
19420   INTERPRETER_FALSE=
19421 fi
19422
19423
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
19425 $as_echo_n "checking for exception model to use... " >&6; }
19426 ac_ext=cpp
19427 ac_cpp='$CXXCPP $CPPFLAGS'
19428 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19429 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19430 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19431
19432 # Check whether --enable-sjlj-exceptions was given.
19433 if test "${enable_sjlj_exceptions+set}" = set; then :
19434   enableval=$enable_sjlj_exceptions; :
19435 else
19436   cat > conftest.$ac_ext << EOF
19437 #line 19437 "configure"
19438 struct S { ~S(); };
19439 void bar();
19440 void foo()
19441 {
19442   S s;
19443   bar();
19444 }
19445 EOF
19446 old_CXXFLAGS="$CXXFLAGS"
19447 CXXFLAGS=-S
19448 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19449   (eval $ac_compile) 2>&5
19450   ac_status=$?
19451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19452   test $ac_status = 0; }; then
19453   if grep _Unwind_SjLj_Resume conftest.s >/dev/null 2>&1 ; then
19454     enable_sjlj_exceptions=yes
19455   elif grep _Unwind_Resume conftest.s >/dev/null 2>&1 ; then
19456     enable_sjlj_exceptions=no
19457   elif grep __cxa_end_cleanup conftest.s >/dev/null 2>&1 ; then
19458     # ARM EH ABI.
19459     enable_sjlj_exceptions=no
19460   fi
19461 fi
19462 CXXFLAGS="$old_CXXFLAGS"
19463 rm -f conftest*
19464 fi
19465
19466 if test x$enable_sjlj_exceptions = xyes; then
19467
19468 $as_echo "#define SJLJ_EXCEPTIONS 1" >>confdefs.h
19469
19470   ac_exception_model_name=sjlj
19471 elif test x$enable_sjlj_exceptions = xno; then
19472   ac_exception_model_name="call frame"
19473 else
19474   as_fn_error "unable to detect exception model" "$LINENO" 5
19475 fi
19476 ac_ext=c
19477 ac_cpp='$CPP $CPPFLAGS'
19478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19481
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_exception_model_name" >&5
19483 $as_echo "$ac_exception_model_name" >&6; }
19484
19485 # If we are non using SJLJ exceptions, and this host does not have support
19486 # for unwinding from a signal handler, enable checked dereferences and divides.
19487 if test $can_unwind_signal = no && test $enable_sjlj_exceptions = no; then
19488   CHECKREFSPEC=-fcheck-references
19489   DIVIDESPEC=-fuse-divide-subroutine
19490   EXCEPTIONSPEC=
19491 fi
19492
19493 # See if the user wants to disable java.net.  This is the mildly
19494 # ugly way that we admit that target-side configuration sucks.
19495 # Check whether --enable-java-net was given.
19496 if test "${enable_java_net+set}" = set; then :
19497   enableval=$enable_java_net;
19498 fi
19499
19500
19501 # Whether java.net is built by default can depend on the target.
19502 if test -z "$enable_java_net"; then
19503    enable_java_net=${enable_java_net_default-yes}
19504 fi
19505 if test "$enable_java_net" = no; then
19506
19507 $as_echo "#define DISABLE_JAVA_NET 1" >>confdefs.h
19508
19509 fi
19510
19511 # See if the user wants to configure without libffi.  Some
19512 # architectures don't support it, and default values are set in
19513 # configure.host.
19514
19515 # Check whether --with-libffi was given.
19516 if test "${with_libffi+set}" = set; then :
19517   withval=$with_libffi; :
19518 else
19519   with_libffi=${with_libffi_default-yes}
19520 fi
19521
19522
19523 LIBFFI=
19524 LIBFFIINCS=
19525 if test "$with_libffi" != no; then
19526
19527 $as_echo "#define USE_LIBFFI 1" >>confdefs.h
19528
19529    LIBFFI=../libffi/libffi_convenience.la
19530    LIBFFIINCS='-I$(top_srcdir)/../libffi/include -I../libffi/include'
19531 fi
19532
19533
19534
19535 # See if the user wants to disable JVMPI support.
19536 # Check whether --enable-jvmpi was given.
19537 if test "${enable_jvmpi+set}" = set; then :
19538   enableval=$enable_jvmpi;
19539 fi
19540
19541
19542 if test "$enable_jvmpi" != no; then
19543
19544 $as_echo "#define ENABLE_JVMPI 1" >>confdefs.h
19545
19546 fi
19547
19548 # If the target is an eCos system, use the appropriate eCos
19549 # I/O routines.
19550 # FIXME: this should not be a local option but a global target
19551 # system; at present there is no eCos target.
19552 TARGET_ECOS=${PROCESS-"no"}
19553
19554 # Check whether --with-ecos was given.
19555 if test "${with_ecos+set}" = set; then :
19556   withval=$with_ecos; TARGET_ECOS="$with_ecos"
19557
19558 fi
19559
19560
19561 case "$TARGET_ECOS" in
19562    no) case "$host" in
19563       *mingw*)
19564             PLATFORM=Win32
19565             PLATFORMNET=Win32
19566             PLATFORMH=win32.h
19567
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 'ld' is at least 2.13" >&5
19569 $as_echo_n "checking whether 'ld' is at least 2.13... " >&6; }
19570 LD_PROG=`$CC --print-prog-name=ld`
19571 LD_VERSION=`$LD_PROG --version`
19572 LD_VERSION_MAJOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 1 | cut -d ' ' -f 4`
19573 LD_VERSION_MINOR=`echo "$LD_VERSION" | head -1 | cut -d '.' -f 2`
19574 if expr "$LD_VERSION_MAJOR" \> 2 > /dev/null; then
19575   LD_OK="ok"
19576 else
19577   if expr "$LD_VERSION_MAJOR" = 2 && expr "$LD_VERSION_MINOR" \>= 13 > /dev/null; then
19578     LD_OK="ok"
19579   fi
19580 fi
19581 if test "x$LD_OK" != x; then
19582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19583 $as_echo "yes; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19584 else
19585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&5
19586 $as_echo "no; major=$LD_VERSION_MAJOR, minor=$LD_VERSION_MINOR" >&6; }
19587   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&5
19588 $as_echo "$as_me: WARNING: ld <2.13 detected; enabling JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS hack..." >&2;}
19589
19590 $as_echo "#define JV_LINKER_CANNOT_8BYTE_ALIGN_STATICS 1" >>confdefs.h
19591
19592 fi
19593       ;;
19594       *)
19595             PLATFORM=Posix
19596             PLATFORMNET=Posix
19597             PLATFORMH=posix.h
19598       ;;
19599       esac
19600       ;;
19601    *)
19602       PLATFORM=Ecos
19603       PLATFORMNET=NoNet
19604
19605 $as_echo "#define ECOS 1" >>confdefs.h
19606
19607       PLATFORMH=posix.h
19608       ;;
19609 esac
19610
19611 ac_config_links="$ac_config_links include/platform.h:include/$PLATFORMH"
19612
19613
19614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19615 /* end confdefs.h.  */
19616 #include <stdint.h>
19617
19618 _ACEOF
19619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19620   $EGREP "uint32_t" >/dev/null 2>&1; then :
19621
19622 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19623
19624 fi
19625 rm -f conftest*
19626
19627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19628 /* end confdefs.h.  */
19629 #include <inttypes.h>
19630
19631 _ACEOF
19632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19633   $EGREP "uint32_t" >/dev/null 2>&1; then :
19634
19635 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
19636
19637 fi
19638 rm -f conftest*
19639
19640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19641 /* end confdefs.h.  */
19642 #include <sys/types.h>
19643
19644 _ACEOF
19645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19646   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19647
19648 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19649
19650 fi
19651 rm -f conftest*
19652
19653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19654 /* end confdefs.h.  */
19655 #include <sys/config.h>
19656
19657 _ACEOF
19658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19659   $EGREP "u_int32_t" >/dev/null 2>&1; then :
19660
19661 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
19662
19663 fi
19664 rm -f conftest*
19665
19666
19667  if test "$PLATFORM" = Win32; then
19668   USING_WIN32_PLATFORM_TRUE=
19669   USING_WIN32_PLATFORM_FALSE='#'
19670 else
19671   USING_WIN32_PLATFORM_TRUE='#'
19672   USING_WIN32_PLATFORM_FALSE=
19673 fi
19674
19675  if test "$PLATFORM" = Posix || test "$PLATFORM" = Ecos; then
19676   USING_POSIX_PLATFORM_TRUE=
19677   USING_POSIX_PLATFORM_FALSE='#'
19678 else
19679   USING_POSIX_PLATFORM_TRUE='#'
19680   USING_POSIX_PLATFORM_FALSE=
19681 fi
19682
19683
19684 case "$host" in
19685   *-darwin*) DARWIN_CRT=true ;;
19686   *) DARWIN_CRT=false ;;
19687 esac
19688  if $DARWIN_CRT; then
19689   USING_DARWIN_CRT_TRUE=
19690   USING_DARWIN_CRT_FALSE='#'
19691 else
19692   USING_DARWIN_CRT_TRUE='#'
19693   USING_DARWIN_CRT_FALSE=
19694 fi
19695
19696
19697 # This may not be defined in a non-ANS conformant embedded system.
19698 # FIXME: Should these case a runtime exception in that case?
19699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19700 /* end confdefs.h.  */
19701 #include <time.h>
19702
19703 _ACEOF
19704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19705   $EGREP "localtime" >/dev/null 2>&1; then :
19706
19707 $as_echo "#define HAVE_LOCALTIME 1" >>confdefs.h
19708
19709 fi
19710 rm -f conftest*
19711
19712
19713 # Create the subdirectory for natFile.cc, or the attempt
19714 # to create the link will fail.
19715 test -d java || mkdir java
19716 test -d java/io || mkdir java/io
19717 test -d gnu || mkdir gnu
19718 ac_config_links="$ac_config_links java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc"
19719
19720
19721 # Likewise for natConcreteProcess.cc.
19722 test -d java/lang || mkdir java/lang
19723 ac_config_links="$ac_config_links java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc"
19724
19725
19726 # Likewise for natVMInetAddress.cc and natVMNetworkInterface.cc.
19727 test -d java/net || mkdir java/net
19728 ac_config_links="$ac_config_links java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc"
19729
19730 ac_config_links="$ac_config_links java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc"
19731
19732
19733 # Likewise for natPlainSocketImpl.cc and natPlainDatagramSocketImpl.cc.
19734 test -d gnu/java || mkdir gnu/java
19735 test -d gnu/java/net || mkdir gnu/java/net
19736 ac_config_links="$ac_config_links gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc"
19737
19738 ac_config_links="$ac_config_links gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc"
19739
19740
19741 # Likewise for natVMPipe.cc and natVMSelector.cc.
19742 test -d gnu/java/nio || mkdir gnu/java/nio
19743 ac_config_links="$ac_config_links gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc"
19744
19745 ac_config_links="$ac_config_links gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc"
19746
19747
19748 # Likewise for natFileChannelImpl.cc
19749 test -d gnu/java/nio/channels || mkdir gnu/java/nio/channels
19750 ac_config_links="$ac_config_links gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc"
19751
19752
19753 # Likewise for natVMSecureRandom.cc
19754 test -d gnu/java/security || mkdir gnu/java/security
19755 test -d gnu/java/security/jce || mkdir gnu/java/security/jce
19756 test -d gnu/java/security/jce/prng || mkdir gnu/java/security/jce/prng
19757 ac_config_links="$ac_config_links gnu/java/security/jce/prng/natVMSecureRandom.cc:gnu/java/security/jce/prng/natVMSecureRandom${FILE-${PLATFORM}}.cc"
19758
19759
19760 case "${host}" in
19761     *mingw*)
19762       SYSTEMSPEC="-lgdi32 -lws2_32"
19763       if test "${with_win32_nlsapi}" = "unicows"; then
19764         SYSTEMSPEC="-lunicows $SYSTEMSPEC"
19765       fi
19766     ;;
19767     *-*-darwin[912]*)
19768       SYSTEMSPEC="%{!Zdynamiclib:%{!Zbundle:-allow_stack_execute}}"
19769     ;;
19770     *)
19771       SYSTEMSPEC=
19772     ;;
19773 esac
19774
19775
19776
19777 # Check whether --with-system-zlib was given.
19778 if test "${with_system_zlib+set}" = set; then :
19779   withval=$with_system_zlib;
19780 fi
19781
19782 ZLIBSPEC=
19783
19784 ZLIBTESTSPEC=
19785
19786
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19788 $as_echo_n "checking for X... " >&6; }
19789
19790
19791 # Check whether --with-x was given.
19792 if test "${with_x+set}" = set; then :
19793   withval=$with_x;
19794 fi
19795
19796 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19797 if test "x$with_x" = xno; then
19798   # The user explicitly disabled X.
19799   have_x=disabled
19800 else
19801   case $x_includes,$x_libraries in #(
19802     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
19803     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
19804   $as_echo_n "(cached) " >&6
19805 else
19806   # One or both of the vars are not set, and there is no cached value.
19807 ac_x_includes=no ac_x_libraries=no
19808 rm -f -r conftest.dir
19809 if mkdir conftest.dir; then
19810   cd conftest.dir
19811   cat >Imakefile <<'_ACEOF'
19812 incroot:
19813         @echo incroot='${INCROOT}'
19814 usrlibdir:
19815         @echo usrlibdir='${USRLIBDIR}'
19816 libdir:
19817         @echo libdir='${LIBDIR}'
19818 _ACEOF
19819   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19820     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19821     for ac_var in incroot usrlibdir libdir; do
19822       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19823     done
19824     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19825     for ac_extension in a so sl dylib la dll; do
19826       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19827          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19828         ac_im_usrlibdir=$ac_im_libdir; break
19829       fi
19830     done
19831     # Screen out bogus values from the imake configuration.  They are
19832     # bogus both because they are the default anyway, and because
19833     # using them would break gcc on systems where it needs fixed includes.
19834     case $ac_im_incroot in
19835         /usr/include) ac_x_includes= ;;
19836         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19837     esac
19838     case $ac_im_usrlibdir in
19839         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19840         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19841     esac
19842   fi
19843   cd ..
19844   rm -f -r conftest.dir
19845 fi
19846
19847 # Standard set of common directories for X headers.
19848 # Check X11 before X11Rn because it is often a symlink to the current release.
19849 ac_x_header_dirs='
19850 /usr/X11/include
19851 /usr/X11R7/include
19852 /usr/X11R6/include
19853 /usr/X11R5/include
19854 /usr/X11R4/include
19855
19856 /usr/include/X11
19857 /usr/include/X11R7
19858 /usr/include/X11R6
19859 /usr/include/X11R5
19860 /usr/include/X11R4
19861
19862 /usr/local/X11/include
19863 /usr/local/X11R7/include
19864 /usr/local/X11R6/include
19865 /usr/local/X11R5/include
19866 /usr/local/X11R4/include
19867
19868 /usr/local/include/X11
19869 /usr/local/include/X11R7
19870 /usr/local/include/X11R6
19871 /usr/local/include/X11R5
19872 /usr/local/include/X11R4
19873
19874 /usr/X386/include
19875 /usr/x386/include
19876 /usr/XFree86/include/X11
19877
19878 /usr/include
19879 /usr/local/include
19880 /usr/unsupported/include
19881 /usr/athena/include
19882 /usr/local/x11r5/include
19883 /usr/lpp/Xamples/include
19884
19885 /usr/openwin/include
19886 /usr/openwin/share/include'
19887
19888 if test "$ac_x_includes" = no; then
19889   # Guess where to find include files, by looking for Xlib.h.
19890   # First, try using that file with no special directory specified.
19891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h.  */
19893 #include <X11/Xlib.h>
19894 _ACEOF
19895 if ac_fn_c_try_cpp "$LINENO"; then :
19896   # We can compile using X headers with no special include directory.
19897 ac_x_includes=
19898 else
19899   for ac_dir in $ac_x_header_dirs; do
19900   if test -r "$ac_dir/X11/Xlib.h"; then
19901     ac_x_includes=$ac_dir
19902     break
19903   fi
19904 done
19905 fi
19906 rm -f conftest.err conftest.$ac_ext
19907 fi # $ac_x_includes = no
19908
19909 if test "$ac_x_libraries" = no; then
19910   # Check for the libraries.
19911   # See if we find them without any special options.
19912   # Don't add to $LIBS permanently.
19913   ac_save_LIBS=$LIBS
19914   LIBS="-lX11 $LIBS"
19915   if test x$gcc_no_link = xyes; then
19916   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19917 fi
19918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19919 /* end confdefs.h.  */
19920 #include <X11/Xlib.h>
19921 int
19922 main ()
19923 {
19924 XrmInitialize ()
19925   ;
19926   return 0;
19927 }
19928 _ACEOF
19929 if ac_fn_c_try_link "$LINENO"; then :
19930   LIBS=$ac_save_LIBS
19931 # We can link X programs with no special library path.
19932 ac_x_libraries=
19933 else
19934   LIBS=$ac_save_LIBS
19935 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19936 do
19937   # Don't even attempt the hair of trying to link an X program!
19938   for ac_extension in a so sl dylib la dll; do
19939     if test -r "$ac_dir/libX11.$ac_extension"; then
19940       ac_x_libraries=$ac_dir
19941       break 2
19942     fi
19943   done
19944 done
19945 fi
19946 rm -f core conftest.err conftest.$ac_objext \
19947     conftest$ac_exeext conftest.$ac_ext
19948 fi # $ac_x_libraries = no
19949
19950 case $ac_x_includes,$ac_x_libraries in #(
19951   no,* | *,no | *\'*)
19952     # Didn't find X, or a directory has "'" in its name.
19953     ac_cv_have_x="have_x=no";; #(
19954   *)
19955     # Record where we found X for the cache.
19956     ac_cv_have_x="have_x=yes\
19957         ac_x_includes='$ac_x_includes'\
19958         ac_x_libraries='$ac_x_libraries'"
19959 esac
19960 fi
19961 ;; #(
19962     *) have_x=yes;;
19963   esac
19964   eval "$ac_cv_have_x"
19965 fi # $with_x != no
19966
19967 if test "$have_x" != yes; then
19968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19969 $as_echo "$have_x" >&6; }
19970   no_x=yes
19971 else
19972   # If each of the values was on the command line, it overrides each guess.
19973   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19974   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19975   # Update the cache value to reflect the command line values.
19976   ac_cv_have_x="have_x=yes\
19977         ac_x_includes='$x_includes'\
19978         ac_x_libraries='$x_libraries'"
19979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19980 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19981 fi
19982
19983 if test "$no_x" = yes; then
19984   # Not all programs may use this symbol, but it does not hurt to define it.
19985
19986 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19987
19988   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19989 else
19990   if test -n "$x_includes"; then
19991     X_CFLAGS="$X_CFLAGS -I$x_includes"
19992   fi
19993
19994   # It would also be nice to do this for all -L options, not just this one.
19995   if test -n "$x_libraries"; then
19996     X_LIBS="$X_LIBS -L$x_libraries"
19997     # For Solaris; some versions of Sun CC require a space after -R and
19998     # others require no space.  Words are not sufficient . . . .
19999     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
20000 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
20001     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20002     ac_xsave_c_werror_flag=$ac_c_werror_flag
20003     ac_c_werror_flag=yes
20004     if test x$gcc_no_link = xyes; then
20005   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20006 fi
20007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20008 /* end confdefs.h.  */
20009
20010 int
20011 main ()
20012 {
20013
20014   ;
20015   return 0;
20016 }
20017 _ACEOF
20018 if ac_fn_c_try_link "$LINENO"; then :
20019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20020 $as_echo "no" >&6; }
20021        X_LIBS="$X_LIBS -R$x_libraries"
20022 else
20023   LIBS="$ac_xsave_LIBS -R $x_libraries"
20024        if test x$gcc_no_link = xyes; then
20025   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20026 fi
20027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20028 /* end confdefs.h.  */
20029
20030 int
20031 main ()
20032 {
20033
20034   ;
20035   return 0;
20036 }
20037 _ACEOF
20038 if ac_fn_c_try_link "$LINENO"; then :
20039   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20040 $as_echo "yes" >&6; }
20041           X_LIBS="$X_LIBS -R $x_libraries"
20042 else
20043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
20044 $as_echo "neither works" >&6; }
20045 fi
20046 rm -f core conftest.err conftest.$ac_objext \
20047     conftest$ac_exeext conftest.$ac_ext
20048 fi
20049 rm -f core conftest.err conftest.$ac_objext \
20050     conftest$ac_exeext conftest.$ac_ext
20051     ac_c_werror_flag=$ac_xsave_c_werror_flag
20052     LIBS=$ac_xsave_LIBS
20053   fi
20054
20055   # Check for system-dependent libraries X programs must link with.
20056   # Do this before checking for the system-independent R6 libraries
20057   # (-lICE), since we may need -lsocket or whatever for X linking.
20058
20059   if test "$ISC" = yes; then
20060     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20061   else
20062     # Martyn Johnson says this is needed for Ultrix, if the X
20063     # libraries were built with DECnet support.  And Karl Berry says
20064     # the Alpha needs dnet_stub (dnet does not exist).
20065     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20066     if test x$gcc_no_link = xyes; then
20067   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20068 fi
20069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20070 /* end confdefs.h.  */
20071
20072 /* Override any GCC internal prototype to avoid an error.
20073    Use char because int might match the return type of a GCC
20074    builtin and then its argument prototype would still apply.  */
20075 #ifdef __cplusplus
20076 extern "C"
20077 #endif
20078 char XOpenDisplay ();
20079 int
20080 main ()
20081 {
20082 return XOpenDisplay ();
20083   ;
20084   return 0;
20085 }
20086 _ACEOF
20087 if ac_fn_c_try_link "$LINENO"; then :
20088
20089 else
20090   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20091 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20092 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
20093   $as_echo_n "(cached) " >&6
20094 else
20095   ac_check_lib_save_LIBS=$LIBS
20096 LIBS="-ldnet  $LIBS"
20097 if test x$gcc_no_link = xyes; then
20098   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20099 fi
20100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20101 /* end confdefs.h.  */
20102
20103 /* Override any GCC internal prototype to avoid an error.
20104    Use char because int might match the return type of a GCC
20105    builtin and then its argument prototype would still apply.  */
20106 #ifdef __cplusplus
20107 extern "C"
20108 #endif
20109 char dnet_ntoa ();
20110 int
20111 main ()
20112 {
20113 return dnet_ntoa ();
20114   ;
20115   return 0;
20116 }
20117 _ACEOF
20118 if ac_fn_c_try_link "$LINENO"; then :
20119   ac_cv_lib_dnet_dnet_ntoa=yes
20120 else
20121   ac_cv_lib_dnet_dnet_ntoa=no
20122 fi
20123 rm -f core conftest.err conftest.$ac_objext \
20124     conftest$ac_exeext conftest.$ac_ext
20125 LIBS=$ac_check_lib_save_LIBS
20126 fi
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20128 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20129 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
20130   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20131 fi
20132
20133     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20134       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20135 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20136 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
20137   $as_echo_n "(cached) " >&6
20138 else
20139   ac_check_lib_save_LIBS=$LIBS
20140 LIBS="-ldnet_stub  $LIBS"
20141 if test x$gcc_no_link = xyes; then
20142   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20143 fi
20144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20145 /* end confdefs.h.  */
20146
20147 /* Override any GCC internal prototype to avoid an error.
20148    Use char because int might match the return type of a GCC
20149    builtin and then its argument prototype would still apply.  */
20150 #ifdef __cplusplus
20151 extern "C"
20152 #endif
20153 char dnet_ntoa ();
20154 int
20155 main ()
20156 {
20157 return dnet_ntoa ();
20158   ;
20159   return 0;
20160 }
20161 _ACEOF
20162 if ac_fn_c_try_link "$LINENO"; then :
20163   ac_cv_lib_dnet_stub_dnet_ntoa=yes
20164 else
20165   ac_cv_lib_dnet_stub_dnet_ntoa=no
20166 fi
20167 rm -f core conftest.err conftest.$ac_objext \
20168     conftest$ac_exeext conftest.$ac_ext
20169 LIBS=$ac_check_lib_save_LIBS
20170 fi
20171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20172 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20173 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
20174   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20175 fi
20176
20177     fi
20178 fi
20179 rm -f core conftest.err conftest.$ac_objext \
20180     conftest$ac_exeext conftest.$ac_ext
20181     LIBS="$ac_xsave_LIBS"
20182
20183     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20184     # to get the SysV transport functions.
20185     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20186     # needs -lnsl.
20187     # The nsl library prevents programs from opening the X display
20188     # on Irix 5.2, according to T.E. Dickey.
20189     # The functions gethostbyname, getservbyname, and inet_addr are
20190     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20191     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20192 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
20193
20194 fi
20195
20196     if test $ac_cv_func_gethostbyname = no; then
20197       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20198 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20199 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
20200   $as_echo_n "(cached) " >&6
20201 else
20202   ac_check_lib_save_LIBS=$LIBS
20203 LIBS="-lnsl  $LIBS"
20204 if test x$gcc_no_link = xyes; then
20205   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20206 fi
20207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20208 /* end confdefs.h.  */
20209
20210 /* Override any GCC internal prototype to avoid an error.
20211    Use char because int might match the return type of a GCC
20212    builtin and then its argument prototype would still apply.  */
20213 #ifdef __cplusplus
20214 extern "C"
20215 #endif
20216 char gethostbyname ();
20217 int
20218 main ()
20219 {
20220 return gethostbyname ();
20221   ;
20222   return 0;
20223 }
20224 _ACEOF
20225 if ac_fn_c_try_link "$LINENO"; then :
20226   ac_cv_lib_nsl_gethostbyname=yes
20227 else
20228   ac_cv_lib_nsl_gethostbyname=no
20229 fi
20230 rm -f core conftest.err conftest.$ac_objext \
20231     conftest$ac_exeext conftest.$ac_ext
20232 LIBS=$ac_check_lib_save_LIBS
20233 fi
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20235 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20236 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
20237   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20238 fi
20239
20240       if test $ac_cv_lib_nsl_gethostbyname = no; then
20241         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20242 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20243 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
20244   $as_echo_n "(cached) " >&6
20245 else
20246   ac_check_lib_save_LIBS=$LIBS
20247 LIBS="-lbsd  $LIBS"
20248 if test x$gcc_no_link = xyes; then
20249   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20250 fi
20251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20252 /* end confdefs.h.  */
20253
20254 /* Override any GCC internal prototype to avoid an error.
20255    Use char because int might match the return type of a GCC
20256    builtin and then its argument prototype would still apply.  */
20257 #ifdef __cplusplus
20258 extern "C"
20259 #endif
20260 char gethostbyname ();
20261 int
20262 main ()
20263 {
20264 return gethostbyname ();
20265   ;
20266   return 0;
20267 }
20268 _ACEOF
20269 if ac_fn_c_try_link "$LINENO"; then :
20270   ac_cv_lib_bsd_gethostbyname=yes
20271 else
20272   ac_cv_lib_bsd_gethostbyname=no
20273 fi
20274 rm -f core conftest.err conftest.$ac_objext \
20275     conftest$ac_exeext conftest.$ac_ext
20276 LIBS=$ac_check_lib_save_LIBS
20277 fi
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20279 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20280 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
20281   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20282 fi
20283
20284       fi
20285     fi
20286
20287     # lieder@skyler.mavd.honeywell.com says without -lsocket,
20288     # socket/setsockopt and other routines are undefined under SCO ODT
20289     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
20290     # on later versions), says Simon Leinen: it contains gethostby*
20291     # variants that don't use the name server (or something).  -lsocket
20292     # must be given before -lnsl if both are needed.  We assume that
20293     # if connect needs -lnsl, so does gethostbyname.
20294     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20295 if test "x$ac_cv_func_connect" = x""yes; then :
20296
20297 fi
20298
20299     if test $ac_cv_func_connect = no; then
20300       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20301 $as_echo_n "checking for connect in -lsocket... " >&6; }
20302 if test "${ac_cv_lib_socket_connect+set}" = set; then :
20303   $as_echo_n "(cached) " >&6
20304 else
20305   ac_check_lib_save_LIBS=$LIBS
20306 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20307 if test x$gcc_no_link = xyes; then
20308   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20309 fi
20310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20311 /* end confdefs.h.  */
20312
20313 /* Override any GCC internal prototype to avoid an error.
20314    Use char because int might match the return type of a GCC
20315    builtin and then its argument prototype would still apply.  */
20316 #ifdef __cplusplus
20317 extern "C"
20318 #endif
20319 char connect ();
20320 int
20321 main ()
20322 {
20323 return connect ();
20324   ;
20325   return 0;
20326 }
20327 _ACEOF
20328 if ac_fn_c_try_link "$LINENO"; then :
20329   ac_cv_lib_socket_connect=yes
20330 else
20331   ac_cv_lib_socket_connect=no
20332 fi
20333 rm -f core conftest.err conftest.$ac_objext \
20334     conftest$ac_exeext conftest.$ac_ext
20335 LIBS=$ac_check_lib_save_LIBS
20336 fi
20337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20338 $as_echo "$ac_cv_lib_socket_connect" >&6; }
20339 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
20340   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20341 fi
20342
20343     fi
20344
20345     # Guillermo Gomez says -lposix is necessary on A/UX.
20346     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20347 if test "x$ac_cv_func_remove" = x""yes; then :
20348
20349 fi
20350
20351     if test $ac_cv_func_remove = no; then
20352       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20353 $as_echo_n "checking for remove in -lposix... " >&6; }
20354 if test "${ac_cv_lib_posix_remove+set}" = set; then :
20355   $as_echo_n "(cached) " >&6
20356 else
20357   ac_check_lib_save_LIBS=$LIBS
20358 LIBS="-lposix  $LIBS"
20359 if test x$gcc_no_link = xyes; then
20360   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20361 fi
20362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20363 /* end confdefs.h.  */
20364
20365 /* Override any GCC internal prototype to avoid an error.
20366    Use char because int might match the return type of a GCC
20367    builtin and then its argument prototype would still apply.  */
20368 #ifdef __cplusplus
20369 extern "C"
20370 #endif
20371 char remove ();
20372 int
20373 main ()
20374 {
20375 return remove ();
20376   ;
20377   return 0;
20378 }
20379 _ACEOF
20380 if ac_fn_c_try_link "$LINENO"; then :
20381   ac_cv_lib_posix_remove=yes
20382 else
20383   ac_cv_lib_posix_remove=no
20384 fi
20385 rm -f core conftest.err conftest.$ac_objext \
20386     conftest$ac_exeext conftest.$ac_ext
20387 LIBS=$ac_check_lib_save_LIBS
20388 fi
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20390 $as_echo "$ac_cv_lib_posix_remove" >&6; }
20391 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
20392   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20393 fi
20394
20395     fi
20396
20397     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20398     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20399 if test "x$ac_cv_func_shmat" = x""yes; then :
20400
20401 fi
20402
20403     if test $ac_cv_func_shmat = no; then
20404       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20405 $as_echo_n "checking for shmat in -lipc... " >&6; }
20406 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
20407   $as_echo_n "(cached) " >&6
20408 else
20409   ac_check_lib_save_LIBS=$LIBS
20410 LIBS="-lipc  $LIBS"
20411 if test x$gcc_no_link = xyes; then
20412   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20413 fi
20414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20415 /* end confdefs.h.  */
20416
20417 /* Override any GCC internal prototype to avoid an error.
20418    Use char because int might match the return type of a GCC
20419    builtin and then its argument prototype would still apply.  */
20420 #ifdef __cplusplus
20421 extern "C"
20422 #endif
20423 char shmat ();
20424 int
20425 main ()
20426 {
20427 return shmat ();
20428   ;
20429   return 0;
20430 }
20431 _ACEOF
20432 if ac_fn_c_try_link "$LINENO"; then :
20433   ac_cv_lib_ipc_shmat=yes
20434 else
20435   ac_cv_lib_ipc_shmat=no
20436 fi
20437 rm -f core conftest.err conftest.$ac_objext \
20438     conftest$ac_exeext conftest.$ac_ext
20439 LIBS=$ac_check_lib_save_LIBS
20440 fi
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20442 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20443 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
20444   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20445 fi
20446
20447     fi
20448   fi
20449
20450   # Check for libraries that X11R6 Xt/Xaw programs need.
20451   ac_save_LDFLAGS=$LDFLAGS
20452   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20453   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20454   # check for ICE first), but we must link in the order -lSM -lICE or
20455   # we get undefined symbols.  So assume we have SM if we have ICE.
20456   # These have to be linked with before -lX11, unlike the other
20457   # libraries we check for below, so use a different variable.
20458   # John Interrante, Karl Berry
20459   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20460 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20461 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
20462   $as_echo_n "(cached) " >&6
20463 else
20464   ac_check_lib_save_LIBS=$LIBS
20465 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20466 if test x$gcc_no_link = xyes; then
20467   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20468 fi
20469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20470 /* end confdefs.h.  */
20471
20472 /* Override any GCC internal prototype to avoid an error.
20473    Use char because int might match the return type of a GCC
20474    builtin and then its argument prototype would still apply.  */
20475 #ifdef __cplusplus
20476 extern "C"
20477 #endif
20478 char IceConnectionNumber ();
20479 int
20480 main ()
20481 {
20482 return IceConnectionNumber ();
20483   ;
20484   return 0;
20485 }
20486 _ACEOF
20487 if ac_fn_c_try_link "$LINENO"; then :
20488   ac_cv_lib_ICE_IceConnectionNumber=yes
20489 else
20490   ac_cv_lib_ICE_IceConnectionNumber=no
20491 fi
20492 rm -f core conftest.err conftest.$ac_objext \
20493     conftest$ac_exeext conftest.$ac_ext
20494 LIBS=$ac_check_lib_save_LIBS
20495 fi
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20497 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20498 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
20499   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20500 fi
20501
20502   LDFLAGS=$ac_save_LDFLAGS
20503
20504 fi
20505
20506
20507 # FIXME: this should be _libs on some hosts.
20508 libsubdir=.libs
20509
20510 LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -rpath `${PWDCMD-pwd}`/.libs"
20511
20512 LIBSTDCXXSPEC=
20513 # extra LD Flags which are required for targets
20514 case "${host}" in
20515 *-*-darwin[0-7].*)
20516     # For now we have to disable it on darwin[8-9] because it slows down
20517     # the linking phase. A possible bug in ld?
20518     # on Darwin -single_module speeds up loading of the dynamic libraries.
20519     extra_ldflags_libjava=-Wl,-single_module
20520     ;;
20521 arm*linux*eabi)
20522     # Some of the ARM unwinder code is actually in libstdc++.  We
20523     # could in principle replicate it in libgcj, but it's better to
20524     # have a dependency on libstdc++.
20525     extra_ldflags='-L$(here)/../libstdc++-v3/src/.libs -lstdc++'
20526     LIBSTDCXXSPEC=-lstdc++
20527     LIBGCJTESTSPEC="-L`${PWDCMD-pwd}`/.libs -L`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -rpath `${PWDCMD-pwd}`/.libs:`${PWDCMD-pwd}`/../libstdc++-v3/src/.libs -lstdc++"
20528     ;;
20529 *-*-cygwin)
20530     extra_ldflags_libjava=-liconv
20531     ;;
20532 esac
20533
20534 # Check for --no-merge-exidx-entries, an ARM-specific linker option.
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --no-merge-exidx-entries" >&5
20536 $as_echo_n "checking for --no-merge-exidx-entries... " >&6; }
20537 if test "${libgcj_cv_exidx+set}" = set; then :
20538   $as_echo_n "(cached) " >&6
20539 else
20540   saved_ldflags="$LDFLAGS"
20541    LDFLAGS="${LDFLAGS} -Wl,--no-merge-exidx-entries"
20542    # The IRIX 6 ld doesn't recognize --no-merge-exidx-entries, but only
20543    # warns about unknown options, which breaks the testsuite.  So enable
20544    # AC_LANG_WERROR, but there's currently (autoconf 2.64) no way to turn
20545    # it off again.  As a workaround, save and restore werror flag like
20546    # AC_PATH_XTRA.
20547    ac_xsave_c_werror_flag=$ac_c_werror_flag
20548
20549 ac_c_werror_flag=yes
20550    if test x$gcc_no_link = xyes; then
20551   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20552 fi
20553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20554 /* end confdefs.h.  */
20555 int main(void){ return 0;}
20556 _ACEOF
20557 if ac_fn_c_try_link "$LINENO"; then :
20558   eval "libgcj_cv_exidx=yes"
20559 else
20560   eval "libgcj_cv_exidx=no"
20561 fi
20562 rm -f core conftest.err conftest.$ac_objext \
20563     conftest$ac_exeext conftest.$ac_ext
20564    ac_c_werror_flag=$ac_xsave_c_werror_flag
20565    LDFLAGS="${saved_ldflags}"
20566
20567 fi
20568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgcj_cv_exidx" >&5
20569 $as_echo "$libgcj_cv_exidx" >&6; }
20570 if test "${libgcj_cv_exidx}" = "yes"; then
20571   SYSTEMSPEC="${SYSTEMSPEC} --no-merge-exidx-entries"
20572   extra_ldflags="${extra_ldflags} -Wl,--no-merge-exidx-entries"
20573 fi
20574
20575
20576
20577
20578
20579
20580
20581 # Allow the GC to be disabled.  Can be useful when debugging.
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for garbage collector to use" >&5
20583 $as_echo_n "checking for garbage collector to use... " >&6; }
20584 # Check whether --enable-java-gc was given.
20585 if test "${enable_java_gc+set}" = set; then :
20586   enableval=$enable_java_gc; GC=$enableval
20587 else
20588   GC=boehm
20589 fi
20590
20591 GCLIBS=
20592 GCINCS=
20593 GCDEPS=
20594 GCSPEC=
20595 JC1GCSPEC=
20596 GCTESTSPEC=
20597 case "$GC" in
20598  boehm)
20599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: boehm" >&5
20600 $as_echo "boehm" >&6; }
20601     GCLIBS=../boehm-gc/libgcjgc_convenience.la
20602     JC1GCSPEC='-fuse-boehm-gc'
20603     GCTESTSPEC="-L`${PWDCMD-pwd}`/../boehm-gc/.libs -rpath `${PWDCMD-pwd}`/../boehm-gc/.libs"
20604     GCINCS='-I$(top_srcdir)/../boehm-gc/include -I../boehm-gc/include'
20605     GCOBJS=boehm.lo
20606     GCHDR=boehm-gc.h
20607     # The POSIX thread support needs to know this.
20608
20609 $as_echo "#define HAVE_BOEHM_GC 1" >>confdefs.h
20610
20611     ;;
20612  no)
20613     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
20614 $as_echo "none" >&6; }
20615     GCHDR=no-gc.h
20616     ;;
20617  *)
20618     as_fn_error "unrecognized collector \"$GC\"" "$LINENO" 5
20619     ;;
20620 esac
20621
20622
20623
20624
20625
20626
20627 ac_config_links="$ac_config_links include/java-gc.h:include/$GCHDR"
20628
20629  if test "$GC" = boehm; then
20630   USING_BOEHMGC_TRUE=
20631   USING_BOEHMGC_FALSE='#'
20632 else
20633   USING_BOEHMGC_TRUE='#'
20634   USING_BOEHMGC_FALSE=
20635 fi
20636
20637  if test "$GC" = no; then
20638   USING_NOGC_TRUE=
20639   USING_NOGC_FALSE='#'
20640 else
20641   USING_NOGC_TRUE='#'
20642   USING_NOGC_FALSE=
20643 fi
20644
20645
20646
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread model used by GCC" >&5
20648 $as_echo_n "checking for thread model used by GCC... " >&6; }
20649 THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THREADS" >&5
20651 $as_echo "$THREADS" >&6; }
20652
20653 case "$THREADS" in
20654  no | none | single)
20655     THREADS=none
20656     ;;
20657  aix | posix | posix95 | pthreads)
20658     THREADS=posix
20659     case "$host" in
20660      *-*-linux*)
20661
20662 $as_echo "#define LINUX_THREADS 1" >>confdefs.h
20663
20664         ;;
20665     esac
20666     ;;
20667  win32)
20668     ;;
20669  decosf1 | irix | mach | os2 | solaris | dce | vxworks)
20670     as_fn_error "thread package $THREADS not yet supported" "$LINENO" 5
20671     ;;
20672  *)
20673     as_fn_error "$THREADS is an unknown thread package" "$LINENO" 5
20674     ;;
20675 esac
20676
20677 THREADCXXFLAGS=
20678 THREADLDFLAGS=
20679 THREADLIBS=
20680 THREADINCS=
20681 THREADDEPS=
20682 THREADH=
20683 THREADSPEC=
20684 THREADSTARTFILESPEC=
20685 case "$THREADS" in
20686  posix)
20687     case "$host" in
20688      *-*-cygwin*)
20689         # Don't set THREADLIBS here.  Cygwin doesn't have -lpthread.
20690         ;;
20691      *-*-freebsd[1234]*)
20692         # Before FreeBSD 5, it didn't have -lpthread (or any library which
20693         # merely adds pthread_* functions) but it does have a -pthread switch
20694         # which is required at link-time to select -lc_r *instead* of -lc.
20695         THREADLDFLAGS=-pthread
20696         # Don't set THREADSPEC here as might be expected since -pthread is
20697         # not processed when found within a spec file, it must come from
20698         # the command line.  For now, the user must provide the -pthread
20699         # switch to link code compiled with gcj.  In future, consider adding
20700         # support for weak references to pthread_* functions ala gthr.h API.
20701         THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
20702         ;;
20703      *-*-freebsd*)
20704         # FreeBSD >=5.3 implements a model much closer to other modern UNIX
20705         # systems which support threads and -lpthread.
20706         THREADLDFLAGS=-pthread
20707         THREADSPEC=-lpthread
20708         ;;
20709      alpha*-dec-osf* | hppa*-hp-hpux*)
20710         THREADCXXFLAGS=-pthread
20711         # boehm-gc needs some functions from librt, so link that too.
20712         THREADLIBS='-lpthread -lrt'
20713         THREADSPEC='-lpthread -lrt'
20714         ;;
20715      *)
20716         THREADLIBS=-lpthread
20717         THREADSPEC=-lpthread
20718         ;;
20719     esac
20720     THREADH=posix-threads.h
20721     # MIT pthreads doesn't seem to have the mutexattr functions.
20722     # But for now we don't check for it.  We just assume you aren't
20723     # using MIT pthreads.
20724
20725 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20726
20727
20728     # If we're using the Boehm GC, then we happen to know that it
20729     # defines _REENTRANT, so we don't bother.  Eww.
20730     if test "$GC" != boehm; then
20731
20732 $as_echo "#define _REENTRANT 1" >>confdefs.h
20733
20734     fi
20735
20736 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
20737
20738     ;;
20739
20740  win32)
20741     THREADH=win32-threads.h
20742     THREADCXXFLAGS=-mthreads
20743     # We need thread-safe exception handling so _CRT_MT should be set to 1.
20744     # But we do not want the executables created to be dependent on
20745     # mingwm10.dll which provides a __mingwthr_key_dtor() that cleans up
20746     # exception handling contexts.  The following kludge achieves this effect
20747     # and causes a dummy __mingwthr_key_dtor() to be linked in from
20748     # libmingw32.a.  This causes a memory leak of about 24 bytes per thread.
20749     # A workaround is to explicitly use -mthreads while linking Java programs.
20750     # See PR libgcj/28263.
20751     #
20752     # FIXME: In Java we are able to detect thread death at the end of
20753     # Thread.run() so we should be able to clean up the exception handling
20754     # contexts ourselves.
20755     THREADSTARTFILESPEC='crtmt%O%s'
20756     ;;
20757
20758  none)
20759     THREADH=no-threads.h
20760     ;;
20761 esac
20762 ac_config_links="$ac_config_links include/java-threads.h:include/$THREADH"
20763
20764
20765
20766
20767
20768
20769
20770
20771  if test "$THREADS" = posix; then
20772   USING_POSIX_THREADS_TRUE=
20773   USING_POSIX_THREADS_FALSE='#'
20774 else
20775   USING_POSIX_THREADS_TRUE='#'
20776   USING_POSIX_THREADS_FALSE=
20777 fi
20778
20779  if test "$THREADS" = win32; then
20780   USING_WIN32_THREADS_TRUE=
20781   USING_WIN32_THREADS_FALSE='#'
20782 else
20783   USING_WIN32_THREADS_TRUE='#'
20784   USING_WIN32_THREADS_FALSE=
20785 fi
20786
20787  if test "$THREADS" = none; then
20788   USING_NO_THREADS_TRUE=
20789   USING_NO_THREADS_FALSE='#'
20790 else
20791   USING_NO_THREADS_TRUE='#'
20792   USING_NO_THREADS_FALSE=
20793 fi
20794
20795 if test "$enable_shared" != yes; then
20796   use_libgcj_bc=no
20797 fi
20798  if test "$use_libgcj_bc" = yes; then
20799   USE_LIBGCJ_BC_TRUE=
20800   USE_LIBGCJ_BC_FALSE='#'
20801 else
20802   USE_LIBGCJ_BC_TRUE='#'
20803   USE_LIBGCJ_BC_FALSE=
20804 fi
20805
20806
20807 if test -d sysdep; then true; else mkdir sysdep; fi
20808 ac_config_links="$ac_config_links sysdep/locks.h:sysdep/$sysdeps_dir/locks.h"
20809
20810 ac_config_links="$ac_config_links sysdep/backtrace.h:$fallback_backtrace_h"
20811
20812 ac_config_links="$ac_config_links sysdep/descriptor.h:$descriptor_h"
20813
20814
20815 LIBGCJ_SPEC_LGCJ=-lgcj
20816 LIBGCJ_SPEC_LGCJ_BC=-lgcj_bc
20817 if test x"$libgcj_spec_lgcj_override" != x ; then
20818   LIBGCJ_SPEC_LGCJ=$libgcj_spec_lgcj_override
20819 fi
20820 if test x"$libgcj_spec_lgcj_bc_override" != x ; then
20821   LIBGCJ_SPEC_LGCJ_BC=$libgcj_spec_lgcj_bc_override
20822 fi
20823 LIBGCJ_SPEC="%{s-bc-abi:} $LIBGCJ_SPEC_LGCJ"
20824 if test "$use_libgcj_bc" = yes; then
20825   LIBGCJ_SPEC="%{static|static-libgcj|!s-bc-abi:$LIBGCJ_SPEC_LGCJ;:$LIBGCJ_SPEC_LGCJ_BC}"
20826   LIBGCJ_BC_SPEC="%{findirect-dispatch:-fPIC}"
20827 fi
20828
20829
20830
20831 HASH_SYNC_SPEC=
20832 # Hash synchronization is only useful with posix threads right now.
20833 if test "$enable_hash_synchronization" = yes && test "$THREADS" != "none"; then
20834    HASH_SYNC_SPEC=-fhash-synchronization
20835
20836 $as_echo "#define JV_HASH_SYNCHRONIZATION 1" >>confdefs.h
20837
20838 fi
20839
20840
20841  if test "$GCC" = yes; then
20842   USING_GCC_TRUE=
20843   USING_GCC_FALSE='#'
20844 else
20845   USING_GCC_TRUE='#'
20846   USING_GCC_FALSE=
20847 fi
20848
20849
20850 # We're in the tree with gcc, and need to include some of its headers.
20851 GCC_UNWIND_INCLUDE='-I$(multi_basedir)/./libjava/../gcc'
20852
20853 if test "x${with_newlib}" = "xyes"; then
20854    # We are being configured with a cross compiler.  AC_REPLACE_FUNCS
20855    # may not work correctly, because the compiler may not be able to
20856    # link executables.
20857
20858    # We assume newlib.  This lets us hard-code the functions we know
20859    # we'll have.
20860
20861 $as_echo "#define HAVE_MEMMOVE 1" >>confdefs.h
20862
20863
20864 $as_echo "#define HAVE_MEMCPY 1" >>confdefs.h
20865
20866
20867 $as_echo "#define HAVE_TIME 1" >>confdefs.h
20868
20869
20870 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
20871
20872
20873 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
20874
20875
20876 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
20877
20878    # This is only for POSIX threads.
20879
20880 $as_echo "#define HAVE_PTHREAD_MUTEXATTR_INIT 1" >>confdefs.h
20881
20882
20883    # Assume we do not have getuid and friends.
20884
20885 $as_echo "#define NO_GETUID 1" >>confdefs.h
20886
20887    PLATFORMNET=NoNet
20888 else
20889    for ac_func in strerror_r select fstat open fsync sleep opendir \
20890                    localtime_r getpwuid_r getcwd \
20891                    access stat lstat mkdir rename rmdir unlink utime chmod readlink \
20892                    nl_langinfo setlocale \
20893                    inet_pton uname inet_ntoa \
20894                    getrlimit sigaction ftruncate mmap \
20895                    getifaddrs
20896 do :
20897   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20898 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20899 eval as_val=\$$as_ac_var
20900    if test "x$as_val" = x""yes; then :
20901   cat >>confdefs.h <<_ACEOF
20902 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20903 _ACEOF
20904
20905 fi
20906 done
20907
20908    for ac_func in inet_aton inet_addr
20909 do :
20910   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20911 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20912 eval as_val=\$$as_ac_var
20913    if test "x$as_val" = x""yes; then :
20914   cat >>confdefs.h <<_ACEOF
20915 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20916 _ACEOF
20917  break
20918 fi
20919 done
20920
20921    for ac_header in unistd.h dlfcn.h sys/resource.h
20922 do :
20923   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20924 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20925 eval as_val=\$$as_ac_Header
20926    if test "x$as_val" = x""yes; then :
20927   cat >>confdefs.h <<_ACEOF
20928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20929 _ACEOF
20930
20931 fi
20932
20933 done
20934
20935    # Do an additional check on dld, HP-UX for example has dladdr in libdld.sl
20936    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldl" >&5
20937 $as_echo_n "checking for dladdr in -ldl... " >&6; }
20938 if test "${ac_cv_lib_dl_dladdr+set}" = set; then :
20939   $as_echo_n "(cached) " >&6
20940 else
20941   ac_check_lib_save_LIBS=$LIBS
20942 LIBS="-ldl  $LIBS"
20943 if test x$gcc_no_link = xyes; then
20944   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20945 fi
20946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20947 /* end confdefs.h.  */
20948
20949 /* Override any GCC internal prototype to avoid an error.
20950    Use char because int might match the return type of a GCC
20951    builtin and then its argument prototype would still apply.  */
20952 #ifdef __cplusplus
20953 extern "C"
20954 #endif
20955 char dladdr ();
20956 int
20957 main ()
20958 {
20959 return dladdr ();
20960   ;
20961   return 0;
20962 }
20963 _ACEOF
20964 if ac_fn_c_try_link "$LINENO"; then :
20965   ac_cv_lib_dl_dladdr=yes
20966 else
20967   ac_cv_lib_dl_dladdr=no
20968 fi
20969 rm -f core conftest.err conftest.$ac_objext \
20970     conftest$ac_exeext conftest.$ac_ext
20971 LIBS=$ac_check_lib_save_LIBS
20972 fi
20973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dladdr" >&5
20974 $as_echo "$ac_cv_lib_dl_dladdr" >&6; }
20975 if test "x$ac_cv_lib_dl_dladdr" = x""yes; then :
20976
20977
20978 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
20979
20980 else
20981
20982        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dladdr in -ldld" >&5
20983 $as_echo_n "checking for dladdr in -ldld... " >&6; }
20984 if test "${ac_cv_lib_dld_dladdr+set}" = set; then :
20985   $as_echo_n "(cached) " >&6
20986 else
20987   ac_check_lib_save_LIBS=$LIBS
20988 LIBS="-ldld  $LIBS"
20989 if test x$gcc_no_link = xyes; then
20990   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20991 fi
20992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20993 /* end confdefs.h.  */
20994
20995 /* Override any GCC internal prototype to avoid an error.
20996    Use char because int might match the return type of a GCC
20997    builtin and then its argument prototype would still apply.  */
20998 #ifdef __cplusplus
20999 extern "C"
21000 #endif
21001 char dladdr ();
21002 int
21003 main ()
21004 {
21005 return dladdr ();
21006   ;
21007   return 0;
21008 }
21009 _ACEOF
21010 if ac_fn_c_try_link "$LINENO"; then :
21011   ac_cv_lib_dld_dladdr=yes
21012 else
21013   ac_cv_lib_dld_dladdr=no
21014 fi
21015 rm -f core conftest.err conftest.$ac_objext \
21016     conftest$ac_exeext conftest.$ac_ext
21017 LIBS=$ac_check_lib_save_LIBS
21018 fi
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dladdr" >&5
21020 $as_echo "$ac_cv_lib_dld_dladdr" >&6; }
21021 if test "x$ac_cv_lib_dld_dladdr" = x""yes; then :
21022
21023
21024 $as_echo "#define HAVE_DLADDR 1" >>confdefs.h
21025
21026 fi
21027
21028 fi
21029
21030
21031    if test x"$cross_compiling" = x"no"; then
21032      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/exe" >&5
21033 $as_echo_n "checking for /proc/self/exe... " >&6; }
21034 if test "${ac_cv_file__proc_self_exe+set}" = set; then :
21035   $as_echo_n "(cached) " >&6
21036 else
21037   test "$cross_compiling" = yes &&
21038   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21039 if test -r "/proc/self/exe"; then
21040   ac_cv_file__proc_self_exe=yes
21041 else
21042   ac_cv_file__proc_self_exe=no
21043 fi
21044 fi
21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_exe" >&5
21046 $as_echo "$ac_cv_file__proc_self_exe" >&6; }
21047 if test "x$ac_cv_file__proc_self_exe" = x""yes; then :
21048
21049 cat >>confdefs.h <<_ACEOF
21050 #define HAVE__PROC_SELF_EXE 1
21051 _ACEOF
21052
21053
21054 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21055
21056 fi
21057
21058      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc/self/maps" >&5
21059 $as_echo_n "checking for /proc/self/maps... " >&6; }
21060 if test "${ac_cv_file__proc_self_maps+set}" = set; then :
21061   $as_echo_n "(cached) " >&6
21062 else
21063   test "$cross_compiling" = yes &&
21064   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
21065 if test -r "/proc/self/maps"; then
21066   ac_cv_file__proc_self_maps=yes
21067 else
21068   ac_cv_file__proc_self_maps=no
21069 fi
21070 fi
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__proc_self_maps" >&5
21072 $as_echo "$ac_cv_file__proc_self_maps" >&6; }
21073 if test "x$ac_cv_file__proc_self_maps" = x""yes; then :
21074
21075 cat >>confdefs.h <<_ACEOF
21076 #define HAVE__PROC_SELF_MAPS 1
21077 _ACEOF
21078
21079
21080 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21081
21082 fi
21083
21084    else
21085      case $host in
21086      *-linux*)
21087
21088 $as_echo "#define HAVE_PROC_SELF_EXE 1" >>confdefs.h
21089
21090
21091 $as_echo "#define HAVE_PROC_SELF_MAPS 1" >>confdefs.h
21092
21093        ;;
21094      esac
21095    fi
21096
21097
21098       if test "X$prefix" = "XNONE"; then
21099     acl_final_prefix="$ac_default_prefix"
21100   else
21101     acl_final_prefix="$prefix"
21102   fi
21103   if test "X$exec_prefix" = "XNONE"; then
21104     acl_final_exec_prefix='${prefix}'
21105   else
21106     acl_final_exec_prefix="$exec_prefix"
21107   fi
21108   acl_save_prefix="$prefix"
21109   prefix="$acl_final_prefix"
21110   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
21111   prefix="$acl_save_prefix"
21112
21113
21114 # Check whether --with-gnu-ld was given.
21115 if test "${with_gnu_ld+set}" = set; then :
21116   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
21117 else
21118   with_gnu_ld=no
21119 fi
21120
21121 # Prepare PATH_SEPARATOR.
21122 # The user is always right.
21123 if test "${PATH_SEPARATOR+set}" != set; then
21124   echo "#! /bin/sh" >conf$$.sh
21125   echo  "exit 0"   >>conf$$.sh
21126   chmod +x conf$$.sh
21127   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21128     PATH_SEPARATOR=';'
21129   else
21130     PATH_SEPARATOR=:
21131   fi
21132   rm -f conf$$.sh
21133 fi
21134 ac_prog=ld
21135 if test "$GCC" = yes; then
21136   # Check if gcc -print-prog-name=ld gives a path.
21137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
21138 $as_echo_n "checking for ld used by GCC... " >&6; }
21139   case $host in
21140   *-*-mingw*)
21141     # gcc leaves a trailing carriage return which upsets mingw
21142     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
21143   *)
21144     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
21145   esac
21146   case $ac_prog in
21147     # Accept absolute paths.
21148     [\\/]* | [A-Za-z]:[\\/]*)
21149       re_direlt='/[^/][^/]*/\.\./'
21150       # Canonicalize the path of ld
21151       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
21152       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
21153         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
21154       done
21155       test -z "$LD" && LD="$ac_prog"
21156       ;;
21157   "")
21158     # If it fails, then pretend we aren't using GCC.
21159     ac_prog=ld
21160     ;;
21161   *)
21162     # If it is relative, then search for the first ld in PATH.
21163     with_gnu_ld=unknown
21164     ;;
21165   esac
21166 elif test "$with_gnu_ld" = yes; then
21167   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
21168 $as_echo_n "checking for GNU ld... " >&6; }
21169 else
21170   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
21171 $as_echo_n "checking for non-GNU ld... " >&6; }
21172 fi
21173 if test "${acl_cv_path_LD+set}" = set; then :
21174   $as_echo_n "(cached) " >&6
21175 else
21176   if test -z "$LD"; then
21177   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
21178   for ac_dir in $PATH; do
21179     test -z "$ac_dir" && ac_dir=.
21180     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
21181       acl_cv_path_LD="$ac_dir/$ac_prog"
21182       # Check to see if the program is GNU ld.  I'd rather use --version,
21183       # but apparently some GNU ld's only accept -v.
21184       # Break only if it was the GNU/non-GNU ld that we prefer.
21185       if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
21186         test "$with_gnu_ld" != no && break
21187       else
21188         test "$with_gnu_ld" != yes && break
21189       fi
21190     fi
21191   done
21192   IFS="$ac_save_ifs"
21193 else
21194   acl_cv_path_LD="$LD" # Let the user override the test with a path.
21195 fi
21196 fi
21197
21198 LD="$acl_cv_path_LD"
21199 if test -n "$LD"; then
21200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
21201 $as_echo "$LD" >&6; }
21202 else
21203   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21204 $as_echo "no" >&6; }
21205 fi
21206 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
21207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
21208 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
21209 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
21210   $as_echo_n "(cached) " >&6
21211 else
21212   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
21213 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
21214   acl_cv_prog_gnu_ld=yes
21215 else
21216   acl_cv_prog_gnu_ld=no
21217 fi
21218 fi
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
21220 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
21221 with_gnu_ld=$acl_cv_prog_gnu_ld
21222
21223
21224
21225                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
21226 $as_echo_n "checking for shared library run path origin... " >&6; }
21227 if test "${acl_cv_rpath+set}" = set; then :
21228   $as_echo_n "(cached) " >&6
21229 else
21230
21231     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
21232     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
21233     . ./conftest.sh
21234     rm -f ./conftest.sh
21235     acl_cv_rpath=done
21236
21237 fi
21238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
21239 $as_echo "$acl_cv_rpath" >&6; }
21240   wl="$acl_cv_wl"
21241   libext="$acl_cv_libext"
21242   shlibext="$acl_cv_shlibext"
21243   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
21244   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
21245   hardcode_direct="$acl_cv_hardcode_direct"
21246   hardcode_minus_L="$acl_cv_hardcode_minus_L"
21247     # Check whether --enable-rpath was given.
21248 if test "${enable_rpath+set}" = set; then :
21249   enableval=$enable_rpath; :
21250 else
21251   enable_rpath=yes
21252 fi
21253
21254
21255
21256
21257
21258
21259
21260
21261     use_additional=yes
21262
21263   acl_save_prefix="$prefix"
21264   prefix="$acl_final_prefix"
21265   acl_save_exec_prefix="$exec_prefix"
21266   exec_prefix="$acl_final_exec_prefix"
21267
21268     eval additional_includedir=\"$includedir\"
21269     eval additional_libdir=\"$libdir\"
21270
21271   exec_prefix="$acl_save_exec_prefix"
21272   prefix="$acl_save_prefix"
21273
21274
21275 # Check whether --with-libiconv-prefix was given.
21276 if test "${with_libiconv_prefix+set}" = set; then :
21277   withval=$with_libiconv_prefix;
21278     if test "X$withval" = "Xno"; then
21279       use_additional=no
21280     else
21281       if test "X$withval" = "X"; then
21282
21283   acl_save_prefix="$prefix"
21284   prefix="$acl_final_prefix"
21285   acl_save_exec_prefix="$exec_prefix"
21286   exec_prefix="$acl_final_exec_prefix"
21287
21288           eval additional_includedir=\"$includedir\"
21289           eval additional_libdir=\"$libdir\"
21290
21291   exec_prefix="$acl_save_exec_prefix"
21292   prefix="$acl_save_prefix"
21293
21294       else
21295         additional_includedir="$withval/include"
21296         additional_libdir="$withval/lib"
21297       fi
21298     fi
21299
21300 fi
21301
21302       LIBICONV=
21303   LTLIBICONV=
21304   INCICONV=
21305   rpathdirs=
21306   ltrpathdirs=
21307   names_already_handled=
21308   names_next_round='iconv '
21309   while test -n "$names_next_round"; do
21310     names_this_round="$names_next_round"
21311     names_next_round=
21312     for name in $names_this_round; do
21313       already_handled=
21314       for n in $names_already_handled; do
21315         if test "$n" = "$name"; then
21316           already_handled=yes
21317           break
21318         fi
21319       done
21320       if test -z "$already_handled"; then
21321         names_already_handled="$names_already_handled $name"
21322                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21323         eval value=\"\$HAVE_LIB$uppername\"
21324         if test -n "$value"; then
21325           if test "$value" = yes; then
21326             eval value=\"\$LIB$uppername\"
21327             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
21328             eval value=\"\$LTLIB$uppername\"
21329             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
21330           else
21331                                     :
21332           fi
21333         else
21334                               found_dir=
21335           found_la=
21336           found_so=
21337           found_a=
21338           if test $use_additional = yes; then
21339             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21340               found_dir="$additional_libdir"
21341               found_so="$additional_libdir/lib$name.$shlibext"
21342               if test -f "$additional_libdir/lib$name.la"; then
21343                 found_la="$additional_libdir/lib$name.la"
21344               fi
21345             else
21346               if test -f "$additional_libdir/lib$name.$libext"; then
21347                 found_dir="$additional_libdir"
21348                 found_a="$additional_libdir/lib$name.$libext"
21349                 if test -f "$additional_libdir/lib$name.la"; then
21350                   found_la="$additional_libdir/lib$name.la"
21351                 fi
21352               fi
21353             fi
21354           fi
21355           if test "X$found_dir" = "X"; then
21356             for x in $LDFLAGS $LTLIBICONV; do
21357
21358   acl_save_prefix="$prefix"
21359   prefix="$acl_final_prefix"
21360   acl_save_exec_prefix="$exec_prefix"
21361   exec_prefix="$acl_final_exec_prefix"
21362   eval x=\"$x\"
21363   exec_prefix="$acl_save_exec_prefix"
21364   prefix="$acl_save_prefix"
21365
21366               case "$x" in
21367                 -L*)
21368                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21369                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21370                     found_dir="$dir"
21371                     found_so="$dir/lib$name.$shlibext"
21372                     if test -f "$dir/lib$name.la"; then
21373                       found_la="$dir/lib$name.la"
21374                     fi
21375                   else
21376                     if test -f "$dir/lib$name.$libext"; then
21377                       found_dir="$dir"
21378                       found_a="$dir/lib$name.$libext"
21379                       if test -f "$dir/lib$name.la"; then
21380                         found_la="$dir/lib$name.la"
21381                       fi
21382                     fi
21383                   fi
21384                   ;;
21385               esac
21386               if test "X$found_dir" != "X"; then
21387                 break
21388               fi
21389             done
21390           fi
21391           if test "X$found_dir" != "X"; then
21392                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
21393             if test "X$found_so" != "X"; then
21394                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21395                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21396               else
21397                                                                                 haveit=
21398                 for x in $ltrpathdirs; do
21399                   if test "X$x" = "X$found_dir"; then
21400                     haveit=yes
21401                     break
21402                   fi
21403                 done
21404                 if test -z "$haveit"; then
21405                   ltrpathdirs="$ltrpathdirs $found_dir"
21406                 fi
21407                                 if test "$hardcode_direct" = yes; then
21408                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21409                 else
21410                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21411                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21412                                                             haveit=
21413                     for x in $rpathdirs; do
21414                       if test "X$x" = "X$found_dir"; then
21415                         haveit=yes
21416                         break
21417                       fi
21418                     done
21419                     if test -z "$haveit"; then
21420                       rpathdirs="$rpathdirs $found_dir"
21421                     fi
21422                   else
21423                                                                                 haveit=
21424                     for x in $LDFLAGS $LIBICONV; do
21425
21426   acl_save_prefix="$prefix"
21427   prefix="$acl_final_prefix"
21428   acl_save_exec_prefix="$exec_prefix"
21429   exec_prefix="$acl_final_exec_prefix"
21430   eval x=\"$x\"
21431   exec_prefix="$acl_save_exec_prefix"
21432   prefix="$acl_save_prefix"
21433
21434                       if test "X$x" = "X-L$found_dir"; then
21435                         haveit=yes
21436                         break
21437                       fi
21438                     done
21439                     if test -z "$haveit"; then
21440                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
21441                     fi
21442                     if test "$hardcode_minus_L" != no; then
21443                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
21444                     else
21445                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21446                     fi
21447                   fi
21448                 fi
21449               fi
21450             else
21451               if test "X$found_a" != "X"; then
21452                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
21453               else
21454                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
21455               fi
21456             fi
21457                         additional_includedir=
21458             case "$found_dir" in
21459               */lib | */lib/)
21460                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21461                 additional_includedir="$basedir/include"
21462                 ;;
21463             esac
21464             if test "X$additional_includedir" != "X"; then
21465                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21466                 haveit=
21467                 if test "X$additional_includedir" = "X/usr/local/include"; then
21468                   if test -n "$GCC"; then
21469                     case $host_os in
21470                       linux*) haveit=yes;;
21471                     esac
21472                   fi
21473                 fi
21474                 if test -z "$haveit"; then
21475                   for x in $CPPFLAGS $INCICONV; do
21476
21477   acl_save_prefix="$prefix"
21478   prefix="$acl_final_prefix"
21479   acl_save_exec_prefix="$exec_prefix"
21480   exec_prefix="$acl_final_exec_prefix"
21481   eval x=\"$x\"
21482   exec_prefix="$acl_save_exec_prefix"
21483   prefix="$acl_save_prefix"
21484
21485                     if test "X$x" = "X-I$additional_includedir"; then
21486                       haveit=yes
21487                       break
21488                     fi
21489                   done
21490                   if test -z "$haveit"; then
21491                     if test -d "$additional_includedir"; then
21492                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
21493                     fi
21494                   fi
21495                 fi
21496               fi
21497             fi
21498                         if test -n "$found_la"; then
21499                                                         save_libdir="$libdir"
21500               case "$found_la" in
21501                 */* | *\\*) . "$found_la" ;;
21502                 *) . "./$found_la" ;;
21503               esac
21504               libdir="$save_libdir"
21505                             for dep in $dependency_libs; do
21506                 case "$dep" in
21507                   -L*)
21508                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21509                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21510                       haveit=
21511                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21512                         if test -n "$GCC"; then
21513                           case $host_os in
21514                             linux*) haveit=yes;;
21515                           esac
21516                         fi
21517                       fi
21518                       if test -z "$haveit"; then
21519                         haveit=
21520                         for x in $LDFLAGS $LIBICONV; do
21521
21522   acl_save_prefix="$prefix"
21523   prefix="$acl_final_prefix"
21524   acl_save_exec_prefix="$exec_prefix"
21525   exec_prefix="$acl_final_exec_prefix"
21526   eval x=\"$x\"
21527   exec_prefix="$acl_save_exec_prefix"
21528   prefix="$acl_save_prefix"
21529
21530                           if test "X$x" = "X-L$additional_libdir"; then
21531                             haveit=yes
21532                             break
21533                           fi
21534                         done
21535                         if test -z "$haveit"; then
21536                           if test -d "$additional_libdir"; then
21537                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
21538                           fi
21539                         fi
21540                         haveit=
21541                         for x in $LDFLAGS $LTLIBICONV; do
21542
21543   acl_save_prefix="$prefix"
21544   prefix="$acl_final_prefix"
21545   acl_save_exec_prefix="$exec_prefix"
21546   exec_prefix="$acl_final_exec_prefix"
21547   eval x=\"$x\"
21548   exec_prefix="$acl_save_exec_prefix"
21549   prefix="$acl_save_prefix"
21550
21551                           if test "X$x" = "X-L$additional_libdir"; then
21552                             haveit=yes
21553                             break
21554                           fi
21555                         done
21556                         if test -z "$haveit"; then
21557                           if test -d "$additional_libdir"; then
21558                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
21559                           fi
21560                         fi
21561                       fi
21562                     fi
21563                     ;;
21564                   -R*)
21565                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21566                     if test "$enable_rpath" != no; then
21567                                                                   haveit=
21568                       for x in $rpathdirs; do
21569                         if test "X$x" = "X$dir"; then
21570                           haveit=yes
21571                           break
21572                         fi
21573                       done
21574                       if test -z "$haveit"; then
21575                         rpathdirs="$rpathdirs $dir"
21576                       fi
21577                                                                   haveit=
21578                       for x in $ltrpathdirs; do
21579                         if test "X$x" = "X$dir"; then
21580                           haveit=yes
21581                           break
21582                         fi
21583                       done
21584                       if test -z "$haveit"; then
21585                         ltrpathdirs="$ltrpathdirs $dir"
21586                       fi
21587                     fi
21588                     ;;
21589                   -l*)
21590                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21591                     ;;
21592                   *.la)
21593                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21594                     ;;
21595                   *)
21596                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
21597                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
21598                     ;;
21599                 esac
21600               done
21601             fi
21602           else
21603                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
21604             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
21605           fi
21606         fi
21607       fi
21608     done
21609   done
21610   if test "X$rpathdirs" != "X"; then
21611     if test -n "$hardcode_libdir_separator"; then
21612                         alldirs=
21613       for found_dir in $rpathdirs; do
21614         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21615       done
21616             acl_save_libdir="$libdir"
21617       libdir="$alldirs"
21618       eval flag=\"$hardcode_libdir_flag_spec\"
21619       libdir="$acl_save_libdir"
21620       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21621     else
21622             for found_dir in $rpathdirs; do
21623         acl_save_libdir="$libdir"
21624         libdir="$found_dir"
21625         eval flag=\"$hardcode_libdir_flag_spec\"
21626         libdir="$acl_save_libdir"
21627         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
21628       done
21629     fi
21630   fi
21631   if test "X$ltrpathdirs" != "X"; then
21632             for found_dir in $ltrpathdirs; do
21633       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
21634     done
21635   fi
21636
21637
21638
21639
21640
21641
21642
21643           am_save_CPPFLAGS="$CPPFLAGS"
21644
21645   for element in $INCICONV; do
21646     haveit=
21647     for x in $CPPFLAGS; do
21648
21649   acl_save_prefix="$prefix"
21650   prefix="$acl_final_prefix"
21651   acl_save_exec_prefix="$exec_prefix"
21652   exec_prefix="$acl_final_exec_prefix"
21653   eval x=\"$x\"
21654   exec_prefix="$acl_save_exec_prefix"
21655   prefix="$acl_save_prefix"
21656
21657       if test "X$x" = "X$element"; then
21658         haveit=yes
21659         break
21660       fi
21661     done
21662     if test -z "$haveit"; then
21663       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21664     fi
21665   done
21666
21667
21668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21669 $as_echo_n "checking for iconv... " >&6; }
21670 if test "${am_cv_func_iconv+set}" = set; then :
21671   $as_echo_n "(cached) " >&6
21672 else
21673
21674     am_cv_func_iconv="no, consider installing GNU libiconv"
21675     am_cv_lib_iconv=no
21676     if test x$gcc_no_link = xyes; then
21677   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21678 fi
21679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21680 /* end confdefs.h.  */
21681 #include <stdlib.h>
21682 #include <iconv.h>
21683 int
21684 main ()
21685 {
21686 iconv_t cd = iconv_open("","");
21687        iconv(cd,NULL,NULL,NULL,NULL);
21688        iconv_close(cd);
21689   ;
21690   return 0;
21691 }
21692 _ACEOF
21693 if ac_fn_c_try_link "$LINENO"; then :
21694   am_cv_func_iconv=yes
21695 fi
21696 rm -f core conftest.err conftest.$ac_objext \
21697     conftest$ac_exeext conftest.$ac_ext
21698     if test "$am_cv_func_iconv" != yes; then
21699       am_save_LIBS="$LIBS"
21700       LIBS="$LIBS $LIBICONV"
21701       if test x$gcc_no_link = xyes; then
21702   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21703 fi
21704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21705 /* end confdefs.h.  */
21706 #include <stdlib.h>
21707 #include <iconv.h>
21708 int
21709 main ()
21710 {
21711 iconv_t cd = iconv_open("","");
21712          iconv(cd,NULL,NULL,NULL,NULL);
21713          iconv_close(cd);
21714   ;
21715   return 0;
21716 }
21717 _ACEOF
21718 if ac_fn_c_try_link "$LINENO"; then :
21719   am_cv_lib_iconv=yes
21720         am_cv_func_iconv=yes
21721 fi
21722 rm -f core conftest.err conftest.$ac_objext \
21723     conftest$ac_exeext conftest.$ac_ext
21724       LIBS="$am_save_LIBS"
21725     fi
21726
21727 fi
21728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21729 $as_echo "$am_cv_func_iconv" >&6; }
21730   if test "$am_cv_func_iconv" = yes; then
21731
21732 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
21733
21734   fi
21735   if test "$am_cv_lib_iconv" = yes; then
21736     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21737 $as_echo_n "checking how to link with libiconv... " >&6; }
21738     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21739 $as_echo "$LIBICONV" >&6; }
21740   else
21741             CPPFLAGS="$am_save_CPPFLAGS"
21742     LIBICONV=
21743     LTLIBICONV=
21744   fi
21745
21746
21747
21748   if test "$am_cv_func_iconv" = yes; then
21749     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21750 $as_echo_n "checking for iconv declaration... " >&6; }
21751     if test "${am_cv_proto_iconv+set}" = set; then :
21752   $as_echo_n "(cached) " >&6
21753 else
21754
21755       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21756 /* end confdefs.h.  */
21757
21758 #include <stdlib.h>
21759 #include <iconv.h>
21760 extern
21761 #ifdef __cplusplus
21762 "C"
21763 #endif
21764 #if defined(__STDC__) || defined(__cplusplus)
21765 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21766 #else
21767 size_t iconv();
21768 #endif
21769
21770 int
21771 main ()
21772 {
21773
21774   ;
21775   return 0;
21776 }
21777 _ACEOF
21778 if ac_fn_c_try_compile "$LINENO"; then :
21779   am_cv_proto_iconv_arg1=""
21780 else
21781   am_cv_proto_iconv_arg1="const"
21782 fi
21783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21784       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);"
21785 fi
21786
21787     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21788     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
21789          }$am_cv_proto_iconv" >&5
21790 $as_echo "${ac_t:-
21791          }$am_cv_proto_iconv" >&6; }
21792
21793 cat >>confdefs.h <<_ACEOF
21794 #define ICONV_CONST $am_cv_proto_iconv_arg1
21795 _ACEOF
21796
21797   fi
21798
21799
21800   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
21801 $as_echo_n "checking for LC_MESSAGES... " >&6; }
21802 if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
21803   $as_echo_n "(cached) " >&6
21804 else
21805   if test x$gcc_no_link = xyes; then
21806   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21807 fi
21808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21809 /* end confdefs.h.  */
21810 #include <locale.h>
21811 int
21812 main ()
21813 {
21814 return LC_MESSAGES
21815   ;
21816   return 0;
21817 }
21818 _ACEOF
21819 if ac_fn_c_try_link "$LINENO"; then :
21820   am_cv_val_LC_MESSAGES=yes
21821 else
21822   am_cv_val_LC_MESSAGES=no
21823 fi
21824 rm -f core conftest.err conftest.$ac_objext \
21825     conftest$ac_exeext conftest.$ac_ext
21826 fi
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
21828 $as_echo "$am_cv_val_LC_MESSAGES" >&6; }
21829   if test $am_cv_val_LC_MESSAGES = yes; then
21830
21831 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
21832
21833   fi
21834
21835    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
21836 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21837 if test "${ac_cv_struct_tm+set}" = set; then :
21838   $as_echo_n "(cached) " >&6
21839 else
21840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21841 /* end confdefs.h.  */
21842 #include <sys/types.h>
21843 #include <time.h>
21844
21845 int
21846 main ()
21847 {
21848 struct tm tm;
21849                                      int *p = &tm.tm_sec;
21850                                      return !p;
21851   ;
21852   return 0;
21853 }
21854 _ACEOF
21855 if ac_fn_c_try_compile "$LINENO"; then :
21856   ac_cv_struct_tm=time.h
21857 else
21858   ac_cv_struct_tm=sys/time.h
21859 fi
21860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21861 fi
21862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
21863 $as_echo "$ac_cv_struct_tm" >&6; }
21864 if test $ac_cv_struct_tm = sys/time.h; then
21865
21866 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
21867
21868 fi
21869
21870 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21871 #include <$ac_cv_struct_tm>
21872
21873 "
21874 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
21875
21876 cat >>confdefs.h <<_ACEOF
21877 #define HAVE_STRUCT_TM_TM_ZONE 1
21878 _ACEOF
21879
21880
21881 fi
21882
21883 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21884
21885 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21886
21887 else
21888   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21889 "
21890 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
21891   ac_have_decl=1
21892 else
21893   ac_have_decl=0
21894 fi
21895
21896 cat >>confdefs.h <<_ACEOF
21897 #define HAVE_DECL_TZNAME $ac_have_decl
21898 _ACEOF
21899
21900   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21901 $as_echo_n "checking for tzname... " >&6; }
21902 if test "${ac_cv_var_tzname+set}" = set; then :
21903   $as_echo_n "(cached) " >&6
21904 else
21905   if test x$gcc_no_link = xyes; then
21906   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21907 fi
21908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21909 /* end confdefs.h.  */
21910 #include <time.h>
21911 #if !HAVE_DECL_TZNAME
21912 extern char *tzname[];
21913 #endif
21914
21915 int
21916 main ()
21917 {
21918 return tzname[0][0];
21919   ;
21920   return 0;
21921 }
21922 _ACEOF
21923 if ac_fn_c_try_link "$LINENO"; then :
21924   ac_cv_var_tzname=yes
21925 else
21926   ac_cv_var_tzname=no
21927 fi
21928 rm -f core conftest.err conftest.$ac_objext \
21929     conftest$ac_exeext conftest.$ac_ext
21930 fi
21931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21932 $as_echo "$ac_cv_var_tzname" >&6; }
21933   if test $ac_cv_var_tzname = yes; then
21934
21935 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21936
21937   fi
21938 fi
21939
21940
21941    for ac_func in gethostbyname_r
21942 do :
21943   ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
21944 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
21945   cat >>confdefs.h <<_ACEOF
21946 #define HAVE_GETHOSTBYNAME_R 1
21947 _ACEOF
21948
21949
21950 $as_echo "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
21951
21952      # There are two different kinds of gethostbyname_r.
21953      # We look for the one that returns `int'.
21954      # Hopefully this check is robust enough.
21955      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21956 /* end confdefs.h.  */
21957 #include <netdb.h>
21958
21959 _ACEOF
21960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21961   $EGREP "int.*gethostbyname_r" >/dev/null 2>&1; then :
21962
21963
21964 $as_echo "#define GETHOSTBYNAME_R_RETURNS_INT 1" >>confdefs.h
21965
21966 fi
21967 rm -f conftest*
21968
21969
21970      case " $GCINCS " in
21971      *" -D_REENTRANT "*) ;;
21972      *)
21973                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gethostbyname_r declaration requires -D_REENTRANT" >&5
21974 $as_echo_n "checking whether gethostbyname_r declaration requires -D_REENTRANT... " >&6; }
21975 if test "${libjava_cv_gethostbyname_r_needs_reentrant+set}" = set; then :
21976   $as_echo_n "(cached) " >&6
21977 else
21978    ac_ext=cpp
21979 ac_cpp='$CXXCPP $CPPFLAGS'
21980 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21981 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21982 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21983
21984           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21985 /* end confdefs.h.  */
21986 #include <netdb.h>
21987 int
21988 main ()
21989 {
21990 gethostbyname_r("", 0, 0);
21991   ;
21992   return 0;
21993 }
21994 _ACEOF
21995 if ac_fn_cxx_try_compile "$LINENO"; then :
21996   libjava_cv_gethostbyname_r_needs_reentrant=no
21997 else
21998                 CPPFLAGS_SAVE="$CPPFLAGS"
21999                 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
22000                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22001 /* end confdefs.h.  */
22002 #include <netdb.h>
22003 int
22004 main ()
22005 {
22006 gethostbyname_r("", 0, 0);
22007   ;
22008   return 0;
22009 }
22010 _ACEOF
22011 if ac_fn_cxx_try_compile "$LINENO"; then :
22012   libjava_cv_gethostbyname_r_needs_reentrant=yes
22013 else
22014   libjava_cv_gethostbyname_r_needs_reentrant=fail
22015 fi
22016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22017                 CPPFLAGS="$CPPFLAGS_SAVE"
22018
22019 fi
22020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22021           ac_ext=c
22022 ac_cpp='$CPP $CPPFLAGS'
22023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22026
22027
22028 fi
22029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_gethostbyname_r_needs_reentrant" >&5
22030 $as_echo "$libjava_cv_gethostbyname_r_needs_reentrant" >&6; }
22031         if test "x$libjava_cv_gethostbyname_r_needs_reentrant" = xyes; then
22032
22033 $as_echo "#define _REENTRANT 1" >>confdefs.h
22034
22035         fi
22036      ;;
22037      esac
22038
22039      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct hostent_data" >&5
22040 $as_echo_n "checking for struct hostent_data... " >&6; }
22041 if test "${libjava_cv_struct_hostent_data+set}" = set; then :
22042   $as_echo_n "(cached) " >&6
22043 else
22044         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22045 /* end confdefs.h.  */
22046
22047 #if GETHOSTBYNAME_R_NEEDS_REENTRANT && !defined(_REENTRANT)
22048 # define _REENTRANT 1
22049 #endif
22050 #include <netdb.h>
22051 int
22052 main ()
22053 {
22054 struct hostent_data data;
22055   ;
22056   return 0;
22057 }
22058 _ACEOF
22059 if ac_fn_c_try_compile "$LINENO"; then :
22060   libjava_cv_struct_hostent_data=yes
22061 else
22062   libjava_cv_struct_hostent_data=no
22063 fi
22064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22065 fi
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_struct_hostent_data" >&5
22067 $as_echo "$libjava_cv_struct_hostent_data" >&6; }
22068      if test "x$libjava_cv_struct_hostent_data" = xyes; then
22069
22070 $as_echo "#define HAVE_STRUCT_HOSTENT_DATA 1" >>confdefs.h
22071
22072      fi
22073
22074 fi
22075 done
22076
22077
22078    # FIXME: libjava source code expects to find a prototype for
22079    # gethostbyaddr_r in netdb.h.  The outer check ensures that
22080    # HAVE_GETHOSTBYADDR_R will not be defined if the prototype fails
22081    # to exist where expected.  (The root issue: AC_CHECK_FUNCS assumes C
22082    # linkage check is enough, yet C++ code requires proper prototypes.)
22083    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22084 /* end confdefs.h.  */
22085 #include <netdb.h>
22086
22087 _ACEOF
22088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22089   $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
22090
22091    for ac_func in gethostbyaddr_r
22092 do :
22093   ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
22094 if test "x$ac_cv_func_gethostbyaddr_r" = x""yes; then :
22095   cat >>confdefs.h <<_ACEOF
22096 #define HAVE_GETHOSTBYADDR_R 1
22097 _ACEOF
22098
22099
22100 $as_echo "#define HAVE_GETHOSTBYADDR_R 1" >>confdefs.h
22101
22102      # There are two different kinds of gethostbyaddr_r.
22103      # We look for the one that returns `int'.
22104      # Hopefully this check is robust enough.
22105      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22106 /* end confdefs.h.  */
22107 #include <netdb.h>
22108
22109 _ACEOF
22110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22111   $EGREP "int.*gethostbyaddr_r" >/dev/null 2>&1; then :
22112
22113
22114 $as_echo "#define GETHOSTBYADDR_R_RETURNS_INT 1" >>confdefs.h
22115
22116 fi
22117 rm -f conftest*
22118
22119 fi
22120 done
22121
22122 fi
22123 rm -f conftest*
22124
22125
22126    for ac_func in gethostname
22127 do :
22128   ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
22129 if test "x$ac_cv_func_gethostname" = x""yes; then :
22130   cat >>confdefs.h <<_ACEOF
22131 #define HAVE_GETHOSTNAME 1
22132 _ACEOF
22133
22134
22135 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
22136
22137      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22138 /* end confdefs.h.  */
22139 #include <unistd.h>
22140
22141 _ACEOF
22142 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22143   $EGREP "gethostname" >/dev/null 2>&1; then :
22144
22145
22146 $as_echo "#define HAVE_GETHOSTNAME_DECL 1" >>confdefs.h
22147
22148 fi
22149 rm -f conftest*
22150
22151 fi
22152 done
22153
22154
22155    for ac_func in usleep
22156 do :
22157   ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
22158 if test "x$ac_cv_func_usleep" = x""yes; then :
22159   cat >>confdefs.h <<_ACEOF
22160 #define HAVE_USLEEP 1
22161 _ACEOF
22162
22163      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22164 /* end confdefs.h.  */
22165 #include <unistd.h>
22166
22167 _ACEOF
22168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22169   $EGREP "usleep" >/dev/null 2>&1; then :
22170
22171
22172 $as_echo "#define HAVE_USLEEP_DECL 1" >>confdefs.h
22173
22174 fi
22175 rm -f conftest*
22176
22177 fi
22178 done
22179
22180
22181    # Look for these functions in the thread library, but only bother
22182    # if using POSIX threads.
22183    if test "$THREADS" = posix; then
22184       save_LIBS="$LIBS"
22185       LIBS="$LIBS $THREADLIBS"
22186
22187       # Look for sched_yield.  Up to Solaris 2.6, it is in libposix4, since
22188       # Solaris 7 the name librt is preferred.
22189       for ac_func in sched_yield
22190 do :
22191   ac_fn_c_check_func "$LINENO" "sched_yield" "ac_cv_func_sched_yield"
22192 if test "x$ac_cv_func_sched_yield" = x""yes; then :
22193   cat >>confdefs.h <<_ACEOF
22194 #define HAVE_SCHED_YIELD 1
22195 _ACEOF
22196
22197 else
22198
22199         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5
22200 $as_echo_n "checking for sched_yield in -lrt... " >&6; }
22201 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then :
22202   $as_echo_n "(cached) " >&6
22203 else
22204   ac_check_lib_save_LIBS=$LIBS
22205 LIBS="-lrt  $LIBS"
22206 if test x$gcc_no_link = xyes; then
22207   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22208 fi
22209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22210 /* end confdefs.h.  */
22211
22212 /* Override any GCC internal prototype to avoid an error.
22213    Use char because int might match the return type of a GCC
22214    builtin and then its argument prototype would still apply.  */
22215 #ifdef __cplusplus
22216 extern "C"
22217 #endif
22218 char sched_yield ();
22219 int
22220 main ()
22221 {
22222 return sched_yield ();
22223   ;
22224   return 0;
22225 }
22226 _ACEOF
22227 if ac_fn_c_try_link "$LINENO"; then :
22228   ac_cv_lib_rt_sched_yield=yes
22229 else
22230   ac_cv_lib_rt_sched_yield=no
22231 fi
22232 rm -f core conftest.err conftest.$ac_objext \
22233     conftest$ac_exeext conftest.$ac_ext
22234 LIBS=$ac_check_lib_save_LIBS
22235 fi
22236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5
22237 $as_echo "$ac_cv_lib_rt_sched_yield" >&6; }
22238 if test "x$ac_cv_lib_rt_sched_yield" = x""yes; then :
22239
22240           $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22241
22242           THREADLIBS="$THREADLIBS -lrt"
22243           THREADSPEC="$THREADSPEC -lrt"
22244 else
22245
22246           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lposix4" >&5
22247 $as_echo_n "checking for sched_yield in -lposix4... " >&6; }
22248 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then :
22249   $as_echo_n "(cached) " >&6
22250 else
22251   ac_check_lib_save_LIBS=$LIBS
22252 LIBS="-lposix4  $LIBS"
22253 if test x$gcc_no_link = xyes; then
22254   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22255 fi
22256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22257 /* end confdefs.h.  */
22258
22259 /* Override any GCC internal prototype to avoid an error.
22260    Use char because int might match the return type of a GCC
22261    builtin and then its argument prototype would still apply.  */
22262 #ifdef __cplusplus
22263 extern "C"
22264 #endif
22265 char sched_yield ();
22266 int
22267 main ()
22268 {
22269 return sched_yield ();
22270   ;
22271   return 0;
22272 }
22273 _ACEOF
22274 if ac_fn_c_try_link "$LINENO"; then :
22275   ac_cv_lib_posix4_sched_yield=yes
22276 else
22277   ac_cv_lib_posix4_sched_yield=no
22278 fi
22279 rm -f core conftest.err conftest.$ac_objext \
22280     conftest$ac_exeext conftest.$ac_ext
22281 LIBS=$ac_check_lib_save_LIBS
22282 fi
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sched_yield" >&5
22284 $as_echo "$ac_cv_lib_posix4_sched_yield" >&6; }
22285 if test "x$ac_cv_lib_posix4_sched_yield" = x""yes; then :
22286
22287             $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
22288
22289             THREADLIBS="$THREADLIBS -lposix4"
22290             THREADSPEC="$THREADSPEC -lposix4"
22291 fi
22292
22293 fi
22294
22295 fi
22296 done
22297
22298
22299       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
22300 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
22301 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
22302   $as_echo_n "(cached) " >&6
22303 else
22304   ac_check_lib_save_LIBS=$LIBS
22305 LIBS="-lrt  $LIBS"
22306 if test x$gcc_no_link = xyes; then
22307   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22308 fi
22309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22310 /* end confdefs.h.  */
22311
22312 /* Override any GCC internal prototype to avoid an error.
22313    Use char because int might match the return type of a GCC
22314    builtin and then its argument prototype would still apply.  */
22315 #ifdef __cplusplus
22316 extern "C"
22317 #endif
22318 char clock_gettime ();
22319 int
22320 main ()
22321 {
22322 return clock_gettime ();
22323   ;
22324   return 0;
22325 }
22326 _ACEOF
22327 if ac_fn_c_try_link "$LINENO"; then :
22328   ac_cv_lib_rt_clock_gettime=yes
22329 else
22330   ac_cv_lib_rt_clock_gettime=no
22331 fi
22332 rm -f core conftest.err conftest.$ac_objext \
22333     conftest$ac_exeext conftest.$ac_ext
22334 LIBS=$ac_check_lib_save_LIBS
22335 fi
22336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
22337 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
22338 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
22339
22340
22341 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
22342
22343          case "$THREADSPEC" in
22344            *-lrt*) ;;
22345            *)
22346              THREADSPEC="$THREADSPEC -lrt"
22347              THREADLIBS="$THREADLIBS -lrt"
22348              ;;
22349          esac
22350 fi
22351
22352
22353       LIBS="$save_LIBS"
22354
22355       # We can save a little space at runtime if the mutex has m_count
22356       # or __m_count.  This is a nice hack for Linux.
22357       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22358 /* end confdefs.h.  */
22359 #include <pthread.h>
22360 int
22361 main ()
22362 {
22363
22364           extern pthread_mutex_t *mutex; int q = mutex->m_count;
22365
22366   ;
22367   return 0;
22368 }
22369 _ACEOF
22370 if ac_fn_c_try_compile "$LINENO"; then :
22371
22372 $as_echo "#define PTHREAD_MUTEX_HAVE_M_COUNT 1" >>confdefs.h
22373
22374 else
22375
22376         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22377 /* end confdefs.h.  */
22378 #include <pthread.h>
22379 int
22380 main ()
22381 {
22382
22383             extern pthread_mutex_t *mutex; int q = mutex->__m_count;
22384
22385   ;
22386   return 0;
22387 }
22388 _ACEOF
22389 if ac_fn_c_try_compile "$LINENO"; then :
22390
22391 $as_echo "#define PTHREAD_MUTEX_HAVE___M_COUNT 1" >>confdefs.h
22392
22393 fi
22394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22395 fi
22396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22397    fi
22398
22399    # We require a way to get the time.
22400    time_found=no
22401    for ac_func in gettimeofday time ftime
22402 do :
22403   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22404 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22405 eval as_val=\$$as_ac_var
22406    if test "x$as_val" = x""yes; then :
22407   cat >>confdefs.h <<_ACEOF
22408 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22409 _ACEOF
22410  time_found=yes
22411 fi
22412 done
22413
22414    if test "$time_found" = no; then
22415       as_fn_error "no function found to get the time" "$LINENO" 5
22416    fi
22417
22418    for ac_func in memmove
22419 do :
22420   ac_fn_c_check_func "$LINENO" "memmove" "ac_cv_func_memmove"
22421 if test "x$ac_cv_func_memmove" = x""yes; then :
22422   cat >>confdefs.h <<_ACEOF
22423 #define HAVE_MEMMOVE 1
22424 _ACEOF
22425
22426 fi
22427 done
22428
22429
22430    # We require memcpy.
22431    memcpy_found=no
22432    for ac_func in memcpy
22433 do :
22434   ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy"
22435 if test "x$ac_cv_func_memcpy" = x""yes; then :
22436   cat >>confdefs.h <<_ACEOF
22437 #define HAVE_MEMCPY 1
22438 _ACEOF
22439  memcpy_found=yes
22440 fi
22441 done
22442
22443    if test "$memcpy_found" = no; then
22444       as_fn_error "memcpy is required" "$LINENO" 5
22445    fi
22446    # Do an additional check on dld, HP-UX for example has dlopen in libdld.sl
22447    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
22448 $as_echo_n "checking for dlopen in -ldl... " >&6; }
22449 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
22450   $as_echo_n "(cached) " >&6
22451 else
22452   ac_check_lib_save_LIBS=$LIBS
22453 LIBS="-ldl  $LIBS"
22454 if test x$gcc_no_link = xyes; then
22455   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22456 fi
22457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22458 /* end confdefs.h.  */
22459
22460 /* Override any GCC internal prototype to avoid an error.
22461    Use char because int might match the return type of a GCC
22462    builtin and then its argument prototype would still apply.  */
22463 #ifdef __cplusplus
22464 extern "C"
22465 #endif
22466 char dlopen ();
22467 int
22468 main ()
22469 {
22470 return dlopen ();
22471   ;
22472   return 0;
22473 }
22474 _ACEOF
22475 if ac_fn_c_try_link "$LINENO"; then :
22476   ac_cv_lib_dl_dlopen=yes
22477 else
22478   ac_cv_lib_dl_dlopen=no
22479 fi
22480 rm -f core conftest.err conftest.$ac_objext \
22481     conftest$ac_exeext conftest.$ac_ext
22482 LIBS=$ac_check_lib_save_LIBS
22483 fi
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
22485 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
22486 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
22487
22488
22489 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22490
22491 else
22492
22493        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldld" >&5
22494 $as_echo_n "checking for dlopen in -ldld... " >&6; }
22495 if test "${ac_cv_lib_dld_dlopen+set}" = set; then :
22496   $as_echo_n "(cached) " >&6
22497 else
22498   ac_check_lib_save_LIBS=$LIBS
22499 LIBS="-ldld  $LIBS"
22500 if test x$gcc_no_link = xyes; then
22501   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22502 fi
22503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22504 /* end confdefs.h.  */
22505
22506 /* Override any GCC internal prototype to avoid an error.
22507    Use char because int might match the return type of a GCC
22508    builtin and then its argument prototype would still apply.  */
22509 #ifdef __cplusplus
22510 extern "C"
22511 #endif
22512 char dlopen ();
22513 int
22514 main ()
22515 {
22516 return dlopen ();
22517   ;
22518   return 0;
22519 }
22520 _ACEOF
22521 if ac_fn_c_try_link "$LINENO"; then :
22522   ac_cv_lib_dld_dlopen=yes
22523 else
22524   ac_cv_lib_dld_dlopen=no
22525 fi
22526 rm -f core conftest.err conftest.$ac_objext \
22527     conftest$ac_exeext conftest.$ac_ext
22528 LIBS=$ac_check_lib_save_LIBS
22529 fi
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dlopen" >&5
22531 $as_echo "$ac_cv_lib_dld_dlopen" >&6; }
22532 if test "x$ac_cv_lib_dld_dlopen" = x""yes; then :
22533
22534
22535 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
22536
22537 fi
22538
22539 fi
22540
22541
22542    # Some library-finding code we stole from Tcl.
22543    #--------------------------------------------------------------------
22544    #    Check for the existence of the -lsocket and -lnsl libraries.
22545    #    The order here is important, so that they end up in the right
22546    #    order in the command line generated by make.  Here are some
22547    #    special considerations:
22548    #    1. Use "connect" and "accept" to check for -lsocket, and
22549    #       "gethostbyname" to check for -lnsl.
22550    #    2. Use each function name only once:  can't redo a check because
22551    #       autoconf caches the results of the last check and won't redo it.
22552    #    3. Use -lnsl and -lsocket only if they supply procedures that
22553    #       aren't already present in the normal libraries.  This is because
22554    #       IRIX 5.2 has libraries, but they aren't needed and they're
22555    #       bogus:  they goof up name resolution if used.
22556    #    4. On some SVR4 systems, can't use -lsocket without -lnsl too.
22557    #       To get around this problem, check for both libraries together
22558    #       if -lsocket doesn't work by itself.
22559    #--------------------------------------------------------------------
22560
22561    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket libraries" >&5
22562 $as_echo_n "checking for socket libraries... " >&6; }
22563 if test "${gcj_cv_lib_sockets+set}" = set; then :
22564   $as_echo_n "(cached) " >&6
22565 else
22566   gcj_cv_lib_sockets=
22567      gcj_checkBoth=0
22568      unset ac_cv_func_connect
22569      ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
22570 if test "x$ac_cv_func_connect" = x""yes; then :
22571   gcj_checkSocket=0
22572 else
22573   gcj_checkSocket=1
22574 fi
22575
22576      if test "$gcj_checkSocket" = 1; then
22577          unset ac_cv_func_connect
22578          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lsocket" >&5
22579 $as_echo_n "checking for main in -lsocket... " >&6; }
22580 if test "${ac_cv_lib_socket_main+set}" = set; then :
22581   $as_echo_n "(cached) " >&6
22582 else
22583   ac_check_lib_save_LIBS=$LIBS
22584 LIBS="-lsocket  $LIBS"
22585 if test x$gcc_no_link = xyes; then
22586   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22587 fi
22588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22589 /* end confdefs.h.  */
22590
22591
22592 int
22593 main ()
22594 {
22595 return main ();
22596   ;
22597   return 0;
22598 }
22599 _ACEOF
22600 if ac_fn_c_try_link "$LINENO"; then :
22601   ac_cv_lib_socket_main=yes
22602 else
22603   ac_cv_lib_socket_main=no
22604 fi
22605 rm -f core conftest.err conftest.$ac_objext \
22606     conftest$ac_exeext conftest.$ac_ext
22607 LIBS=$ac_check_lib_save_LIBS
22608 fi
22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_main" >&5
22610 $as_echo "$ac_cv_lib_socket_main" >&6; }
22611 if test "x$ac_cv_lib_socket_main" = x""yes; then :
22612   gcj_cv_lib_sockets="-lsocket"
22613 else
22614   gcj_checkBoth=1
22615 fi
22616
22617      fi
22618      if test "$gcj_checkBoth" = 1; then
22619          gcj_oldLibs=$LIBS
22620          LIBS="$LIBS -lsocket -lnsl"
22621          unset ac_cv_func_accept
22622          ac_fn_c_check_func "$LINENO" "accept" "ac_cv_func_accept"
22623 if test "x$ac_cv_func_accept" = x""yes; then :
22624   gcj_checkNsl=0
22625                         gcj_cv_lib_sockets="-lsocket -lnsl"
22626 fi
22627
22628          unset ac_cv_func_accept
22629          LIBS=$gcj_oldLibs
22630      fi
22631      unset ac_cv_func_gethostbyname
22632      gcj_oldLibs=$LIBS
22633      LIBS="$LIBS $gcj_cv_lib_sockets"
22634      ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22635 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
22636
22637 else
22638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lnsl" >&5
22639 $as_echo_n "checking for main in -lnsl... " >&6; }
22640 if test "${ac_cv_lib_nsl_main+set}" = set; then :
22641   $as_echo_n "(cached) " >&6
22642 else
22643   ac_check_lib_save_LIBS=$LIBS
22644 LIBS="-lnsl  $LIBS"
22645 if test x$gcc_no_link = xyes; then
22646   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22647 fi
22648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22649 /* end confdefs.h.  */
22650
22651
22652 int
22653 main ()
22654 {
22655 return main ();
22656   ;
22657   return 0;
22658 }
22659 _ACEOF
22660 if ac_fn_c_try_link "$LINENO"; then :
22661   ac_cv_lib_nsl_main=yes
22662 else
22663   ac_cv_lib_nsl_main=no
22664 fi
22665 rm -f core conftest.err conftest.$ac_objext \
22666     conftest$ac_exeext conftest.$ac_ext
22667 LIBS=$ac_check_lib_save_LIBS
22668 fi
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_main" >&5
22670 $as_echo "$ac_cv_lib_nsl_main" >&6; }
22671 if test "x$ac_cv_lib_nsl_main" = x""yes; then :
22672   gcj_cv_lib_sockets="$gcj_cv_lib_sockets -lnsl"
22673 fi
22674
22675 fi
22676
22677      unset ac_cv_func_gethostbyname
22678      LIBS=$gcj_oldLIBS
22679
22680 fi
22681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcj_cv_lib_sockets" >&5
22682 $as_echo "$gcj_cv_lib_sockets" >&6; }
22683    SYSTEMSPEC="$SYSTEMSPEC $gcj_cv_lib_sockets"
22684
22685    if test "$with_system_zlib" = yes; then
22686       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
22687 $as_echo_n "checking for deflate in -lz... " >&6; }
22688 if test "${ac_cv_lib_z_deflate+set}" = set; then :
22689   $as_echo_n "(cached) " >&6
22690 else
22691   ac_check_lib_save_LIBS=$LIBS
22692 LIBS="-lz  $LIBS"
22693 if test x$gcc_no_link = xyes; then
22694   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22695 fi
22696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22697 /* end confdefs.h.  */
22698
22699 /* Override any GCC internal prototype to avoid an error.
22700    Use char because int might match the return type of a GCC
22701    builtin and then its argument prototype would still apply.  */
22702 #ifdef __cplusplus
22703 extern "C"
22704 #endif
22705 char deflate ();
22706 int
22707 main ()
22708 {
22709 return deflate ();
22710   ;
22711   return 0;
22712 }
22713 _ACEOF
22714 if ac_fn_c_try_link "$LINENO"; then :
22715   ac_cv_lib_z_deflate=yes
22716 else
22717   ac_cv_lib_z_deflate=no
22718 fi
22719 rm -f core conftest.err conftest.$ac_objext \
22720     conftest$ac_exeext conftest.$ac_ext
22721 LIBS=$ac_check_lib_save_LIBS
22722 fi
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
22724 $as_echo "$ac_cv_lib_z_deflate" >&6; }
22725 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
22726   ZLIBSPEC=-lz
22727 else
22728   ZLIBSPEC=
22729 fi
22730
22731    fi
22732
22733    # Test for Gtk stuff, if asked for.
22734    if test "$use_gtk_awt" = yes; then
22735
22736   succeeded=no
22737
22738   if test -z "$PKG_CONFIG"; then
22739     # Extract the first word of "pkg-config", so it can be a program name with args.
22740 set dummy pkg-config; ac_word=$2
22741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22742 $as_echo_n "checking for $ac_word... " >&6; }
22743 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22744   $as_echo_n "(cached) " >&6
22745 else
22746   case $PKG_CONFIG in
22747   [\\/]* | ?:[\\/]*)
22748   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22749   ;;
22750   *)
22751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22752 for as_dir in $PATH
22753 do
22754   IFS=$as_save_IFS
22755   test -z "$as_dir" && as_dir=.
22756     for ac_exec_ext in '' $ac_executable_extensions; do
22757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22758     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22760     break 2
22761   fi
22762 done
22763   done
22764 IFS=$as_save_IFS
22765
22766   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22767   ;;
22768 esac
22769 fi
22770 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22771 if test -n "$PKG_CONFIG"; then
22772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22773 $as_echo "$PKG_CONFIG" >&6; }
22774 else
22775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22776 $as_echo "no" >&6; }
22777 fi
22778
22779
22780   fi
22781
22782   if test "$PKG_CONFIG" = "no" ; then
22783      echo "*** The pkg-config script could not be found. Make sure it is"
22784      echo "*** in your path, or set the PKG_CONFIG environment variable"
22785      echo "*** to the full path to pkg-config."
22786      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22787   else
22788      PKG_CONFIG_MIN_VERSION=0.9.0
22789      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22790         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4" >&5
22791 $as_echo_n "checking for gtk+-2.0 >= 2.4... " >&6; }
22792
22793         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4" ; then
22794             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22795 $as_echo "yes" >&6; }
22796             succeeded=yes
22797
22798             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22799 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22800             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4"`
22801             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22802 $as_echo "$GTK_CFLAGS" >&6; }
22803
22804             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22805 $as_echo_n "checking GTK_LIBS... " >&6; }
22806             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4"`
22807             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22808 $as_echo "$GTK_LIBS" >&6; }
22809         else
22810             GTK_CFLAGS=""
22811             GTK_LIBS=""
22812             ## If we have a custom action on failure, don't print errors, but
22813             ## do set a variable so people can do so.
22814             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4"`
22815             echo $GTK_PKG_ERRORS
22816         fi
22817
22818
22819
22820      else
22821         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22822         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22823      fi
22824   fi
22825
22826   if test $succeeded = yes; then
22827      :
22828   else
22829      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
22830   fi
22831
22832
22833
22834
22835
22836   succeeded=no
22837
22838   if test -z "$PKG_CONFIG"; then
22839     # Extract the first word of "pkg-config", so it can be a program name with args.
22840 set dummy pkg-config; ac_word=$2
22841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22842 $as_echo_n "checking for $ac_word... " >&6; }
22843 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22844   $as_echo_n "(cached) " >&6
22845 else
22846   case $PKG_CONFIG in
22847   [\\/]* | ?:[\\/]*)
22848   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22849   ;;
22850   *)
22851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22852 for as_dir in $PATH
22853 do
22854   IFS=$as_save_IFS
22855   test -z "$as_dir" && as_dir=.
22856     for ac_exec_ext in '' $ac_executable_extensions; do
22857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22858     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22859     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22860     break 2
22861   fi
22862 done
22863   done
22864 IFS=$as_save_IFS
22865
22866   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22867   ;;
22868 esac
22869 fi
22870 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22871 if test -n "$PKG_CONFIG"; then
22872   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22873 $as_echo "$PKG_CONFIG" >&6; }
22874 else
22875   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22876 $as_echo "no" >&6; }
22877 fi
22878
22879
22880   fi
22881
22882   if test "$PKG_CONFIG" = "no" ; then
22883      echo "*** The pkg-config script could not be found. Make sure it is"
22884      echo "*** in your path, or set the PKG_CONFIG environment variable"
22885      echo "*** to the full path to pkg-config."
22886      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22887   else
22888      PKG_CONFIG_MIN_VERSION=0.9.0
22889      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22890         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4" >&5
22891 $as_echo_n "checking for glib-2.0 >= 2.4 gthread-2.0 >= 2.4... " >&6; }
22892
22893         if $PKG_CONFIG --exists "glib-2.0 >= 2.4 gthread-2.0 >= 2.4" ; then
22894             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22895 $as_echo "yes" >&6; }
22896             succeeded=yes
22897
22898             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22899 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22900             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22901             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22902 $as_echo "$GLIB_CFLAGS" >&6; }
22903
22904             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22905 $as_echo_n "checking GLIB_LIBS... " >&6; }
22906             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22907             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22908 $as_echo "$GLIB_LIBS" >&6; }
22909         else
22910             GLIB_CFLAGS=""
22911             GLIB_LIBS=""
22912             ## If we have a custom action on failure, don't print errors, but
22913             ## do set a variable so people can do so.
22914             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0 >= 2.4 gthread-2.0 >= 2.4"`
22915             echo $GLIB_PKG_ERRORS
22916         fi
22917
22918
22919
22920      else
22921         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22922         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22923      fi
22924   fi
22925
22926   if test $succeeded = yes; then
22927      :
22928   else
22929      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
22930   fi
22931
22932
22933
22934
22935
22936   succeeded=no
22937
22938   if test -z "$PKG_CONFIG"; then
22939     # Extract the first word of "pkg-config", so it can be a program name with args.
22940 set dummy pkg-config; ac_word=$2
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22942 $as_echo_n "checking for $ac_word... " >&6; }
22943 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22944   $as_echo_n "(cached) " >&6
22945 else
22946   case $PKG_CONFIG in
22947   [\\/]* | ?:[\\/]*)
22948   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22949   ;;
22950   *)
22951   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22952 for as_dir in $PATH
22953 do
22954   IFS=$as_save_IFS
22955   test -z "$as_dir" && as_dir=.
22956     for ac_exec_ext in '' $ac_executable_extensions; do
22957   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22958     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22959     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22960     break 2
22961   fi
22962 done
22963   done
22964 IFS=$as_save_IFS
22965
22966   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22967   ;;
22968 esac
22969 fi
22970 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22971 if test -n "$PKG_CONFIG"; then
22972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22973 $as_echo "$PKG_CONFIG" >&6; }
22974 else
22975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22976 $as_echo "no" >&6; }
22977 fi
22978
22979
22980   fi
22981
22982   if test "$PKG_CONFIG" = "no" ; then
22983      echo "*** The pkg-config script could not be found. Make sure it is"
22984      echo "*** in your path, or set the PKG_CONFIG environment variable"
22985      echo "*** to the full path to pkg-config."
22986      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22987   else
22988      PKG_CONFIG_MIN_VERSION=0.9.0
22989      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22990         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libart-2.0 >= 2.1" >&5
22991 $as_echo_n "checking for libart-2.0 >= 2.1... " >&6; }
22992
22993         if $PKG_CONFIG --exists "libart-2.0 >= 2.1" ; then
22994             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22995 $as_echo "yes" >&6; }
22996             succeeded=yes
22997
22998             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_CFLAGS" >&5
22999 $as_echo_n "checking LIBART_CFLAGS... " >&6; }
23000             LIBART_CFLAGS=`$PKG_CONFIG --cflags "libart-2.0 >= 2.1"`
23001             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_CFLAGS" >&5
23002 $as_echo "$LIBART_CFLAGS" >&6; }
23003
23004             { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBART_LIBS" >&5
23005 $as_echo_n "checking LIBART_LIBS... " >&6; }
23006             LIBART_LIBS=`$PKG_CONFIG --libs "libart-2.0 >= 2.1"`
23007             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBART_LIBS" >&5
23008 $as_echo "$LIBART_LIBS" >&6; }
23009         else
23010             LIBART_CFLAGS=""
23011             LIBART_LIBS=""
23012             ## If we have a custom action on failure, don't print errors, but
23013             ## do set a variable so people can do so.
23014             LIBART_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libart-2.0 >= 2.1"`
23015             echo $LIBART_PKG_ERRORS
23016         fi
23017
23018
23019
23020      else
23021         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23022         echo "*** See http://www.freedesktop.org/software/pkgconfig"
23023      fi
23024   fi
23025
23026   if test $succeeded = yes; then
23027      :
23028   else
23029      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
23030   fi
23031
23032
23033
23034
23035       # We require the XTest Extension to support java.awt.Robot.
23036       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
23037 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
23038 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
23039   $as_echo_n "(cached) " >&6
23040 else
23041   ac_check_lib_save_LIBS=$LIBS
23042 LIBS="-lXtst ${X_LIBS} $LIBS"
23043 if test x$gcc_no_link = xyes; then
23044   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23045 fi
23046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23047 /* end confdefs.h.  */
23048
23049 /* Override any GCC internal prototype to avoid an error.
23050    Use char because int might match the return type of a GCC
23051    builtin and then its argument prototype would still apply.  */
23052 #ifdef __cplusplus
23053 extern "C"
23054 #endif
23055 char XTestQueryExtension ();
23056 int
23057 main ()
23058 {
23059 return XTestQueryExtension ();
23060   ;
23061   return 0;
23062 }
23063 _ACEOF
23064 if ac_fn_c_try_link "$LINENO"; then :
23065   ac_cv_lib_Xtst_XTestQueryExtension=yes
23066 else
23067   ac_cv_lib_Xtst_XTestQueryExtension=no
23068 fi
23069 rm -f core conftest.err conftest.$ac_objext \
23070     conftest$ac_exeext conftest.$ac_ext
23071 LIBS=$ac_check_lib_save_LIBS
23072 fi
23073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
23074 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
23075 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
23076   true
23077 else
23078   as_fn_error "libXtst not found, required by java.awt.Robot" "$LINENO" 5
23079 fi
23080
23081    fi
23082
23083    # On Solaris, and maybe other architectures, the Boehm collector
23084    # requires -ldl.
23085    if test "$GC" = boehm; then
23086       case "${host}" in
23087           mips-sgi-irix6*)
23088             # IRIX 6 lacks a N64 libdl.so, but only the N32 (default multilib)
23089             # libgcj.spec is used, so override here
23090             SYSTEMSPEC="$SYSTEMSPEC %{!mabi=64:-ldl}"
23091           ;;
23092           *)
23093             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
23094 $as_echo_n "checking for main in -ldl... " >&6; }
23095 if test "${ac_cv_lib_dl_main+set}" = set; then :
23096   $as_echo_n "(cached) " >&6
23097 else
23098   ac_check_lib_save_LIBS=$LIBS
23099 LIBS="-ldl  $LIBS"
23100 if test x$gcc_no_link = xyes; then
23101   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23102 fi
23103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23104 /* end confdefs.h.  */
23105
23106
23107 int
23108 main ()
23109 {
23110 return main ();
23111   ;
23112   return 0;
23113 }
23114 _ACEOF
23115 if ac_fn_c_try_link "$LINENO"; then :
23116   ac_cv_lib_dl_main=yes
23117 else
23118   ac_cv_lib_dl_main=no
23119 fi
23120 rm -f core conftest.err conftest.$ac_objext \
23121     conftest$ac_exeext conftest.$ac_ext
23122 LIBS=$ac_check_lib_save_LIBS
23123 fi
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
23125 $as_echo "$ac_cv_lib_dl_main" >&6; }
23126 if test "x$ac_cv_lib_dl_main" = x""yes; then :
23127   SYSTEMSPEC="$SYSTEMSPEC -ldl"
23128 fi
23129
23130           ;;
23131       esac
23132    fi
23133 fi
23134
23135 # Use a semicolon as CLASSPATH separator for MinGW, otherwise a colon.
23136 case $build in
23137     *-mingw32) CLASSPATH_SEPARATOR=';' ;;
23138     *)         CLASSPATH_SEPARATOR=':' ;;
23139 esac
23140
23141
23142 # We must search the source tree for java.lang, since we still don't
23143 # have libgcj.jar nor java/lang/*.class
23144 GCJ_SAVE_CPPFLAGS=$CPPFLAGS
23145 CPPFLAGS="$CPPFLAGS -I`${PWDCMD-pwd}` -I`cd $srcdir && ${PWDCMD-pwd}`"
23146
23147 # Since some classes depend on this one, we need its source available
23148 # before we can do any GCJ compilation test :-(
23149 if test ! -f gnu/classpath/Configuration.java; then
23150   test -d gnu || mkdir gnu
23151   test -d gnu/classpath || mkdir gnu/classpath
23152   # Note that it is not crucial that all the values here be correct.
23153   sed -e "s,@prefix@,$expanded_prefix," \
23154       -e "s,@VERSION@,$VERSION," \
23155       -e "s,@LIBDEBUG@,false," \
23156       -e "s,@INIT_LOAD_LIBRARY@,false," \
23157       -e "s,@@,$LIBGCJDEBUG," \
23158       -e "s,@default_toolkit@,$TOOLKIT," \
23159       -e "s,@JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION@,false," \
23160       -e "s,@GTK_CAIRO_ENABLED@,false," \
23161       -e "s,@ECJ_JAR@,," \
23162       -e "s,@WANT_NATIVE_BIG_INTEGER@,false," \
23163         < $srcdir/classpath/gnu/classpath/Configuration.java.in \
23164         > gnu/classpath/Configuration.java
23165   # We do not want to redirect the output of the grep below to /dev/null,
23166   # but we add /dev/null to the input list so that grep will print the
23167   # filename of Configuration.java in case it finds any matches.
23168   if grep '@.*@' gnu/classpath/Configuration.java /dev/null; then
23169     as_fn_error "configure.ac is missing the substitutions above" "$LINENO" 5
23170   fi
23171 fi
23172
23173
23174 if test -n "$ac_tool_prefix"; then
23175   for ac_prog in gcj
23176   do
23177     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
23178 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
23179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23180 $as_echo_n "checking for $ac_word... " >&6; }
23181 if test "${ac_cv_prog_GCJ+set}" = set; then :
23182   $as_echo_n "(cached) " >&6
23183 else
23184   if test -n "$GCJ"; then
23185   ac_cv_prog_GCJ="$GCJ" # Let the user override the test.
23186 else
23187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23188 for as_dir in $PATH
23189 do
23190   IFS=$as_save_IFS
23191   test -z "$as_dir" && as_dir=.
23192     for ac_exec_ext in '' $ac_executable_extensions; do
23193   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23194     ac_cv_prog_GCJ="$ac_tool_prefix$ac_prog"
23195     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23196     break 2
23197   fi
23198 done
23199   done
23200 IFS=$as_save_IFS
23201
23202 fi
23203 fi
23204 GCJ=$ac_cv_prog_GCJ
23205 if test -n "$GCJ"; then
23206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCJ" >&5
23207 $as_echo "$GCJ" >&6; }
23208 else
23209   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23210 $as_echo "no" >&6; }
23211 fi
23212
23213
23214     test -n "$GCJ" && break
23215   done
23216 fi
23217 if test -z "$GCJ"; then
23218   ac_ct_GCJ=$GCJ
23219   for ac_prog in gcj
23220 do
23221   # Extract the first word of "$ac_prog", so it can be a program name with args.
23222 set dummy $ac_prog; ac_word=$2
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23224 $as_echo_n "checking for $ac_word... " >&6; }
23225 if test "${ac_cv_prog_ac_ct_GCJ+set}" = set; then :
23226   $as_echo_n "(cached) " >&6
23227 else
23228   if test -n "$ac_ct_GCJ"; then
23229   ac_cv_prog_ac_ct_GCJ="$ac_ct_GCJ" # Let the user override the test.
23230 else
23231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23232 for as_dir in $PATH
23233 do
23234   IFS=$as_save_IFS
23235   test -z "$as_dir" && as_dir=.
23236     for ac_exec_ext in '' $ac_executable_extensions; do
23237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23238     ac_cv_prog_ac_ct_GCJ="$ac_prog"
23239     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23240     break 2
23241   fi
23242 done
23243   done
23244 IFS=$as_save_IFS
23245
23246 fi
23247 fi
23248 ac_ct_GCJ=$ac_cv_prog_ac_ct_GCJ
23249 if test -n "$ac_ct_GCJ"; then
23250   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCJ" >&5
23251 $as_echo "$ac_ct_GCJ" >&6; }
23252 else
23253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23254 $as_echo "no" >&6; }
23255 fi
23256
23257
23258   test -n "$ac_ct_GCJ" && break
23259 done
23260
23261   if test "x$ac_ct_GCJ" = x; then
23262     GCJ="gcj"
23263   else
23264     case $cross_compiling:$ac_tool_warned in
23265 yes:)
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23267 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23268 ac_tool_warned=yes ;;
23269 esac
23270     GCJ=$ac_ct_GCJ
23271   fi
23272 fi
23273
23274 test -z "$GCJ" && as_fn_error "no acceptable gcj found in \$PATH" "$LINENO" 5
23275 if test "x${GCJFLAGS-unset}" = xunset; then
23276    GCJFLAGS="-g -O2"
23277 fi
23278
23279
23280 depcc="$GCJ"  am_compiler_list='gcc3 gcc'
23281
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
23283 $as_echo_n "checking dependency style of $depcc... " >&6; }
23284 if test "${am_cv_GCJ_dependencies_compiler_type+set}" = set; then :
23285   $as_echo_n "(cached) " >&6
23286 else
23287   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
23288   # We make a subdir and do the tests there.  Otherwise we can end up
23289   # making bogus files that we don't know about and never remove.  For
23290   # instance it was reported that on HP-UX the gcc test will end up
23291   # making a dummy file named `D' -- because `-MD' means `put the output
23292   # in D'.
23293   mkdir conftest.dir
23294   # Copy depcomp to subdir because otherwise we won't find it if we're
23295   # using a relative directory.
23296   cp "$am_depcomp" conftest.dir
23297   cd conftest.dir
23298   # We will build objects and dependencies in a subdirectory because
23299   # it helps to detect inapplicable dependency modes.  For instance
23300   # both Tru64's cc and ICC support -MD to output dependencies as a
23301   # side effect of compilation, but ICC will put the dependencies in
23302   # the current directory while Tru64 will put them in the object
23303   # directory.
23304   mkdir sub
23305
23306   am_cv_GCJ_dependencies_compiler_type=none
23307   if test "$am_compiler_list" = ""; then
23308      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
23309   fi
23310   am__universal=false
23311
23312
23313   for depmode in $am_compiler_list; do
23314     # Setup a source with many dependencies, because some compilers
23315     # like to wrap large dependency lists on column 80 (with \), and
23316     # we should not choose a depcomp mode which is confused by this.
23317     #
23318     # We need to recreate these files for each test, as the compiler may
23319     # overwrite some of them when testing with obscure command lines.
23320     # This happens at least with the AIX C compiler.
23321     : > sub/conftest.c
23322     for i in 1 2 3 4 5 6; do
23323       echo '#include "conftst'$i'.h"' >> sub/conftest.c
23324       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
23325       # Solaris 8's {/usr,}/bin/sh.
23326       touch sub/conftst$i.h
23327     done
23328     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
23329
23330     # We check with `-c' and `-o' for the sake of the "dashmstdout"
23331     # mode.  It turns out that the SunPro C++ compiler does not properly
23332     # handle `-M -o', and we need to detect this.  Also, some Intel
23333     # versions had trouble with output in subdirs
23334     am__obj=sub/conftest.${OBJEXT-o}
23335     am__minus_obj="-o $am__obj"
23336     case $depmode in
23337     gcc)
23338       # This depmode causes a compiler race in universal mode.
23339       test "$am__universal" = false || continue
23340       ;;
23341     nosideeffect)
23342       # after this tag, mechanisms are not by side-effect, so they'll
23343       # only be used when explicitly requested
23344       if test "x$enable_dependency_tracking" = xyes; then
23345         continue
23346       else
23347         break
23348       fi
23349       ;;
23350     msvisualcpp | msvcmsys)
23351       # This compiler won't grok `-c -o', but also, the minuso test has
23352       # not run yet.  These depmodes are late enough in the game, and
23353       # so weak that their functioning should not be impacted.
23354       am__obj=conftest.${OBJEXT-o}
23355       am__minus_obj=
23356       ;;
23357     none) break ;;
23358     esac
23359     if depmode=$depmode \
23360        source=sub/conftest.c object=$am__obj \
23361        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
23362        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
23363          >/dev/null 2>conftest.err &&
23364        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
23365        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
23366        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
23367        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
23368       # icc doesn't choke on unknown options, it will just issue warnings
23369       # or remarks (even with -Werror).  So we grep stderr for any message
23370       # that says an option was ignored or not supported.
23371       # When given -MP, icc 7.0 and 7.1 complain thusly:
23372       #   icc: Command line warning: ignoring option '-M'; no argument required
23373       # The diagnosis changed in icc 8.0:
23374       #   icc: Command line remark: option '-MP' not supported
23375       if (grep 'ignoring option' conftest.err ||
23376           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
23377         am_cv_GCJ_dependencies_compiler_type=$depmode
23378         break
23379       fi
23380     fi
23381   done
23382
23383   cd ..
23384   rm -rf conftest.dir
23385 else
23386   am_cv_GCJ_dependencies_compiler_type=none
23387 fi
23388
23389 fi
23390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_GCJ_dependencies_compiler_type" >&5
23391 $as_echo "$am_cv_GCJ_dependencies_compiler_type" >&6; }
23392 GCJDEPMODE=depmode=$am_cv_GCJ_dependencies_compiler_type
23393
23394  if
23395   test "x$enable_dependency_tracking" != xno \
23396   && test "$am_cv_GCJ_dependencies_compiler_type" = gcc3; then
23397   am__fastdepGCJ_TRUE=
23398   am__fastdepGCJ_FALSE='#'
23399 else
23400   am__fastdepGCJ_TRUE='#'
23401   am__fastdepGCJ_FALSE=
23402 fi
23403
23404
23405
23406
23407 # Now remove it.
23408 rm -f gnu/classpath/Configuration.java
23409
23410 CPPFLAGS=$GCJ_SAVE_CPPFLAGS
23411
23412 # The cast to long int works around a bug in the HP C Compiler
23413 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23414 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23415 # This bug is HP SR number 8606223364.
23416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
23417 $as_echo_n "checking size of void *... " >&6; }
23418 if test "${ac_cv_sizeof_void_p+set}" = set; then :
23419   $as_echo_n "(cached) " >&6
23420 else
23421   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
23422
23423 else
23424   if test "$ac_cv_type_void_p" = yes; then
23425      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23427 { as_fn_set_status 77
23428 as_fn_error "cannot compute sizeof (void *)
23429 See \`config.log' for more details." "$LINENO" 5; }; }
23430    else
23431      ac_cv_sizeof_void_p=0
23432    fi
23433 fi
23434
23435 fi
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
23437 $as_echo "$ac_cv_sizeof_void_p" >&6; }
23438
23439
23440
23441 cat >>confdefs.h <<_ACEOF
23442 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
23443 _ACEOF
23444
23445
23446
23447  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23448 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23449 if test "${ac_cv_c_bigendian+set}" = set; then :
23450   $as_echo_n "(cached) " >&6
23451 else
23452   ac_cv_c_bigendian=unknown
23453     # See if we're dealing with a universal compiler.
23454     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23455 /* end confdefs.h.  */
23456 #ifndef __APPLE_CC__
23457                not a universal capable compiler
23458              #endif
23459              typedef int dummy;
23460
23461 _ACEOF
23462 if ac_fn_c_try_compile "$LINENO"; then :
23463
23464         # Check for potential -arch flags.  It is not universal unless
23465         # there are at least two -arch flags with different values.
23466         ac_arch=
23467         ac_prev=
23468         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23469          if test -n "$ac_prev"; then
23470            case $ac_word in
23471              i?86 | x86_64 | ppc | ppc64)
23472                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23473                  ac_arch=$ac_word
23474                else
23475                  ac_cv_c_bigendian=universal
23476                  break
23477                fi
23478                ;;
23479            esac
23480            ac_prev=
23481          elif test "x$ac_word" = "x-arch"; then
23482            ac_prev=arch
23483          fi
23484        done
23485 fi
23486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23487     if test $ac_cv_c_bigendian = unknown; then
23488       # See if sys/param.h defines the BYTE_ORDER macro.
23489       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23490 /* end confdefs.h.  */
23491 #include <sys/types.h>
23492              #include <sys/param.h>
23493
23494 int
23495 main ()
23496 {
23497 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23498                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23499                      && LITTLE_ENDIAN)
23500               bogus endian macros
23501              #endif
23502
23503   ;
23504   return 0;
23505 }
23506 _ACEOF
23507 if ac_fn_c_try_compile "$LINENO"; then :
23508   # It does; now see whether it defined to BIG_ENDIAN or not.
23509          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23510 /* end confdefs.h.  */
23511 #include <sys/types.h>
23512                 #include <sys/param.h>
23513
23514 int
23515 main ()
23516 {
23517 #if BYTE_ORDER != BIG_ENDIAN
23518                  not big endian
23519                 #endif
23520
23521   ;
23522   return 0;
23523 }
23524 _ACEOF
23525 if ac_fn_c_try_compile "$LINENO"; then :
23526   ac_cv_c_bigendian=yes
23527 else
23528   ac_cv_c_bigendian=no
23529 fi
23530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23531 fi
23532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533     fi
23534     if test $ac_cv_c_bigendian = unknown; then
23535       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23536       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23537 /* end confdefs.h.  */
23538 #include <limits.h>
23539
23540 int
23541 main ()
23542 {
23543 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23544               bogus endian macros
23545              #endif
23546
23547   ;
23548   return 0;
23549 }
23550 _ACEOF
23551 if ac_fn_c_try_compile "$LINENO"; then :
23552   # It does; now see whether it defined to _BIG_ENDIAN or not.
23553          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23554 /* end confdefs.h.  */
23555 #include <limits.h>
23556
23557 int
23558 main ()
23559 {
23560 #ifndef _BIG_ENDIAN
23561                  not big endian
23562                 #endif
23563
23564   ;
23565   return 0;
23566 }
23567 _ACEOF
23568 if ac_fn_c_try_compile "$LINENO"; then :
23569   ac_cv_c_bigendian=yes
23570 else
23571   ac_cv_c_bigendian=no
23572 fi
23573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23574 fi
23575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23576     fi
23577     if test $ac_cv_c_bigendian = unknown; then
23578       # Compile a test program.
23579       if test "$cross_compiling" = yes; then :
23580   # Try to guess by grepping values from an object file.
23581          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23582 /* end confdefs.h.  */
23583 short int ascii_mm[] =
23584                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23585                 short int ascii_ii[] =
23586                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23587                 int use_ascii (int i) {
23588                   return ascii_mm[i] + ascii_ii[i];
23589                 }
23590                 short int ebcdic_ii[] =
23591                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23592                 short int ebcdic_mm[] =
23593                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23594                 int use_ebcdic (int i) {
23595                   return ebcdic_mm[i] + ebcdic_ii[i];
23596                 }
23597                 extern int foo;
23598
23599 int
23600 main ()
23601 {
23602 return use_ascii (foo) == use_ebcdic (foo);
23603   ;
23604   return 0;
23605 }
23606 _ACEOF
23607 if ac_fn_c_try_compile "$LINENO"; then :
23608   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23609               ac_cv_c_bigendian=yes
23610             fi
23611             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23612               if test "$ac_cv_c_bigendian" = unknown; then
23613                 ac_cv_c_bigendian=no
23614               else
23615                 # finding both strings is unlikely to happen, but who knows?
23616                 ac_cv_c_bigendian=unknown
23617               fi
23618             fi
23619 fi
23620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23621 else
23622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23623 /* end confdefs.h.  */
23624 $ac_includes_default
23625 int
23626 main ()
23627 {
23628
23629              /* Are we little or big endian?  From Harbison&Steele.  */
23630              union
23631              {
23632                long int l;
23633                char c[sizeof (long int)];
23634              } u;
23635              u.l = 1;
23636              return u.c[sizeof (long int) - 1] == 1;
23637
23638   ;
23639   return 0;
23640 }
23641 _ACEOF
23642 if ac_fn_c_try_run "$LINENO"; then :
23643   ac_cv_c_bigendian=no
23644 else
23645   ac_cv_c_bigendian=yes
23646 fi
23647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23648   conftest.$ac_objext conftest.beam conftest.$ac_ext
23649 fi
23650
23651     fi
23652 fi
23653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23654 $as_echo "$ac_cv_c_bigendian" >&6; }
23655  case $ac_cv_c_bigendian in #(
23656    yes)
23657      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23658 ;; #(
23659    no)
23660       ;; #(
23661    universal)
23662
23663 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23664
23665      ;; #(
23666    *)
23667      as_fn_error "unknown endianness
23668  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23669  esac
23670
23671
23672 ZLIBS=
23673 SYS_ZLIBS=
23674 ZINCS=
23675
23676 if test -z "$ZLIBSPEC"; then
23677    # Use zlib from the GCC tree.
23678    ZINCS='-I$(top_srcdir)/../zlib'
23679    ZLIBS=../zlib/libzgcj_convenience.la
23680 else
23681    # System's zlib.
23682    SYS_ZLIBS="$ZLIBSPEC"
23683 fi
23684
23685
23686
23687
23688
23689
23690
23691
23692
23693
23694  if test "$NATIVE" = yes; then
23695   NATIVE_TRUE=
23696   NATIVE_FALSE='#'
23697 else
23698   NATIVE_TRUE='#'
23699   NATIVE_FALSE=
23700 fi
23701
23702  if test "$enable_shared" = yes; then
23703   ENABLE_SHARED_TRUE=
23704   ENABLE_SHARED_FALSE='#'
23705 else
23706   ENABLE_SHARED_TRUE='#'
23707   ENABLE_SHARED_FALSE=
23708 fi
23709
23710  if test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes; then
23711   NEEDS_DATA_START_TRUE=
23712   NEEDS_DATA_START_FALSE='#'
23713 else
23714   NEEDS_DATA_START_TRUE='#'
23715   NEEDS_DATA_START_FALSE=
23716 fi
23717
23718  if test -z "${with_multisubdir}"; then
23719   INSTALL_BINARIES_TRUE=
23720   INSTALL_BINARIES_FALSE='#'
23721 else
23722   INSTALL_BINARIES_TRUE='#'
23723   INSTALL_BINARIES_FALSE=
23724 fi
23725
23726
23727
23728 # Process the option "--enable-version-specific-runtime-libs"
23729 # Calculate toolexeclibdir
23730 case ${version_specific_libs} in
23731   yes)
23732     # Need the gcc compiler version to know where to install libraries
23733     # and header files if --enable-version-specific-runtime-libs option
23734     # is selected.
23735     includedir='$(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/include/'
23736     toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
23737     toolexecmainlibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
23738     toolexeclibdir=$toolexecmainlibdir
23739     ;;
23740   no)
23741     if test -n "$with_cross_host" &&
23742        test x"$with_cross_host" != x"no"; then
23743       # Install a library built with a cross compiler in tooldir, not libdir.
23744       toolexecdir='$(exec_prefix)/$(target_noncanonical)'
23745       toolexecmainlibdir='$(toolexecdir)/lib'
23746     else
23747       toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
23748       toolexecmainlibdir='$(libdir)'
23749     fi
23750     multi_os_directory=`$CC -print-multi-os-directory`
23751     case $multi_os_directory in
23752       .) toolexeclibdir=$toolexecmainlibdir ;; # Avoid trailing /.
23753       *) toolexeclibdir=$toolexecmainlibdir/$multi_os_directory ;;
23754     esac
23755     ;;
23756 esac
23757
23758
23759
23760
23761 # Determine gcj and libgcj version number.
23762 gcjversion=`cat "$srcdir/../gcc/BASE-VER"`
23763 libgcj_soversion=`awk -F: '/^[^#].*:/ { print $1 }' $srcdir/libtool-version`
23764 GCJVERSION=$gcjversion
23765
23766
23767 cat >>confdefs.h <<_ACEOF
23768 #define GCJVERSION "$GCJVERSION"
23769 _ACEOF
23770
23771
23772 # Determine where the standard .db file and GNU Classpath JNI
23773 # libraries are found.
23774 gcjsubdir=gcj-$gcjversion-$libgcj_soversion
23775 multi_os_directory=`$CC -print-multi-os-directory`
23776 case $multi_os_directory in
23777   .)
23778    dbexecdir='$(libdir)/'$gcjsubdir # Avoid /.
23779    ;;
23780   *)
23781    dbexecdir='$(libdir)/'$multi_os_directory/$gcjsubdir
23782    ;;
23783 esac
23784
23785
23786
23787
23788 $as_echo "#define JV_VERSION \"1.5.0\"" >>confdefs.h
23789
23790
23791 $as_echo "#define JV_API_VERSION \"1.5\"" >>confdefs.h
23792
23793
23794
23795 case "${with_gxx_include_dir}" in
23796   yes)
23797     as_fn_error "--with-gxx-include-dir=[dir] requires a directory" "$LINENO" 5
23798     ;;
23799   no | "")
23800     case "${enable_version_specific_runtime_libs}" in
23801       yes) gxx_include_dir='$(libsubdir)/include/c++' ;;
23802       *)
23803         libstdcxx_incdir='c++/$(gcc_version)'
23804         gxx_include_dir='include/$(libstdcxx_incdir)'
23805         if test -n "$with_cross_host" &&
23806            test x"$with_cross_host" != x"no"; then
23807           gxx_include_dir='${prefix}/${target_alias}/'"$gxx_include_dir"
23808         else
23809           gxx_include_dir='${prefix}/'"$gxx_include_dir"
23810         fi;;
23811     esac ;;
23812   *) gxx_include_dir=${with_gxx_include_dir} ;;
23813 esac
23814
23815
23816
23817
23818 # We check for sys/filio.h because Solaris 2.5 defines FIONREAD there.
23819 # On that system, sys/ioctl.h will not include sys/filio.h unless
23820 # BSD_COMP is defined; just including sys/filio.h is simpler.
23821 # We avoid AC_HEADER_DIRENT since we really only care about dirent.h
23822 # for now.  If you change this, you also must update natFile.cc.
23823 for ac_header in unistd.h bstring.h sys/time.h sys/types.h fcntl.h \
23824                   sys/ioctl.h sys/filio.h sys/stat.h sys/select.h \
23825                   sys/socket.h netinet/in.h arpa/inet.h netdb.h \
23826                   pwd.h sys/config.h stdint.h langinfo.h locale.h \
23827                   dirent.h sys/rw_lock.h magic.h ifaddrs.h
23828 do :
23829   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23830 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23831 eval as_val=\$$as_ac_Header
23832    if test "x$as_val" = x""yes; then :
23833   cat >>confdefs.h <<_ACEOF
23834 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23835 _ACEOF
23836
23837 fi
23838
23839 done
23840
23841
23842 # sys/socket.h is a prerequisite for net/if.h on Solaris.
23843 for ac_header in net/if.h
23844 do :
23845   ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
23846 #ifdef HAVE_SYS_SOCKET_H
23847 #include <sys/socket.h>
23848 #endif
23849
23850 "
23851 if test "x$ac_cv_header_net_if_h" = x""yes; then :
23852   cat >>confdefs.h <<_ACEOF
23853 #define HAVE_NET_IF_H 1
23854 _ACEOF
23855
23856 fi
23857
23858 done
23859
23860
23861 for ac_header in inttypes.h
23862 do :
23863   ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
23864 if test "x$ac_cv_header_inttypes_h" = x""yes; then :
23865   cat >>confdefs.h <<_ACEOF
23866 #define HAVE_INTTYPES_H 1
23867 _ACEOF
23868
23869
23870 $as_echo "#define HAVE_INTTYPES_H 1" >>confdefs.h
23871
23872
23873 $as_echo "#define JV_HAVE_INTTYPES_H 1" >>confdefs.h
23874
23875
23876 fi
23877
23878 done
23879
23880
23881 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23882 if test "x$ac_cv_type_ssize_t" = x""yes; then :
23883
23884 else
23885
23886 cat >>confdefs.h <<_ACEOF
23887 #define ssize_t int
23888 _ACEOF
23889
23890 fi
23891
23892 ac_fn_c_check_type "$LINENO" "magic_t" "ac_cv_type_magic_t" "
23893 #ifdef HAVE_MAGIC_H
23894 #include <magic.h>
23895 #endif
23896 "
23897 if test "x$ac_cv_type_magic_t" = x""yes; then :
23898
23899
23900 $as_echo "#define HAVE_MAGIC_T 1" >>confdefs.h
23901
23902 fi
23903
23904
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23906 $as_echo_n "checking for in_addr_t... " >&6; }
23907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23908 /* end confdefs.h.  */
23909 #include <sys/types.h>
23910 #if STDC_HEADERS
23911 #include <stdlib.h>
23912 #include <stddef.h>
23913 #endif
23914 #if HAVE_NETINET_IN_H
23915 #include <netinet/in.h>
23916 #endif
23917 int
23918 main ()
23919 {
23920 in_addr_t foo;
23921   ;
23922   return 0;
23923 }
23924 _ACEOF
23925 if ac_fn_c_try_compile "$LINENO"; then :
23926
23927 $as_echo "#define HAVE_IN_ADDR_T 1" >>confdefs.h
23928
23929    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23930 $as_echo "yes" >&6; }
23931 else
23932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23933 $as_echo "no" >&6; }
23934 fi
23935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23936
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ip_mreq is in netinet/in.h" >&5
23938 $as_echo_n "checking whether struct ip_mreq is in netinet/in.h... " >&6; }
23939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23940 /* end confdefs.h.  */
23941 #include <netinet/in.h>
23942 int
23943 main ()
23944 {
23945 struct ip_mreq mreq;
23946   ;
23947   return 0;
23948 }
23949 _ACEOF
23950 if ac_fn_c_try_compile "$LINENO"; then :
23951
23952 $as_echo "#define HAVE_STRUCT_IP_MREQ 1" >>confdefs.h
23953
23954    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23955 $as_echo "yes" >&6; }
23956 else
23957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23958 $as_echo "no" >&6; }
23959 fi
23960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23961
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct ipv6_mreq is in netinet/in.h" >&5
23963 $as_echo_n "checking whether struct ipv6_mreq is in netinet/in.h... " >&6; }
23964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23965 /* end confdefs.h.  */
23966 #include <netinet/in.h>
23967 int
23968 main ()
23969 {
23970 struct ipv6_mreq mreq6;
23971   ;
23972   return 0;
23973 }
23974 _ACEOF
23975 if ac_fn_c_try_compile "$LINENO"; then :
23976
23977 $as_echo "#define HAVE_STRUCT_IPV6_MREQ 1" >>confdefs.h
23978
23979    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23980 $as_echo "yes" >&6; }
23981 else
23982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23983 $as_echo "no" >&6; }
23984 fi
23985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23986
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
23988 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
23989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23990 /* end confdefs.h.  */
23991 #include <netinet/in.h>
23992 int
23993 main ()
23994 {
23995 struct sockaddr_in6 addr6;
23996   ;
23997   return 0;
23998 }
23999 _ACEOF
24000 if ac_fn_c_try_compile "$LINENO"; then :
24001
24002 $as_echo "#define HAVE_INET6 1" >>confdefs.h
24003
24004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24005 $as_echo "yes" >&6; }
24006 else
24007   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24008 $as_echo "no" >&6; }
24009 fi
24010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24011
24012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t in sys/socket.h" >&5
24013 $as_echo_n "checking for socklen_t in sys/socket.h... " >&6; }
24014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24015 /* end confdefs.h.  */
24016 #define _POSIX_PII_SOCKET
24017 #include <sys/types.h>
24018 #include <sys/socket.h>
24019 int
24020 main ()
24021 {
24022 socklen_t x = 5;
24023   ;
24024   return 0;
24025 }
24026 _ACEOF
24027 if ac_fn_c_try_compile "$LINENO"; then :
24028
24029 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
24030
24031    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24032 $as_echo "yes" >&6; }
24033 else
24034   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24035 $as_echo "no" >&6; }
24036 fi
24037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24038
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
24040 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
24041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24042 /* end confdefs.h.  */
24043 #include <time.h>
24044 int
24045 main ()
24046 {
24047 struct tm tim; tim.tm_gmtoff = 0;
24048   ;
24049   return 0;
24050 }
24051 _ACEOF
24052 if ac_fn_c_try_compile "$LINENO"; then :
24053
24054 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
24055
24056    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24057 $as_echo "yes" >&6; }
24058 else
24059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24060 $as_echo "no" >&6; }
24061    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
24062 $as_echo_n "checking for global timezone variable... " >&6; }
24063                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24064 /* end confdefs.h.  */
24065 #include <time.h>
24066 int
24067 main ()
24068 {
24069 void i(){long z2 = 2*timezone;}
24070   ;
24071   return 0;
24072 }
24073 _ACEOF
24074 if ac_fn_c_try_compile "$LINENO"; then :
24075
24076 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
24077
24078       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24079 $as_echo "yes" >&6; }
24080 else
24081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24082 $as_echo "no" >&6; }
24083        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
24084 $as_echo_n "checking for global _timezone variable... " >&6; }
24085               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24086 /* end confdefs.h.  */
24087 #include <time.h>
24088 int
24089 main ()
24090 {
24091 long z2 = _timezone;
24092   ;
24093   return 0;
24094 }
24095 _ACEOF
24096 if ac_fn_c_try_compile "$LINENO"; then :
24097
24098 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
24099
24100           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24101 $as_echo "yes" >&6; }
24102 else
24103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24104 $as_echo "no" >&6; }
24105 fi
24106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24107 fi
24108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24109 fi
24110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24111
24112 for ac_prog in perl
24113 do
24114   # Extract the first word of "$ac_prog", so it can be a program name with args.
24115 set dummy $ac_prog; ac_word=$2
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24117 $as_echo_n "checking for $ac_word... " >&6; }
24118 if test "${ac_cv_prog_PERL+set}" = set; then :
24119   $as_echo_n "(cached) " >&6
24120 else
24121   if test -n "$PERL"; then
24122   ac_cv_prog_PERL="$PERL" # Let the user override the test.
24123 else
24124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24125 for as_dir in $PATH
24126 do
24127   IFS=$as_save_IFS
24128   test -z "$as_dir" && as_dir=.
24129     for ac_exec_ext in '' $ac_executable_extensions; do
24130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24131     ac_cv_prog_PERL="$ac_prog"
24132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24133     break 2
24134   fi
24135 done
24136   done
24137 IFS=$as_save_IFS
24138
24139 fi
24140 fi
24141 PERL=$ac_cv_prog_PERL
24142 if test -n "$PERL"; then
24143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
24144 $as_echo "$PERL" >&6; }
24145 else
24146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24147 $as_echo "no" >&6; }
24148 fi
24149
24150
24151   test -n "$PERL" && break
24152 done
24153 test -n "$PERL" || PERL="false"
24154
24155
24156 SYSDEP_SOURCES=
24157 SIGNAL_HANDLER_AUX=
24158
24159 case "${host}" in
24160  i?86-*-linux*)
24161     SIGNAL_HANDLER=include/i386-signal.h
24162     ;;
24163  sparc*-sun-solaris*)
24164     SIGNAL_HANDLER=include/sparc-signal.h
24165     ;;
24166 # ia64-*)
24167 #    SYSDEP_SOURCES=sysdep/ia64.c
24168 #    test -d sysdep || mkdir sysdep
24169 #    ;;
24170  hppa*-*-linux*)
24171     SIGNAL_HANDLER=include/pa-signal.h
24172     ;;
24173  hppa*-hp-hpux*)
24174     SIGNAL_HANDLER=include/hppa-signal.h
24175     ;;
24176  ia64-*-linux*)
24177     SIGNAL_HANDLER=include/dwarf2-signal.h
24178     ;;
24179  powerpc*-*-linux*)
24180     SIGNAL_HANDLER=include/powerpc-signal.h
24181     ;;
24182  alpha*-*-linux*)
24183     SIGNAL_HANDLER=include/dwarf2-signal.h
24184     ;;
24185  s390*-*-linux*)
24186     SIGNAL_HANDLER=include/s390-signal.h
24187     ;;
24188  x86_64*-*-linux*)
24189     SIGNAL_HANDLER=include/x86_64-signal.h
24190     SIGNAL_HANDLER_AUX=include/i386-signal.h
24191     ;;
24192  sparc*-*-linux*)
24193     SIGNAL_HANDLER=include/dwarf2-signal.h
24194     ;;
24195  sh*-*-linux*)
24196     SIGNAL_HANDLER=include/sh-signal.h
24197     ;;
24198  *mingw*)
24199     SIGNAL_HANDLER=include/win32-signal.h
24200     ;;
24201  mips*-*-linux*)
24202     SIGNAL_HANDLER=include/mips-signal.h
24203     ;;
24204  m68*-*-linux*)
24205     SIGNAL_HANDLER=include/dwarf2-signal.h
24206     ;;
24207  powerpc*-*-darwin* | i?86-*-darwin[912]* | x86_64-*-darwin[912]*)
24208     SIGNAL_HANDLER=include/darwin-signal.h
24209     ;;
24210  powerpc*-*-aix*)
24211     SIGNAL_HANDLER=include/aix-signal.h
24212     ;;
24213  *)
24214     SIGNAL_HANDLER=include/default-signal.h
24215     ;;
24216 esac
24217
24218 # If we're using sjlj exceptions, forget what we just learned.
24219 if test "$enable_sjlj_exceptions" = yes; then
24220    SIGNAL_HANDLER=include/default-signal.h
24221    SIGNAL_HANDLER_AUX=
24222 fi
24223
24224
24225
24226 if test -z "$SIGNAL_HANDLER_AUX"; then
24227   SIGNAL_HANDLER_AUX=$SIGNAL_HANDLER
24228 fi
24229
24230 ac_config_links="$ac_config_links include/java-signal.h:$SIGNAL_HANDLER include/java-signal-aux.h:$SIGNAL_HANDLER_AUX"
24231
24232
24233 if test "${multilib}" = "yes"; then
24234   multilib_arg="--enable-multilib"
24235 else
24236   multilib_arg=
24237 fi
24238
24239 # See if we support thread-local storage.
24240
24241
24242    # Check whether --enable-tls was given.
24243 if test "${enable_tls+set}" = set; then :
24244   enableval=$enable_tls;
24245       case "$enableval" in
24246        yes|no) ;;
24247        *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
24248       esac
24249
24250 else
24251   enable_tls=yes
24252 fi
24253
24254
24255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
24256 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
24257 if test "${gcc_cv_have_tls+set}" = set; then :
24258   $as_echo_n "(cached) " >&6
24259 else
24260
24261     if test "$cross_compiling" = yes; then :
24262                 if test x$gcc_no_link = xyes; then
24263   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24264 fi
24265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24266 /* end confdefs.h.  */
24267 __thread int a; int b; int main() { return a = b; }
24268 _ACEOF
24269 if ac_fn_c_try_link "$LINENO"; then :
24270   chktls_save_LDFLAGS="$LDFLAGS"
24271                           case $host in
24272             *-*-linux*)
24273               LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
24274               ;;
24275           esac
24276           chktls_save_CFLAGS="$CFLAGS"
24277           CFLAGS="-fPIC $CFLAGS"
24278                   if test x$gcc_no_link = xyes; then
24279   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24280 fi
24281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24282 /* end confdefs.h.  */
24283 int f() { return 0; }
24284 _ACEOF
24285 if ac_fn_c_try_link "$LINENO"; then :
24286   if test x$gcc_no_link = xyes; then
24287   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24288 fi
24289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24290 /* end confdefs.h.  */
24291 __thread int a; int b; int f() { return a = b; }
24292 _ACEOF
24293 if ac_fn_c_try_link "$LINENO"; then :
24294   gcc_cv_have_tls=yes
24295 else
24296   gcc_cv_have_tls=no
24297 fi
24298 rm -f core conftest.err conftest.$ac_objext \
24299     conftest$ac_exeext conftest.$ac_ext
24300 else
24301   gcc_cv_have_tls=yes
24302 fi
24303 rm -f core conftest.err conftest.$ac_objext \
24304     conftest$ac_exeext conftest.$ac_ext
24305           CFLAGS="$chktls_save_CFLAGS"
24306           LDFLAGS="$chktls_save_LDFLAGS"
24307 else
24308   gcc_cv_have_tls=no
24309 fi
24310 rm -f core conftest.err conftest.$ac_objext \
24311     conftest$ac_exeext conftest.$ac_ext
24312
24313
24314 else
24315   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24316 /* end confdefs.h.  */
24317 __thread int a; int b; int main() { return a = b; }
24318 _ACEOF
24319 if ac_fn_c_try_run "$LINENO"; then :
24320                       chktls_save_LDFLAGS="$LDFLAGS"
24321       LDFLAGS="-static $LDFLAGS"
24322       if test x$gcc_no_link = xyes; then
24323   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24324 fi
24325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24326 /* end confdefs.h.  */
24327 int main() { return 0; }
24328 _ACEOF
24329 if ac_fn_c_try_link "$LINENO"; then :
24330   if test "$cross_compiling" = yes; then :
24331   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24332 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24333 as_fn_error "cannot run test program while cross compiling
24334 See \`config.log' for more details." "$LINENO" 5; }
24335 else
24336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24337 /* end confdefs.h.  */
24338 __thread int a; int b; int main() { return a = b; }
24339 _ACEOF
24340 if ac_fn_c_try_run "$LINENO"; then :
24341   gcc_cv_have_tls=yes
24342 else
24343   gcc_cv_have_tls=no
24344 fi
24345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24346   conftest.$ac_objext conftest.beam conftest.$ac_ext
24347 fi
24348
24349 else
24350   gcc_cv_have_tls=yes
24351 fi
24352 rm -f core conftest.err conftest.$ac_objext \
24353     conftest$ac_exeext conftest.$ac_ext
24354       LDFLAGS="$chktls_save_LDFLAGS"
24355       if test $gcc_cv_have_tls = yes; then
24356                                                 chktls_save_CFLAGS="$CFLAGS"
24357         thread_CFLAGS=failed
24358         for flag in '' '-pthread' '-lpthread'; do
24359           CFLAGS="$flag $chktls_save_CFLAGS"
24360           if test x$gcc_no_link = xyes; then
24361   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24362 fi
24363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24364 /* end confdefs.h.  */
24365 #include <pthread.h>
24366                 void *g(void *d) { return NULL; }
24367 int
24368 main ()
24369 {
24370 pthread_t t; pthread_create(&t,NULL,g,NULL);
24371   ;
24372   return 0;
24373 }
24374 _ACEOF
24375 if ac_fn_c_try_link "$LINENO"; then :
24376   thread_CFLAGS="$flag"
24377 fi
24378 rm -f core conftest.err conftest.$ac_objext \
24379     conftest$ac_exeext conftest.$ac_ext
24380           if test "X$thread_CFLAGS" != Xfailed; then
24381             break
24382           fi
24383         done
24384         CFLAGS="$chktls_save_CFLAGS"
24385         if test "X$thread_CFLAGS" != Xfailed; then
24386           CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
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 #include <pthread.h>
24396                 __thread int a;
24397                 static int *volatile a_in_other_thread;
24398                 static void *
24399                 thread_func (void *arg)
24400                 {
24401                   a_in_other_thread = &a;
24402                   return (void *)0;
24403                 }
24404 int
24405 main ()
24406 {
24407 pthread_t thread;
24408                 void *thread_retval;
24409                 int *volatile a_in_main_thread;
24410                 a_in_main_thread = &a;
24411                 if (pthread_create (&thread, (pthread_attr_t *)0,
24412                                     thread_func, (void *)0))
24413                   return 0;
24414                 if (pthread_join (thread, &thread_retval))
24415                   return 0;
24416                 return (a_in_other_thread == a_in_main_thread);
24417   ;
24418   return 0;
24419 }
24420 _ACEOF
24421 if ac_fn_c_try_run "$LINENO"; then :
24422   gcc_cv_have_tls=yes
24423 else
24424   gcc_cv_have_tls=no
24425 fi
24426 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24427   conftest.$ac_objext conftest.beam conftest.$ac_ext
24428 fi
24429
24430           CFLAGS="$chktls_save_CFLAGS"
24431         fi
24432       fi
24433 else
24434   gcc_cv_have_tls=no
24435 fi
24436 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24437   conftest.$ac_objext conftest.beam conftest.$ac_ext
24438 fi
24439
24440 fi
24441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
24442 $as_echo "$gcc_cv_have_tls" >&6; }
24443   if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
24444
24445 $as_echo "#define HAVE_TLS 1" >>confdefs.h
24446
24447   fi
24448
24449 # For _Unwind_GetIPInfo.
24450
24451
24452 # Check whether --with-system-libunwind was given.
24453 if test "${with_system_libunwind+set}" = set; then :
24454   withval=$with_system_libunwind;
24455 fi
24456
24457   # If system-libunwind was not specifically set, pick a default setting.
24458   if test x$with_system_libunwind = x; then
24459     case ${target} in
24460       ia64-*-hpux*) with_system_libunwind=yes ;;
24461       *) with_system_libunwind=no ;;
24462     esac
24463   fi
24464   # Based on system-libunwind and target, do we have ipinfo?
24465   if  test x$with_system_libunwind = xyes; then
24466     case ${target} in
24467       ia64-*-*) have_unwind_getipinfo=no ;;
24468       *) have_unwind_getipinfo=yes ;;
24469     esac
24470   else
24471     # Darwin before version 9 does not have _Unwind_GetIPInfo.
24472
24473     case ${target} in
24474       *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
24475       *) have_unwind_getipinfo=yes ;;
24476     esac
24477
24478   fi
24479
24480   if test x$have_unwind_getipinfo = xyes; then
24481
24482 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
24483
24484   fi
24485
24486
24487 # See if linker supports anonymous version scripts.
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports anonymous version scripts" >&5
24489 $as_echo_n "checking whether ld supports anonymous version scripts... " >&6; }
24490 if test "${libjava_cv_anon_version_script+set}" = set; then :
24491   $as_echo_n "(cached) " >&6
24492 else
24493   save_CFLAGS="$CFLAGS"; save_LDFLAGS="$LDFLAGS"
24494    libjava_cv_anon_version_script=no
24495    CFLAGS="$CFLAGS -fPIC";
24496    LDFLAGS="$LDFLAGS -shared -Wl,--version-script,conftest.map"
24497    echo '{ global: globalsymb*; local: *; };' > conftest.map
24498    if test x$gcc_no_link = xyes; then
24499   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24500 fi
24501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24502 /* end confdefs.h.  */
24503 void globalsymbol (void) {} void localsymbol (void) {}
24504 int
24505 main ()
24506 {
24507
24508   ;
24509   return 0;
24510 }
24511 _ACEOF
24512 if ac_fn_c_try_link "$LINENO"; then :
24513   libjava_cv_anon_version_script=gnu
24514 fi
24515 rm -f core conftest.err conftest.$ac_objext \
24516     conftest$ac_exeext conftest.$ac_ext
24517    if test x$libjava_cv_anon_version_script = xno; then
24518      case "$target_os" in
24519        solaris2*)
24520          LDFLAGS="$save_LDFLAGS"
24521          LDFLAGS="$LDFLAGS -shared -Wl,-M,conftest.map"
24522          # Sun ld doesn't understand wildcards here.
24523          echo '{ global: globalsymbol; local: *; };' > conftest.map
24524          if test x$gcc_no_link = xyes; then
24525   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24526 fi
24527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24528 /* end confdefs.h.  */
24529 void globalsymbol (void) {} void localsymbol (void) {}
24530 int
24531 main ()
24532 {
24533
24534   ;
24535   return 0;
24536 }
24537 _ACEOF
24538 if ac_fn_c_try_link "$LINENO"; then :
24539   libjava_cv_anon_version_script=sun
24540 fi
24541 rm -f core conftest.err conftest.$ac_objext \
24542     conftest$ac_exeext conftest.$ac_ext
24543          ;;
24544      esac
24545    fi
24546    CFLAGS="$save_CFLAGS"; LDFLAGS="$save_LDFLAGS"
24547
24548 fi
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libjava_cv_anon_version_script" >&5
24550 $as_echo "$libjava_cv_anon_version_script" >&6; }
24551  if test "$libjava_cv_anon_version_script" != no; then
24552   ANONVERSCRIPT_TRUE=
24553   ANONVERSCRIPT_FALSE='#'
24554 else
24555   ANONVERSCRIPT_TRUE='#'
24556   ANONVERSCRIPT_FALSE=
24557 fi
24558
24559  if test "$libjava_cv_anon_version_script" = gnu; then
24560   ANONVERSCRIPT_GNU_TRUE=
24561   ANONVERSCRIPT_GNU_FALSE='#'
24562 else
24563   ANONVERSCRIPT_GNU_TRUE='#'
24564   ANONVERSCRIPT_GNU_FALSE=
24565 fi
24566
24567  if test "$libjava_cv_anon_version_script" = sun; then
24568   ANONVERSCRIPT_SUN_TRUE=
24569   ANONVERSCRIPT_SUN_FALSE='#'
24570 else
24571   ANONVERSCRIPT_SUN_TRUE='#'
24572   ANONVERSCRIPT_SUN_FALSE=
24573 fi
24574
24575
24576 # Check if linker supports static linking on a per library basis
24577 LD_START_STATIC_SPEC=
24578 LD_FINISH_STATIC_SPEC=
24579 if $LD --help 2>&1 | grep -- -call_shared >/dev/null 2>&1; then
24580   if $LD --help 2>&1 | grep -- -non_shared >/dev/null 2>&1; then
24581     LD_START_STATIC_SPEC='%{static-libgcj:-non_shared}'
24582     LD_FINISH_STATIC_SPEC='%{static-libgcj:-call_shared}'
24583   fi
24584 fi
24585
24586
24587
24588 here=`${PWDCMD-pwd}`
24589
24590
24591 # We get this from the environment.
24592
24593
24594
24595 # Check whether --with-python-dir was given.
24596 if test "${with_python_dir+set}" = set; then :
24597   withval=$with_python_dir; with_python_dir=$withval
24598 else
24599   with_python_dir=""
24600 fi
24601
24602
24603 if test "x${with_python_dir}" = "x"
24604 then
24605   # Needed for installing Python modules during make install.
24606   python_mod_dir="\${prefix}/share/python"
24607   # Needed for substituting into aot-compile*
24608   python_mod_dir_expanded="${expanded_prefix}/share/python"
24609 else
24610   python_mod_dir="\${prefix}${with_python_dir}"
24611   python_mod_dir_expanded="${expanded_prefix}${with_python_dir}"
24612 fi
24613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Python modules dir: ${python_mod_dir_expanded}" >&5
24614 $as_echo "Python modules dir: ${python_mod_dir_expanded}" >&6; };
24615
24616
24617
24618 # needed for aot-compile-rpm
24619 MAKE=`which make`
24620
24621
24622 # Check whether --enable-aot-compile-rpm was given.
24623 if test "${enable_aot_compile_rpm+set}" = set; then :
24624   enableval=$enable_aot_compile_rpm; case "${enableval}" in
24625     yes) AOT_RPM_ENABLED=yes ;;
24626     no)  AOT_RPM_ENABLED=no ;;
24627     *)   as_fn_error "Unknown argument to enable/disable aot-compile-rpm" "$LINENO" 5 ;;
24628   esac
24629 else
24630   AOT_RPM_ENABLED=no
24631
24632 fi
24633
24634  if test "x${AOT_RPM_ENABLED}" = xyes; then
24635   INSTALL_AOT_RPM_TRUE=
24636   INSTALL_AOT_RPM_FALSE='#'
24637 else
24638   INSTALL_AOT_RPM_TRUE='#'
24639   INSTALL_AOT_RPM_FALSE=
24640 fi
24641
24642
24643 # Check whether --enable-java-home was given.
24644 if test "${enable_java_home+set}" = set; then :
24645   enableval=$enable_java_home; case "${enableval}" in
24646     yes) JAVA_HOME_ENABLED=yes ;;
24647     no)  JAVA_HOME_ENABLED=no ;;
24648     *)   as_fn_error "Unknown argument to enable/disable java-home" "$LINENO" 5 ;;
24649   esac
24650 else
24651   JAVA_HOME_ENABLED=no
24652
24653 fi
24654
24655  if test "x${JAVA_HOME_ENABLED}" = xyes; then
24656   CREATE_JAVA_HOME_TRUE=
24657   CREATE_JAVA_HOME_FALSE='#'
24658 else
24659   CREATE_JAVA_HOME_TRUE='#'
24660   CREATE_JAVA_HOME_FALSE=
24661 fi
24662
24663
24664 # Only do these checks if java-home above is enabled.
24665 if test "x${JAVA_HOME_ENABLED}" = xyes
24666 then
24667
24668
24669 # Check whether --with-gcc-suffix was given.
24670 if test "${with_gcc_suffix+set}" = set; then :
24671   withval=$with_gcc_suffix; gcc_suffix=$withval
24672 else
24673   gcc_suffix=""
24674 fi
24675
24676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCC suffix: ${gcc_suffix}" >&5
24677 $as_echo "GCC suffix: ${gcc_suffix}" >&6; }
24678
24679
24680
24681 # Check whether --with-arch-directory was given.
24682 if test "${with_arch_directory+set}" = set; then :
24683   withval=$with_arch_directory; host_cpu=$withval
24684 else
24685   host_cpu=""
24686 fi
24687
24688
24689
24690 # Check whether --with-os-directory was given.
24691 if test "${with_os_directory+set}" = set; then :
24692   withval=$with_os_directory; host_os=$withval
24693 else
24694   host_os=""
24695 fi
24696
24697
24698
24699 # Check whether --with-origin-name was given.
24700 if test "${with_origin_name+set}" = set; then :
24701   withval=$with_origin_name; origin_name=$withval
24702 else
24703   origin_name=gcj${gcc_suffix}
24704 fi
24705
24706   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JPackage origin name: ${origin_name}" >&5
24707 $as_echo "JPackage origin name: ${origin_name}" >&6; }
24708
24709
24710 # Check whether --with-arch-suffix was given.
24711 if test "${with_arch_suffix+set}" = set; then :
24712   withval=$with_arch_suffix; arch_suffix=$withval
24713 else
24714   arch_suffix=""
24715 fi
24716
24717   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch suffix: ${arch_suffix}" >&5
24718 $as_echo "arch suffix: ${arch_suffix}" >&6; }
24719
24720
24721 # Check whether --with-jvm-root-dir was given.
24722 if test "${with_jvm_root_dir+set}" = set; then :
24723   withval=$with_jvm_root_dir; jvm_root_dir=$withval
24724 else
24725   jvm_root_dir="\${prefix}/lib/jvm"
24726 fi
24727
24728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM root installation directory: ${jvm_root_dir}" >&5
24729 $as_echo "JVM root installation directory: ${jvm_root_dir}" >&6; }
24730
24731
24732 # Check whether --with-jvm-jar-dir was given.
24733 if test "${with_jvm_jar_dir+set}" = set; then :
24734   withval=$with_jvm_jar_dir; jvm_jar_dir=$withval
24735 else
24736   jvm_jar_dir=\${prefix}/lib/jvm-exports
24737 fi
24738
24739   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JAR root installation directory: ${jvm_jar_dir}" >&5
24740 $as_echo "JAR root installation directory: ${jvm_jar_dir}" >&6; }
24741
24742   JAVA_VERSION=1.5.0
24743   BUILD_VERSION=0
24744
24745
24746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: Java version: ${JAVA_VERSION}" >&5
24747 $as_echo "Java version: ${JAVA_VERSION}" >&6; }
24748
24749   jre_dir=jre
24750   jre_lnk=jre-${JAVA_VERSION}-${origin_name}
24751   sdk_lnk=java-${JAVA_VERSION}-${origin_name}
24752
24753   JVM_ROOT_DIR=${jvm_root_dir}
24754
24755   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM ROOT directory: ${JVM_ROOT_DIR}" >&5
24756 $as_echo "JVM ROOT directory: ${JVM_ROOT_DIR}" >&6; }
24757
24758   JVM_JAR_ROOT_DIR=${jvm_jar_dir}
24759
24760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&5
24761 $as_echo "JVM JAR ROOT directory: ${JVM_JAR_ROOT_DIR}" >&6; }
24762
24763   JVM_JAR_DIR=${jvm_jar_dir}
24764
24765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JVM JAR directory: ${JVM_JAR_DIR}" >&5
24766 $as_echo "JVM JAR directory: ${JVM_JAR_DIR}" >&6; }
24767
24768   JRE_DIR=${jre_dir}
24769
24770
24771   JRE_LNK=${jre_lnk}
24772
24773
24774   SDK_LNK=${sdk_lnk}
24775
24776
24777   SDK_BIN_DIR=${jvm_root_dir}/bin
24778
24779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK tools directory: ${SDK_BIN_DIR}" >&5
24780 $as_echo "SDK tools directory: ${SDK_BIN_DIR}" >&6; }
24781
24782   SDK_LIB_DIR=${jvm_root_dir}/lib
24783
24784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK jar directory: ${SDK_LIB_DIR}" >&5
24785 $as_echo "SDK jar directory: ${SDK_LIB_DIR}" >&6; }
24786
24787   SDK_INCLUDE_DIR=${jvm_root_dir}/include
24788
24789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: SDK include directory: ${SDK_INCLUDE_DIR}" >&5
24790 $as_echo "SDK include directory: ${SDK_INCLUDE_DIR}" >&6; }
24791
24792   JRE_BIN_DIR=${jvm_root_dir}/${jre_dir}/bin
24793
24794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE tools directory: ${JRE_BIN_DIR}" >&5
24795 $as_echo "JRE tools directory: ${JRE_BIN_DIR}" >&6; }
24796
24797   JRE_LIB_DIR=${jvm_root_dir}/${jre_dir}/lib
24798
24799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: JRE lib directory: ${JRE_LIB_DIR}" >&5
24800 $as_echo "JRE lib directory: ${JRE_LIB_DIR}" >&6; }
24801
24802   # Find gcj prefix using gcj found in PATH.
24803   gcj_prefix=`which gcj${gcc_suffix} | sed "s%/bin/gcj${gcc_suffix}%%"`
24804
24805   # Where do the gcj binaries live?
24806   # For jhbuild based builds, they all live in a sibling of bin called
24807   # gcj-bin.  Check for gcj-bin first, and use bin otherwise.
24808   GCJ_BIN_DIR=`if test -d ${gcj_prefix}/gcj-bin; then echo ${gcj_prefix}/gcj-bin; else echo ${gcj_prefix}/bin; fi`
24809
24810   { $as_echo "$as_me:${as_lineno-$LINENO}: result: GCJ tools directory: ${GCJ_BIN_DIR}" >&5
24811 $as_echo "GCJ tools directory: ${GCJ_BIN_DIR}" >&6; }
24812
24813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: host is ${host}" >&5
24814 $as_echo "host is ${host}" >&6; }
24815   if test "x${host_cpu}" = "x"
24816   then
24817     case ${host} in
24818       *-mingw* | *-cygwin*)
24819         host_cpu=x86;;
24820       i486-* | i586-* | i686-*)
24821         host_cpu=i386;;
24822       x86_64-*)
24823         host_cpu=amd64;;
24824       *)
24825         host_cpu=${host_cpu};;
24826     esac
24827   fi
24828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: arch directory: ${host_cpu}" >&5
24829 $as_echo "arch directory: ${host_cpu}" >&6; }
24830   CPU=${host_cpu}
24831
24832
24833   if test "x${host_os}" = "x"
24834   then
24835     case ${host} in
24836       *-mingw* | *-cygwin*)
24837         host_os=win32;;
24838       *-linux*)
24839         host_os=linux;;
24840       *)
24841         host_os=${host_os};;
24842     esac
24843   fi
24844   echo os directory: ${host_os}
24845   OS=${host_os}
24846
24847
24848   # make an expanded $libdir, for substituting into
24849   # scripts (and other non-Makefile things).
24850   LIBDIR=$libdir
24851   if test "x${exec_prefix}" = "xNONE"
24852   then
24853       lib_exec_prefix=$expanded_prefix
24854   else
24855       lib_exec_prefix=$exec_prefix
24856   fi
24857   LIBDIR=`echo $libdir | sed "s:\\\${exec_prefix}:$lib_exec_prefix:g"`
24858
24859 fi
24860
24861 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"
24862
24863
24864 if test ${multilib} = yes; then
24865   multilib_arg="--enable-multilib"
24866 else
24867   multilib_arg=
24868 fi
24869
24870 ac_config_files="$ac_config_files scripts/jar"
24871
24872 cat >confcache <<\_ACEOF
24873 # This file is a shell script that caches the results of configure
24874 # tests run on this system so they can be shared between configure
24875 # scripts and configure runs, see configure's option --config-cache.
24876 # It is not useful on other systems.  If it contains results you don't
24877 # want to keep, you may remove or edit it.
24878 #
24879 # config.status only pays attention to the cache file if you give it
24880 # the --recheck option to rerun configure.
24881 #
24882 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24883 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24884 # following values.
24885
24886 _ACEOF
24887
24888 # The following way of writing the cache mishandles newlines in values,
24889 # but we know of no workaround that is simple, portable, and efficient.
24890 # So, we kill variables containing newlines.
24891 # Ultrix sh set writes to stderr and can't be redirected directly,
24892 # and sets the high bit in the cache file unless we assign to the vars.
24893 (
24894   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24895     eval ac_val=\$$ac_var
24896     case $ac_val in #(
24897     *${as_nl}*)
24898       case $ac_var in #(
24899       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24900 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24901       esac
24902       case $ac_var in #(
24903       _ | IFS | as_nl) ;; #(
24904       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24905       *) { eval $ac_var=; unset $ac_var;} ;;
24906       esac ;;
24907     esac
24908   done
24909
24910   (set) 2>&1 |
24911     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24912     *${as_nl}ac_space=\ *)
24913       # `set' does not quote correctly, so add quotes: double-quote
24914       # substitution turns \\\\ into \\, and sed turns \\ into \.
24915       sed -n \
24916         "s/'/'\\\\''/g;
24917           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24918       ;; #(
24919     *)
24920       # `set' quotes correctly as required by POSIX, so do not add quotes.
24921       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24922       ;;
24923     esac |
24924     sort
24925 ) |
24926   sed '
24927      /^ac_cv_env_/b end
24928      t clear
24929      :clear
24930      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24931      t end
24932      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24933      :end' >>confcache
24934 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24935   if test -w "$cache_file"; then
24936     test "x$cache_file" != "x/dev/null" &&
24937       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24938 $as_echo "$as_me: updating cache $cache_file" >&6;}
24939     cat confcache >$cache_file
24940   else
24941     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24942 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24943   fi
24944 fi
24945 rm -f confcache
24946
24947 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24948 # Let make expand exec_prefix.
24949 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24950
24951 DEFS=-DHAVE_CONFIG_H
24952
24953 ac_libobjs=
24954 ac_ltlibobjs=
24955 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24956   # 1. Remove the extension, and $U if already installed.
24957   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24958   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24959   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24960   #    will be set to the directory where LIBOBJS objects are built.
24961   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24962   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24963 done
24964 LIBOBJS=$ac_libobjs
24965
24966 LTLIBOBJS=$ac_ltlibobjs
24967
24968
24969 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24970   as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24972 fi
24973 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24974   as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24976 fi
24977 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24978   as_fn_error "conditional \"AMDEP\" was never defined.
24979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24980 fi
24981 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24982   as_fn_error "conditional \"am__fastdepCC\" was never defined.
24983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24984 fi
24985 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24986   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24987 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24988 fi
24989  if test -n "$EXEEXT"; then
24990   am__EXEEXT_TRUE=
24991   am__EXEEXT_FALSE='#'
24992 else
24993   am__EXEEXT_TRUE='#'
24994   am__EXEEXT_FALSE=
24995 fi
24996
24997 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24998   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25000 fi
25001 if test -z "${BUILD_SUBLIBS_TRUE}" && test -z "${BUILD_SUBLIBS_FALSE}"; then
25002   as_fn_error "conditional \"BUILD_SUBLIBS\" was never defined.
25003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25004 fi
25005 if test -z "${XLIB_AWT_TRUE}" && test -z "${XLIB_AWT_FALSE}"; then
25006   as_fn_error "conditional \"XLIB_AWT\" was never defined.
25007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25008 fi
25009 if test -z "${X_AWT_TRUE}" && test -z "${X_AWT_FALSE}"; then
25010   as_fn_error "conditional \"X_AWT\" was never defined.
25011 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25012 fi
25013 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25014   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25015 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25016 fi
25017 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25018   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25020 fi
25021 if test -z "${TESTSUBDIR_TRUE}" && test -z "${TESTSUBDIR_FALSE}"; then
25022   as_fn_error "conditional \"TESTSUBDIR\" was never defined.
25023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25024 fi
25025 if test -z "${BUILD_ECJ1_TRUE}" && test -z "${BUILD_ECJ1_FALSE}"; then
25026   as_fn_error "conditional \"BUILD_ECJ1\" was never defined.
25027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25028 fi
25029 if test -z "${INSTALL_ECJ_JAR_TRUE}" && test -z "${INSTALL_ECJ_JAR_FALSE}"; then
25030   as_fn_error "conditional \"INSTALL_ECJ_JAR\" was never defined.
25031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25032 fi
25033 if test -z "${JAVA_HOME_SET_TRUE}" && test -z "${JAVA_HOME_SET_FALSE}"; then
25034   as_fn_error "conditional \"JAVA_HOME_SET\" was never defined.
25035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25036 fi
25037 if test -z "${SUPPRESS_LIBGCJ_BC_TRUE}" && test -z "${SUPPRESS_LIBGCJ_BC_FALSE}"; then
25038   as_fn_error "conditional \"SUPPRESS_LIBGCJ_BC\" was never defined.
25039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25040 fi
25041 if test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_TRUE}" && test -z "${BUILD_LIBGCJ_REDUCED_REFLECTION_FALSE}"; then
25042   as_fn_error "conditional \"BUILD_LIBGCJ_REDUCED_REFLECTION\" was never defined.
25043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25044 fi
25045 if test -z "${INTERPRETER_TRUE}" && test -z "${INTERPRETER_FALSE}"; then
25046   as_fn_error "conditional \"INTERPRETER\" was never defined.
25047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25048 fi
25049 if test -z "${USING_WIN32_PLATFORM_TRUE}" && test -z "${USING_WIN32_PLATFORM_FALSE}"; then
25050   as_fn_error "conditional \"USING_WIN32_PLATFORM\" was never defined.
25051 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25052 fi
25053 if test -z "${USING_POSIX_PLATFORM_TRUE}" && test -z "${USING_POSIX_PLATFORM_FALSE}"; then
25054   as_fn_error "conditional \"USING_POSIX_PLATFORM\" was never defined.
25055 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25056 fi
25057 if test -z "${USING_DARWIN_CRT_TRUE}" && test -z "${USING_DARWIN_CRT_FALSE}"; then
25058   as_fn_error "conditional \"USING_DARWIN_CRT\" was never defined.
25059 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25060 fi
25061 if test -z "${USING_BOEHMGC_TRUE}" && test -z "${USING_BOEHMGC_FALSE}"; then
25062   as_fn_error "conditional \"USING_BOEHMGC\" was never defined.
25063 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25064 fi
25065 if test -z "${USING_NOGC_TRUE}" && test -z "${USING_NOGC_FALSE}"; then
25066   as_fn_error "conditional \"USING_NOGC\" was never defined.
25067 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25068 fi
25069 if test -z "${USING_POSIX_THREADS_TRUE}" && test -z "${USING_POSIX_THREADS_FALSE}"; then
25070   as_fn_error "conditional \"USING_POSIX_THREADS\" was never defined.
25071 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25072 fi
25073 if test -z "${USING_WIN32_THREADS_TRUE}" && test -z "${USING_WIN32_THREADS_FALSE}"; then
25074   as_fn_error "conditional \"USING_WIN32_THREADS\" was never defined.
25075 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25076 fi
25077 if test -z "${USING_NO_THREADS_TRUE}" && test -z "${USING_NO_THREADS_FALSE}"; then
25078   as_fn_error "conditional \"USING_NO_THREADS\" was never defined.
25079 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25080 fi
25081 if test -z "${USE_LIBGCJ_BC_TRUE}" && test -z "${USE_LIBGCJ_BC_FALSE}"; then
25082   as_fn_error "conditional \"USE_LIBGCJ_BC\" was never defined.
25083 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25084 fi
25085 if test -z "${USING_GCC_TRUE}" && test -z "${USING_GCC_FALSE}"; then
25086   as_fn_error "conditional \"USING_GCC\" was never defined.
25087 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25088 fi
25089 if test -z "${am__fastdepGCJ_TRUE}" && test -z "${am__fastdepGCJ_FALSE}"; then
25090   as_fn_error "conditional \"am__fastdepGCJ\" was never defined.
25091 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25092 fi
25093
25094 if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then
25095   as_fn_error "conditional \"NATIVE\" was never defined.
25096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25097 fi
25098 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
25099   as_fn_error "conditional \"ENABLE_SHARED\" was never defined.
25100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25101 fi
25102 if test -z "${NEEDS_DATA_START_TRUE}" && test -z "${NEEDS_DATA_START_FALSE}"; then
25103   as_fn_error "conditional \"NEEDS_DATA_START\" was never defined.
25104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25105 fi
25106 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
25107   as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
25108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25109 fi
25110 if test -z "${ANONVERSCRIPT_TRUE}" && test -z "${ANONVERSCRIPT_FALSE}"; then
25111   as_fn_error "conditional \"ANONVERSCRIPT\" was never defined.
25112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25113 fi
25114 if test -z "${ANONVERSCRIPT_GNU_TRUE}" && test -z "${ANONVERSCRIPT_GNU_FALSE}"; then
25115   as_fn_error "conditional \"ANONVERSCRIPT_GNU\" was never defined.
25116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25117 fi
25118 if test -z "${ANONVERSCRIPT_SUN_TRUE}" && test -z "${ANONVERSCRIPT_SUN_FALSE}"; then
25119   as_fn_error "conditional \"ANONVERSCRIPT_SUN\" was never defined.
25120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25121 fi
25122 if test -z "${INSTALL_AOT_RPM_TRUE}" && test -z "${INSTALL_AOT_RPM_FALSE}"; then
25123   as_fn_error "conditional \"INSTALL_AOT_RPM\" was never defined.
25124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25125 fi
25126 if test -z "${CREATE_JAVA_HOME_TRUE}" && test -z "${CREATE_JAVA_HOME_FALSE}"; then
25127   as_fn_error "conditional \"CREATE_JAVA_HOME\" was never defined.
25128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
25129 fi
25130
25131 : ${CONFIG_STATUS=./config.status}
25132 ac_write_fail=0
25133 ac_clean_files_save=$ac_clean_files
25134 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25136 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25137 as_write_fail=0
25138 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25139 #! $SHELL
25140 # Generated by $as_me.
25141 # Run this file to recreate the current configuration.
25142 # Compiler output produced by configure, useful for debugging
25143 # configure, is in config.log if it exists.
25144
25145 debug=false
25146 ac_cs_recheck=false
25147 ac_cs_silent=false
25148
25149 SHELL=\${CONFIG_SHELL-$SHELL}
25150 export SHELL
25151 _ASEOF
25152 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25153 ## -------------------- ##
25154 ## M4sh Initialization. ##
25155 ## -------------------- ##
25156
25157 # Be more Bourne compatible
25158 DUALCASE=1; export DUALCASE # for MKS sh
25159 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25160   emulate sh
25161   NULLCMD=:
25162   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25163   # is contrary to our usage.  Disable this feature.
25164   alias -g '${1+"$@"}'='"$@"'
25165   setopt NO_GLOB_SUBST
25166 else
25167   case `(set -o) 2>/dev/null` in #(
25168   *posix*) :
25169     set -o posix ;; #(
25170   *) :
25171      ;;
25172 esac
25173 fi
25174
25175
25176 as_nl='
25177 '
25178 export as_nl
25179 # Printing a long string crashes Solaris 7 /usr/bin/printf.
25180 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25181 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25182 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25183 # Prefer a ksh shell builtin over an external printf program on Solaris,
25184 # but without wasting forks for bash or zsh.
25185 if test -z "$BASH_VERSION$ZSH_VERSION" \
25186     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25187   as_echo='print -r --'
25188   as_echo_n='print -rn --'
25189 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25190   as_echo='printf %s\n'
25191   as_echo_n='printf %s'
25192 else
25193   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25194     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25195     as_echo_n='/usr/ucb/echo -n'
25196   else
25197     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25198     as_echo_n_body='eval
25199       arg=$1;
25200       case $arg in #(
25201       *"$as_nl"*)
25202         expr "X$arg" : "X\\(.*\\)$as_nl";
25203         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25204       esac;
25205       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25206     '
25207     export as_echo_n_body
25208     as_echo_n='sh -c $as_echo_n_body as_echo'
25209   fi
25210   export as_echo_body
25211   as_echo='sh -c $as_echo_body as_echo'
25212 fi
25213
25214 # The user is always right.
25215 if test "${PATH_SEPARATOR+set}" != set; then
25216   PATH_SEPARATOR=:
25217   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25218     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25219       PATH_SEPARATOR=';'
25220   }
25221 fi
25222
25223
25224 # IFS
25225 # We need space, tab and new line, in precisely that order.  Quoting is
25226 # there to prevent editors from complaining about space-tab.
25227 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25228 # splitting by setting IFS to empty value.)
25229 IFS=" ""        $as_nl"
25230
25231 # Find who we are.  Look in the path if we contain no directory separator.
25232 case $0 in #((
25233   *[\\/]* ) as_myself=$0 ;;
25234   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25235 for as_dir in $PATH
25236 do
25237   IFS=$as_save_IFS
25238   test -z "$as_dir" && as_dir=.
25239     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25240   done
25241 IFS=$as_save_IFS
25242
25243      ;;
25244 esac
25245 # We did not find ourselves, most probably we were run as `sh COMMAND'
25246 # in which case we are not to be found in the path.
25247 if test "x$as_myself" = x; then
25248   as_myself=$0
25249 fi
25250 if test ! -f "$as_myself"; then
25251   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25252   exit 1
25253 fi
25254
25255 # Unset variables that we do not need and which cause bugs (e.g. in
25256 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
25257 # suppresses any "Segmentation fault" message there.  '((' could
25258 # trigger a bug in pdksh 5.2.14.
25259 for as_var in BASH_ENV ENV MAIL MAILPATH
25260 do eval test x\${$as_var+set} = xset \
25261   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25262 done
25263 PS1='$ '
25264 PS2='> '
25265 PS4='+ '
25266
25267 # NLS nuisances.
25268 LC_ALL=C
25269 export LC_ALL
25270 LANGUAGE=C
25271 export LANGUAGE
25272
25273 # CDPATH.
25274 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25275
25276
25277 # as_fn_error ERROR [LINENO LOG_FD]
25278 # ---------------------------------
25279 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25280 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25281 # script with status $?, using 1 if that was 0.
25282 as_fn_error ()
25283 {
25284   as_status=$?; test $as_status -eq 0 && as_status=1
25285   if test "$3"; then
25286     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25287     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
25288   fi
25289   $as_echo "$as_me: error: $1" >&2
25290   as_fn_exit $as_status
25291 } # as_fn_error
25292
25293
25294 # as_fn_set_status STATUS
25295 # -----------------------
25296 # Set $? to STATUS, without forking.
25297 as_fn_set_status ()
25298 {
25299   return $1
25300 } # as_fn_set_status
25301
25302 # as_fn_exit STATUS
25303 # -----------------
25304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25305 as_fn_exit ()
25306 {
25307   set +e
25308   as_fn_set_status $1
25309   exit $1
25310 } # as_fn_exit
25311
25312 # as_fn_unset VAR
25313 # ---------------
25314 # Portably unset VAR.
25315 as_fn_unset ()
25316 {
25317   { eval $1=; unset $1;}
25318 }
25319 as_unset=as_fn_unset
25320 # as_fn_append VAR VALUE
25321 # ----------------------
25322 # Append the text in VALUE to the end of the definition contained in VAR. Take
25323 # advantage of any shell optimizations that allow amortized linear growth over
25324 # repeated appends, instead of the typical quadratic growth present in naive
25325 # implementations.
25326 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25327   eval 'as_fn_append ()
25328   {
25329     eval $1+=\$2
25330   }'
25331 else
25332   as_fn_append ()
25333   {
25334     eval $1=\$$1\$2
25335   }
25336 fi # as_fn_append
25337
25338 # as_fn_arith ARG...
25339 # ------------------
25340 # Perform arithmetic evaluation on the ARGs, and store the result in the
25341 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25342 # must be portable across $(()) and expr.
25343 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25344   eval 'as_fn_arith ()
25345   {
25346     as_val=$(( $* ))
25347   }'
25348 else
25349   as_fn_arith ()
25350   {
25351     as_val=`expr "$@" || test $? -eq 1`
25352   }
25353 fi # as_fn_arith
25354
25355
25356 if expr a : '\(a\)' >/dev/null 2>&1 &&
25357    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25358   as_expr=expr
25359 else
25360   as_expr=false
25361 fi
25362
25363 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25364   as_basename=basename
25365 else
25366   as_basename=false
25367 fi
25368
25369 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25370   as_dirname=dirname
25371 else
25372   as_dirname=false
25373 fi
25374
25375 as_me=`$as_basename -- "$0" ||
25376 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25377          X"$0" : 'X\(//\)$' \| \
25378          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25379 $as_echo X/"$0" |
25380     sed '/^.*\/\([^/][^/]*\)\/*$/{
25381             s//\1/
25382             q
25383           }
25384           /^X\/\(\/\/\)$/{
25385             s//\1/
25386             q
25387           }
25388           /^X\/\(\/\).*/{
25389             s//\1/
25390             q
25391           }
25392           s/.*/./; q'`
25393
25394 # Avoid depending upon Character Ranges.
25395 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25396 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25397 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25398 as_cr_digits='0123456789'
25399 as_cr_alnum=$as_cr_Letters$as_cr_digits
25400
25401 ECHO_C= ECHO_N= ECHO_T=
25402 case `echo -n x` in #(((((
25403 -n*)
25404   case `echo 'xy\c'` in
25405   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25406   xy)  ECHO_C='\c';;
25407   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25408        ECHO_T=' ';;
25409   esac;;
25410 *)
25411   ECHO_N='-n';;
25412 esac
25413
25414 rm -f conf$$ conf$$.exe conf$$.file
25415 if test -d conf$$.dir; then
25416   rm -f conf$$.dir/conf$$.file
25417 else
25418   rm -f conf$$.dir
25419   mkdir conf$$.dir 2>/dev/null
25420 fi
25421 if (echo >conf$$.file) 2>/dev/null; then
25422   if ln -s conf$$.file conf$$ 2>/dev/null; then
25423     as_ln_s='ln -s'
25424     # ... but there are two gotchas:
25425     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25426     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25427     # In both cases, we have to default to `cp -p'.
25428     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25429       as_ln_s='cp -p'
25430   elif ln conf$$.file conf$$ 2>/dev/null; then
25431     as_ln_s=ln
25432   else
25433     as_ln_s='cp -p'
25434   fi
25435 else
25436   as_ln_s='cp -p'
25437 fi
25438 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25439 rmdir conf$$.dir 2>/dev/null
25440
25441
25442 # as_fn_mkdir_p
25443 # -------------
25444 # Create "$as_dir" as a directory, including parents if necessary.
25445 as_fn_mkdir_p ()
25446 {
25447
25448   case $as_dir in #(
25449   -*) as_dir=./$as_dir;;
25450   esac
25451   test -d "$as_dir" || eval $as_mkdir_p || {
25452     as_dirs=
25453     while :; do
25454       case $as_dir in #(
25455       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25456       *) as_qdir=$as_dir;;
25457       esac
25458       as_dirs="'$as_qdir' $as_dirs"
25459       as_dir=`$as_dirname -- "$as_dir" ||
25460 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25461          X"$as_dir" : 'X\(//\)[^/]' \| \
25462          X"$as_dir" : 'X\(//\)$' \| \
25463          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25464 $as_echo X"$as_dir" |
25465     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25466             s//\1/
25467             q
25468           }
25469           /^X\(\/\/\)[^/].*/{
25470             s//\1/
25471             q
25472           }
25473           /^X\(\/\/\)$/{
25474             s//\1/
25475             q
25476           }
25477           /^X\(\/\).*/{
25478             s//\1/
25479             q
25480           }
25481           s/.*/./; q'`
25482       test -d "$as_dir" && break
25483     done
25484     test -z "$as_dirs" || eval "mkdir $as_dirs"
25485   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25486
25487
25488 } # as_fn_mkdir_p
25489 if mkdir -p . 2>/dev/null; then
25490   as_mkdir_p='mkdir -p "$as_dir"'
25491 else
25492   test -d ./-p && rmdir ./-p
25493   as_mkdir_p=false
25494 fi
25495
25496 if test -x / >/dev/null 2>&1; then
25497   as_test_x='test -x'
25498 else
25499   if ls -dL / >/dev/null 2>&1; then
25500     as_ls_L_option=L
25501   else
25502     as_ls_L_option=
25503   fi
25504   as_test_x='
25505     eval sh -c '\''
25506       if test -d "$1"; then
25507         test -d "$1/.";
25508       else
25509         case $1 in #(
25510         -*)set "./$1";;
25511         esac;
25512         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25513         ???[sx]*):;;*)false;;esac;fi
25514     '\'' sh
25515   '
25516 fi
25517 as_executable_p=$as_test_x
25518
25519 # Sed expression to map a string onto a valid CPP name.
25520 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25521
25522 # Sed expression to map a string onto a valid variable name.
25523 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25524
25525
25526 exec 6>&1
25527 ## ----------------------------------- ##
25528 ## Main body of $CONFIG_STATUS script. ##
25529 ## ----------------------------------- ##
25530 _ASEOF
25531 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25532
25533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25534 # Save the log message, to keep $0 and so on meaningful, and to
25535 # report actual input values of CONFIG_FILES etc. instead of their
25536 # values after options handling.
25537 ac_log="
25538 This file was extended by libjava $as_me version-unused, which was
25539 generated by GNU Autoconf 2.64.  Invocation command line was
25540
25541   CONFIG_FILES    = $CONFIG_FILES
25542   CONFIG_HEADERS  = $CONFIG_HEADERS
25543   CONFIG_LINKS    = $CONFIG_LINKS
25544   CONFIG_COMMANDS = $CONFIG_COMMANDS
25545   $ $0 $@
25546
25547 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25548 "
25549
25550 _ACEOF
25551
25552 case $ac_config_files in *"
25553 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25554 esac
25555
25556 case $ac_config_headers in *"
25557 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25558 esac
25559
25560
25561 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25562 # Files that config.status was made for.
25563 config_files="$ac_config_files"
25564 config_headers="$ac_config_headers"
25565 config_links="$ac_config_links"
25566 config_commands="$ac_config_commands"
25567
25568 _ACEOF
25569
25570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25571 ac_cs_usage="\
25572 \`$as_me' instantiates files and other configuration actions
25573 from templates according to the current configuration.  Unless the files
25574 and actions are specified as TAGs, all are instantiated by default.
25575
25576 Usage: $0 [OPTION]... [TAG]...
25577
25578   -h, --help       print this help, then exit
25579   -V, --version    print version number and configuration settings, then exit
25580   -q, --quiet, --silent
25581                    do not print progress messages
25582   -d, --debug      don't remove temporary files
25583       --recheck    update $as_me by reconfiguring in the same conditions
25584       --file=FILE[:TEMPLATE]
25585                    instantiate the configuration file FILE
25586       --header=FILE[:TEMPLATE]
25587                    instantiate the configuration header FILE
25588
25589 Configuration files:
25590 $config_files
25591
25592 Configuration headers:
25593 $config_headers
25594
25595 Configuration links:
25596 $config_links
25597
25598 Configuration commands:
25599 $config_commands
25600
25601 Report bugs to the package provider."
25602
25603 _ACEOF
25604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25605 ac_cs_version="\\
25606 libjava config.status version-unused
25607 configured by $0, generated by GNU Autoconf 2.64,
25608   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25609
25610 Copyright (C) 2009 Free Software Foundation, Inc.
25611 This config.status script is free software; the Free Software Foundation
25612 gives unlimited permission to copy, distribute and modify it."
25613
25614 ac_pwd='$ac_pwd'
25615 srcdir='$srcdir'
25616 INSTALL='$INSTALL'
25617 MKDIR_P='$MKDIR_P'
25618 AWK='$AWK'
25619 test -n "\$AWK" || AWK=awk
25620 _ACEOF
25621
25622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25623 # The default lists apply if the user does not specify any file.
25624 ac_need_defaults=:
25625 while test $# != 0
25626 do
25627   case $1 in
25628   --*=*)
25629     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25630     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25631     ac_shift=:
25632     ;;
25633   *)
25634     ac_option=$1
25635     ac_optarg=$2
25636     ac_shift=shift
25637     ;;
25638   esac
25639
25640   case $ac_option in
25641   # Handling of the options.
25642   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25643     ac_cs_recheck=: ;;
25644   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25645     $as_echo "$ac_cs_version"; exit ;;
25646   --debug | --debu | --deb | --de | --d | -d )
25647     debug=: ;;
25648   --file | --fil | --fi | --f )
25649     $ac_shift
25650     case $ac_optarg in
25651     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25652     esac
25653     as_fn_append CONFIG_FILES " '$ac_optarg'"
25654     ac_need_defaults=false;;
25655   --header | --heade | --head | --hea )
25656     $ac_shift
25657     case $ac_optarg in
25658     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25659     esac
25660     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25661     ac_need_defaults=false;;
25662   --he | --h)
25663     # Conflict between --help and --header
25664     as_fn_error "ambiguous option: \`$1'
25665 Try \`$0 --help' for more information.";;
25666   --help | --hel | -h )
25667     $as_echo "$ac_cs_usage"; exit ;;
25668   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25669   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25670     ac_cs_silent=: ;;
25671
25672   # This is an error.
25673   -*) as_fn_error "unrecognized option: \`$1'
25674 Try \`$0 --help' for more information." ;;
25675
25676   *) as_fn_append ac_config_targets " $1"
25677      ac_need_defaults=false ;;
25678
25679   esac
25680   shift
25681 done
25682
25683 ac_configure_extra_args=
25684
25685 if $ac_cs_silent; then
25686   exec 6>/dev/null
25687   ac_configure_extra_args="$ac_configure_extra_args --silent"
25688 fi
25689
25690 _ACEOF
25691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25692 if \$ac_cs_recheck; then
25693   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25694   shift
25695   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25696   CONFIG_SHELL='$SHELL'
25697   export CONFIG_SHELL
25698   exec "\$@"
25699 fi
25700
25701 _ACEOF
25702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25703 exec 5>>config.log
25704 {
25705   echo
25706   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25707 ## Running $as_me. ##
25708 _ASBOX
25709   $as_echo "$ac_log"
25710 } >&5
25711
25712 _ACEOF
25713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25714 #
25715 # INIT-COMMANDS
25716 #
25717
25718 srcdir="$srcdir"
25719 host="$host"
25720 target="$target"
25721 with_multisubdir="$with_multisubdir"
25722 with_multisrctop="$with_multisrctop"
25723 with_target_subdir="$with_target_subdir"
25724 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25725 multi_basedir="$multi_basedir"
25726 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25727 CC="$CC"
25728 CXX="$CXX"
25729 GFORTRAN="$GFORTRAN"
25730 GCJ="$GCJ"
25731 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25732
25733
25734 # The HP-UX ksh and POSIX shell print the target directory to stdout
25735 # if CDPATH is set.
25736 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25737
25738 sed_quote_subst='$sed_quote_subst'
25739 double_quote_subst='$double_quote_subst'
25740 delay_variable_subst='$delay_variable_subst'
25741 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25742 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25743 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25744 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25745 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25746 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25747 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25748 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25749 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25750 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25751 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25752 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25753 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25754 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25755 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25756 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25757 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25758 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25759 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25760 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25761 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25762 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25763 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25764 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25765 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25766 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25767 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25768 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25769 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25770 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25771 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25772 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25773 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25774 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25775 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25776 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25777 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25778 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25779 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25780 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25781 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25782 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25783 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25784 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25785 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25786 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25787 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25788 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25789 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"`'
25790 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25791 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25792 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25793 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25794 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25795 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25796 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25797 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25798 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25799 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25800 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25801 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25802 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25803 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25804 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25805 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25806 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25807 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25808 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25809 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25810 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25811 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25812 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25813 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25814 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25815 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25816 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25817 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25818 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25819 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25820 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25821 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25822 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25823 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25824 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25825 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25826 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25827 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25828 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25829 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25830 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25831 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25832 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25833 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25834 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25835 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25836 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25837 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25838 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25839 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25840 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25841 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25842 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25843 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25844 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25845 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25846 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25847 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25848 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25849 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25850 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25851 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25852 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25853 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25854 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25855 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25856 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25857 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25858 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25859 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25860 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25861 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25862 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25863 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25864 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25865 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25866 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25867 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25868 LD_GCJ='`$ECHO "$LD_GCJ" | $SED "$delay_single_quote_subst"`'
25869 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25870 reload_flag_GCJ='`$ECHO "$reload_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25871 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25872 reload_cmds_GCJ='`$ECHO "$reload_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25873 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25874 old_archive_cmds_GCJ='`$ECHO "$old_archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25875 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25876 compiler_GCJ='`$ECHO "$compiler_GCJ" | $SED "$delay_single_quote_subst"`'
25877 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25878 GCC_GCJ='`$ECHO "$GCC_GCJ" | $SED "$delay_single_quote_subst"`'
25879 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25880 lt_prog_compiler_no_builtin_flag_GCJ='`$ECHO "$lt_prog_compiler_no_builtin_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25881 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25882 lt_prog_compiler_wl_GCJ='`$ECHO "$lt_prog_compiler_wl_GCJ" | $SED "$delay_single_quote_subst"`'
25883 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25884 lt_prog_compiler_pic_GCJ='`$ECHO "$lt_prog_compiler_pic_GCJ" | $SED "$delay_single_quote_subst"`'
25885 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25886 lt_prog_compiler_static_GCJ='`$ECHO "$lt_prog_compiler_static_GCJ" | $SED "$delay_single_quote_subst"`'
25887 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25888 lt_cv_prog_compiler_c_o_GCJ='`$ECHO "$lt_cv_prog_compiler_c_o_GCJ" | $SED "$delay_single_quote_subst"`'
25889 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25890 archive_cmds_need_lc_GCJ='`$ECHO "$archive_cmds_need_lc_GCJ" | $SED "$delay_single_quote_subst"`'
25891 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25892 enable_shared_with_static_runtimes_GCJ='`$ECHO "$enable_shared_with_static_runtimes_GCJ" | $SED "$delay_single_quote_subst"`'
25893 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25894 export_dynamic_flag_spec_GCJ='`$ECHO "$export_dynamic_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25895 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25896 whole_archive_flag_spec_GCJ='`$ECHO "$whole_archive_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25897 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25898 compiler_needs_object_GCJ='`$ECHO "$compiler_needs_object_GCJ" | $SED "$delay_single_quote_subst"`'
25899 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25900 old_archive_from_new_cmds_GCJ='`$ECHO "$old_archive_from_new_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25901 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25902 old_archive_from_expsyms_cmds_GCJ='`$ECHO "$old_archive_from_expsyms_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25903 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25904 archive_cmds_GCJ='`$ECHO "$archive_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25905 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25906 archive_expsym_cmds_GCJ='`$ECHO "$archive_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25907 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25908 module_cmds_GCJ='`$ECHO "$module_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25909 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25910 module_expsym_cmds_GCJ='`$ECHO "$module_expsym_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25911 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25912 with_gnu_ld_GCJ='`$ECHO "$with_gnu_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25913 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25914 allow_undefined_flag_GCJ='`$ECHO "$allow_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25915 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25916 no_undefined_flag_GCJ='`$ECHO "$no_undefined_flag_GCJ" | $SED "$delay_single_quote_subst"`'
25917 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25918 hardcode_libdir_flag_spec_GCJ='`$ECHO "$hardcode_libdir_flag_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25919 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25920 hardcode_libdir_flag_spec_ld_GCJ='`$ECHO "$hardcode_libdir_flag_spec_ld_GCJ" | $SED "$delay_single_quote_subst"`'
25921 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25922 hardcode_libdir_separator_GCJ='`$ECHO "$hardcode_libdir_separator_GCJ" | $SED "$delay_single_quote_subst"`'
25923 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25924 hardcode_direct_GCJ='`$ECHO "$hardcode_direct_GCJ" | $SED "$delay_single_quote_subst"`'
25925 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25926 hardcode_direct_absolute_GCJ='`$ECHO "$hardcode_direct_absolute_GCJ" | $SED "$delay_single_quote_subst"`'
25927 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25928 hardcode_minus_L_GCJ='`$ECHO "$hardcode_minus_L_GCJ" | $SED "$delay_single_quote_subst"`'
25929 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25930 hardcode_shlibpath_var_GCJ='`$ECHO "$hardcode_shlibpath_var_GCJ" | $SED "$delay_single_quote_subst"`'
25931 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25932 hardcode_automatic_GCJ='`$ECHO "$hardcode_automatic_GCJ" | $SED "$delay_single_quote_subst"`'
25933 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25934 inherit_rpath_GCJ='`$ECHO "$inherit_rpath_GCJ" | $SED "$delay_single_quote_subst"`'
25935 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25936 link_all_deplibs_GCJ='`$ECHO "$link_all_deplibs_GCJ" | $SED "$delay_single_quote_subst"`'
25937 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25938 fix_srcfile_path_GCJ='`$ECHO "$fix_srcfile_path_GCJ" | $SED "$delay_single_quote_subst"`'
25939 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25940 always_export_symbols_GCJ='`$ECHO "$always_export_symbols_GCJ" | $SED "$delay_single_quote_subst"`'
25941 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25942 export_symbols_cmds_GCJ='`$ECHO "$export_symbols_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25943 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25944 exclude_expsyms_GCJ='`$ECHO "$exclude_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25945 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25946 include_expsyms_GCJ='`$ECHO "$include_expsyms_GCJ" | $SED "$delay_single_quote_subst"`'
25947 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25948 prelink_cmds_GCJ='`$ECHO "$prelink_cmds_GCJ" | $SED "$delay_single_quote_subst"`'
25949 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25950 file_list_spec_GCJ='`$ECHO "$file_list_spec_GCJ" | $SED "$delay_single_quote_subst"`'
25951 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25952 hardcode_action_GCJ='`$ECHO "$hardcode_action_GCJ" | $SED "$delay_single_quote_subst"`'
25953 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25954 compiler_lib_search_dirs_GCJ='`$ECHO "$compiler_lib_search_dirs_GCJ" | $SED "$delay_single_quote_subst"`'
25955 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25956 predep_objects_GCJ='`$ECHO "$predep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25957 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25958 postdep_objects_GCJ='`$ECHO "$postdep_objects_GCJ" | $SED "$delay_single_quote_subst"`'
25959 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25960 predeps_GCJ='`$ECHO "$predeps_GCJ" | $SED "$delay_single_quote_subst"`'
25961 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25962 postdeps_GCJ='`$ECHO "$postdeps_GCJ" | $SED "$delay_single_quote_subst"`'
25963 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25964 compiler_lib_search_path_GCJ='`$ECHO "$compiler_lib_search_path_GCJ" | $SED "$delay_single_quote_subst"`'
25965
25966 LTCC='$LTCC'
25967 LTCFLAGS='$LTCFLAGS'
25968 compiler='$compiler_DEFAULT'
25969
25970 # A function that is used when there is no print builtin or printf.
25971 func_fallback_echo ()
25972 {
25973   eval 'cat <<_LTECHO_EOF
25974 \$1
25975 _LTECHO_EOF'
25976 }
25977
25978 # Quote evaled strings.
25979 for var in SHELL \
25980 ECHO \
25981 SED \
25982 GREP \
25983 EGREP \
25984 FGREP \
25985 LD \
25986 NM \
25987 LN_S \
25988 lt_SP2NL \
25989 lt_NL2SP \
25990 reload_flag \
25991 OBJDUMP \
25992 deplibs_check_method \
25993 file_magic_cmd \
25994 AR \
25995 AR_FLAGS \
25996 STRIP \
25997 RANLIB \
25998 CC \
25999 CFLAGS \
26000 compiler \
26001 lt_cv_sys_global_symbol_pipe \
26002 lt_cv_sys_global_symbol_to_cdecl \
26003 lt_cv_sys_global_symbol_to_c_name_address \
26004 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26005 lt_prog_compiler_no_builtin_flag \
26006 lt_prog_compiler_wl \
26007 lt_prog_compiler_pic \
26008 lt_prog_compiler_static \
26009 lt_cv_prog_compiler_c_o \
26010 need_locks \
26011 DSYMUTIL \
26012 NMEDIT \
26013 LIPO \
26014 OTOOL \
26015 OTOOL64 \
26016 shrext_cmds \
26017 export_dynamic_flag_spec \
26018 whole_archive_flag_spec \
26019 compiler_needs_object \
26020 with_gnu_ld \
26021 allow_undefined_flag \
26022 no_undefined_flag \
26023 hardcode_libdir_flag_spec \
26024 hardcode_libdir_flag_spec_ld \
26025 hardcode_libdir_separator \
26026 fix_srcfile_path \
26027 exclude_expsyms \
26028 include_expsyms \
26029 file_list_spec \
26030 variables_saved_for_relink \
26031 libname_spec \
26032 library_names_spec \
26033 soname_spec \
26034 install_override_mode \
26035 finish_eval \
26036 old_striplib \
26037 striplib \
26038 compiler_lib_search_dirs \
26039 predep_objects \
26040 postdep_objects \
26041 predeps \
26042 postdeps \
26043 compiler_lib_search_path \
26044 LD_CXX \
26045 LD_GCJ \
26046 reload_flag_CXX \
26047 reload_flag_GCJ \
26048 compiler_CXX \
26049 compiler_GCJ \
26050 lt_prog_compiler_no_builtin_flag_CXX \
26051 lt_prog_compiler_no_builtin_flag_GCJ \
26052 lt_prog_compiler_wl_CXX \
26053 lt_prog_compiler_wl_GCJ \
26054 lt_prog_compiler_pic_CXX \
26055 lt_prog_compiler_pic_GCJ \
26056 lt_prog_compiler_static_CXX \
26057 lt_prog_compiler_static_GCJ \
26058 lt_cv_prog_compiler_c_o_CXX \
26059 lt_cv_prog_compiler_c_o_GCJ \
26060 export_dynamic_flag_spec_CXX \
26061 export_dynamic_flag_spec_GCJ \
26062 whole_archive_flag_spec_CXX \
26063 whole_archive_flag_spec_GCJ \
26064 compiler_needs_object_CXX \
26065 compiler_needs_object_GCJ \
26066 with_gnu_ld_CXX \
26067 with_gnu_ld_GCJ \
26068 allow_undefined_flag_CXX \
26069 allow_undefined_flag_GCJ \
26070 no_undefined_flag_CXX \
26071 no_undefined_flag_GCJ \
26072 hardcode_libdir_flag_spec_CXX \
26073 hardcode_libdir_flag_spec_GCJ \
26074 hardcode_libdir_flag_spec_ld_CXX \
26075 hardcode_libdir_flag_spec_ld_GCJ \
26076 hardcode_libdir_separator_CXX \
26077 hardcode_libdir_separator_GCJ \
26078 fix_srcfile_path_CXX \
26079 fix_srcfile_path_GCJ \
26080 exclude_expsyms_CXX \
26081 exclude_expsyms_GCJ \
26082 include_expsyms_CXX \
26083 include_expsyms_GCJ \
26084 file_list_spec_CXX \
26085 file_list_spec_GCJ \
26086 compiler_lib_search_dirs_CXX \
26087 compiler_lib_search_dirs_GCJ \
26088 predep_objects_CXX \
26089 predep_objects_GCJ \
26090 postdep_objects_CXX \
26091 postdep_objects_GCJ \
26092 predeps_CXX \
26093 predeps_GCJ \
26094 postdeps_CXX \
26095 postdeps_GCJ \
26096 compiler_lib_search_path_CXX \
26097 compiler_lib_search_path_GCJ; do
26098     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26099     *[\\\\\\\`\\"\\\$]*)
26100       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26101       ;;
26102     *)
26103       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26104       ;;
26105     esac
26106 done
26107
26108 # Double-quote double-evaled strings.
26109 for var in reload_cmds \
26110 old_postinstall_cmds \
26111 old_postuninstall_cmds \
26112 old_archive_cmds \
26113 extract_expsyms_cmds \
26114 old_archive_from_new_cmds \
26115 old_archive_from_expsyms_cmds \
26116 archive_cmds \
26117 archive_expsym_cmds \
26118 module_cmds \
26119 module_expsym_cmds \
26120 export_symbols_cmds \
26121 prelink_cmds \
26122 postinstall_cmds \
26123 postuninstall_cmds \
26124 finish_cmds \
26125 sys_lib_search_path_spec \
26126 sys_lib_dlsearch_path_spec \
26127 reload_cmds_CXX \
26128 reload_cmds_GCJ \
26129 old_archive_cmds_CXX \
26130 old_archive_cmds_GCJ \
26131 old_archive_from_new_cmds_CXX \
26132 old_archive_from_new_cmds_GCJ \
26133 old_archive_from_expsyms_cmds_CXX \
26134 old_archive_from_expsyms_cmds_GCJ \
26135 archive_cmds_CXX \
26136 archive_cmds_GCJ \
26137 archive_expsym_cmds_CXX \
26138 archive_expsym_cmds_GCJ \
26139 module_cmds_CXX \
26140 module_cmds_GCJ \
26141 module_expsym_cmds_CXX \
26142 module_expsym_cmds_GCJ \
26143 export_symbols_cmds_CXX \
26144 export_symbols_cmds_GCJ \
26145 prelink_cmds_CXX \
26146 prelink_cmds_GCJ; do
26147     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26148     *[\\\\\\\`\\"\\\$]*)
26149       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
26150       ;;
26151     *)
26152       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26153       ;;
26154     esac
26155 done
26156
26157 ac_aux_dir='$ac_aux_dir'
26158 xsi_shell='$xsi_shell'
26159 lt_shell_append='$lt_shell_append'
26160
26161 # See if we are running on zsh, and set the options which allow our
26162 # commands through without removal of \ escapes INIT.
26163 if test -n "\${ZSH_VERSION+set}" ; then
26164    setopt NO_GLOB_SUBST
26165 fi
26166
26167
26168     PACKAGE='$PACKAGE'
26169     VERSION='$VERSION'
26170     TIMESTAMP='$TIMESTAMP'
26171     RM='$RM'
26172     ofile='$ofile'
26173
26174
26175
26176
26177
26178
26179
26180
26181 _ACEOF
26182
26183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26184
26185 # Handling of arguments.
26186 for ac_config_target in $ac_config_targets
26187 do
26188   case $ac_config_target in
26189     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
26190     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
26191     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
26192     "gcj/libgcj-config.h") CONFIG_HEADERS="$CONFIG_HEADERS gcj/libgcj-config.h" ;;
26193     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
26194     "include/platform.h") CONFIG_LINKS="$CONFIG_LINKS include/platform.h:include/$PLATFORMH" ;;
26195     "java/io/natFile.cc") CONFIG_LINKS="$CONFIG_LINKS java/io/natFile.cc:java/io/natFile${FILE-${PLATFORM}}.cc" ;;
26196     "java/lang/natConcreteProcess.cc") CONFIG_LINKS="$CONFIG_LINKS java/lang/natConcreteProcess.cc:java/lang/nat${PLATFORM}Process.cc" ;;
26197     "java/net/natVMInetAddress.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMInetAddress.cc:java/net/natVMInetAddress${PLATFORMNET}.cc" ;;
26198     "java/net/natVMNetworkInterface.cc") CONFIG_LINKS="$CONFIG_LINKS java/net/natVMNetworkInterface.cc:java/net/natVMNetworkInterface${PLATFORMNET}.cc" ;;
26199     "gnu/java/net/natPlainSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainSocketImpl.cc:gnu/java/net/natPlainSocketImpl${PLATFORMNET}.cc" ;;
26200     "gnu/java/net/natPlainDatagramSocketImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/net/natPlainDatagramSocketImpl.cc:gnu/java/net/natPlainDatagramSocketImpl${PLATFORMNET}.cc" ;;
26201     "gnu/java/nio/natVMPipe.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMPipe.cc:gnu/java/nio/natVMPipe${PLATFORM}.cc" ;;
26202     "gnu/java/nio/natVMSelector.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/natVMSelector.cc:gnu/java/nio/natVMSelector${PLATFORM}.cc" ;;
26203     "gnu/java/nio/channels/natFileChannelImpl.cc") CONFIG_LINKS="$CONFIG_LINKS gnu/java/nio/channels/natFileChannelImpl.cc:gnu/java/nio/channels/natFileChannel${FILE-${PLATFORM}}.cc" ;;
26204     "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" ;;
26205     "include/java-gc.h") CONFIG_LINKS="$CONFIG_LINKS include/java-gc.h:include/$GCHDR" ;;
26206     "include/java-threads.h") CONFIG_LINKS="$CONFIG_LINKS include/java-threads.h:include/$THREADH" ;;
26207     "sysdep/locks.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/locks.h:sysdep/$sysdeps_dir/locks.h" ;;
26208     "sysdep/backtrace.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/backtrace.h:$fallback_backtrace_h" ;;
26209     "sysdep/descriptor.h") CONFIG_LINKS="$CONFIG_LINKS sysdep/descriptor.h:$descriptor_h" ;;
26210     "include/java-signal.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal.h:$SIGNAL_HANDLER" ;;
26211     "include/java-signal-aux.h") CONFIG_LINKS="$CONFIG_LINKS include/java-signal-aux.h:$SIGNAL_HANDLER_AUX" ;;
26212     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26213     "libgcj.pc") CONFIG_FILES="$CONFIG_FILES libgcj.pc" ;;
26214     "libgcj.spec") CONFIG_FILES="$CONFIG_FILES libgcj.spec" ;;
26215     "libgcj-test.spec") CONFIG_FILES="$CONFIG_FILES libgcj-test.spec" ;;
26216     "gcj/Makefile") CONFIG_FILES="$CONFIG_FILES gcj/Makefile" ;;
26217     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
26218     "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
26219     "contrib/aotcompile.py") CONFIG_FILES="$CONFIG_FILES contrib/aotcompile.py" ;;
26220     "contrib/aot-compile") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile" ;;
26221     "contrib/aot-compile-rpm") CONFIG_FILES="$CONFIG_FILES contrib/aot-compile-rpm" ;;
26222     "contrib/generate-cacerts.pl") CONFIG_FILES="$CONFIG_FILES contrib/generate-cacerts.pl" ;;
26223     "contrib/rebuild-gcj-db") CONFIG_FILES="$CONFIG_FILES contrib/rebuild-gcj-db" ;;
26224     "scripts/jar") CONFIG_FILES="$CONFIG_FILES scripts/jar" ;;
26225
26226   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26227   esac
26228 done
26229
26230
26231 # If the user did not use the arguments to specify the items to instantiate,
26232 # then the envvar interface is used.  Set only those that are not.
26233 # We use the long form for the default assignment because of an extremely
26234 # bizarre bug on SunOS 4.1.3.
26235 if $ac_need_defaults; then
26236   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26237   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26238   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
26239   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26240 fi
26241
26242 # Have a temporary directory for convenience.  Make it in the build tree
26243 # simply because there is no reason against having it here, and in addition,
26244 # creating and moving files from /tmp can sometimes cause problems.
26245 # Hook for its removal unless debugging.
26246 # Note that there is a small window in which the directory will not be cleaned:
26247 # after its creation but before its name has been assigned to `$tmp'.
26248 $debug ||
26249 {
26250   tmp=
26251   trap 'exit_status=$?
26252   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26253 ' 0
26254   trap 'as_fn_exit 1' 1 2 13 15
26255 }
26256 # Create a (secure) tmp directory for tmp files.
26257
26258 {
26259   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26260   test -n "$tmp" && test -d "$tmp"
26261 }  ||
26262 {
26263   tmp=./conf$$-$RANDOM
26264   (umask 077 && mkdir "$tmp")
26265 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26266
26267 # Set up the scripts for CONFIG_FILES section.
26268 # No need to generate them if there are no CONFIG_FILES.
26269 # This happens for instance with `./config.status config.h'.
26270 if test -n "$CONFIG_FILES"; then
26271
26272
26273 ac_cr=`echo X | tr X '\015'`
26274 # On cygwin, bash can eat \r inside `` if the user requested igncr.
26275 # But we know of no other shell where ac_cr would be empty at this
26276 # point, so we can use a bashism as a fallback.
26277 if test "x$ac_cr" = x; then
26278   eval ac_cr=\$\'\\r\'
26279 fi
26280 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26281 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26282   ac_cs_awk_cr='\r'
26283 else
26284   ac_cs_awk_cr=$ac_cr
26285 fi
26286
26287 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26288 _ACEOF
26289
26290
26291 {
26292   echo "cat >conf$$subs.awk <<_ACEOF" &&
26293   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26294   echo "_ACEOF"
26295 } >conf$$subs.sh ||
26296   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26297 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26298 ac_delim='%!_!# '
26299 for ac_last_try in false false false false false :; do
26300   . ./conf$$subs.sh ||
26301     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26302
26303   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26304   if test $ac_delim_n = $ac_delim_num; then
26305     break
26306   elif $ac_last_try; then
26307     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26308   else
26309     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26310   fi
26311 done
26312 rm -f conf$$subs.sh
26313
26314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26315 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
26316 _ACEOF
26317 sed -n '
26318 h
26319 s/^/S["/; s/!.*/"]=/
26320 p
26321 g
26322 s/^[^!]*!//
26323 :repl
26324 t repl
26325 s/'"$ac_delim"'$//
26326 t delim
26327 :nl
26328 h
26329 s/\(.\{148\}\).*/\1/
26330 t more1
26331 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26332 p
26333 n
26334 b repl
26335 :more1
26336 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26337 p
26338 g
26339 s/.\{148\}//
26340 t nl
26341 :delim
26342 h
26343 s/\(.\{148\}\).*/\1/
26344 t more2
26345 s/["\\]/\\&/g; s/^/"/; s/$/"/
26346 p
26347 b
26348 :more2
26349 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26350 p
26351 g
26352 s/.\{148\}//
26353 t delim
26354 ' <conf$$subs.awk | sed '
26355 /^[^""]/{
26356   N
26357   s/\n//
26358 }
26359 ' >>$CONFIG_STATUS || ac_write_fail=1
26360 rm -f conf$$subs.awk
26361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26362 _ACAWK
26363 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26364   for (key in S) S_is_set[key] = 1
26365   FS = "\a"
26366
26367 }
26368 {
26369   line = $ 0
26370   nfields = split(line, field, "@")
26371   substed = 0
26372   len = length(field[1])
26373   for (i = 2; i < nfields; i++) {
26374     key = field[i]
26375     keylen = length(key)
26376     if (S_is_set[key]) {
26377       value = S[key]
26378       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26379       len += length(value) + length(field[++i])
26380       substed = 1
26381     } else
26382       len += 1 + keylen
26383   }
26384
26385   print line
26386 }
26387
26388 _ACAWK
26389 _ACEOF
26390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26391 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26392   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26393 else
26394   cat
26395 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26396   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26397 _ACEOF
26398
26399 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26400 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26401 # trailing colons and then remove the whole line if VPATH becomes empty
26402 # (actually we leave an empty line to preserve line numbers).
26403 if test "x$srcdir" = x.; then
26404   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26405 s/:*\$(srcdir):*/:/
26406 s/:*\${srcdir}:*/:/
26407 s/:*@srcdir@:*/:/
26408 s/^\([^=]*=[     ]*\):*/\1/
26409 s/:*$//
26410 s/^[^=]*=[       ]*$//
26411 }'
26412 fi
26413
26414 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26415 fi # test -n "$CONFIG_FILES"
26416
26417 # Set up the scripts for CONFIG_HEADERS section.
26418 # No need to generate them if there are no CONFIG_HEADERS.
26419 # This happens for instance with `./config.status Makefile'.
26420 if test -n "$CONFIG_HEADERS"; then
26421 cat >"$tmp/defines.awk" <<\_ACAWK ||
26422 BEGIN {
26423 _ACEOF
26424
26425 # Transform confdefs.h into an awk script `defines.awk', embedded as
26426 # here-document in config.status, that substitutes the proper values into
26427 # config.h.in to produce config.h.
26428
26429 # Create a delimiter string that does not exist in confdefs.h, to ease
26430 # handling of long lines.
26431 ac_delim='%!_!# '
26432 for ac_last_try in false false :; do
26433   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26434   if test -z "$ac_t"; then
26435     break
26436   elif $ac_last_try; then
26437     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26438   else
26439     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26440   fi
26441 done
26442
26443 # For the awk script, D is an array of macro values keyed by name,
26444 # likewise P contains macro parameters if any.  Preserve backslash
26445 # newline sequences.
26446
26447 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26448 sed -n '
26449 s/.\{148\}/&'"$ac_delim"'/g
26450 t rset
26451 :rset
26452 s/^[     ]*#[    ]*define[       ][      ]*/ /
26453 t def
26454 d
26455 :def
26456 s/\\$//
26457 t bsnl
26458 s/["\\]/\\&/g
26459 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26460 D["\1"]=" \3"/p
26461 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26462 d
26463 :bsnl
26464 s/["\\]/\\&/g
26465 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26466 D["\1"]=" \3\\\\\\n"\\/p
26467 t cont
26468 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26469 t cont
26470 d
26471 :cont
26472 n
26473 s/.\{148\}/&'"$ac_delim"'/g
26474 t clear
26475 :clear
26476 s/\\$//
26477 t bsnlc
26478 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26479 d
26480 :bsnlc
26481 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26482 b cont
26483 ' <confdefs.h | sed '
26484 s/'"$ac_delim"'/"\\\
26485 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26486
26487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26488   for (key in D) D_is_set[key] = 1
26489   FS = "\a"
26490 }
26491 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26492   line = \$ 0
26493   split(line, arg, " ")
26494   if (arg[1] == "#") {
26495     defundef = arg[2]
26496     mac1 = arg[3]
26497   } else {
26498     defundef = substr(arg[1], 2)
26499     mac1 = arg[2]
26500   }
26501   split(mac1, mac2, "(") #)
26502   macro = mac2[1]
26503   prefix = substr(line, 1, index(line, defundef) - 1)
26504   if (D_is_set[macro]) {
26505     # Preserve the white space surrounding the "#".
26506     print prefix "define", macro P[macro] D[macro]
26507     next
26508   } else {
26509     # Replace #undef with comments.  This is necessary, for example,
26510     # in the case of _POSIX_SOURCE, which is predefined and required
26511     # on some systems where configure will not decide to define it.
26512     if (defundef == "undef") {
26513       print "/*", prefix defundef, macro, "*/"
26514       next
26515     }
26516   }
26517 }
26518 { print }
26519 _ACAWK
26520 _ACEOF
26521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26522   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26523 fi # test -n "$CONFIG_HEADERS"
26524
26525
26526 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
26527 shift
26528 for ac_tag
26529 do
26530   case $ac_tag in
26531   :[FHLC]) ac_mode=$ac_tag; continue;;
26532   esac
26533   case $ac_mode$ac_tag in
26534   :[FHL]*:*);;
26535   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26536   :[FH]-) ac_tag=-:-;;
26537   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26538   esac
26539   ac_save_IFS=$IFS
26540   IFS=:
26541   set x $ac_tag
26542   IFS=$ac_save_IFS
26543   shift
26544   ac_file=$1
26545   shift
26546
26547   case $ac_mode in
26548   :L) ac_source=$1;;
26549   :[FH])
26550     ac_file_inputs=
26551     for ac_f
26552     do
26553       case $ac_f in
26554       -) ac_f="$tmp/stdin";;
26555       *) # Look for the file first in the build tree, then in the source tree
26556          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26557          # because $ac_f cannot contain `:'.
26558          test -f "$ac_f" ||
26559            case $ac_f in
26560            [\\/$]*) false;;
26561            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26562            esac ||
26563            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26564       esac
26565       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26566       as_fn_append ac_file_inputs " '$ac_f'"
26567     done
26568
26569     # Let's still pretend it is `configure' which instantiates (i.e., don't
26570     # use $as_me), people would be surprised to read:
26571     #    /* config.h.  Generated by config.status.  */
26572     configure_input='Generated from '`
26573           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26574         `' by configure.'
26575     if test x"$ac_file" != x-; then
26576       configure_input="$ac_file.  $configure_input"
26577       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26578 $as_echo "$as_me: creating $ac_file" >&6;}
26579     fi
26580     # Neutralize special characters interpreted by sed in replacement strings.
26581     case $configure_input in #(
26582     *\&* | *\|* | *\\* )
26583        ac_sed_conf_input=`$as_echo "$configure_input" |
26584        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26585     *) ac_sed_conf_input=$configure_input;;
26586     esac
26587
26588     case $ac_tag in
26589     *:-:* | *:-) cat >"$tmp/stdin" \
26590       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26591     esac
26592     ;;
26593   esac
26594
26595   ac_dir=`$as_dirname -- "$ac_file" ||
26596 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26597          X"$ac_file" : 'X\(//\)[^/]' \| \
26598          X"$ac_file" : 'X\(//\)$' \| \
26599          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26600 $as_echo X"$ac_file" |
26601     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26602             s//\1/
26603             q
26604           }
26605           /^X\(\/\/\)[^/].*/{
26606             s//\1/
26607             q
26608           }
26609           /^X\(\/\/\)$/{
26610             s//\1/
26611             q
26612           }
26613           /^X\(\/\).*/{
26614             s//\1/
26615             q
26616           }
26617           s/.*/./; q'`
26618   as_dir="$ac_dir"; as_fn_mkdir_p
26619   ac_builddir=.
26620
26621 case "$ac_dir" in
26622 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26623 *)
26624   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26625   # A ".." for each directory in $ac_dir_suffix.
26626   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26627   case $ac_top_builddir_sub in
26628   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26629   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26630   esac ;;
26631 esac
26632 ac_abs_top_builddir=$ac_pwd
26633 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26634 # for backward compatibility:
26635 ac_top_builddir=$ac_top_build_prefix
26636
26637 case $srcdir in
26638   .)  # We are building in place.
26639     ac_srcdir=.
26640     ac_top_srcdir=$ac_top_builddir_sub
26641     ac_abs_top_srcdir=$ac_pwd ;;
26642   [\\/]* | ?:[\\/]* )  # Absolute name.
26643     ac_srcdir=$srcdir$ac_dir_suffix;
26644     ac_top_srcdir=$srcdir
26645     ac_abs_top_srcdir=$srcdir ;;
26646   *) # Relative name.
26647     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26648     ac_top_srcdir=$ac_top_build_prefix$srcdir
26649     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26650 esac
26651 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26652
26653
26654   case $ac_mode in
26655   :F)
26656   #
26657   # CONFIG_FILE
26658   #
26659
26660   case $INSTALL in
26661   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26662   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26663   esac
26664   ac_MKDIR_P=$MKDIR_P
26665   case $MKDIR_P in
26666   [\\/$]* | ?:[\\/]* ) ;;
26667   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26668   esac
26669 _ACEOF
26670
26671 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26672 # If the template does not know about datarootdir, expand it.
26673 # FIXME: This hack should be removed a few years after 2.60.
26674 ac_datarootdir_hack=; ac_datarootdir_seen=
26675 ac_sed_dataroot='
26676 /datarootdir/ {
26677   p
26678   q
26679 }
26680 /@datadir@/p
26681 /@docdir@/p
26682 /@infodir@/p
26683 /@localedir@/p
26684 /@mandir@/p'
26685 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26686 *datarootdir*) ac_datarootdir_seen=yes;;
26687 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26688   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26689 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26690 _ACEOF
26691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26692   ac_datarootdir_hack='
26693   s&@datadir@&$datadir&g
26694   s&@docdir@&$docdir&g
26695   s&@infodir@&$infodir&g
26696   s&@localedir@&$localedir&g
26697   s&@mandir@&$mandir&g
26698   s&\\\${datarootdir}&$datarootdir&g' ;;
26699 esac
26700 _ACEOF
26701
26702 # Neutralize VPATH when `$srcdir' = `.'.
26703 # Shell code in configure.ac might set extrasub.
26704 # FIXME: do we really want to maintain this feature?
26705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26706 ac_sed_extra="$ac_vpsub
26707 $extrasub
26708 _ACEOF
26709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26710 :t
26711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26712 s|@configure_input@|$ac_sed_conf_input|;t t
26713 s&@top_builddir@&$ac_top_builddir_sub&;t t
26714 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26715 s&@srcdir@&$ac_srcdir&;t t
26716 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26717 s&@top_srcdir@&$ac_top_srcdir&;t t
26718 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26719 s&@builddir@&$ac_builddir&;t t
26720 s&@abs_builddir@&$ac_abs_builddir&;t t
26721 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26722 s&@INSTALL@&$ac_INSTALL&;t t
26723 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26724 $ac_datarootdir_hack
26725 "
26726 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26727   || as_fn_error "could not create $ac_file" "$LINENO" 5
26728
26729 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26730   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26731   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26732   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26733 which seems to be undefined.  Please make sure it is defined." >&5
26734 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26735 which seems to be undefined.  Please make sure it is defined." >&2;}
26736
26737   rm -f "$tmp/stdin"
26738   case $ac_file in
26739   -) cat "$tmp/out" && rm -f "$tmp/out";;
26740   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26741   esac \
26742   || as_fn_error "could not create $ac_file" "$LINENO" 5
26743  ;;
26744   :H)
26745   #
26746   # CONFIG_HEADER
26747   #
26748   if test x"$ac_file" != x-; then
26749     {
26750       $as_echo "/* $configure_input  */" \
26751       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26752     } >"$tmp/config.h" \
26753       || as_fn_error "could not create $ac_file" "$LINENO" 5
26754     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26755       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26756 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26757     else
26758       rm -f "$ac_file"
26759       mv "$tmp/config.h" "$ac_file" \
26760         || as_fn_error "could not create $ac_file" "$LINENO" 5
26761     fi
26762   else
26763     $as_echo "/* $configure_input  */" \
26764       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26765       || as_fn_error "could not create -" "$LINENO" 5
26766   fi
26767 # Compute "$ac_file"'s index in $config_headers.
26768 _am_arg="$ac_file"
26769 _am_stamp_count=1
26770 for _am_header in $config_headers :; do
26771   case $_am_header in
26772     $_am_arg | $_am_arg:* )
26773       break ;;
26774     * )
26775       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26776   esac
26777 done
26778 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26779 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26780          X"$_am_arg" : 'X\(//\)[^/]' \| \
26781          X"$_am_arg" : 'X\(//\)$' \| \
26782          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26783 $as_echo X"$_am_arg" |
26784     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26785             s//\1/
26786             q
26787           }
26788           /^X\(\/\/\)[^/].*/{
26789             s//\1/
26790             q
26791           }
26792           /^X\(\/\/\)$/{
26793             s//\1/
26794             q
26795           }
26796           /^X\(\/\).*/{
26797             s//\1/
26798             q
26799           }
26800           s/.*/./; q'`/stamp-h$_am_stamp_count
26801  ;;
26802   :L)
26803   #
26804   # CONFIG_LINK
26805   #
26806
26807   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26808     :
26809   else
26810     # Prefer the file from the source tree if names are identical.
26811     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26812       ac_source=$srcdir/$ac_source
26813     fi
26814
26815     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26816 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26817
26818     if test ! -r "$ac_source"; then
26819       as_fn_error "$ac_source: file not found" "$LINENO" 5
26820     fi
26821     rm -f "$ac_file"
26822
26823     # Try a relative symlink, then a hard link, then a copy.
26824     case $srcdir in
26825     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26826         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26827     esac
26828     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26829       ln "$ac_source" "$ac_file" 2>/dev/null ||
26830       cp -p "$ac_source" "$ac_file" ||
26831       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26832   fi
26833  ;;
26834   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26835 $as_echo "$as_me: executing $ac_file commands" >&6;}
26836  ;;
26837   esac
26838
26839
26840   case $ac_file$ac_mode in
26841     "default-1":C)
26842 # Only add multilib support code if we just rebuilt the top-level
26843 # Makefile.
26844 case " $CONFIG_FILES " in
26845  *" Makefile "*)
26846    ac_file=Makefile . ${multi_basedir}/config-ml.in
26847    ;;
26848 esac ;;
26849     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26850   # Autoconf 2.62 quotes --file arguments for eval, but not when files
26851   # are listed without --file.  Let's play safe and only enable the eval
26852   # if we detect the quoting.
26853   case $CONFIG_FILES in
26854   *\'*) eval set x "$CONFIG_FILES" ;;
26855   *)   set x $CONFIG_FILES ;;
26856   esac
26857   shift
26858   for mf
26859   do
26860     # Strip MF so we end up with the name of the file.
26861     mf=`echo "$mf" | sed -e 's/:.*$//'`
26862     # Check whether this is an Automake generated Makefile or not.
26863     # We used to match only the files named `Makefile.in', but
26864     # some people rename them; so instead we look at the file content.
26865     # Grep'ing the first line is not enough: some people post-process
26866     # each Makefile.in and add a new line on top of each file to say so.
26867     # Grep'ing the whole file is not good either: AIX grep has a line
26868     # limit of 2048, but all sed's we know have understand at least 4000.
26869     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26870       dirpart=`$as_dirname -- "$mf" ||
26871 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26872          X"$mf" : 'X\(//\)[^/]' \| \
26873          X"$mf" : 'X\(//\)$' \| \
26874          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26875 $as_echo X"$mf" |
26876     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26877             s//\1/
26878             q
26879           }
26880           /^X\(\/\/\)[^/].*/{
26881             s//\1/
26882             q
26883           }
26884           /^X\(\/\/\)$/{
26885             s//\1/
26886             q
26887           }
26888           /^X\(\/\).*/{
26889             s//\1/
26890             q
26891           }
26892           s/.*/./; q'`
26893     else
26894       continue
26895     fi
26896     # Extract the definition of DEPDIR, am__include, and am__quote
26897     # from the Makefile without running `make'.
26898     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26899     test -z "$DEPDIR" && continue
26900     am__include=`sed -n 's/^am__include = //p' < "$mf"`
26901     test -z "am__include" && continue
26902     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26903     # When using ansi2knr, U may be empty or an underscore; expand it
26904     U=`sed -n 's/^U = //p' < "$mf"`
26905     # Find all dependency output files, they are included files with
26906     # $(DEPDIR) in their names.  We invoke sed twice because it is the
26907     # simplest approach to changing $(DEPDIR) to its actual value in the
26908     # expansion.
26909     for file in `sed -n "
26910       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26911          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26912       # Make sure the directory exists.
26913       test -f "$dirpart/$file" && continue
26914       fdir=`$as_dirname -- "$file" ||
26915 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26916          X"$file" : 'X\(//\)[^/]' \| \
26917          X"$file" : 'X\(//\)$' \| \
26918          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26919 $as_echo X"$file" |
26920     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26921             s//\1/
26922             q
26923           }
26924           /^X\(\/\/\)[^/].*/{
26925             s//\1/
26926             q
26927           }
26928           /^X\(\/\/\)$/{
26929             s//\1/
26930             q
26931           }
26932           /^X\(\/\).*/{
26933             s//\1/
26934             q
26935           }
26936           s/.*/./; q'`
26937       as_dir=$dirpart/$fdir; as_fn_mkdir_p
26938       # echo "creating $dirpart/$file"
26939       echo '# dummy' > "$dirpart/$file"
26940     done
26941   done
26942 }
26943  ;;
26944     "libtool":C)
26945
26946     # See if we are running on zsh, and set the options which allow our
26947     # commands through without removal of \ escapes.
26948     if test -n "${ZSH_VERSION+set}" ; then
26949       setopt NO_GLOB_SUBST
26950     fi
26951
26952     cfgfile="${ofile}T"
26953     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26954     $RM "$cfgfile"
26955
26956     cat <<_LT_EOF >> "$cfgfile"
26957 #! $SHELL
26958
26959 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26960 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26961 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26962 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26963 #
26964 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26965 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26966 #   Written by Gordon Matzigkeit, 1996
26967 #
26968 #   This file is part of GNU Libtool.
26969 #
26970 # GNU Libtool is free software; you can redistribute it and/or
26971 # modify it under the terms of the GNU General Public License as
26972 # published by the Free Software Foundation; either version 2 of
26973 # the License, or (at your option) any later version.
26974 #
26975 # As a special exception to the GNU General Public License,
26976 # if you distribute this file as part of a program or library that
26977 # is built using GNU Libtool, you may include this file under the
26978 # same distribution terms that you use for the rest of that program.
26979 #
26980 # GNU Libtool is distributed in the hope that it will be useful,
26981 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26982 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26983 # GNU General Public License for more details.
26984 #
26985 # You should have received a copy of the GNU General Public License
26986 # along with GNU Libtool; see the file COPYING.  If not, a copy
26987 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26988 # obtained by writing to the Free Software Foundation, Inc.,
26989 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26990
26991
26992 # The names of the tagged configurations supported by this script.
26993 available_tags="CXX GCJ "
26994
26995 # ### BEGIN LIBTOOL CONFIG
26996
26997 # Which release of libtool.m4 was used?
26998 macro_version=$macro_version
26999 macro_revision=$macro_revision
27000
27001 # Whether or not to build shared libraries.
27002 build_libtool_libs=$enable_shared
27003
27004 # Whether or not to build static libraries.
27005 build_old_libs=$enable_static
27006
27007 # What type of objects to build.
27008 pic_mode=$pic_mode
27009
27010 # Whether or not to optimize for fast installation.
27011 fast_install=$enable_fast_install
27012
27013 # Shell to use when invoking shell scripts.
27014 SHELL=$lt_SHELL
27015
27016 # An echo program that protects backslashes.
27017 ECHO=$lt_ECHO
27018
27019 # The host system.
27020 host_alias=$host_alias
27021 host=$host
27022 host_os=$host_os
27023
27024 # The build system.
27025 build_alias=$build_alias
27026 build=$build
27027 build_os=$build_os
27028
27029 # A sed program that does not truncate output.
27030 SED=$lt_SED
27031
27032 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27033 Xsed="\$SED -e 1s/^X//"
27034
27035 # A grep program that handles long lines.
27036 GREP=$lt_GREP
27037
27038 # An ERE matcher.
27039 EGREP=$lt_EGREP
27040
27041 # A literal string matcher.
27042 FGREP=$lt_FGREP
27043
27044 # A BSD- or MS-compatible name lister.
27045 NM=$lt_NM
27046
27047 # Whether we need soft or hard links.
27048 LN_S=$lt_LN_S
27049
27050 # What is the maximum length of a command?
27051 max_cmd_len=$max_cmd_len
27052
27053 # Object file suffix (normally "o").
27054 objext=$ac_objext
27055
27056 # Executable file suffix (normally "").
27057 exeext=$exeext
27058
27059 # whether the shell understands "unset".
27060 lt_unset=$lt_unset
27061
27062 # turn spaces into newlines.
27063 SP2NL=$lt_lt_SP2NL
27064
27065 # turn newlines into spaces.
27066 NL2SP=$lt_lt_NL2SP
27067
27068 # An object symbol dumper.
27069 OBJDUMP=$lt_OBJDUMP
27070
27071 # Method to check whether dependent libraries are shared objects.
27072 deplibs_check_method=$lt_deplibs_check_method
27073
27074 # Command to use when deplibs_check_method == "file_magic".
27075 file_magic_cmd=$lt_file_magic_cmd
27076
27077 # The archiver.
27078 AR=$lt_AR
27079 AR_FLAGS=$lt_AR_FLAGS
27080
27081 # A symbol stripping program.
27082 STRIP=$lt_STRIP
27083
27084 # Commands used to install an old-style archive.
27085 RANLIB=$lt_RANLIB
27086 old_postinstall_cmds=$lt_old_postinstall_cmds
27087 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27088
27089 # Whether to use a lock for old archive extraction.
27090 lock_old_archive_extraction=$lock_old_archive_extraction
27091
27092 # A C compiler.
27093 LTCC=$lt_CC
27094
27095 # LTCC compiler flags.
27096 LTCFLAGS=$lt_CFLAGS
27097
27098 # Take the output of nm and produce a listing of raw symbols and C names.
27099 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27100
27101 # Transform the output of nm in a proper C declaration.
27102 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27103
27104 # Transform the output of nm in a C name address pair.
27105 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27106
27107 # Transform the output of nm in a C name address pair when lib prefix is needed.
27108 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27109
27110 # The name of the directory that contains temporary libtool files.
27111 objdir=$objdir
27112
27113 # Used to examine libraries when file_magic_cmd begins with "file".
27114 MAGIC_CMD=$MAGIC_CMD
27115
27116 # Must we lock files when doing compilation?
27117 need_locks=$lt_need_locks
27118
27119 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27120 DSYMUTIL=$lt_DSYMUTIL
27121
27122 # Tool to change global to local symbols on Mac OS X.
27123 NMEDIT=$lt_NMEDIT
27124
27125 # Tool to manipulate fat objects and archives on Mac OS X.
27126 LIPO=$lt_LIPO
27127
27128 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27129 OTOOL=$lt_OTOOL
27130
27131 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27132 OTOOL64=$lt_OTOOL64
27133
27134 # Old archive suffix (normally "a").
27135 libext=$libext
27136
27137 # Shared library suffix (normally ".so").
27138 shrext_cmds=$lt_shrext_cmds
27139
27140 # The commands to extract the exported symbol list from a shared archive.
27141 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27142
27143 # Variables whose values should be saved in libtool wrapper scripts and
27144 # restored at link time.
27145 variables_saved_for_relink=$lt_variables_saved_for_relink
27146
27147 # Do we need the "lib" prefix for modules?
27148 need_lib_prefix=$need_lib_prefix
27149
27150 # Do we need a version for libraries?
27151 need_version=$need_version
27152
27153 # Library versioning type.
27154 version_type=$version_type
27155
27156 # Shared library runtime path variable.
27157 runpath_var=$runpath_var
27158
27159 # Shared library path variable.
27160 shlibpath_var=$shlibpath_var
27161
27162 # Is shlibpath searched before the hard-coded library search path?
27163 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27164
27165 # Format of library name prefix.
27166 libname_spec=$lt_libname_spec
27167
27168 # List of archive names.  First name is the real one, the rest are links.
27169 # The last name is the one that the linker finds with -lNAME
27170 library_names_spec=$lt_library_names_spec
27171
27172 # The coded name of the library, if different from the real name.
27173 soname_spec=$lt_soname_spec
27174
27175 # Permission mode override for installation of shared libraries.
27176 install_override_mode=$lt_install_override_mode
27177
27178 # Command to use after installation of a shared archive.
27179 postinstall_cmds=$lt_postinstall_cmds
27180
27181 # Command to use after uninstallation of a shared archive.
27182 postuninstall_cmds=$lt_postuninstall_cmds
27183
27184 # Commands used to finish a libtool library installation in a directory.
27185 finish_cmds=$lt_finish_cmds
27186
27187 # As "finish_cmds", except a single script fragment to be evaled but
27188 # not shown.
27189 finish_eval=$lt_finish_eval
27190
27191 # Whether we should hardcode library paths into libraries.
27192 hardcode_into_libs=$hardcode_into_libs
27193
27194 # Compile-time system search path for libraries.
27195 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
27196
27197 # Run-time system search path for libraries.
27198 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
27199
27200 # Whether dlopen is supported.
27201 dlopen_support=$enable_dlopen
27202
27203 # Whether dlopen of programs is supported.
27204 dlopen_self=$enable_dlopen_self
27205
27206 # Whether dlopen of statically linked programs is supported.
27207 dlopen_self_static=$enable_dlopen_self_static
27208
27209 # Commands to strip libraries.
27210 old_striplib=$lt_old_striplib
27211 striplib=$lt_striplib
27212
27213
27214 # The linker used to build libraries.
27215 LD=$lt_LD
27216
27217 # How to create reloadable object files.
27218 reload_flag=$lt_reload_flag
27219 reload_cmds=$lt_reload_cmds
27220
27221 # Commands used to build an old-style archive.
27222 old_archive_cmds=$lt_old_archive_cmds
27223
27224 # A language specific compiler.
27225 CC=$lt_compiler
27226
27227 # Is the compiler the GNU compiler?
27228 with_gcc=$GCC
27229
27230 # Compiler flag to turn off builtin functions.
27231 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
27232
27233 # How to pass a linker flag through the compiler.
27234 wl=$lt_lt_prog_compiler_wl
27235
27236 # Additional compiler flags for building library objects.
27237 pic_flag=$lt_lt_prog_compiler_pic
27238
27239 # Compiler flag to prevent dynamic linking.
27240 link_static_flag=$lt_lt_prog_compiler_static
27241
27242 # Does compiler simultaneously support -c and -o options?
27243 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
27244
27245 # Whether or not to add -lc for building shared libraries.
27246 build_libtool_need_lc=$archive_cmds_need_lc
27247
27248 # Whether or not to disallow shared libs when runtime libs are static.
27249 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
27250
27251 # Compiler flag to allow reflexive dlopens.
27252 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
27253
27254 # Compiler flag to generate shared objects directly from archives.
27255 whole_archive_flag_spec=$lt_whole_archive_flag_spec
27256
27257 # Whether the compiler copes with passing no objects directly.
27258 compiler_needs_object=$lt_compiler_needs_object
27259
27260 # Create an old-style archive from a shared archive.
27261 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
27262
27263 # Create a temporary old-style archive to link instead of a shared archive.
27264 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
27265
27266 # Commands used to build a shared archive.
27267 archive_cmds=$lt_archive_cmds
27268 archive_expsym_cmds=$lt_archive_expsym_cmds
27269
27270 # Commands used to build a loadable module if different from building
27271 # a shared archive.
27272 module_cmds=$lt_module_cmds
27273 module_expsym_cmds=$lt_module_expsym_cmds
27274
27275 # Whether we are building with GNU ld or not.
27276 with_gnu_ld=$lt_with_gnu_ld
27277
27278 # Flag that allows shared libraries with undefined symbols to be built.
27279 allow_undefined_flag=$lt_allow_undefined_flag
27280
27281 # Flag that enforces no undefined symbols.
27282 no_undefined_flag=$lt_no_undefined_flag
27283
27284 # Flag to hardcode \$libdir into a binary during linking.
27285 # This must work even if \$libdir does not exist
27286 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
27287
27288 # If ld is used when linking, flag to hardcode \$libdir into a binary
27289 # during linking.  This must work even if \$libdir does not exist.
27290 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
27291
27292 # Whether we need a single "-rpath" flag with a separated argument.
27293 hardcode_libdir_separator=$lt_hardcode_libdir_separator
27294
27295 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27296 # DIR into the resulting binary.
27297 hardcode_direct=$hardcode_direct
27298
27299 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27300 # DIR into the resulting binary and the resulting library dependency is
27301 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27302 # library is relocated.
27303 hardcode_direct_absolute=$hardcode_direct_absolute
27304
27305 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27306 # into the resulting binary.
27307 hardcode_minus_L=$hardcode_minus_L
27308
27309 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27310 # into the resulting binary.
27311 hardcode_shlibpath_var=$hardcode_shlibpath_var
27312
27313 # Set to "yes" if building a shared library automatically hardcodes DIR
27314 # into the library and all subsequent libraries and executables linked
27315 # against it.
27316 hardcode_automatic=$hardcode_automatic
27317
27318 # Set to yes if linker adds runtime paths of dependent libraries
27319 # to runtime path list.
27320 inherit_rpath=$inherit_rpath
27321
27322 # Whether libtool must link a program against all its dependency libraries.
27323 link_all_deplibs=$link_all_deplibs
27324
27325 # Fix the shell variable \$srcfile for the compiler.
27326 fix_srcfile_path=$lt_fix_srcfile_path
27327
27328 # Set to "yes" if exported symbols are required.
27329 always_export_symbols=$always_export_symbols
27330
27331 # The commands to list exported symbols.
27332 export_symbols_cmds=$lt_export_symbols_cmds
27333
27334 # Symbols that should not be listed in the preloaded symbols.
27335 exclude_expsyms=$lt_exclude_expsyms
27336
27337 # Symbols that must always be exported.
27338 include_expsyms=$lt_include_expsyms
27339
27340 # Commands necessary for linking programs (against libraries) with templates.
27341 prelink_cmds=$lt_prelink_cmds
27342
27343 # Specify filename containing input files.
27344 file_list_spec=$lt_file_list_spec
27345
27346 # How to hardcode a shared library path into an executable.
27347 hardcode_action=$hardcode_action
27348
27349 # The directories searched by this compiler when creating a shared library.
27350 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27351
27352 # Dependencies to place before and after the objects being linked to
27353 # create a shared library.
27354 predep_objects=$lt_predep_objects
27355 postdep_objects=$lt_postdep_objects
27356 predeps=$lt_predeps
27357 postdeps=$lt_postdeps
27358
27359 # The library search path used internally by the compiler when linking
27360 # a shared library.
27361 compiler_lib_search_path=$lt_compiler_lib_search_path
27362
27363 # ### END LIBTOOL CONFIG
27364
27365 _LT_EOF
27366
27367   case $host_os in
27368   aix3*)
27369     cat <<\_LT_EOF >> "$cfgfile"
27370 # AIX sometimes has problems with the GCC collect2 program.  For some
27371 # reason, if we set the COLLECT_NAMES environment variable, the problems
27372 # vanish in a puff of smoke.
27373 if test "X${COLLECT_NAMES+set}" != Xset; then
27374   COLLECT_NAMES=
27375   export COLLECT_NAMES
27376 fi
27377 _LT_EOF
27378     ;;
27379   esac
27380
27381
27382 ltmain="$ac_aux_dir/ltmain.sh"
27383
27384
27385   # We use sed instead of cat because bash on DJGPP gets confused if
27386   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27387   # text mode, it properly converts lines to CR/LF.  This bash problem
27388   # is reportedly fixed, but why not run on old versions too?
27389   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27390     || (rm -f "$cfgfile"; exit 1)
27391
27392   case $xsi_shell in
27393   yes)
27394     cat << \_LT_EOF >> "$cfgfile"
27395
27396 # func_dirname file append nondir_replacement
27397 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27398 # otherwise set result to NONDIR_REPLACEMENT.
27399 func_dirname ()
27400 {
27401   case ${1} in
27402     */*) func_dirname_result="${1%/*}${2}" ;;
27403     *  ) func_dirname_result="${3}" ;;
27404   esac
27405 }
27406
27407 # func_basename file
27408 func_basename ()
27409 {
27410   func_basename_result="${1##*/}"
27411 }
27412
27413 # func_dirname_and_basename file append nondir_replacement
27414 # perform func_basename and func_dirname in a single function
27415 # call:
27416 #   dirname:  Compute the dirname of FILE.  If nonempty,
27417 #             add APPEND to the result, otherwise set result
27418 #             to NONDIR_REPLACEMENT.
27419 #             value returned in "$func_dirname_result"
27420 #   basename: Compute filename of FILE.
27421 #             value retuned in "$func_basename_result"
27422 # Implementation must be kept synchronized with func_dirname
27423 # and func_basename. For efficiency, we do not delegate to
27424 # those functions but instead duplicate the functionality here.
27425 func_dirname_and_basename ()
27426 {
27427   case ${1} in
27428     */*) func_dirname_result="${1%/*}${2}" ;;
27429     *  ) func_dirname_result="${3}" ;;
27430   esac
27431   func_basename_result="${1##*/}"
27432 }
27433
27434 # func_stripname prefix suffix name
27435 # strip PREFIX and SUFFIX off of NAME.
27436 # PREFIX and SUFFIX must not contain globbing or regex special
27437 # characters, hashes, percent signs, but SUFFIX may contain a leading
27438 # dot (in which case that matches only a dot).
27439 func_stripname ()
27440 {
27441   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27442   # positional parameters, so assign one to ordinary parameter first.
27443   func_stripname_result=${3}
27444   func_stripname_result=${func_stripname_result#"${1}"}
27445   func_stripname_result=${func_stripname_result%"${2}"}
27446 }
27447
27448 # func_opt_split
27449 func_opt_split ()
27450 {
27451   func_opt_split_opt=${1%%=*}
27452   func_opt_split_arg=${1#*=}
27453 }
27454
27455 # func_lo2o object
27456 func_lo2o ()
27457 {
27458   case ${1} in
27459     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27460     *)    func_lo2o_result=${1} ;;
27461   esac
27462 }
27463
27464 # func_xform libobj-or-source
27465 func_xform ()
27466 {
27467   func_xform_result=${1%.*}.lo
27468 }
27469
27470 # func_arith arithmetic-term...
27471 func_arith ()
27472 {
27473   func_arith_result=$(( $* ))
27474 }
27475
27476 # func_len string
27477 # STRING may not start with a hyphen.
27478 func_len ()
27479 {
27480   func_len_result=${#1}
27481 }
27482
27483 _LT_EOF
27484     ;;
27485   *) # Bourne compatible functions.
27486     cat << \_LT_EOF >> "$cfgfile"
27487
27488 # func_dirname file append nondir_replacement
27489 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27490 # otherwise set result to NONDIR_REPLACEMENT.
27491 func_dirname ()
27492 {
27493   # Extract subdirectory from the argument.
27494   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27495   if test "X$func_dirname_result" = "X${1}"; then
27496     func_dirname_result="${3}"
27497   else
27498     func_dirname_result="$func_dirname_result${2}"
27499   fi
27500 }
27501
27502 # func_basename file
27503 func_basename ()
27504 {
27505   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27506 }
27507
27508
27509 # func_stripname prefix suffix name
27510 # strip PREFIX and SUFFIX off of NAME.
27511 # PREFIX and SUFFIX must not contain globbing or regex special
27512 # characters, hashes, percent signs, but SUFFIX may contain a leading
27513 # dot (in which case that matches only a dot).
27514 # func_strip_suffix prefix name
27515 func_stripname ()
27516 {
27517   case ${2} in
27518     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27519     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27520   esac
27521 }
27522
27523 # sed scripts:
27524 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27525 my_sed_long_arg='1s/^-[^=]*=//'
27526
27527 # func_opt_split
27528 func_opt_split ()
27529 {
27530   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27531   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27532 }
27533
27534 # func_lo2o object
27535 func_lo2o ()
27536 {
27537   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27538 }
27539
27540 # func_xform libobj-or-source
27541 func_xform ()
27542 {
27543   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27544 }
27545
27546 # func_arith arithmetic-term...
27547 func_arith ()
27548 {
27549   func_arith_result=`expr "$@"`
27550 }
27551
27552 # func_len string
27553 # STRING may not start with a hyphen.
27554 func_len ()
27555 {
27556   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27557 }
27558
27559 _LT_EOF
27560 esac
27561
27562 case $lt_shell_append in
27563   yes)
27564     cat << \_LT_EOF >> "$cfgfile"
27565
27566 # func_append var value
27567 # Append VALUE to the end of shell variable VAR.
27568 func_append ()
27569 {
27570   eval "$1+=\$2"
27571 }
27572 _LT_EOF
27573     ;;
27574   *)
27575     cat << \_LT_EOF >> "$cfgfile"
27576
27577 # func_append var value
27578 # Append VALUE to the end of shell variable VAR.
27579 func_append ()
27580 {
27581   eval "$1=\$$1\$2"
27582 }
27583
27584 _LT_EOF
27585     ;;
27586   esac
27587
27588
27589   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27590     || (rm -f "$cfgfile"; exit 1)
27591
27592   mv -f "$cfgfile" "$ofile" ||
27593     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27594   chmod +x "$ofile"
27595
27596
27597     cat <<_LT_EOF >> "$ofile"
27598
27599 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27600
27601 # The linker used to build libraries.
27602 LD=$lt_LD_CXX
27603
27604 # How to create reloadable object files.
27605 reload_flag=$lt_reload_flag_CXX
27606 reload_cmds=$lt_reload_cmds_CXX
27607
27608 # Commands used to build an old-style archive.
27609 old_archive_cmds=$lt_old_archive_cmds_CXX
27610
27611 # A language specific compiler.
27612 CC=$lt_compiler_CXX
27613
27614 # Is the compiler the GNU compiler?
27615 with_gcc=$GCC_CXX
27616
27617 # Compiler flag to turn off builtin functions.
27618 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27619
27620 # How to pass a linker flag through the compiler.
27621 wl=$lt_lt_prog_compiler_wl_CXX
27622
27623 # Additional compiler flags for building library objects.
27624 pic_flag=$lt_lt_prog_compiler_pic_CXX
27625
27626 # Compiler flag to prevent dynamic linking.
27627 link_static_flag=$lt_lt_prog_compiler_static_CXX
27628
27629 # Does compiler simultaneously support -c and -o options?
27630 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27631
27632 # Whether or not to add -lc for building shared libraries.
27633 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27634
27635 # Whether or not to disallow shared libs when runtime libs are static.
27636 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27637
27638 # Compiler flag to allow reflexive dlopens.
27639 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27640
27641 # Compiler flag to generate shared objects directly from archives.
27642 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27643
27644 # Whether the compiler copes with passing no objects directly.
27645 compiler_needs_object=$lt_compiler_needs_object_CXX
27646
27647 # Create an old-style archive from a shared archive.
27648 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27649
27650 # Create a temporary old-style archive to link instead of a shared archive.
27651 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27652
27653 # Commands used to build a shared archive.
27654 archive_cmds=$lt_archive_cmds_CXX
27655 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27656
27657 # Commands used to build a loadable module if different from building
27658 # a shared archive.
27659 module_cmds=$lt_module_cmds_CXX
27660 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27661
27662 # Whether we are building with GNU ld or not.
27663 with_gnu_ld=$lt_with_gnu_ld_CXX
27664
27665 # Flag that allows shared libraries with undefined symbols to be built.
27666 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27667
27668 # Flag that enforces no undefined symbols.
27669 no_undefined_flag=$lt_no_undefined_flag_CXX
27670
27671 # Flag to hardcode \$libdir into a binary during linking.
27672 # This must work even if \$libdir does not exist
27673 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27674
27675 # If ld is used when linking, flag to hardcode \$libdir into a binary
27676 # during linking.  This must work even if \$libdir does not exist.
27677 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27678
27679 # Whether we need a single "-rpath" flag with a separated argument.
27680 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27681
27682 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27683 # DIR into the resulting binary.
27684 hardcode_direct=$hardcode_direct_CXX
27685
27686 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27687 # DIR into the resulting binary and the resulting library dependency is
27688 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27689 # library is relocated.
27690 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27691
27692 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27693 # into the resulting binary.
27694 hardcode_minus_L=$hardcode_minus_L_CXX
27695
27696 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27697 # into the resulting binary.
27698 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27699
27700 # Set to "yes" if building a shared library automatically hardcodes DIR
27701 # into the library and all subsequent libraries and executables linked
27702 # against it.
27703 hardcode_automatic=$hardcode_automatic_CXX
27704
27705 # Set to yes if linker adds runtime paths of dependent libraries
27706 # to runtime path list.
27707 inherit_rpath=$inherit_rpath_CXX
27708
27709 # Whether libtool must link a program against all its dependency libraries.
27710 link_all_deplibs=$link_all_deplibs_CXX
27711
27712 # Fix the shell variable \$srcfile for the compiler.
27713 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27714
27715 # Set to "yes" if exported symbols are required.
27716 always_export_symbols=$always_export_symbols_CXX
27717
27718 # The commands to list exported symbols.
27719 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27720
27721 # Symbols that should not be listed in the preloaded symbols.
27722 exclude_expsyms=$lt_exclude_expsyms_CXX
27723
27724 # Symbols that must always be exported.
27725 include_expsyms=$lt_include_expsyms_CXX
27726
27727 # Commands necessary for linking programs (against libraries) with templates.
27728 prelink_cmds=$lt_prelink_cmds_CXX
27729
27730 # Specify filename containing input files.
27731 file_list_spec=$lt_file_list_spec_CXX
27732
27733 # How to hardcode a shared library path into an executable.
27734 hardcode_action=$hardcode_action_CXX
27735
27736 # The directories searched by this compiler when creating a shared library.
27737 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27738
27739 # Dependencies to place before and after the objects being linked to
27740 # create a shared library.
27741 predep_objects=$lt_predep_objects_CXX
27742 postdep_objects=$lt_postdep_objects_CXX
27743 predeps=$lt_predeps_CXX
27744 postdeps=$lt_postdeps_CXX
27745
27746 # The library search path used internally by the compiler when linking
27747 # a shared library.
27748 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27749
27750 # ### END LIBTOOL TAG CONFIG: CXX
27751 _LT_EOF
27752
27753
27754     cat <<_LT_EOF >> "$ofile"
27755
27756 # ### BEGIN LIBTOOL TAG CONFIG: GCJ
27757
27758 # The linker used to build libraries.
27759 LD=$lt_LD_GCJ
27760
27761 # How to create reloadable object files.
27762 reload_flag=$lt_reload_flag_GCJ
27763 reload_cmds=$lt_reload_cmds_GCJ
27764
27765 # Commands used to build an old-style archive.
27766 old_archive_cmds=$lt_old_archive_cmds_GCJ
27767
27768 # A language specific compiler.
27769 CC=$lt_compiler_GCJ
27770
27771 # Is the compiler the GNU compiler?
27772 with_gcc=$GCC_GCJ
27773
27774 # Compiler flag to turn off builtin functions.
27775 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
27776
27777 # How to pass a linker flag through the compiler.
27778 wl=$lt_lt_prog_compiler_wl_GCJ
27779
27780 # Additional compiler flags for building library objects.
27781 pic_flag=$lt_lt_prog_compiler_pic_GCJ
27782
27783 # Compiler flag to prevent dynamic linking.
27784 link_static_flag=$lt_lt_prog_compiler_static_GCJ
27785
27786 # Does compiler simultaneously support -c and -o options?
27787 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
27788
27789 # Whether or not to add -lc for building shared libraries.
27790 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
27791
27792 # Whether or not to disallow shared libs when runtime libs are static.
27793 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
27794
27795 # Compiler flag to allow reflexive dlopens.
27796 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
27797
27798 # Compiler flag to generate shared objects directly from archives.
27799 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
27800
27801 # Whether the compiler copes with passing no objects directly.
27802 compiler_needs_object=$lt_compiler_needs_object_GCJ
27803
27804 # Create an old-style archive from a shared archive.
27805 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
27806
27807 # Create a temporary old-style archive to link instead of a shared archive.
27808 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
27809
27810 # Commands used to build a shared archive.
27811 archive_cmds=$lt_archive_cmds_GCJ
27812 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
27813
27814 # Commands used to build a loadable module if different from building
27815 # a shared archive.
27816 module_cmds=$lt_module_cmds_GCJ
27817 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
27818
27819 # Whether we are building with GNU ld or not.
27820 with_gnu_ld=$lt_with_gnu_ld_GCJ
27821
27822 # Flag that allows shared libraries with undefined symbols to be built.
27823 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
27824
27825 # Flag that enforces no undefined symbols.
27826 no_undefined_flag=$lt_no_undefined_flag_GCJ
27827
27828 # Flag to hardcode \$libdir into a binary during linking.
27829 # This must work even if \$libdir does not exist
27830 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
27831
27832 # If ld is used when linking, flag to hardcode \$libdir into a binary
27833 # during linking.  This must work even if \$libdir does not exist.
27834 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
27835
27836 # Whether we need a single "-rpath" flag with a separated argument.
27837 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
27838
27839 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27840 # DIR into the resulting binary.
27841 hardcode_direct=$hardcode_direct_GCJ
27842
27843 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27844 # DIR into the resulting binary and the resulting library dependency is
27845 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27846 # library is relocated.
27847 hardcode_direct_absolute=$hardcode_direct_absolute_GCJ
27848
27849 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27850 # into the resulting binary.
27851 hardcode_minus_L=$hardcode_minus_L_GCJ
27852
27853 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27854 # into the resulting binary.
27855 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
27856
27857 # Set to "yes" if building a shared library automatically hardcodes DIR
27858 # into the library and all subsequent libraries and executables linked
27859 # against it.
27860 hardcode_automatic=$hardcode_automatic_GCJ
27861
27862 # Set to yes if linker adds runtime paths of dependent libraries
27863 # to runtime path list.
27864 inherit_rpath=$inherit_rpath_GCJ
27865
27866 # Whether libtool must link a program against all its dependency libraries.
27867 link_all_deplibs=$link_all_deplibs_GCJ
27868
27869 # Fix the shell variable \$srcfile for the compiler.
27870 fix_srcfile_path=$lt_fix_srcfile_path_GCJ
27871
27872 # Set to "yes" if exported symbols are required.
27873 always_export_symbols=$always_export_symbols_GCJ
27874
27875 # The commands to list exported symbols.
27876 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
27877
27878 # Symbols that should not be listed in the preloaded symbols.
27879 exclude_expsyms=$lt_exclude_expsyms_GCJ
27880
27881 # Symbols that must always be exported.
27882 include_expsyms=$lt_include_expsyms_GCJ
27883
27884 # Commands necessary for linking programs (against libraries) with templates.
27885 prelink_cmds=$lt_prelink_cmds_GCJ
27886
27887 # Specify filename containing input files.
27888 file_list_spec=$lt_file_list_spec_GCJ
27889
27890 # How to hardcode a shared library path into an executable.
27891 hardcode_action=$hardcode_action_GCJ
27892
27893 # The directories searched by this compiler when creating a shared library.
27894 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
27895
27896 # Dependencies to place before and after the objects being linked to
27897 # create a shared library.
27898 predep_objects=$lt_predep_objects_GCJ
27899 postdep_objects=$lt_postdep_objects_GCJ
27900 predeps=$lt_predeps_GCJ
27901 postdeps=$lt_postdeps_GCJ
27902
27903 # The library search path used internally by the compiler when linking
27904 # a shared library.
27905 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
27906
27907 # ### END LIBTOOL TAG CONFIG: GCJ
27908 _LT_EOF
27909
27910  ;;
27911     "scripts/jar":F) chmod +x scripts/jar ;;
27912
27913   esac
27914 done # for ac_tag
27915
27916
27917 as_fn_exit 0
27918 _ACEOF
27919 ac_clean_files=$ac_clean_files_save
27920
27921 test $ac_write_fail = 0 ||
27922   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27923
27924
27925 # configure is writing to config.log, and then calls config.status.
27926 # config.status does its own redirection, appending to config.log.
27927 # Unfortunately, on DOS this fails, as config.log is still kept open
27928 # by configure, so config.status won't be able to write to it; its
27929 # output is simply discarded.  So we exec the FD to /dev/null,
27930 # effectively closing config.log, so it can be properly (re)opened and
27931 # appended to by config.status.  When coming back to configure, we
27932 # need to make the FD available again.
27933 if test "$no_create" != yes; then
27934   ac_cs_success=:
27935   ac_config_status_args=
27936   test "$silent" = yes &&
27937     ac_config_status_args="$ac_config_status_args --quiet"
27938   exec 5>/dev/null
27939   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27940   exec 5>>config.log
27941   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27942   # would make configure fail if this is the last instruction.
27943   $ac_cs_success || as_fn_exit $?
27944 fi
27945
27946 #
27947 # CONFIG_SUBDIRS section.
27948 #
27949 if test "$no_recursion" != yes; then
27950
27951   # Remove --cache-file, --srcdir, and --disable-option-checking arguments
27952   # so they do not pile up.
27953   ac_sub_configure_args=
27954   ac_prev=
27955   eval "set x $ac_configure_args"
27956   shift
27957   for ac_arg
27958   do
27959     if test -n "$ac_prev"; then
27960       ac_prev=
27961       continue
27962     fi
27963     case $ac_arg in
27964     -cache-file | --cache-file | --cache-fil | --cache-fi \
27965     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
27966       ac_prev=cache_file ;;
27967     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
27968     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
27969     | --c=*)
27970       ;;
27971     --config-cache | -C)
27972       ;;
27973     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
27974       ac_prev=srcdir ;;
27975     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
27976       ;;
27977     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
27978       ac_prev=prefix ;;
27979     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
27980       ;;
27981     --disable-option-checking)
27982       ;;
27983     *)
27984       case $ac_arg in
27985       *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27986       esac
27987       as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
27988     esac
27989   done
27990
27991   # Always prepend --prefix to ensure using the same prefix
27992   # in subdir configurations.
27993   ac_arg="--prefix=$prefix"
27994   case $ac_arg in
27995   *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27996   esac
27997   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
27998
27999   # Pass --silent
28000   if test "$silent" = yes; then
28001     ac_sub_configure_args="--silent $ac_sub_configure_args"
28002   fi
28003
28004   # Always prepend --disable-option-checking to silence warnings, since
28005   # different subdirs can have different --enable and --with options.
28006   ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
28007
28008   ac_popdir=`pwd`
28009   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
28010
28011     # Do not complain, so a configure script can configure whichever
28012     # parts of a large source tree are present.
28013     test -d "$srcdir/$ac_dir" || continue
28014
28015     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
28016     $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
28017     $as_echo "$ac_msg" >&6
28018     as_dir="$ac_dir"; as_fn_mkdir_p
28019     ac_builddir=.
28020
28021 case "$ac_dir" in
28022 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28023 *)
28024   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28025   # A ".." for each directory in $ac_dir_suffix.
28026   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28027   case $ac_top_builddir_sub in
28028   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28029   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28030   esac ;;
28031 esac
28032 ac_abs_top_builddir=$ac_pwd
28033 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28034 # for backward compatibility:
28035 ac_top_builddir=$ac_top_build_prefix
28036
28037 case $srcdir in
28038   .)  # We are building in place.
28039     ac_srcdir=.
28040     ac_top_srcdir=$ac_top_builddir_sub
28041     ac_abs_top_srcdir=$ac_pwd ;;
28042   [\\/]* | ?:[\\/]* )  # Absolute name.
28043     ac_srcdir=$srcdir$ac_dir_suffix;
28044     ac_top_srcdir=$srcdir
28045     ac_abs_top_srcdir=$srcdir ;;
28046   *) # Relative name.
28047     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28048     ac_top_srcdir=$ac_top_build_prefix$srcdir
28049     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28050 esac
28051 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28052
28053
28054     cd "$ac_dir"
28055
28056     # Check for guested configure; otherwise get Cygnus style configure.
28057     if test -f "$ac_srcdir/configure.gnu"; then
28058       ac_sub_configure=$ac_srcdir/configure.gnu
28059     elif test -f "$ac_srcdir/configure"; then
28060       ac_sub_configure=$ac_srcdir/configure
28061     elif test -f "$ac_srcdir/configure.in"; then
28062       # This should be Cygnus configure.
28063       ac_sub_configure=$ac_aux_dir/configure
28064     else
28065       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
28066 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
28067       ac_sub_configure=
28068     fi
28069
28070     # The recursion is here.
28071     if test -n "$ac_sub_configure"; then
28072       # Make the cache file name correct relative to the subdirectory.
28073       case $cache_file in
28074       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
28075       *) # Relative name.
28076         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
28077       esac
28078
28079       { $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
28080 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
28081       # The eval makes quoting arguments work.
28082       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
28083            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
28084         as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
28085     fi
28086
28087     cd "$ac_popdir"
28088   done
28089 fi
28090 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28091   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28092 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
28093 fi
28094